660 lines
11 KiB
CSS
Executable File
660 lines
11 KiB
CSS
Executable File
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
|
|
/* Sommaire :
|
|
- body et html
|
|
- Header et ses contenues
|
|
- Body contenue
|
|
- Content
|
|
- Page de présentation des recettes
|
|
- Page d'une recette
|
|
- Footer
|
|
|
|
*/
|
|
|
|
/*Tout*/
|
|
html, body{
|
|
height: 100%;
|
|
text-align: center;
|
|
/*font-size: 98%;*/
|
|
font-family: "Roboto", sans-serif;
|
|
}
|
|
|
|
|
|
/*Header et son contenu*/
|
|
#header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 3px;
|
|
padding-left: 2%;
|
|
padding-bottom: 10px;
|
|
background-color: blanchedalmond;
|
|
}
|
|
|
|
#logo {
|
|
background-color: aqua;
|
|
background-image: url("../images/Logo.jpg");
|
|
/*background:no-repeat;*/
|
|
height: 103px;
|
|
width: 141px;
|
|
}
|
|
|
|
.logo{
|
|
height: 100%;
|
|
width: 100%;
|
|
border: 1px white solid;
|
|
border-radius: 4px;
|
|
box-shadow: 1px 1px 1px black;
|
|
}
|
|
|
|
.logo:hover{
|
|
box-shadow: 1px 1px 2px #0bbd90;
|
|
border: 1px solid #0bbd90;
|
|
}
|
|
|
|
nav {
|
|
flex: 9;
|
|
text-align: initial;
|
|
letter-spacing: 2px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.nav-list li {
|
|
/*border: 1px solid black;*/
|
|
border-radius: 2000px;
|
|
}
|
|
|
|
.nav-list li:hover {
|
|
background-color: #00d8a2;
|
|
}
|
|
|
|
|
|
.nav-element {
|
|
line-height: 2.5;
|
|
padding: 10px;
|
|
margin: 4px;
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
.nav-list{
|
|
li:nth-of-type(3){
|
|
position: fixed;
|
|
right: 25px;
|
|
}
|
|
}
|
|
|
|
#login {
|
|
border: 1px solid black;
|
|
border-radius: 2000px;
|
|
background-color: #ffc478;
|
|
}
|
|
|
|
#login:hover {
|
|
background-color: #0bbd90;
|
|
box-shadow: 1px 1px 7px black;
|
|
}
|
|
|
|
/*Body et son contenu */
|
|
body {
|
|
background-color: blanchedalmond;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.sidebar {
|
|
background-color: #caecd6;
|
|
border: 1px solid rgba(0,0,0,.125);
|
|
border-radius: 6px;
|
|
width: 128px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: scroll;
|
|
}
|
|
|
|
.tag-cont {
|
|
/*display:none;*/
|
|
}
|
|
|
|
.ingr-cont {
|
|
/*display:none;*/
|
|
}
|
|
|
|
.title-site {
|
|
text-align: center;
|
|
}
|
|
|
|
.title {
|
|
width: 100%;
|
|
height: 50%;
|
|
font-size: 100px;
|
|
}
|
|
|
|
.random-proposition {
|
|
gap: 5%;
|
|
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;
|
|
}
|
|
|
|
.tag-selected-div {
|
|
flex: 4;
|
|
}
|
|
|
|
.tag-unselected-div {
|
|
flex: 4;
|
|
}
|
|
|
|
.sidebar-search {
|
|
flex: 1;
|
|
}
|
|
|
|
.search-form-tag {
|
|
width: 85%;
|
|
}
|
|
|
|
.search-form-recette {
|
|
width: 100%;
|
|
height: 25px;
|
|
}
|
|
|
|
.search-form {
|
|
margin-top: .5%;
|
|
padding: .5% 0 .5% .5%;
|
|
border: 1px solid black;
|
|
border-radius: 20px;
|
|
box-shadow: 0px 0px 10px rgb(131, 131, 131);
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.tag {
|
|
border: 1px solid black;
|
|
border-radius: 10px;
|
|
width: 95%;
|
|
max-width: calc(128px*0.95);
|
|
box-shadow: 1px 1px 1px black;
|
|
}
|
|
|
|
.tag-selected {
|
|
background-color: #ffa04d;
|
|
}
|
|
|
|
.tag-selected:hover {
|
|
background-color: white;
|
|
}
|
|
|
|
.tag-unselected {
|
|
background-color: white;
|
|
|
|
}
|
|
.tag-unselected:hover {
|
|
background-color: #ffa04d;
|
|
}
|
|
|
|
#hr {
|
|
border: 1px solid #0bbd90;
|
|
width: 93%;
|
|
box-shadow: 1px 3px 5px #0bbd90;
|
|
}
|
|
|
|
.main-body {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
background-clip: border-box;
|
|
padding-right: 2%;
|
|
padding-left: 2%;
|
|
padding-bottom: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* content : le cadre de base du centre de notre site
|
|
*/
|
|
.content {
|
|
background-color: #ffe4bb;
|
|
text-align: left;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 1px solid rgba(0,0,0,.125);
|
|
border-radius: 6px;
|
|
overflow: scroll;
|
|
}
|
|
|
|
/*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);
|
|
grid-auto-columns: auto;*/
|
|
padding: 10px;
|
|
}
|
|
|
|
@media screen and (max-width : 1200px) {
|
|
.recettes {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width : 800px) {
|
|
.recettes {
|
|
grid-template-columns: repeat(1, 1fr);
|
|
}
|
|
|
|
}
|
|
|
|
@media screen and (max-width : 600px) {
|
|
|
|
.sidebar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin-left: 0px;
|
|
text-align: center;
|
|
padding : 0px;
|
|
}
|
|
|
|
/* Classe recette icone :
|
|
C'est la classe de chaques éléments de notre liste de recette
|
|
*/
|
|
.recette-icone{
|
|
display: flex;
|
|
border: 3px solid rgba(0,0,0,.125);
|
|
border-radius: 40px;
|
|
text-align: left;
|
|
padding: 15px;
|
|
vertical-align: middle;
|
|
box-shadow: 3px 5px 5px black;
|
|
max-width: 400px;
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
.recette-icone:hover{
|
|
border-color: #0bbd90;
|
|
}
|
|
|
|
.recette-icone-content{
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.recette-preview-image{
|
|
max-width: calc( 5vh + 5vw );
|
|
max-height: calc( 5vh + 5vw );
|
|
border: 1px solid rgb(252, 223, 57);
|
|
border-radius: 25px;
|
|
}
|
|
|
|
/*Ici commence le CSS pour la page de chaques recettes */
|
|
/*contenue*/
|
|
.recette-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/*titre*/
|
|
.recette-title {
|
|
text-align: center;
|
|
}
|
|
|
|
/*image*/
|
|
.recette-image {
|
|
background-color: red;
|
|
max-height: calc( 20vh + 20vw );
|
|
max-width: calc( 20vh + 20vw );
|
|
border: 1px solid white;
|
|
border-radius: 30px;
|
|
}
|
|
|
|
.recette-div-image {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
.recette-liste-ingr-div {
|
|
margin-left: 120px;
|
|
padding-left: 100px;
|
|
width: 75%;
|
|
border: 1px solid black;
|
|
border-radius: 200px;
|
|
box-shadow: 7px 4px 7px black;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.recette-div-info {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 20px;
|
|
}
|
|
|
|
.recette-div-liste-info{
|
|
padding: 30px;
|
|
margin: 10px;
|
|
width: 100%;
|
|
flex:1;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.recette-liste-info-elem {
|
|
text-align: left;
|
|
padding: 4px;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
color: #535353bd;
|
|
border-right: 1px solid #535353bd;
|
|
border-left: 1px solid #535353bd;
|
|
}
|
|
|
|
.recette-liste-info {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.recette-liste-tag {
|
|
display: flex;
|
|
flex-wrap: wrap; /*trouvé à l'aide de ChatGPT car je n'arrivais pas à trouver*/
|
|
}
|
|
|
|
|
|
/*description*/
|
|
.recette-desc {
|
|
padding : 30px;
|
|
}
|
|
|
|
/*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: 4vmin;
|
|
border-radius: 7px;
|
|
box-shadow: 2px 2px 0px #000000;
|
|
}
|
|
|
|
.btn {
|
|
padding: .5% 2%;
|
|
border: 2px solid black;
|
|
border-radius: 10px;
|
|
margin-top: .5%;
|
|
margin-left: .5%;
|
|
background-color: #ffd9a0;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: #0bbd90;
|
|
box-shadow: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.form-control {
|
|
padding: 1%;
|
|
border-radius: 10px;
|
|
box-shadow: 3px 4px 5px #8c8c8c;
|
|
}
|
|
|
|
.recette-form-div-desc {
|
|
height: 90%;
|
|
}
|
|
|
|
.recette-form {
|
|
height: 80%;
|
|
width: 80%;
|
|
margin: 10px;
|
|
padding: 10px;
|
|
border: 1px solid black;
|
|
background: #fff9f1;
|
|
border-radius: 20px;
|
|
box-shadow: 2px 2px 3px #a06100;
|
|
}
|
|
|
|
.recette-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 5px;
|
|
}
|
|
|
|
#recette-form-div-desc {
|
|
height: 220px;
|
|
}
|
|
|
|
#recette-form-description {
|
|
height: 95%;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.err {
|
|
color: red;
|
|
display: none;
|
|
text-align: center;
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.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;
|
|
margin-top: .25%;
|
|
margin-bottom: .25%;
|
|
}
|
|
|
|
.liste-ingr-elem:hover {
|
|
border:3px solid #007054;
|
|
box-shadow: 2px 2px 10px black;
|
|
}
|
|
|
|
.liste-ingr-elem-text {
|
|
width: 100%;
|
|
height: 100%;
|
|
flex:12;
|
|
padding-left: 20px;
|
|
line-height: 100px;
|
|
color: #000000;
|
|
}
|
|
|
|
.liste-ingr-elem-modif {
|
|
line-height: 100px;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.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;
|
|
margin-top: .25%;
|
|
margin-bottom: .25%;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.ingr-image {
|
|
flex: 1;
|
|
border: 1px solid black;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: black;
|
|
}
|
|
|
|
/*Footer et son contenue*/
|
|
footer{
|
|
padding: 25px;
|
|
background: rgb(11, 189, 144);
|
|
color: white;
|
|
border-top: 1px solid black;
|
|
}
|
|
|
|
.meta-recettes {
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
|