You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WF-Website/public/styles/style.css

218 lines
4.7 KiB

/* @import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap'); */
@import url(./styleScroll.css);
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
:root {
--main-dark-background-color: #120B1D;
--main-dark-text-color : #ffffff;
--main-dark-gradient : linear-gradient(45deg, #4a148c, #7b1fa2);
--main-dark-other-color : #000000;
--main-light-background-color: #ffffff;
--main-light-text-color : #000000;
/*--main-light-gradient : linear-gradient(90deg, #46BE73, #BAEBF6);*/
/*--main-light-gradient : linear-gradient(90deg, #AAB9CF, #BDD4E7);*/
--main-light-gradient : #84e4a9;
--main-light-other-color : #46BE73;
/* --main-light-gradient : #94d3ac;
--main-light-other-color : #75b48d; */
}
*{
font-family: "roboto condensed", sans-serif;
font-weight: 600;
}
/* Général */
body{
font-family: "roboto condensed", sans-serif;
margin : 0%;
}
/* Dark mode */
body.dark-mode{
background-color: var(--main-dark-background-color);
color: var(--main-dark-text-color);
}
body.dark-mode .header{
background-color: var(--main-dark-other-color);
}
.dark-mode::-webkit-scrollbar-track {
background: var(--main-dark-background-color);
border-radius: 8px;
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
position: relative;
}
.dark-mode::-webkit-scrollbar-thumb {
background: var(--main-dark-gradient);
border-radius: 10px;
border: 2px solid var(--main-dark-other-color);
box-shadow: 0 0 10px rgba(106, 0, 255, 0.4);
position: relative;
}
.dark-mode::-webkit-scrollbar-thumb:hover {
background: linear-gradient(45deg, #7d00ff, #4b00aa);
box-shadow: 0 0 15px rgba(125, 0, 255, 0.7), 0 0 30px rgba(125, 0, 255, 0.5);
transform: scale(1.1);
}
.dark-mode .theme-icon:hover, .dark-mode .nav a:hover {
filter: brightness(0) saturate(100%) invert(16%) sepia(27%) saturate(7439%) hue-rotate(259deg) brightness(83%) contrast(110%);
}
/* Light mode */
body.light-mode{
background-image: url("../../images/chaos.png");
color: var(--main-light-text-color);
}
body.light-mode .header{
background-color: var(--main-light-other-color);
}
body.light-mode .header img{
filter: invert(100%);
}
.light-mode::-webkit-scrollbar-track {
background: var(--main-light-background-color);
border-radius: 8px;
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
position: relative;
}
.light-mode::-webkit-scrollbar-thumb {
background: var(--main-light-gradient);
border-radius: 10px;
border: 2px solid var(--main-light-other-color);
box-shadow: 0 0 10px rgba(255, 182, 193, 0.4);
position: relative;
}
.light-mode::-webkit-scrollbar-thumb:hover {
background: linear-gradient(45deg, #a0e4ff, #f7cce6);
box-shadow: 0 0 15px rgba(160, 228, 255, 0.7), 0 0 30px rgba(247, 204, 230, 0.5);
transform: scale(1.1);
}
.light-mode .theme-icon:hover, .light-mode .nav a:hover {
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(103%) contrast(101%);
}
/* écran par défaut */
body{
margin-top: 15vh;
}
.header {
z-index: 100;
display: flex;
position: fixed;
top: 0;
width: 100vw;
text-align: center;
padding: 1%;
height: 10vh;
}
::-webkit-scrollbar {
width: 14px;
height: 14px;
}
#theme-icon{
height : 5vh
}
.header img{
height : 7vh;
}
.nav {
display: flex;
align-items: center;
vertical-align: center;
gap: 2vw;
width: 39%;
}
.logo {
display: flex;
align-items: center;
justify-content: center;
width: 20%;
}
.logo:hover{
transform: scale(1.1);
transition: transform 0.3s ease-in-out;
}
.logo img{
height : 10vh;
}
.iconUser{
margin-right: 5px;
}
.user {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
vertical-align: center;
gap: 2vw;
width: 39%;
}
.user img{
height : 7vh;
}
.error{
display:block;
margin-top: 30vh;
text-align: center;
font-size: 5em;
}
.explanation{
text-align: center;
font-size: 3em;
}
/* écran tablette*/
@media (max-width: 834px) or (max-aspect-ratio : 1/1){
.nav img{
height: 4vh;
}
#theme-icon{
height : 3vh
}
.user img{
height: 5vh;
}
.logo img{
height : 7vh;
}
}
/* écran téléphone */
@media (max-width: 480px){
}