mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
auto-complete: switch to em units #466
This commit is contained in:
parent
4b7409f31c
commit
959ed155c4
2 changed files with 6 additions and 6 deletions
|
@ -10,8 +10,8 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: none;
|
display: none;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
max-height: 150px;
|
max-height: 10em;
|
||||||
max-height: calc( 100vh - 150px );
|
max-height: calc( 100vh - 10em );
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -19,8 +19,8 @@
|
||||||
.autocomplete-suggestion {
|
.autocomplete-suggestion {
|
||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 7px;
|
padding: .46em;
|
||||||
line-height: 23px;
|
line-height: 1.5em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-suggestion > .context {
|
.autocomplete-suggestion > .context {
|
||||||
font-size: 12px;
|
font-size: .7869em;
|
||||||
margin-inline-start: 1em;
|
margin-inline-start: 1em;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
@ -430,7 +430,7 @@ body:not(.print) #body-inner.narrow h1 {
|
||||||
border-bottom: 4px solid rgba( 134, 134, 134, .125 );
|
border-bottom: 4px solid rgba( 134, 134, 134, .125 );
|
||||||
font-size: 3.5rem;
|
font-size: 3.5rem;
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 48em) and (max-width: 60rem) {
|
@media only screen and (min-width: 48rem) and (max-width: 60rem) {
|
||||||
body:not(.print) #body-inner.narrow h1 {
|
body:not(.print) #body-inner.narrow h1 {
|
||||||
font-size: 2.8rem;
|
font-size: 2.8rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue