Files
LesRecettesDePapis/main.css

655 lines
11 KiB
CSS
Raw Permalink 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-04-03 15:53:32 +02: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-04-03 15:53:32 +02:00
.nav-list li {
/*border: 1px solid black;*/
border-radius: 2000px;
}
.nav-list li:hover {
background-color: #00d8a2;
}
2026-03-20 11:08:33 +01:00
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-04-03 14:58:27 +02:00
margin: 4px;
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;
2026-04-03 15:53:32 +02:00
border-radius: 2000px;
2026-03-27 13:25:33 +01:00
background-color: #ffc478;
}
#login:hover {
background-color: #0bbd90;
2026-04-03 15:53:32 +02:00
box-shadow: 1px 1px 7px black;
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;*/
}
2026-04-09 17:32:11 +02:00
.title-site {
text-align: center;
}
.title {
width: 100%;
height: 50%;
font-size: 100px;
}
.random-proposition {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.recommandation img {
max-width: calc( 7vh + 7vw );
max-height: calc( 7vh + 7vw );
}
.line-acceuil {
color: #03be90;
box-shadow: 20px 6px 8px #007054;
}
2026-03-27 12:02:17 +01:00
.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 {
2026-04-09 17:32:11 +02:00
margin-top: .5%;
padding: .5% 0 .5% .5%;
2026-03-27 10:12:59 +01:00
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 14:33:23 +01:00
max-width: calc(128px*0.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-04-09 17:32:11 +02:00
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-04-03 15:53:32 +02:00
padding-bottom: 5px;
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;
2026-04-03 14:46:12 +02:00
max-height: calc( 20vh + 20vw );
max-width: calc( 20vh + 20vw );
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-04-03 14:46:12 +02:00
.recette-liste-ingr-div {
2026-04-03 14:58:27 +02:00
margin-left: 120px;
padding-left: 100px;
width: 75%;
border: 1px solid black;
border-radius: 200px;
box-shadow: 7px 4px 7px black;
2026-04-03 14:46:12 +02:00
}
.recette-liste-ingr-elem {
display: flex;
padding-left: 50px;
}
.ingr-image-prev {
max-height: 50px;
max-width: 50px;
border: 1px solid black;
border-radius: 10px;
flex: 1;
}
.recette-liste-ingr-elem-nom {
height: 100%;
width: 15%;
line-height: 50px;
}
2026-03-27 13:52:40 +01:00
.recette-div-info {
display: flex;
flex-direction: row;
2026-03-27 14:33:23 +01:00
padding: 20px;
2026-03-27 13:52:40 +01:00
}
.recette-div-liste-info{
2026-03-27 14:33:23 +01:00
padding: 30px;
2026-03-27 13:52:40 +01:00
margin: 10px;
2026-03-27 14:33:23 +01:00
width: 100%;
flex:1;
2026-03-27 13:52:40 +01:00
}
2026-04-02 17:21:25 +02:00
.recette-list-buttons {
display: flex;
flex-direction: row-reverse;
}
.recette-button {
border: 1px solid black;
border-radius: 10px;
padding : 10px;
box-shadow: 1px 1px 1px black;
background-color: blanchedalmond;
}
.recette-button:hover{
background-color: rgb(243, 215, 174);
}
2026-03-27 13:52:40 +01:00
.recette-liste-info-elem {
text-align: left;
2026-03-27 14:33:23 +01:00
padding: 4px;
padding-top: 6px;
padding-bottom: 6px;
color: #535353bd;
border-right: 1px solid #535353bd;
2026-03-27 14:47:40 +01:00
border-left: 1px solid #535353bd;
2026-03-27 13:52:40 +01:00
}
.recette-liste-info {
display: flex;
2026-03-27 14:33:23 +01:00
flex-direction: row;
2026-03-27 13:52:40 +01:00
}
.recette-liste-tag {
display: flex;
2026-03-27 14:47:40 +01:00
flex-wrap: wrap; /*trouvé à l'aide de ChatGPT car je n'arrivais pas à trouver*/
2026-03-27 13:52:40 +01:00
}
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;
2026-04-09 17:32:11 +02:00
font-size:3vmin;
padding:1vmin;
2026-03-27 11:10:05 +01:00
}
.formcont form button {
width: 48%;
height: 19%;
padding:0.5vmin;
box-sizing: border-box;
margin: 0 auto;
background: #ffa04d;
color: black;
2026-03-27 14:33:23 +01:00
font-size: 4vmin;
2026-03-27 11:10:05 +01:00
border-radius: 7px;
box-shadow: 2px 2px 0px #000000;
}
2026-04-09 17:32:11 +02:00
.btn {
padding: .5% 2%;
border: 2px solid black;
border-radius: 10px;
margin-top: .5%;
margin-left: .5%;
background-color: #ffd9a0;
}
2026-03-27 13:25:33 +01:00
.btn:hover {
background-color: #0bbd90;
2026-04-03 15:53:32 +02:00
box-shadow: none;
2026-04-09 17:32:11 +02:00
cursor: pointer;
2026-03-27 13:25:33 +01:00
}
2026-03-27 11:10:05 +01:00
.form-control {
2026-04-09 17:32:11 +02:00
padding: 1%;
2026-03-27 11:10:05 +01:00
border-radius: 10px;
box-shadow: 3px 4px 5px #8c8c8c;
}
2026-03-20 11:45:25 +01:00
2026-03-27 16:00:23 +01:00
.recette-form-div-desc {
height: 90%;
}
.recette-form {
2026-04-03 10:23:45 +02:00
height: 80%;
width: 80%;
2026-03-27 16:00:23 +01:00
margin: 10px;
padding: 10px;
2026-04-03 10:23:45 +02:00
border: 1px solid black;
2026-04-03 15:53:32 +02:00
background: #fff9f1;
2026-04-03 10:23:45 +02:00
border-radius: 20px;
2026-04-03 15:53:32 +02:00
box-shadow: 2px 2px 3px #a06100;
2026-03-27 16:00:23 +01:00
}
.recette-form-group {
display: flex;
flex-direction: column;
2026-04-03 10:23:45 +02:00
padding: 5px;
2026-03-27 16:00:23 +01:00
}
#recette-form-div-desc {
2026-04-03 15:53:32 +02:00
height: 220px;
2026-03-27 16:00:23 +01:00
}
#recette-form-description {
height: 95%;
}
2026-04-03 10:23:45 +02:00
.recette-add-form-all {
display: flex;
flex-direction: row;
overflow: hidden;
}
.recette-form-add {
flex: 3;
}
.recette-form-add-ingr {
height: 30%;
}
.recette-form-add-tag {
height: 30%;
}
.recette-form-add-additional{
flex: 1;
padding-right: 10px;
}
2026-04-03 11:37:06 +02:00
.err {
2026-04-03 11:17:24 +02:00
color: red;
display: none;
text-align: center;
padding-top: 20px;
}
2026-04-03 12:00:50 +02:00
.liste-ingr-elem {
display: flex;
height: 100px;
padding:5px;
background-color: #c6fdefe0;
color: #000000;
border: 1px solid black;
border-radius: 10px;
box-shadow: 1px 1px 1px black;
2026-04-09 17:32:11 +02:00
margin-top: .25%;
margin-bottom: .25%;
2026-04-03 12:00:50 +02:00
}
2026-04-03 13:43:57 +02:00
.liste-ingr-elem:hover {
border:3px solid #007054;
box-shadow: 2px 2px 10px black;
}
2026-04-03 12:00:50 +02:00
.liste-ingr-elem-text {
width: 100%;
height: 100%;
flex:12;
padding-left: 20px;
line-height: 100px;
2026-04-03 13:43:57 +02:00
color: #000000;
}
.liste-ingr-elem-modif {
line-height: 100px;
padding-right: 20px;
2026-04-03 12:00:50 +02:00
}
2026-04-03 14:29:26 +02:00
.liste-tag-elem {
display: flex;
height: 40px;
padding:5px;
background-color: #c6fdefe0;
color: #000000;
border: 1px solid black;
border-radius: 10px;
box-shadow: 1px 1px 1px black;
2026-04-09 17:32:11 +02:00
margin-top: .25%;
margin-bottom: .25%;
2026-04-03 14:29:26 +02:00
}
.liste-tag-elem:hover {
border:3px solid #007054;
box-shadow: 2px 2px 10px black;
}
.liste-tag-elem-text {
width: 100%;
height: 100%;
flex:12;
padding-left: 20px;
line-height: 40px;
color: #000000;
}
.liste-tag-elem-modif {
line-height: 40px;
padding-right: 20px;
}
2026-04-03 12:00:50 +02:00
.ingr-image {
flex: 1;
border: 1px solid black;
border-radius: 10px;
}
2026-04-03 13:43:57 +02:00
a {
text-decoration: none;
color: black;
}
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;
2026-04-03 12:00:50 +02:00
border-top: 1px solid black;
2026-03-13 11:24:44 +01:00
}