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

167 lines
2.7 KiB

/* 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: linear-gradient(to right, #4a148c, #7b1fa2);
}
/* Mode clair */
body.light-mode {
background-color: #ffffff;
color: #000000;
}
body.light-mode .header {
background-color: #F7F7EB;
}
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: linear-gradient(180deg, rgba(187,211,249,1) 0%, rgba(199,246,196,1) 100%);
}
/* Media queries for responsiveness */
/* For tablets and small devices */
@media (max-width: 768px) {
.header {
flex-direction: column;
text-align: center;
}
.nav, .logo, .user {
width: 100%;
margin-bottom: 10px;
}
}
/* For mobile phones */
@media (max-width: 480px) {
body {
margin-top: 100px;
}
.nav img, .logo img {
width: 50px;
height: auto;
}
.container {
padding: 10px;
}
form {
width: 100%;
}
form input {
width: 100%;
padding: 10px;
margin-bottom: 10px;
}
}
/* Banner images should be responsive */
.header img {
max-width: 100%;
height: auto;
}
/* Media queries for different screen sizes */
@media (max-width: 768px) {
.header {
flex-direction: column;
}
.header img {
width: 80px;
height: auto;
}
}