honk/views/style.css

275 lines
4.1 KiB
CSS

$bg-page: #305;
$bg-dark: #002;
$fg: #dde;
$fg-subtle: #aab;
$fg-limited: #a79;
body {
background: $bg-page;
color: $fg;
font-size: 1em;
word-wrap: break-word;
font-family: sans-serif, "Noto Color Emoji";
line-height: 1.2;
}
pre, code {
white-space: pre-wrap;
}
blockquote {
margin-left: 0em;
padding-left: 0.5em;
border-left: 1px solid $fg-subtle;
}
table {
display: block;
max-width: 100%;
overflow-x: auto;
}
a {
color: $fg;
}
form, input, textarea {
font-family: monospace, "Noto Color Emoji";
}
p {
margin-top: 1em;
margin-bottom: 1em;
}
input {
background: $bg-page;
color: $fg;
font-size: 1.0em;
line-height: 1.2em;
padding: 0.4em;
}
#honkform input {
font-size: 0.8em;
}
body > header {
margin: 1em auto;
font-size: 1.5em;
}
body > header span {
margin-left: 2em;
}
body > header p {
padding: 1em;
}
header > details {
background: $bg-page;
padding: 1em 1em 1em 1em;
position: fixed;
top: 0;
left: 0;
display: inline;
max-height: calc(100% - 1em);
overflow: auto;
opacity: 0.7;
}
header > details[open] {
padding: 1em 1em 0em 1em;
background: $bg-dark;
border: 1px solid $fg;
margin-bottom: 1em;
opacity: 1.0;
}
header > details li {
margin: 1em 0em 1em 0em;
}
details summary {
display: inline;
}
@supports (-moz-appearance:none) {
details summary {
display: list-item;
}
}
main {
max-width: 1200px;
margin: auto;
font-size: 1.5em;
}
.info {
background: $bg-dark;
border: 1px solid $fg;
margin-bottom: 1em;
padding: 0em 1em 0em 1em;
}
.info div {
margin-top: 1em;
margin-bottom: 1em;
}
label {
font-size: 0.8em;
}
label.button, button, select {
font-size: 16px;
font-family: monospace;
color: $fg;
background: $bg-page;
border: 1px solid $fg;
padding: 0.5em;
white-space: nowrap;
margin-top: 1.5em;
}
.buttonarray {
line-height: 2.5em;
}
button a {
text-decoration: none;
}
form {
margin-top: 1em;
}
textarea {
padding: 0.5em;
font-size: 1em;
background: $bg-page;
color: $fg;
width: 600px;
height: 8em;
margin-bottom: 0.5em;
box-sizing: border-box;
max-width: 100%;
}
input[type="checkbox"] {
position: fixed;
top: -9999px;
}
input[type="checkbox"] + span:after {
content: "no";
}
input[type="checkbox"]:checked + span:after {
content: "yes";
}
input[type="checkbox"]:focus + span:after {
outline: 1px solid $fg;
}
input[type=file] {
display: none;
}
.honk {
margin: auto;
background: $bg-dark;
border: 1px solid $fg;
border-radius: 1em;
margin-bottom: 1em;
padding-left: 1em;
padding-right: 1em;
padding-top: 0;
overflow: hidden;
#honkform {
padding: 1em;
border: 1px solid $fg;
}
a {
color: $fg;
}
header {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.8em;
line-height: 1.1;
margin-top: 1em;
height: 64px;
.clip a {
color: $fg-subtle;
}
img {
float: left;
margin-right: 1em;
width: 64px;
height: 64px;
}
p {
margin-top: 0px;
}
}
.actions button {
margin-left: 4em;
margin-top: 2em;
}
.noise {
line-height: 1.4;
code {
.kw { font-weight: bold; }
.bi { font-weight: bold; }
.st { color: $fg-subtle; }
.nm { color: #ba88ff; }
.op { color: #ba88ff; }
.tp { font-weight: bold; }
.cm { color: $fg-subtle; font-style: italic; }
.al { color: #aaffbb; }
.dl { color: #ffaabb; }
}
}
details.actions summary {
color: $fg-subtle;
}
}
.subtle {
.noise {
color: $fg-subtle;
font-size: 0.8em;
}
.noise a {
color: $fg-subtle;
}
}
.limited {
border: 1px solid $fg-limited;
color: $fg-limited;
.noise {
color: $fg-limited;
}
.noise a {
color: $fg-limited;
}
details.actions summary {
color: $fg-limited;
}
}
details.noise[open] summary {
display: none;
}
h1, h2 {
font-size: 1.2em;
}
h3, h4 {
font-size: 1.1em;
}
img:not(.emu) {
background: $bg-page;
}
img, video {
max-width: 100%;
max-height: 600px;
}
.noise img:not(.emu) {
display: block;
}
img.emu {
width: 2em;
height: 2em;
vertical-align: middle;
margin: -2px;
object-fit: contain;
}
@media screen and (max-width: 740px) {
body {
font-size: 12px;
}
.honk header {
height: 52px;
}
.honk header img {
width: 48px;
height: 48px;
}
}