Merge pull request 'newCss' (#22) from newCss into master
Reviewed-on: WikiFantasy/WF-Website#22pull/24/head
commit
34be1dadcb
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 317 B |
After Width: | Height: | Size: 9.5 KiB |
@ -1,39 +1,26 @@
|
|||||||
@import url(./style.css); /* Import de style.css */
|
@import url(./style.css); /* Import de style.css */
|
||||||
@import url(./styleQuoteLittle.css);
|
@import url(./styleQuoteLittle.css);
|
||||||
|
|
||||||
h2 {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 2em;
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Conteneur général pour les citations */
|
/* Citation du jour */
|
||||||
.citations-section {
|
|
||||||
display: flex;
|
.citation-du-jour {
|
||||||
flex-direction: column;
|
width: 97.5vw;
|
||||||
gap: 20px;
|
|
||||||
padding: 20px 0;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
/* Citation du jour - toujours en pleine largeur */
|
|
||||||
body.dark-mode .citation-du-jour {
|
|
||||||
width: 97.5%; /* Prend toute la largeur */
|
|
||||||
background: linear-gradient(45deg, #4a148c, #7b1fa2);
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-left: 1.25%;
|
margin-left: 1.25vw;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
height: 150px;
|
height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* dark-mode */
|
||||||
|
|
||||||
|
body.dark-mode .citation-du-jour {
|
||||||
|
background: var(--main-dark-gradient);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* light-mode */
|
||||||
|
|
||||||
body.light-mode .citation-du-jour {
|
body.light-mode .citation-du-jour {
|
||||||
width: 97.5%;
|
background: var(--main-light-gradient);
|
||||||
background-image: linear-gradient(-28deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
|
|
||||||
padding: 0;
|
|
||||||
margin-left: 1.25%;
|
|
||||||
overflow: hidden;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
height: 150px;
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,64 @@
|
|||||||
|
@import url(./style.css);
|
||||||
|
|
||||||
|
/* ====== DARK MODE ====== */
|
||||||
|
|
||||||
|
body.dark-mode h1, body.dark-mode h2, body.dark-mode p {
|
||||||
|
color: var(--main-dark-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode .resultat {
|
||||||
|
background-color: var(--main-dark-other-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== LIGHT MODE ====== */
|
||||||
|
|
||||||
|
body.light-mode h1, body.light-mode h2, body.light-mode p {
|
||||||
|
color: var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .resultat {
|
||||||
|
background-color: var(--main-light-other-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .suiv img{
|
||||||
|
filter: invert(100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN DEFAUT ====== */
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.resultat {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 60vh;
|
||||||
|
width: 60vw;
|
||||||
|
margin: auto;
|
||||||
|
padding: 2%;
|
||||||
|
border-radius: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suiv {
|
||||||
|
align-items: self-end;
|
||||||
|
width: 1vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suiv img {
|
||||||
|
width: 1vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN TABLETTE ====== */
|
||||||
|
|
||||||
|
@media (max-width: 834px) or (max-aspect-ratio : 1/1){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN TELEPHONE ====== */
|
||||||
|
|
||||||
|
@media (max-width: 480px){
|
||||||
|
|
||||||
|
}
|
@ -1,130 +1,138 @@
|
|||||||
@import url(./style.css);
|
@import url(./style.css);
|
||||||
|
|
||||||
/* ====== DARK MODE ====== */
|
/* ====== DARK MODE ====== */
|
||||||
|
|
||||||
body.dark-mode h1{
|
body.dark-mode h1{
|
||||||
color : white;
|
color : var(--main-dark-text-color);
|
||||||
font-family: "Lemon", serif;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 32px;
|
|
||||||
margin-top: 10%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode p{
|
body.dark-mode p{
|
||||||
margin-top: 6%;
|
color : var(--main-dark-text-color);
|
||||||
margin-bottom: 2%;
|
|
||||||
color : white;
|
|
||||||
font-size: 20px;
|
|
||||||
font-family: "Lemon", serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .login{
|
body.dark-mode .login{
|
||||||
background-color: black;
|
background: var(--main-dark-other-color);
|
||||||
width: 30%;
|
|
||||||
margin-left: 35%;
|
|
||||||
margin-top: 3%;
|
|
||||||
border-radius: 25px;
|
|
||||||
border: 2px solid transparent;
|
|
||||||
padding: 2%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .createAccount{
|
body.dark-mode .createAccount{
|
||||||
margin-top: 5%;
|
color : var(--main-dark-text-color);
|
||||||
margin-bottom: 5%;
|
|
||||||
font-size: 13px;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 1%;
|
|
||||||
color: white;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
font-family: "Lemon", serif;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .buttonSudmite{
|
body.dark-mode a{
|
||||||
background: linear-gradient(90deg, #6100ff 0%, #1b0048 100%);
|
color: var(--main-dark-text-color);
|
||||||
font-family: "Lemon", serif;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
padding: 2%;
|
|
||||||
border-radius: 25px;
|
|
||||||
width: 75%;
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.dark-mode .buttonSudmite{
|
||||||
body.dark-mode .connexion{
|
background: var(--main-dark-gradient);
|
||||||
width:90%;
|
color: var(--main-dark-text-color);
|
||||||
height: 40px;
|
|
||||||
padding-left: 3%;
|
|
||||||
margin-left: 1%;
|
|
||||||
margin-top: -1%;
|
|
||||||
border-radius: 25px;
|
|
||||||
border: none;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ====== LIGHT MODE ====== */
|
/* ====== LIGHT MODE ====== */
|
||||||
body.light-mode h1{
|
body.light-mode h1{
|
||||||
color : black;
|
color : var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode p{
|
||||||
|
color : var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .login{
|
||||||
|
background: var(--main-light-other-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .createAccount{
|
||||||
|
background: var(--main-light-other-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .buttonSubmit{
|
||||||
|
background: var(--main-light-gradirent);
|
||||||
|
color: var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode a{
|
||||||
|
color: var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== ECRAN DEFAULT ====== */
|
||||||
|
|
||||||
|
.buttonSubmitDiv{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
font-family: "Lemon", serif;
|
font-family: "Lemon", serif;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
margin-top: 10%;
|
margin-top: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode p{
|
p{
|
||||||
margin-top: 6%;
|
margin-top: 6%;
|
||||||
margin-bottom: 2%;
|
margin-bottom: 2%;
|
||||||
color : black;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-family: "Lemon", serif;
|
font-family: "Lemon", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .login{
|
.login{
|
||||||
background-color: white;
|
width: 35vw;
|
||||||
width: 30%;
|
margin-left: 30.5vw;
|
||||||
margin-left: 35%;
|
margin-top: 3vh;
|
||||||
margin-top: 3%;
|
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
border: 2px solid black;
|
padding: 2vw;
|
||||||
padding: 2%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .createAccount{
|
.createAccount{
|
||||||
margin-top: 5%;
|
margin-top: 5%;
|
||||||
margin-bottom: 5%;
|
margin-bottom: 5%;
|
||||||
font-size: 13px;
|
font-size: 1em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-top: 1%;
|
padding-top: 1%;
|
||||||
color: black;
|
|
||||||
font-family: "Lemon", serif;
|
font-family: "Lemon", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .buttonSubmit{
|
.buttonSudmite{
|
||||||
background: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%);
|
|
||||||
font-family: "Lemon", serif;
|
font-family: "Lemon", serif;
|
||||||
border: none;
|
border: none;
|
||||||
color: black;
|
|
||||||
padding: 2%;
|
padding: 2%;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
width: 75%;
|
width: 50%;
|
||||||
font-size: 20px;
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .connexion{
|
.connexion{
|
||||||
width:90%;
|
width:94%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding-left: 3%;
|
padding-left: 3%;
|
||||||
margin-left: 1%;
|
margin-left: 1%;
|
||||||
margin-top: -1%;
|
margin-top: -1%;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
border: 1px solid black;
|
border: none;
|
||||||
background-color: #fff1f1;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN TABLETTE ====== */
|
||||||
|
|
||||||
/* ====== DEFAULT ====== */
|
@media (max-width: 834px){
|
||||||
.buttonSubmitDiv{
|
.login{
|
||||||
text-align: center;
|
width: 50vw;
|
||||||
|
margin-left: 22vw;
|
||||||
|
margin-top: 9vh;
|
||||||
|
padding: 3vh;
|
||||||
|
padding-bottom: 5vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.createAccount{
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.buttonSudmite{
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN TELEPHONE====== */
|
||||||
|
|
||||||
|
@media (max-width: 480px){
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
/* Conteneur pour les suggestions en deux colonnes */
|
||||||
|
.suggestions-container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
a.link-citation {
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
width: 47.5%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Citations */
|
||||||
|
.citation-container {
|
||||||
|
background: linear-gradient(to right, #4a148c, #7b1fa2);
|
||||||
|
border-radius: 12px;
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
align-items: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0;
|
||||||
|
height: 150px;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fixe la taille pour s'assurer que toutes les citations restent cohérentes */
|
||||||
|
.citation-container .text-content {
|
||||||
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote {
|
||||||
|
padding: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.citation-image {
|
||||||
|
width: 150px;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-content {
|
||||||
|
flex: 1;
|
||||||
|
padding: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center; /* Centre verticalement le texte */
|
||||||
|
word-wrap: break-word; /* Permet de couper les mots trop longs */
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quoteContent {
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.citation .movie, .character, .year {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mode sombre */
|
||||||
|
body.dark-mode .quote {
|
||||||
|
background: linear-gradient(45deg, #4a148c, #7b1fa2);
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mode clair */
|
||||||
|
body.light-mode .quote {
|
||||||
|
background-image: linear-gradient(-28deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
|
||||||
|
color:black; /* Changer le texte en noir pour le mode clair */
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .citation,
|
||||||
|
body.light-mode .movie,
|
||||||
|
body.light-mode .character,
|
||||||
|
body.light-mode .year {
|
||||||
|
color: black; /* Forcer le texte en noir pour le mode clair */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive design */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.suggestions-container {
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.citation-container {
|
||||||
|
width: 100%; /* Chaque citation prend toute la largeur sur mobile */
|
||||||
|
max-width: 100%;
|
||||||
|
height: 100px; /* Supprimer la hauteur fixe sur mobile */
|
||||||
|
}
|
||||||
|
|
||||||
|
.citation-image {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quote {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
}
|
@ -1,142 +1,140 @@
|
|||||||
@import url(./style.css);
|
@import url(./style.css);
|
||||||
|
|
||||||
h1{
|
|
||||||
margin-top: 10%;
|
/* ====== DARK MODE ====== */
|
||||||
text-align: center;
|
|
||||||
|
body.dark-mode .signin{
|
||||||
|
background: var(--main-dark-other-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.signin{
|
body.dark-mode .h1{
|
||||||
border-radius: 25px;
|
color : var(--main-dark-text-color);
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 2fr 1fr;
|
|
||||||
grid-template-rows: repeat(5, 1fr);
|
|
||||||
width : 30%;
|
|
||||||
margin-left: 35%;
|
|
||||||
margin-top: 3%;
|
|
||||||
padding : 2%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p{
|
body.dark-mode .p{
|
||||||
font-size: 20px;
|
color : var(--main-dark-text-color);
|
||||||
margin-top: 7%;
|
|
||||||
margin-bottom: 2%;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.DivId{
|
body.dark-mode .btn{
|
||||||
grid-area: 1 / 1 / 2 / 2;
|
background: var(--main-dark-gradient);
|
||||||
|
color : var(--main-dark-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.DivEmail{
|
body.dark-mode a{
|
||||||
grid-area: 2 / 1 / 3 / 2;
|
color: var(--main-dark-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.mdp{
|
/* ====== LIGHT MODE ====== */
|
||||||
grid-area: 3 / 1 / 4 / 3;
|
|
||||||
|
body.light-mode .signin{
|
||||||
|
background: var(--main-light-other-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.confmdp{
|
body.light-mode .h1{
|
||||||
grid-area: 4 / 1 / 5 / 3;
|
color : var(--main-light-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.imgprof{
|
body.light-mode .p{
|
||||||
grid-area: 1 / 2 / 3 / 3;
|
color : var(--main-light-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirmer{
|
body.light-mode .btn{
|
||||||
grid-area: 5 / 1 / 6 / 3;
|
background: var(--main-light-gradient);
|
||||||
align-self: center;
|
color : var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode a{
|
||||||
|
color: var(--main-light-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN DEFAULT ====== */
|
||||||
|
|
||||||
|
h1{
|
||||||
|
font-family: "Lemon", serif;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: 32px;
|
||||||
|
margin-top: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.champ{
|
.signin{
|
||||||
width: 90%;
|
width: 35vw;
|
||||||
height : 35%;
|
margin-left: 30.5vw;
|
||||||
|
margin-top: 3vh;
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
margin-left: 1%;
|
padding: 2vw;
|
||||||
padding-left: 3%;
|
|
||||||
margin-top: -1%;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn{
|
p{
|
||||||
margin-top: 10%;
|
margin-top: 4%;
|
||||||
width:75%;
|
margin-bottom: 2%;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
padding: 2%;
|
|
||||||
border-radius: 25px;
|
|
||||||
border: none;
|
|
||||||
font-family: "Lemon", serif;
|
font-family: "Lemon", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Dark mode*/
|
.confirmer{
|
||||||
|
text-align: center;
|
||||||
body.dark-mode .signin{
|
|
||||||
background-color: #000000;
|
|
||||||
border: 2px solid transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .h1{
|
.champ{
|
||||||
color : white;
|
width:94%;
|
||||||
|
height: 40px;
|
||||||
|
padding-left: 3%;
|
||||||
|
margin-left: 1%;
|
||||||
|
margin-top: -1%;
|
||||||
|
border-radius: 25px;
|
||||||
|
border: none;
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .p{
|
.btn{
|
||||||
color : white;
|
font-family: "Lemon", serif;
|
||||||
|
border: none;
|
||||||
|
padding: 2%;
|
||||||
|
border-radius: 25px;
|
||||||
|
width: 50%;
|
||||||
|
font-size: 1.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .btn{
|
.connectAccount{
|
||||||
background: linear-gradient(90deg, #6100ff 0%, #1b0048 100%);
|
margin-top: 5%;
|
||||||
color : white;
|
margin-bottom: 5%;
|
||||||
|
font-size: 1em;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 1%;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.dark-mode .champ{
|
.createAccount{
|
||||||
background-color: #ffffff;
|
font-size: 1em;
|
||||||
border: 2px solid #ffffff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Light*/
|
/* ====== ECRAN TABLETTE ====== */
|
||||||
|
|
||||||
body.light-mode .signin{
|
@media (max-width: 834px){
|
||||||
background-color: #ffffff;
|
.signin{
|
||||||
border: 2px solid #000000;
|
width: 50vw;
|
||||||
}
|
margin-left: 22vw;
|
||||||
|
margin-top: 9vh;
|
||||||
|
padding: 3vh;
|
||||||
|
padding-bottom: 5vh;
|
||||||
|
}
|
||||||
|
|
||||||
body.light-mode .h1{
|
.btn{
|
||||||
color : #000000;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .p{
|
.createAccount{
|
||||||
color : #000000;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.light-mode .btn{
|
.connectAccount{
|
||||||
background: linear-gradient(90deg, #caffde 0%, #b7c8ff 100%);
|
font-size: 13px;
|
||||||
color : #000000;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .champ{
|
|
||||||
background-color: #fff1f1;
|
|
||||||
border: 1px solid #000000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ====== ECRAN TELEPHONE====== */
|
||||||
|
|
||||||
body.dark-mode .connectAccount{
|
@media (max-width: 480px){
|
||||||
margin-top: 5%;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
font-size: 13px;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 1%;
|
|
||||||
color: white;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
font-family: "Lemon", serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.light-mode .connectAccount{
|
|
||||||
margin-top: 5%;
|
|
||||||
margin-bottom: 5%;
|
|
||||||
font-size: 13px;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 1%;
|
|
||||||
color: black;
|
|
||||||
font-family: "Lemon", serif;
|
|
||||||
}
|
}
|
@ -0,0 +1,108 @@
|
|||||||
|
/* header.css */
|
||||||
|
|
||||||
|
/* Styles généraux */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #120b1d;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
margin-top: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header */
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
position: fixed;
|
||||||
|
background-color: #000000;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
vertical-align: center;
|
||||||
|
gap: 30px;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
vertical-align: center;
|
||||||
|
gap: 30px;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
vertical-align: center;
|
||||||
|
margin: 10px;
|
||||||
|
width: 70px;
|
||||||
|
height: 70px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Mode sombre */
|
||||||
|
body.dark-mode {
|
||||||
|
background-color: #120B1D;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode .header {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode .header img {
|
||||||
|
filter: invert(0%);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode .nav img:hover {
|
||||||
|
filter: invert(59%) sepia(96%) saturate(6733%) hue-rotate(275deg) brightness(112%) contrast(122%);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode .search {
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mode clair */
|
||||||
|
body.light-mode {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .header {
|
||||||
|
background-color: #F4F1DE;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .header img {
|
||||||
|
filter: invert(100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .nav img:hover {
|
||||||
|
filter: invert(22%) sepia(6%) saturate(2269%) hue-rotate(193deg) brightness(98%) contrast(106%);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.light-mode .search {
|
||||||
|
background: black;
|
||||||
|
}
|
@ -1,20 +1,16 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="nav">
|
<div class="nav">
|
||||||
<a href="{{ racine }}/favorite"><img src="{{ racine }}/images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false"></a>
|
<a href="{{ racine }}/favorite"><img src="{{ racine }}/images/coeur.svg" alt="coeur" onmousedown="return false"></a>
|
||||||
<img id="theme-icon" src="{{ racine }}/images/dark.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
|
<img id="theme-icon" src="{{ racine }}/images/dark.svg" alt="toggle theme" onmousedown="return false" onclick="toggleTheme()">
|
||||||
<a href="{{ racine }}/quiz/1"><img src="{{ racine }}/images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
|
<a href="{{ racine }}/quiz/1"><img src="{{ racine }}/images/quizz.svg" alt="quizz" onmousedown="return false"></a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<a href="{{ racine }}/"><img src="{{ racine }}/images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
|
<a href="{{ racine }}/"><img src="{{ racine }}/images/WIKIFANTASY.png" alt="Logo" onmousedown="return false"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="user">
|
<div class="user">
|
||||||
|
<a href="{{ racine }}/search"><img src="{{ racine }}/images/loupe.svg" alt="search" onmousedown="return false"></a>
|
||||||
|
<a href="{{ racine }}/profil"><img src="{{ racine }}/images/user_dark.png" alt="user" onmousedown="return false"></a>
|
||||||
<div class="search">
|
|
||||||
<a href="{{ racine }}/search"><img src="{{ racine }}/images/search.png" alt="search" width="50px" height="50px" onmousedown="return false"></a>
|
|
||||||
</div>
|
|
||||||
<a href="{{ racine }}/profil"><img src="{{ racine }}/images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -1,6 +1,10 @@
|
|||||||
<body>
|
<h1>Résultat</h1>
|
||||||
<h1 style="color: #b7c8ff"> {{ score }} </h1>
|
<div class="resultat">
|
||||||
<h1> {{ nextquiz }} </h1>
|
<p> nombre de réponse juste : {{ score }}</p>
|
||||||
|
<p> nombre de réponse fausse : {{ 10 - score }}</p>
|
||||||
|
<a class="suiv" href="{{racine}}/quiz/{{ nextquiz }}" alt="quiz suivant">
|
||||||
|
<img src="../images/suivant.png" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in new issue