mirror of
https://github.com/Damillora/Shian.git
synced 2024-12-22 13:13:46 +00:00
feat(shian): search styles
This commit is contained in:
parent
f873e60897
commit
cc4febf595
@ -6,7 +6,7 @@
|
||||
overflow: hidden;
|
||||
@include transition;
|
||||
&.enabled {
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
}
|
||||
@include screen(md) {
|
||||
height: 4rem;
|
||||
@ -48,6 +48,7 @@
|
||||
.header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
@include transition;
|
||||
|
||||
&__top {
|
||||
|
@ -1,6 +1,7 @@
|
||||
.menu {
|
||||
max-height: 0px;
|
||||
display: block;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@include transition;
|
||||
overflow: hidden;
|
||||
&.enabled {
|
||||
@ -18,6 +19,12 @@
|
||||
&:hover {
|
||||
background-color: $theme-blue;
|
||||
}
|
||||
|
||||
&--hidden {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
@include transition;
|
||||
}
|
||||
}
|
||||
|
||||
&__link {
|
||||
@ -42,9 +49,49 @@
|
||||
color: $white;
|
||||
@include px(1rem);
|
||||
}
|
||||
|
||||
&__separator {
|
||||
margin-left: 5rem;
|
||||
margin-right: 4rem;
|
||||
border-top: 0.125rem solid $white;
|
||||
}
|
||||
|
||||
&__search-input {
|
||||
display: inline-block;
|
||||
flex-grow: 1;
|
||||
color: $white;
|
||||
@include px(0.5rem);
|
||||
@include mx(0.5rem);
|
||||
@include py(0.25rem);
|
||||
appearance: none;
|
||||
background-color: transparent;
|
||||
outline: none;
|
||||
border-bottom: 1px solid $white;
|
||||
&:focus-visible {
|
||||
outline: none;
|
||||
border-bottom: 1px solid $white;
|
||||
}
|
||||
}
|
||||
&__search-results {
|
||||
flex-grow: 1;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
&__search-result {
|
||||
color: $white;
|
||||
display: block;
|
||||
align-items: center;
|
||||
@include px(2rem);
|
||||
@include py(1rem);
|
||||
@include transition;
|
||||
|
||||
&:hover {
|
||||
background-color: $theme-blue;
|
||||
}
|
||||
}
|
||||
&__search-title {
|
||||
color: $white;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user