5d0d47df9d
i am going insane 🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈🐈
381 lines
6.5 KiB
CSS
381 lines
6.5 KiB
CSS
:root {
|
|
/* body background */
|
|
--bg-1: #0b0e14;
|
|
/* background of the content */
|
|
--bg-2: #0d1017;
|
|
/* input suggestions background */
|
|
--bg-3: #0f131a;
|
|
/* mostly borders */
|
|
--bg-4: #234;
|
|
|
|
/* main text color */
|
|
--fg-1: #bfbdb6;
|
|
/* search result description */
|
|
--fg-2: #bba;
|
|
--fg-3: #998;
|
|
|
|
/* focus outline */
|
|
--accent: #e6b450;
|
|
|
|
--link: #29e;
|
|
--link-visited: #92e;
|
|
|
|
--positive: #7fd962;
|
|
|
|
--syntax-string: #aad94c;
|
|
--syntax-special: #e6b673;
|
|
--syntax-constant: #d2a6ff;
|
|
--syntax-comment: #acb6bf8c;
|
|
--syntax-func: #ffb454;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
}
|
|
body {
|
|
font-family: monospace;
|
|
background-color: var(--bg-1);
|
|
color: var(--fg-1);
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
height: 100%;
|
|
}
|
|
.version-info {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
}
|
|
.results-container {
|
|
/* enough space for the infobox */
|
|
max-width: 73.5rem;
|
|
margin: 0 auto;
|
|
word-break: break-word;
|
|
}
|
|
main {
|
|
max-width: 40rem;
|
|
/* margin: 0 0 0 10rem; */
|
|
padding: 1rem 0.5rem;
|
|
background-color: var(--bg-2);
|
|
min-height: 100%;
|
|
}
|
|
@media screen and (max-width: 74rem) {
|
|
/* small screens */
|
|
.results-container {
|
|
margin: 0 auto;
|
|
max-width: 40rem;
|
|
}
|
|
}
|
|
input {
|
|
font-family: monospace;
|
|
background-color: var(--bg-2);
|
|
color: var(--fg-1);
|
|
border: 1px solid var(--bg-4);
|
|
font-size: inherit;
|
|
padding: 0.25rem;
|
|
}
|
|
input:focus-visible {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
:focus-visible {
|
|
outline: 1px solid var(--accent);
|
|
}
|
|
input[type="submit"] {
|
|
cursor: pointer;
|
|
}
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
a:visited {
|
|
color: var(--link-visited);
|
|
}
|
|
pre {
|
|
white-space: pre-wrap;
|
|
}
|
|
blockquote {
|
|
margin: 0;
|
|
padding-left: 0.5em;
|
|
border-left: 0.25em solid var(--bg-4);
|
|
}
|
|
|
|
/* index page */
|
|
.main-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100%;
|
|
height: 100%;
|
|
justify-content: center;
|
|
margin: 0 auto;
|
|
padding: 0 0.5em;
|
|
text-align: center;
|
|
max-width: 30em;
|
|
}
|
|
h1 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* header */
|
|
.search-form {
|
|
margin-bottom: 1rem;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
#search-input {
|
|
max-width: 30em;
|
|
flex: 1;
|
|
}
|
|
#search-input-suggestions {
|
|
position: absolute;
|
|
text-align: left;
|
|
margin-top: calc(1.9em + 1px);
|
|
background: var(--bg-3);
|
|
padding: 0.1em 0 0.3em 0;
|
|
border: 1px solid var(--bg-4);
|
|
border-top: transparent;
|
|
z-index: 10;
|
|
}
|
|
.search-input-suggestion {
|
|
cursor: pointer;
|
|
padding: 0.3em 0.3em;
|
|
white-space: nowrap;
|
|
}
|
|
.search-input-suggestion.focused,
|
|
.search-input-suggestion:hover {
|
|
background: var(--bg-4);
|
|
}
|
|
|
|
/* search result */
|
|
.search-result {
|
|
padding-top: 1rem;
|
|
border-top: 1px solid var(--bg-4);
|
|
font-size: 1rem;
|
|
}
|
|
.search-result-anchor {
|
|
display: block;
|
|
word-break: break-all;
|
|
}
|
|
.search-result-url {
|
|
margin: 0;
|
|
font-size: 0.8rem;
|
|
color: var(--fg-3);
|
|
}
|
|
.search-result-title {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
.search-result-description {
|
|
margin: 0;
|
|
font-size: 0.8em;
|
|
color: var(--fg-2);
|
|
}
|
|
|
|
/* engine list */
|
|
.engine-list {
|
|
opacity: 0.5;
|
|
justify-content: end;
|
|
display: flex;
|
|
gap: 0.5em;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* featured snippet */
|
|
.featured-snippet {
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--bg-4);
|
|
padding: 0.5rem;
|
|
font-size: 1.2rem;
|
|
}
|
|
.featured-snippet .search-result-description {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* progress update */
|
|
.progress-updates {
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--bg-4);
|
|
padding: 0.5rem;
|
|
min-height: 5em;
|
|
}
|
|
.progress-update {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
}
|
|
.progress-update-time {
|
|
opacity: 0.5;
|
|
}
|
|
.progress-update-done {
|
|
color: var(--positive);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* answer */
|
|
.answer {
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--bg-4);
|
|
padding: 0.5rem;
|
|
word-break: break-word;
|
|
}
|
|
.answer h3 {
|
|
margin: 0;
|
|
font-weight: normal;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
/* styles that are somewhat answer-specific but get reused across other styles sometimes */
|
|
.answer-query {
|
|
margin: 0;
|
|
opacity: 0.5;
|
|
}
|
|
.answer-comment {
|
|
color: var(--syntax-comment);
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* styles for specific answers */
|
|
.answer-calc-constant {
|
|
color: var(--syntax-constant);
|
|
white-space: pre-wrap;
|
|
}
|
|
.answer-calc-string {
|
|
color: var(--syntax-string);
|
|
}
|
|
.answer-calc-special {
|
|
color: var(--syntax-special);
|
|
}
|
|
.answer-calc-func {
|
|
color: var(--syntax-func);
|
|
}
|
|
|
|
.answer-dictionary-word,
|
|
.answer-thesaurus-word {
|
|
margin-top: 0;
|
|
}
|
|
.answer-dictionary-part-of-speech {
|
|
font-style: italic;
|
|
opacity: 0.8;
|
|
}
|
|
.answer-dictionary-example {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.answer-thesaurus-item:not(:last-child) {
|
|
border-bottom: 1px solid var(--bg-4);
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
.answer-thesaurus-word-description {
|
|
font-style: italic;
|
|
opacity: 0.8;
|
|
}
|
|
.answer-thesaurus-part-of-speech {
|
|
font-weight: bold;
|
|
}
|
|
.answer-thesaurus-as-in {
|
|
font-style: italic;
|
|
}
|
|
h3.answer-thesaurus-category-title {
|
|
margin-top: 0.5rem;
|
|
}
|
|
.answer-thesaurus-strongest {
|
|
opacity: 1;
|
|
}
|
|
.answer-thesaurus-strong {
|
|
opacity: 0.8;
|
|
}
|
|
.answer-thesaurus-weak {
|
|
opacity: 0.6;
|
|
}
|
|
.answer-thesaurus-list {
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.8em;
|
|
list-style-type: none;
|
|
}
|
|
.answer-thesaurus-list a {
|
|
text-decoration: underline;
|
|
}
|
|
.answer-notepad {
|
|
width: calc( 100% - 4px );
|
|
height: fit-content;
|
|
overflow-y: show;
|
|
background-color: transparent;
|
|
color: white;
|
|
border: none;
|
|
outline: none;
|
|
min-height: 4em;
|
|
font-size: 12px;
|
|
resize: none;
|
|
}
|
|
|
|
/* infobox */
|
|
.infobox {
|
|
margin-bottom: 1rem;
|
|
border: 1px solid var(--bg-4);
|
|
padding: 0.5rem;
|
|
position: absolute;
|
|
top: 3.5rem;
|
|
max-width: 30rem;
|
|
margin-left: 42rem;
|
|
}
|
|
@media screen and (max-width: 74rem) {
|
|
/* small screens */
|
|
.infobox {
|
|
position: static;
|
|
margin: 0;
|
|
max-width: unset;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.postsearch-infobox {
|
|
/* displaying these properly is too hard so don't */
|
|
display: none;
|
|
}
|
|
}
|
|
.infobox h2 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
.infobox p {
|
|
margin: 0;
|
|
}
|
|
.infobox pre {
|
|
border: 1px solid var(--bg-4);
|
|
padding: 0.5rem;
|
|
display: block;
|
|
}
|
|
.infobox pre > code {
|
|
font-weight: normal;
|
|
}
|
|
.infobox code {
|
|
font-weight: bold;
|
|
}
|
|
.infobox img {
|
|
max-width: 100%;
|
|
}
|
|
.infobox-docs_rs-version {
|
|
opacity: 0.5;
|
|
font-weight: normal;
|
|
font-size: 0.8em;
|
|
}
|
|
.infobox-github-readme .markdown-alert {
|
|
padding-left: 0.5em;
|
|
border-left: 0.25em solid var(--bg-4);
|
|
}
|
|
.infobox-github-readme .markdown-alert-title {
|
|
font-weight: bold;
|
|
}
|
|
.postsearch-infobox p {
|
|
margin-bottom: 1em;
|
|
}
|
|
.infobox-minecraft_wiki-article > .notaninfobox {
|
|
display: none !important;
|
|
}
|
|
.noexcerpt, .navigation-not-searchable {
|
|
display: none !important;
|
|
}
|
|
.mcw-mainpage-icon {
|
|
display: inline-block;
|
|
} |