-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
290 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
font-family: var(--font-family-base); | ||
width: 100%; | ||
height: 100%; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
h1, h2, h3, h4, h5 { | ||
font-family: var(--font-family-head); | ||
margin: 3em 0 1em; | ||
padding: 0; | ||
} | ||
|
||
h1, h2 { | ||
margin-top: 0; | ||
} | ||
|
||
h1 { | ||
|
||
& a { | ||
color: inherit; | ||
text-decoration: none; | ||
|
||
&:hover, | ||
&:focus, | ||
&:active { | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
|
||
p { | ||
margin: 1em 0; | ||
} | ||
|
||
ul { | ||
margin: 1rem 0; | ||
padding: 0; | ||
list-style: none; | ||
display: grid; | ||
gap: 2rem; | ||
} | ||
|
||
|
||
h1, h2 { | ||
& span { | ||
font-size: 0.75em; | ||
} | ||
} | ||
|
||
|
||
|
||
body { | ||
display: grid; | ||
grid-template-rows: 1fr auto; | ||
height: 100%; | ||
} | ||
|
||
main { | ||
background: var(--color-background); | ||
padding: 2rem 1rem; | ||
width: 100%; | ||
min-height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
& form { | ||
display: flex; | ||
width: min(70ch, 100%); | ||
height: 100%; | ||
flex-direction: column; | ||
justify-content: center; | ||
|
||
& .form-main { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
} | ||
} | ||
|
||
footer { | ||
padding: 1rem; | ||
margin: 1rem; | ||
box-shadow: 4lh 2px 0 1px var(--color-background), -2px 2px 0 1px; | ||
& > p { | ||
margin: 0; | ||
} | ||
} | ||
|
||
body.body--has-query { | ||
display: grid; | ||
height: auto; | ||
|
||
& > main > form { | ||
width: 100%; | ||
display: grid; | ||
grid-template-areas: | ||
"headline form" | ||
"results results"; | ||
gap: 2rem; | ||
grid-template-columns: auto 1fr; | ||
|
||
& .headline { | ||
grid-area: headline; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
& h1 { | ||
margin: 0; | ||
font-size: 1.5rem; | ||
& span { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
& .form-main { | ||
transition: 125ms ease-in-out; | ||
grid-area: form; | ||
|
||
&:has(:focus) { | ||
transform: scale(1.005); | ||
} | ||
|
||
& input { | ||
box-shadow: 0 0 0 2px var(--color-base); | ||
} | ||
} | ||
|
||
& .results { | ||
padding: 2rem 1rem; | ||
display: grid; | ||
grid-template-columns: min(70ch, 100%); | ||
box-shadow: -3px 4lh 0 0 var(--color-background), -3px 0 0 0; | ||
grid-area: results; | ||
} | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
input[type="search"] { | ||
font-family: var(--font-family-base); | ||
padding: .75rem 0.5rem; | ||
width: 100%; | ||
font-size: 1.25rem; | ||
border: 0; | ||
box-shadow: 0 2px 0 0px var(--color-base); | ||
|
||
&:focus, | ||
&:active { | ||
box-shadow: 0 2px 0 0px var(--color-base), 0 0 0 2px var(--color-base); | ||
outline: none; | ||
} | ||
} | ||
|
||
|
||
button { | ||
padding: calc(0.75rem - 4px) .75rem; | ||
font-size: 1.25rem; | ||
font-family: var(--font-family-head); | ||
background: var(--color-contrast-bg); | ||
color: var(--color-contrast-fg); | ||
border: 2px solid var(--color-contrast-bg); | ||
box-shadow: 0 0 0 4px var(--color-contrast-bg); | ||
|
||
&:hover, | ||
&:focus, | ||
&:active { | ||
border: 2px solid var(--color-contrast-fg); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
blockquote { | ||
max-width: 100%; | ||
word-break: break-all; | ||
} | ||
|
||
.result-item-first-level { | ||
& .result-item-first-level__sublist { | ||
display: none; | ||
} | ||
& label:has(.result-item-first-level__checkbox:checked) ~ .result-item-first-level__sublist { | ||
display: block; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
:root { | ||
--font-family-head: Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif; | ||
--font-family-base: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif; | ||
|
||
--color-background: oklch(1 0 0); | ||
--color-base: oklch(0 0 0); | ||
--color-contrast-bg: oklch(0 0 0); | ||
--color-contrast-fg: oklch(1 0 0); | ||
--border-size: 4px; | ||
} | ||
|
||
.visually-hidden { | ||
position: absolute; | ||
width: 1px; | ||
height: 1px; | ||
margin: -1px; | ||
border: 0; | ||
padding: 0; | ||
|
||
white-space: nowrap; | ||
clip-path: inset(100%); | ||
clip: rect(0 0 0 0); | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.