Files
LesRecettesDePapis/main.css

182 lines
3.1 KiB
CSS
Raw Normal View History

2026-03-20 12:01:14 +01:00
/* Sommaire :
- body et html
- Header et ses contenues
- Body contenue
- Content
- Page de présentation des recettes
- Page d'une recette
- Footer
*/
2026-03-13 12:00:18 +01:00
/*Tout*/
2026-03-13 11:24:44 +01:00
html, body{
height: 100%;
text-align: center;
/*font-size: 98%;*/
}
2026-03-13 12:00:18 +01:00
/*Header et son contenu*/
2026-03-13 11:24:44 +01:00
#header {
display: flex;
flex-direction: row;
2026-03-20 09:34:02 +01:00
padding: 3px;
2026-03-20 13:51:30 +01:00
padding-left: 2%;
padding-bottom: 10px;
2026-03-13 12:00:18 +01:00
background-color: blanchedalmond;
2026-03-13 11:03:09 +01:00
}
2026-03-13 11:24:44 +01:00
#logo {
2026-03-20 09:34:02 +01:00
background-color: aqua;
2026-03-13 12:00:18 +01:00
background-image: url("Logo.jpg");
2026-03-20 09:34:02 +01:00
/*background:no-repeat;*/
2026-03-20 13:51:30 +01:00
height: 103px;
width: 141px;
2026-03-20 09:34:02 +01:00
}
.logo{
height: 100%;
width: 100%;
2026-03-20 11:45:25 +01:00
border: 1px white solid;
border-radius: 4px;
box-shadow: 1px 1px 1px black;
2026-03-13 11:03:09 +01:00
}
2026-03-20 14:13:09 +01:00
nav {
2026-03-20 09:34:02 +01:00
flex: 9;
text-align: initial;
letter-spacing: 2px;
padding: 10px;
}
2026-03-20 11:45:25 +01:00
.nav-list {
2026-03-20 11:08:33 +01:00
list-style-type: none;
margin: 0;
padding: 0;
background-color: rgb(255, 217, 160);
display: flex;
border: 1px solid rgba(0,0,0,.125);
border-radius: 40px;
}
2026-03-20 09:34:02 +01:00
.nav-element {
2026-03-20 11:08:33 +01:00
line-height: 2.5;
2026-03-20 09:34:02 +01:00
padding: 10px;
2026-03-13 11:03:09 +01:00
}
2026-03-13 12:00:18 +01:00
/*Body et son contenu */
2026-03-13 11:24:44 +01:00
body {
2026-03-13 12:00:18 +01:00
background-color: blanchedalmond;
2026-03-13 11:24:44 +01:00
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
height: 100%;
2026-03-13 11:03:09 +01:00
}
2026-03-20 11:45:25 +01:00
.sidebar {
2026-03-13 11:03:09 +01:00
background-color: aquamarine;
2026-03-13 12:00:18 +01:00
border: 1px solid rgba(0,0,0,.125);
2026-03-20 13:51:30 +01:00
border-radius: 10px;
width: 128px;
2026-03-13 11:24:44 +01:00
}
2026-03-20 11:45:25 +01:00
.main-body {
2026-03-13 11:24:44 +01:00
display: flex;
flex-direction: row;
overflow: auto;
2026-03-13 12:00:18 +01:00
flex: 1;
background-clip: border-box;
2026-03-20 13:51:30 +01:00
padding-right: 5%;
padding-left: 5%;
2026-03-13 12:00:18 +01:00
}
2026-03-20 11:08:33 +01:00
/* content : le cadre de base du centre de notre site
*/
2026-03-20 11:45:25 +01:00
.content {
2026-03-20 11:08:33 +01:00
background-color: #ffe4bb;
2026-03-13 12:00:18 +01:00
text-align: left;
width: 100%;
height: 100%;
border: 1px solid rgba(0,0,0,.125);
2026-03-20 11:08:33 +01:00
border-radius: 6px;
2026-03-20 09:34:02 +01:00
overflow: scroll;
2026-03-13 11:24:44 +01:00
}
2026-03-20 11:08:33 +01:00
/*Recettes :
représente le contenue centrale de la page.
*/
2026-03-20 11:45:25 +01:00
.recettes {
2026-03-20 11:08:33 +01:00
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
grid-auto-rows: minmax(300px, auto);
2026-03-20 14:13:09 +01:00
grid-auto-columns: auto;
2026-03-20 11:08:33 +01:00
}
/* Classe recette icone :
C'est la classe de chaques éléments de notre liste de recette
*/
.recette-icone{
border: 3px solid rgba(0,0,0,.125);
border-radius: 40px;
2026-03-20 13:51:30 +01:00
text-align: left;
padding: 15px;
2026-03-20 11:08:33 +01:00
vertical-align: middle;
2026-03-20 13:51:30 +01:00
box-shadow: 3px 5px 5px black;
width: 500px;
}
.recette-preview-image{
max-width: calc( 10vh + 10vw );
max-height: calc( 10vh + 10vw );
border: 1px solid rgb(252, 223, 57);
border-radius: 25px;
2026-03-20 11:08:33 +01:00
}
/*Ici commence le CSS pour la page de chaques recettes */
2026-03-20 12:01:14 +01:00
/*contenue*/
2026-03-20 11:45:25 +01:00
.recette-content {
2026-03-20 11:08:33 +01:00
display: flex;
2026-03-20 11:45:25 +01:00
flex-direction: column;
2026-03-20 11:08:33 +01:00
}
2026-03-20 11:45:25 +01:00
2026-03-20 12:01:14 +01:00
/*titre*/
.recette-title {
text-align: center;
}
/*image*/
2026-03-20 11:45:25 +01:00
.recette-image {
2026-03-20 11:08:33 +01:00
background-color: red;
aspect-ratio: 1/1;
2026-03-20 13:51:30 +01:00
max-height: calc( 30vh + 30vw );
max-width: calc( 30vh + 30vw );
2026-03-20 11:45:25 +01:00
border: 1px solid white;
border-radius: 30px;
2026-03-20 11:08:33 +01:00
}
2026-03-20 11:45:25 +01:00
.recette-div-image {
display: flex;
justify-content: center;
}
2026-03-20 12:01:14 +01:00
/*description*/
2026-03-20 11:45:25 +01:00
.recette-desc {
2026-03-20 11:08:33 +01:00
padding : 10px;
}
2026-03-20 11:45:25 +01:00
2026-03-13 12:00:18 +01:00
/*Footer et son contenue*/
2026-03-13 11:24:44 +01:00
footer{
padding: 25px;
2026-03-20 11:08:33 +01:00
background: rgb(11, 189, 144);
2026-03-13 11:24:44 +01:00
color: white;
}