2082001ff8
* Initial tests set up This adds tests using uvu (we can switch if people want) and restructures things a bit so that it's easier to test. Like in snowpack you set up a little project. In our tests you can say: ```js const result = await runtime.load('/blog/hello-world') ``` And analyze the result. I included a `test-helpers.js` which has a function that will turn HTML into a cheerio instance, for inspecting the result HTML. * Bring snowpack example in * Formatting
119 lines
2.1 KiB
SCSS
119 lines
2.1 KiB
SCSS
@use '../var' as *;
|
|
|
|
.search-form {
|
|
position: relative;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
grid-area: search;
|
|
margin: 0 6px;
|
|
> * {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
max-width: 600px;
|
|
}
|
|
|
|
@media (max-width: $breakpoint-m - 1) {
|
|
& {
|
|
display: none;
|
|
}
|
|
body.is-nav-open & {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
& .sr-only {
|
|
display: none;
|
|
}
|
|
|
|
&-hint {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: none;
|
|
padding: 6px 12px;
|
|
color: #c2ced9;
|
|
font-size: 16px;
|
|
pointer-events: none;
|
|
|
|
& * {
|
|
font-family: $code;
|
|
}
|
|
|
|
&::before {
|
|
display: inline-block;
|
|
width: 1px;
|
|
height: 1.5em;
|
|
margin-right: 0.5em;
|
|
vertical-align: -35%;
|
|
background-color: rgba($white, 0.25);
|
|
content: '';
|
|
}
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&-input {
|
|
flex-grow: 1;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding-top: 0.5rem;
|
|
padding-right: 1rem;
|
|
padding-bottom: 0.5rem;
|
|
padding-left: 1rem;
|
|
overflow: visible;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
font-size: 100%;
|
|
font-family: inherit;
|
|
line-height: inherit;
|
|
background-color: #446e8f;
|
|
border-color: rgba($white, 0.25);
|
|
border-style: solid;
|
|
border-width: 1px;
|
|
border-radius: 0.25rem;
|
|
outline: 0;
|
|
transition-timing-function: ease-in-out;
|
|
transition-duration: 0.2s;
|
|
transition-property: border-color, color;
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
&:focus {
|
|
color: white;
|
|
border-color: rgba($white, 0.75);
|
|
|
|
&::placeholder {
|
|
color: rgba($white, 0.8);
|
|
}
|
|
}
|
|
&::placeholder {
|
|
color: #c2ced9;
|
|
}
|
|
|
|
&__desktop {
|
|
display: none;
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.algolia-autocomplete .ds-dropdown-menu {
|
|
@media (max-width: $breakpoint-m - 1) {
|
|
width: 100%;
|
|
min-width: inherit;
|
|
max-width: inherit;
|
|
margin-top: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.algolia-autocomplete .ds-dropdown-menu::before {
|
|
display: none !important;
|
|
}
|