Files
LesRecettesDePapis/main.css

412 lines
6.6 KiB
CSS
Raw Normal View History

2026-03-20 16:00:45 +01:00
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
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-20 16:00:45 +01:00
font-family: "Roboto", sans-serif;
2026-03-13 11:24:44 +01:00
}
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-27 13:25:33 +01:00
.logo:hover{
box-shadow: 1px 1px 2px #0bbd90;
border: 1px solid #0bbd90;
}
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-20 16:00:45 +01:00
text-decoration: none;
color: black;
}
.nav-list{
li:nth-of-type(3){
position: fixed;
right: 25px;
}
}
#login {
border: 1px solid black;
border-radius: 6px;
2026-03-27 13:25:33 +01:00
background-color: #ffc478;
}
#login:hover {
background-color: #0bbd90;
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-27 10:12:59 +01:00
background-color: #caecd6;
2026-03-13 12:00:18 +01:00
border: 1px solid rgba(0,0,0,.125);
2026-03-27 10:12:59 +01:00
border-radius: 6px;
2026-03-20 13:51:30 +01:00
width: 128px;
2026-03-27 10:12:59 +01:00
display: flex;
flex-direction: column;
2026-03-27 12:02:17 +01:00
overflow: scroll;
2026-03-27 10:12:59 +01:00
}
2026-03-27 12:02:17 +01:00
.tag-cont {
/*display:none;*/
}
.ingr-cont {
/*display:none;*/
}
.tag-selected-div {
flex: 4;
2026-03-27 10:12:59 +01:00
}
2026-03-27 12:02:17 +01:00
.tag-unselected-div {
2026-03-27 10:12:59 +01:00
flex: 4;
}
2026-03-27 12:02:17 +01:00
.sidebar-search {
2026-03-27 10:12:59 +01:00
flex: 1;
}
.search-form-tag {
width: 85%;
}
.search-form-recette {
width: 100%;
height: 25px;
}
.search-form {
border: 1px solid black;
border-radius: 20px;
2026-03-27 13:25:33 +01:00
box-shadow: 0px 0px 10px rgb(131, 131, 131);
2026-03-27 10:12:59 +01:00
}
nav {
display: flex;
flex-direction: column;
justify-content: space-around;
}
.tag {
border: 1px solid black;
border-radius: 10px;
width: 95%;
2026-03-27 13:25:33 +01:00
box-shadow: 1px 1px 1px black;
2026-03-27 10:12:59 +01:00
}
.tag-selected {
background-color: #ffa04d;
}
2026-03-27 12:02:17 +01:00
.tag-selected:hover {
background-color: white;
}
2026-03-27 10:12:59 +01:00
.tag-unselected {
background-color: white;
2026-03-27 12:02:17 +01:00
}
.tag-unselected:hover {
background-color: #ffa04d;
2026-03-13 11:24:44 +01:00
}
2026-03-27 12:02:17 +01:00
#hr {
border: 1px solid #0bbd90;
width: 93%;
box-shadow: 1px 3px 5px #0bbd90;
}
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;
2026-03-13 12:00:18 +01:00
flex: 1;
background-clip: border-box;
2026-03-20 15:11:41 +01:00
padding-right: 2%;
padding-left: 2%;
2026-03-27 12:02:17 +01:00
overflow: hidden;
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-27 12:02:17 +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;
2026-03-20 15:11:41 +01:00
grid-template-columns: repeat(3, 1fr);
2026-03-20 11:08:33 +01:00
grid-gap: 10px;
2026-03-20 15:11:41 +01:00
/* grid-auto-rows: minmax(300px, auto);
grid-auto-columns: auto;*/
2026-03-27 13:25:33 +01:00
padding: 10px;
2026-03-20 15:11:41 +01:00
}
@media screen and (max-width : 1200px) {
.recettes {
grid-template-columns: repeat(2, 1fr);
}
}
2026-03-27 10:12:59 +01:00
@media screen and (max-width : 800px) {
2026-03-20 15:11:41 +01:00
.recettes {
grid-template-columns: repeat(1, 1fr);
}
2026-03-27 10:12:59 +01:00
}
@media screen and (max-width : 600px) {
2026-03-20 15:11:41 +01:00
.sidebar {
display: none;
}
2026-03-20 11:08:33 +01:00
}
2026-03-27 10:12:59 +01:00
ul {
list-style-type: none;
margin-left: 0px;
text-align: center;
padding : 0px;
}
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{
2026-03-20 16:00:45 +01:00
display: flex;
2026-03-20 11:08:33 +01:00
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;
2026-03-20 15:11:41 +01:00
max-width: 400px;
2026-03-20 16:00:45 +01:00
text-decoration: none;
color: black;
}
2026-03-27 13:25:33 +01:00
.recette-icone:hover{
border-color: #0bbd90;
}
2026-03-20 16:00:45 +01:00
.recette-icone-content{
display: flex;
flex-direction: column;
padding-left: 10px;
2026-03-20 13:51:30 +01:00
}
.recette-preview-image{
2026-03-20 15:11:41 +01:00
max-width: calc( 5vh + 5vw );
max-height: calc( 5vh + 5vw );
2026-03-20 13:51:30 +01:00
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-27 13:52:40 +01:00
.recette-div-info {
display: flex;
flex-direction: row;
}
.recette-div-liste-info{
padding: 50px;
margin: 10px;
}
.recette-liste-info-elem {
text-align: left;
}
.recette-liste-info {
display: flex;
flex-direction: column;
}
.recette-liste-tag {
display: flex;
flex-direction: row;
}
2026-03-20 12:01:14 +01:00
/*description*/
2026-03-20 11:45:25 +01:00
.recette-desc {
2026-03-27 13:52:40 +01:00
padding : 30px;
2026-03-20 11:08:33 +01:00
}
2026-03-27 11:10:05 +01:00
/*Login form*/
.formcont {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.formcont form {
width: 50vmin;
height: 40vmin;
border: 2px solid rgb(0, 0, 0);
padding: 20px;
display: flex;
flex-direction: column;
gap: 1.5vmin;
background:white;
border-radius: 12px;
box-shadow: 5px 5px 30px #555;
}
.formcont form .form-group {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
padding: 1.2vmin;
padding-left:0px;
}
.formcont form .form-group label {
width: 95%;
text-align: center;
color:black;
font-size:5vmin;
}
.formcont form .form-group input {
width: 95%;
box-sizing: border-box;
font-size:3vmin;
padding:1vmin;
}
.formcont form button {
width: 48%;
height: 19%;
padding:0.5vmin;
box-sizing: border-box;
margin: 0 auto;
background: #ffa04d;
color: black;
font-size: 5vmin;
border-radius: 7px;
box-shadow: 2px 2px 0px #000000;
}
2026-03-27 13:25:33 +01:00
.btn:hover {
background-color: #0bbd90;
}
2026-03-27 11:10:05 +01:00
.form-control {
border-radius: 10px;
box-shadow: 3px 4px 5px #8c8c8c;
}
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;
}