transform css to sass
This commit is contained in:
parent
1ad2c41a8e
commit
3e110f9c55
12 changed files with 696 additions and 158 deletions
86
assets/css/_site-header.scss
Executable file
86
assets/css/_site-header.scss
Executable file
|
|
@ -0,0 +1,86 @@
|
|||
#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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue