cleanup search code fix search entry formatting

This commit is contained in:
Robert Kaussow 2020-12-21 13:14:51 +01:00
parent 42a1b74f42
commit ce36121096
No known key found for this signature in database
GPG key ID: 65362AE74AF98B61
2 changed files with 36 additions and 38 deletions

View file

@ -203,21 +203,6 @@ img {
}
}
&__entry {
flex: 1;
color: $body-font-color;
&:hover,
&.is-active {
text-decoration: underline;
text-decoration-style: dashed !important;
}
&:visited {
color: $body-font-color;
}
}
&--main > ul > li > span,
&--main > ul > li > span > a,
&--main > ul > li > label,
@ -230,6 +215,22 @@ img {
}
}
.gdoc-nav__entry,
.gdoc-search__entry {
flex: 1;
color: $body-font-color;
&:hover,
&.is-active {
text-decoration: underline;
text-decoration-style: dashed !important;
}
&:visited {
color: $body-font-color;
}
}
.gdoc-page {
min-width: $body-min-width;
flex-grow: 1;
@ -438,9 +439,9 @@ img {
&__list {
display: none;
background-color: #ffffff;
background: $white;
border-radius: $border-radius;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px 0 rgba(0,0,0,0.06);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
position: absolute;
margin: 0;
padding: $padding-8;
@ -461,22 +462,17 @@ img {
}
> li > span {
color: $gray-600;
font-size: $font-size-14;
font-weight: bold;
color: $gray-600;
}
> li + li {
margin-top: $padding-16;
margin-top: $padding-8;
}
.icon {
margin-right: $padding-4;
}
a {
font-size: $font-size-16;
}
}
&:focus-within &__list.has-hits {