Skip to content
Snippets Groups Projects
Commit 77b26b50 authored by Olivia206's avatar Olivia206
Browse files

fixed search grid

parent 14a9300c
No related branches found
No related tags found
No related merge requests found
...@@ -5,9 +5,14 @@ ...@@ -5,9 +5,14 @@
@include meta @include meta
box-shadow: none !important box-shadow: none !important
.pagefind-ui__toggle .pagefind-ui__toggle
@include icon(search, after)
cursor: pointer cursor: pointer
padding: half($spacing0) $spacing0 padding: half($spacing0) $spacing0
text-align: left text-align: left
&::after
line-height: inherit
font-size: $body-size-desktop
margin-left: px2rem(8)
@include media-breakpoint-down(md) @include media-breakpoint-down(md)
border-bottom: 1px solid #adb5bd border-bottom: 1px solid #adb5bd
padding: $spacing1 0 padding: $spacing1 0
...@@ -51,12 +56,18 @@ ...@@ -51,12 +56,18 @@
z-index: 5 z-index: 5
@include media-breakpoint-down(md) @include media-breakpoint-down(md)
height: calc(#{$spacing3} + #{half($spacing0)} + #{$spacing4}) height: calc(#{$spacing3} + #{half($spacing0)} + #{$spacing4})
&__form
@include icon(search, after)
&::after
position: absolute
right: 0
z-index: 7
&__search-input &__search-input
border-left: 0 border-left: 0
border-right: 0 border-right: 0
border-radius: 0 border-radius: 0
border-top: 0 border-top: 0
padding-right: $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(md)
...@@ -107,12 +118,9 @@ ...@@ -107,12 +118,9 @@
width: col(8) width: col(8)
&__search-input, &__search-input,
&__message &__message
width: col(8,8) width: calc(#{col(8,12)} - #{$spacing3} - #{$spacing1})
&__results-area &__results-area
padding-top: calc(#{$spacing4} - #{$spacing1}) padding-top: calc(#{$spacing4} - #{$spacing1})
&__search-input,
&__message
width: col(8)
@include media-breakpoint-down(md) @include media-breakpoint-down(md)
&__search-input, &__search-input,
&__message &__message
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
{{ end -}} {{ end -}}
{{ if and (eq $kind "primary") (site.Params.search.active)}} {{ if and (eq $kind "primary") (site.Params.search.active)}}
<button class="pagefind-ui__toggle" aria-expanded="false"> <button class="pagefind-ui__toggle" aria-expanded="false">
{{ i18n (printf "commons.search.title") }} {{- i18n (printf "commons.search.title") -}}
</button> </button>
{{- partial "header/search.html" . -}} {{- partial "header/search.html" . -}}
{{ end }} {{ end }}
......
No preview for this file type
No preview for this file type
No preview for this file type
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