Files
LesRecettesDePapis/main.css

135 lines
2.2 KiB
CSS
Raw Normal View History

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-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
flex:1;
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;*/
}
.logo{
height: 100%;
width: 100%;
2026-03-13 11:03:09 +01:00
}
2026-03-13 11:24:44 +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:08:33 +01:00
#nav-list {
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-13 11:24:44 +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);
border-radius: .25rem;
2026-03-13 11:24:44 +01:00
}
#main-body {
display: flex;
flex-direction: row;
overflow: auto;
2026-03-13 12:00:18 +01:00
flex: 1;
background-clip: border-box;
}
2026-03-20 11:08:33 +01:00
/* content : le cadre de base du centre de notre site
*/
2026-03-13 12:00:18 +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.
*/
#recettes {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
grid-auto-rows: minmax(300px, auto);
}
/* 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;
text-align: center;
vertical-align: middle;
}
/*Ici commence le CSS pour la page de chaques recettes */
#recette-content {
display: flex;
flex-direction: row;
}
#recette-image {
background-color: red;
flex : 2;
aspect-ratio: 1/1;
max-height: 225px;
}
#recette-desc {
padding : 10px;
}
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;
}