botascopia-webiste-static/assets/css/site-header.css
2026-01-12 18:06:17 +01:00

162 lines
2.7 KiB
CSS
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#site-header{
height: var(--header-h);
width: 100vw;
background-color: var(--white);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 var(--padding-body);
gap: calc(var(--unit)*2);
a{ text-decoration: none; }
h1{
font-family: var(--font-title);
color: var(--color-txt);
text-decoration: none;
font-size: 1.2rem;
}
}
#site-header ul{
list-style: none;
}
/*----------------*/
/* search bar */
/*----------------*/
.search {
display: flex;
flex-direction: row-reverse;
height: calc(var(--unit)*1.5);
flex-grow: 2;
}
.search__toggle {
display: none;
}
.search__label {
cursor: pointer;
user-select: none;
width: calc(var(--unit)*1.5);
height: calc(var(--unit)*1.5);
display: flex;
justify-content: center;
align-items: center;
}
.search__input {
display: none;
}
.search__icon{
width: var(--unit);
}
.search__icon--open {
display: block;
}
.search__icon--close {
display: none;
}
.search__toggle:checked ~ .search__input {
display: block;
}
.search__toggle:checked ~ .search__label .search__icon--open {
display: none;
}
.search__toggle:checked ~ .search__label .search__icon--close {
display: block;
}
#btn__connexion{
font-weight: 500;
font-size: 1rem;
background-color: var(--color-txt);
color: white;
display: inline-flex;
align-items: center;
height: calc(var(--unit)*1.25);
padding: 0px 1ch;
border-radius: var(--radius-btn);
cursor: pointer;
}
/*----------------*/
/* nav */
/*----------------*/
/*----------------*/
/* nav */
/*----------------*/
/* #site-nav a {
text-decoration: none;
color: var(--color-txt);
}
#site-nav .nav-level-1_li{
position: relative;
float: left;
}
#site-nav .nav-level-2_li {
display: block;
float: left;
padding: var(--padding-inner);
position: relative;
text-decoration: none;
}
#site-nav .nav-level-1_ul{
display: flex;
gap: 40px;
}
#site-nav .nav-level-1_li{
font-weight: 500;
}
#site-nav li:hover {
cursor: pointer;
}
.nav-level-2_ul {
visibility: hidden;
opacity: 0;
position: absolute;
left: 0;
display: none;
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
margin-top: var(--padding-inner);
width: 200px;
border-top: solid 1px black;
}
ul li:hover > ul,
.nav-level-2_ul:hover {
visibility: visible;
opacity: 1;
display: block;
}
.nav-level-2_li{
width: 100%;
}
.nav-level-2_li:hover{
background-color: bisque;
}
.li-dropdown::after{
content: "";
padding-left: 0.5ch;
font-size: 1.2em;
line-height: 0;
} */