Danila Fedorin
5aa54c1ce4
The mixin handles the fallback gracefully on browsers where it's not supported.
87 lines
1.5 KiB
SCSS
87 lines
1.5 KiB
SCSS
@import "variables.scss";
|
|
@import "mixins.scss";
|
|
|
|
$search-element-padding: 0.5rem 1rem 0.5rem 1rem;
|
|
|
|
.stork-wrapper {
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stork-input-wrapper {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
input.stork-input {
|
|
@include textual-input;
|
|
}
|
|
|
|
.stork-close-button {
|
|
@include bordered-block;
|
|
@include var(background-color, background-color);
|
|
@include var(color, text-color);
|
|
font-family: $font-body;
|
|
padding: $input-padding;
|
|
|
|
padding-left: 1.5rem;
|
|
padding-right: 1.5rem;
|
|
|
|
border-left: none;
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
.stork-output-visible {
|
|
@include bordered-block;
|
|
|
|
border-top: none;
|
|
}
|
|
|
|
.stork-result, .stork-message, .stork-attribution {
|
|
padding: $search-element-padding;
|
|
}
|
|
|
|
.stork-message:not(:last-child), .stork-result {
|
|
border-bottom: $standard-border;
|
|
}
|
|
|
|
.stork-results {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.stork-result {
|
|
list-style: none;
|
|
|
|
&.selected {
|
|
@include var(background-color, code-color);
|
|
}
|
|
|
|
a:hover {
|
|
@include var(color, text-color);
|
|
}
|
|
}
|
|
|
|
.stork-title p, .stork-excerpt p {
|
|
margin: 0;
|
|
}
|
|
|
|
.stork-excerpt {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.stork-title {
|
|
font-family: $font-heading;
|
|
font-size: 1.4rem;
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
.stork-highlight {
|
|
background-color: lighten($primary-color, 30%);
|
|
}
|