This commit is contained in:
commit
a3620a1f5f
1042 changed files with 226722 additions and 0 deletions
78
assets/css/partials/_site-header.scss
Normal file
78
assets/css/partials/_site-header.scss
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
@keyframes add-border {
|
||||
from {
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
to {
|
||||
border-bottom: var(--grey-800);
|
||||
}
|
||||
}
|
||||
|
||||
#site-header {
|
||||
position: fixed;
|
||||
left: var(--padding-body);
|
||||
top: 0px;
|
||||
z-index: 900;
|
||||
|
||||
width: calc(100vw - var(--padding-body) * 2);
|
||||
// padding: 0 var(--padding-body);
|
||||
height: var(--header-h);
|
||||
&.is-shrinked {
|
||||
height: var(--header-h-shrinked);
|
||||
// animation: add-border 0.2s linear 0.2s;
|
||||
border-bottom: var(--border-light);
|
||||
}
|
||||
// transition: all ease-in 0.2s;
|
||||
|
||||
background-color: var(--color-bg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.site-title {
|
||||
display: flex;
|
||||
width: 120px;
|
||||
transition: all ease-in 0.2s;
|
||||
overflow: hidden;
|
||||
svg {
|
||||
fill: var(--color-txt);
|
||||
}
|
||||
}
|
||||
&.is-shrinked {
|
||||
.site-title {
|
||||
width: 80px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.header-left,
|
||||
.header-right {
|
||||
width: 90px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.header-center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#toggle-lang {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75ch;
|
||||
text-transform: uppercase;
|
||||
color: var(--grey-400);
|
||||
line-height: 1;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
li.is-selected {
|
||||
color: var(--color-txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue