wobbly/styles.css

232 lines
4.4 KiB
CSS

:root {
--fg-color: #111;
--bg-color: #f2f4f4;
--link-color: #333;
--link-color-gemini: #4b139c;
--link-color-gopher: #006868;
--link-color-html: #800404;
--link-weight: bold;
--header-color: #000;
--pre-color: #333;
--wobbly-toolbar-bg: #ccc;
--wobbly-help-bg: #e2e4e4;
--wobbly-help-border: #333;
}
@media (prefers-color-scheme: dark) {
:root {
--fg-color: #32c864;
--bg-color: #010;
--link-color: #3ee77b;
--link-color-gemini: #b785ff;
--link-color-gopher: #31e8e8;
--link-color-html: #f23f3f;
--link-weight: normal;
--header-color: #fff;
--pre-color: #AAA;
--wobbly-toolbar-bg: #434443;
--wobbly-help-bg: #232423;
--wobbly-help-border: #32c864;
}
}
*, ** {
box-sizing: border-box;
}
html {
margin: 0;
padding: 0;
}
body {
color: var(--fg-color);
background-color: var(--bg-color);
padding: 0 0 5em;
font-family: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
pre {
color: var(--pre-color);
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}
a,
a:visited,
a:hover,
a:active {
color: var(--link-color);
font-weight: var(--link-weight);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a[href*="gemini://"] {
color: var(--link-color-gemini);
}
a[href*="https://"] {
color: var(--link-color-html);
}
a[href*="gopher://"] {
color: var(--link-color-gopher);
}
ol {
padding: 0;
line-height: 0.5em;
}
@media screen and (min-width: 700px) {
body, html {
font-size: 18px;
}
}
@media screen and (min-width: 900px) {
body, html {
font-size: 24px;
}
}
h1, h2, h3, h4, h5 {
color: var(--header-color);
margin: 0 0 0.5em 0;
}
#wobbly-toolbar {
background-color: var(--wobbly-toolbar-bg);
width: 100%;
position: fixed;
top: 0;
left: 0;
}
#wobbly-tools {
display: flex;
max-width: 60em;
padding: 0.2em 0.5em;
margin: auto;
}
#wobbly-tools > *:not(:last-child) {
margin-right: 0.25em;
}
#wobbly-tools input {
flex-basis: 100%;
min-width: 0;
padding: 0 0.5em;
position: relative;
}
#wobbly-help {
display: none;
border-bottom: 1px solid var(--wobbly-help-border);
background-color: var(--wobbly-help-bg);
}
#wobbly-help-text {
max-width: 45em;
margin: auto;
padding: 1.5em 1em 0.5em;
}
#wobbly-window {
max-width: 45em;
margin: auto;
padding: 2em 1em 5em;
}
#wobbly-spinner {
display: none;
position: fixed;
margin: 0;
padding: 0;
top: 32px;
left: 0;
width: 100vw;
height: calc(100vh - 32px);
justify-content: center;
align-items: center;
overflow: hidden;
z-index: 5;
background: rgba(0,0,0,0.3);
backdrop-filter: blur(1px);
}
#wobbly-spinner.active {
display: flex;
}
.lds-spinner {
color: official;
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-spinner div {
transform-origin: 40px 40px;
animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
content: " ";
display: block;
position: absolute;
top: 3px;
left: 37px;
width: 6px;
height: 18px;
border-radius: 20%;
background: #fff;
}
.lds-spinner div:nth-child(1) {
transform: rotate(0deg);
animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
transform: rotate(30deg);
animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
transform: rotate(60deg);
animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
transform: rotate(90deg);
animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
transform: rotate(120deg);
animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
transform: rotate(150deg);
animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
transform: rotate(180deg);
animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
transform: rotate(210deg);
animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
transform: rotate(240deg);
animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
transform: rotate(270deg);
animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
transform: rotate(300deg);
animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
transform: rotate(330deg);
animation-delay: 0s;
}
@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}