Skip to content
Snippets Groups Projects
Commit 1ebc0e1d authored by Olivia206's avatar Olivia206
Browse files

fixed search icon

parent 5603dd33
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
justify-content: center justify-content: center
margin-left: $spacing0 margin-left: $spacing0
width: px2rem(15) width: px2rem(15)
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
right: $spacing1 right: $spacing1
top: half($spacing0) top: half($spacing0)
#search #search
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
top: 0 top: 0
width: 100vw width: 100vw
z-index: 80 z-index: 80
@include media-breakpoint-up(md) @include media-breakpoint-up(desktop)
padding-right: $spacing3 padding-right: $spacing3
padding-left: $spacing3 padding-left: $spacing3
padding-top: calc(#{half($spacing3)} - #{half($spacing0)} + #{px2rem(2)}) padding-top: calc(#{half($spacing3)} - #{half($spacing0)} + #{px2rem(2)})
...@@ -61,23 +61,19 @@ ...@@ -61,23 +61,19 @@
top: 0 top: 0
width: 100% width: 100%
z-index: 5 z-index: 5
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
height: calc(#{$spacing3} + #{half($spacing0)} + #{$spacing4}) height: calc(#{$spacing3} + #{half($spacing0)} + #{$spacing4})
&__form &__form
@include icon(search, after) @include icon(search, after)
&::after &::after
align-items: center
display: flex
padding-right: px2rem(2) padding-right: px2rem(2)
position: absolute position: fixed
pointer-events: none pointer-events: none
right: 0
top: half($spacing0)
transform: translate(0,20%) transform: translate(0,20%)
z-index: 7 z-index: 9
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
right: $spacing1 right: $spacing1
top: $spacing4 top: calc(#{$spacing4} + #{half($spacing0)})
&__search-input &__search-input
border-left: 0 border-left: 0
border-right: 0 border-right: 0
...@@ -87,7 +83,7 @@ ...@@ -87,7 +83,7 @@
padding-right: half($spacing1) !important padding-right: half($spacing1) !important
position: fixed position: fixed
z-index: 6 z-index: 6
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
margin-bottom: $spacing1 margin-bottom: $spacing1
&__button[type="button"] &__button[type="button"]
@include button-reset @include button-reset
...@@ -115,11 +111,11 @@ ...@@ -115,11 +111,11 @@
> * > *
aspect-ratio: 3/2 aspect-ratio: 3/2
object-fit: cover object-fit: cover
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
display: none display: none
+ li + li
margin-top: half($spacing3) margin-top: half($spacing3)
@include media-breakpoint-up(md) @include media-breakpoint-up(desktop)
@include grid @include grid
&-inner &-inner
grid-column: 4/13 grid-column: 4/13
...@@ -129,16 +125,19 @@ ...@@ -129,16 +125,19 @@
&__result-title a &__result-title a
@include h4 @include h4
@include stretched-link @include stretched-link
@include media-breakpoint-up(md) @include media-breakpoint-up(desktop)
&__form &__form
position: relative position: relative
width: col(8) width: col(8)
&::after
left: calc(#{col(8)} - #{$spacing2} + #{$spacing0})
top: calc(#{$spacing2} - #{$spacing0})
&__search-input, &__search-input,
&__message &__message
width: calc(#{col(8,12)} - #{$spacing3} - #{$spacing1}) width: calc(#{col(8,12)} - #{$spacing3} - #{$spacing1})
&__results-area &__results-area
padding-top: calc(#{$spacing4} - #{$spacing1}) padding-top: calc(#{$spacing4} - #{$spacing1})
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
&__search-input, &__search-input,
&__message &__message
width: calc(100% - #{$spacing2}) width: calc(100% - #{$spacing2})
...@@ -157,7 +156,7 @@ ...@@ -157,7 +156,7 @@
&::after &::after
position: absolute position: absolute
right: $spacing0 right: $spacing0
@include media-breakpoint-down(md) @include media-breakpoint-down(desktop)
left: 0 left: 0
width: 100vw width: 100vw
&.in-page-with-toc &.in-page-with-toc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment