honk/views/style.css

302 lines
5.0 KiB
CSS
Raw Normal View History

html {
--bg-page: #305;
--bg-dark: #002;
--fg: #dde;
--fg-subtle: #aab;
--fg-limited: #a79;
}
2019-04-09 13:59:33 +02:00
body {
background: var(--bg-page);
color: var(--fg);
2019-04-09 13:59:33 +02:00
font-size: 1em;
word-wrap: break-word;
2019-06-10 22:50:00 +02:00
font-family: sans-serif, "Noto Color Emoji";
line-height: 1.2;
overscroll-behavior-y: contain;
2019-04-09 13:59:33 +02:00
}
pre, code {
2019-05-10 15:22:25 +02:00
white-space: pre-wrap;
}
2019-05-14 17:11:11 +02:00
blockquote {
margin-left: 0em;
padding-left: 0.5em;
border-left: 1px solid var(--fg-subtle);
2019-05-14 17:11:11 +02:00
}
2019-05-14 17:12:21 +02:00
table {
display: block;
max-width: 100%;
overflow-x: auto;
}
2019-04-09 13:59:33 +02:00
a {
color: var(--fg);
2019-04-09 13:59:33 +02:00
}
2019-06-10 22:50:00 +02:00
form, input, textarea {
font-family: monospace, "Noto Color Emoji";
2019-04-09 13:59:33 +02:00
}
p {
2019-09-28 03:54:04 +02:00
margin-top: 1em;
2019-04-09 13:59:33 +02:00
margin-bottom: 1em;
}
input {
background: var(--bg-page);
color: var(--fg);
2019-04-09 13:59:33 +02:00
font-size: 1.0em;
line-height: 1.2em;
padding: 0.4em;
}
#honkform input {
font-size: 0.8em;
2019-04-09 13:59:33 +02:00
}
2019-04-29 01:16:24 +02:00
body > header {
2019-04-09 13:59:33 +02:00
margin: 1em auto;
font-size: 1.5em;
}
2019-04-29 01:16:24 +02:00
body > header span {
margin-left: 2em;
2019-04-09 13:59:33 +02:00
}
body > header p {
padding: 1em;
}
2019-09-24 19:52:06 +02:00
header > details {
background: var(--bg-page);
padding: 1em 1em 1em 1em;
position: fixed;
top: 0;
left: 0;
display: inline;
max-height: calc(100% - 1em);
2019-09-30 01:09:57 +02:00
overflow: auto;
opacity: 0.7;
overscroll-behavior: contain;
}
2019-09-24 19:52:06 +02:00
header > details[open] {
padding: 1em 1em 0em 1em;
background: var(--bg-dark);
border: 1px solid var(--fg);
margin-bottom: 1em;
opacity: 1.0;
}
2019-11-07 23:54:10 +01:00
header > details summary span {
display: none;
}
header > details[open] summary span {
display: inline;
}
2019-09-24 19:52:06 +02:00
header > details li {
margin: 1em 0em 1em 0em;
}
details summary {
display: inline;
}
@supports (-moz-appearance:none) {
details summary {
display: list-item;
}
}
2019-04-29 01:16:24 +02:00
main {
2019-04-09 13:59:33 +02:00
max-width: 1200px;
margin: auto;
font-size: 1.5em;
}
.info {
background: var(--bg-dark);
border: 1px solid var(--fg);
2019-04-09 13:59:33 +02:00
margin-bottom: 1em;
padding: 0em 1em 0em 1em;
}
.info div {
2019-09-28 03:54:04 +02:00
margin-top: 1em;
2019-04-09 13:59:33 +02:00
margin-bottom: 1em;
}
2019-10-08 08:06:09 +02:00
label {
2019-10-08 21:34:16 +02:00
font-size: 0.8em;
2019-10-08 08:06:09 +02:00
}
label.button, button, select {
font-size: 16px;
2019-04-09 13:59:33 +02:00
font-family: monospace;
color: var(--fg);
background: var(--bg-page);
border: 1px solid var(--fg);
2019-04-09 13:59:33 +02:00
padding: 0.5em;
2019-10-08 21:34:16 +02:00
white-space: nowrap;
}
.buttonarray {
2019-10-23 06:22:19 +02:00
margin-top: -2.0em;
}
.buttonarray button, .buttonarray > span {
margin-top: 2.0em;
display: inline-block;
2019-04-09 13:59:33 +02:00
}
button a {
text-decoration: none;
}
form {
2019-04-09 13:59:33 +02:00
margin-top: 1em;
}
textarea {
2019-04-09 13:59:33 +02:00
padding: 0.5em;
font-size: 1em;
background: var(--bg-page);
color: var(--fg);
2019-04-21 03:55:23 +02:00
width: 600px;
2019-04-09 13:59:33 +02:00
height: 8em;
margin-bottom: 0.5em;
box-sizing: border-box;
2019-06-02 20:51:02 +02:00
max-width: 100%;
2019-04-09 13:59:33 +02:00
}
input[type="checkbox"] {
2019-04-09 13:59:33 +02:00
position: fixed;
top: -9999px;
}
input[type="checkbox"] + span:after {
2019-04-09 13:59:33 +02:00
content: "no";
}
input[type="checkbox"]:checked + span:after {
2019-04-09 13:59:33 +02:00
content: "yes";
}
input[type="checkbox"]:focus + span:after {
outline: 1px solid var(--fg);
2019-04-09 13:59:33 +02:00
}
input[type=file] {
2019-04-09 13:59:33 +02:00
display: none;
}
2019-10-29 05:26:05 +01:00
.glow {
box-shadow: 0px 0px 16px var(--fg);
2019-10-29 05:26:05 +01:00
}
2019-04-09 13:59:33 +02:00
.honk {
margin: auto;
background: var(--bg-dark);
border: 1px solid var(--fg);
2019-04-09 13:59:33 +02:00
border-radius: 1em;
margin-bottom: 1em;
padding-left: 1em;
padding-right: 1em;
padding-top: 0;
overflow: hidden;
}
.honk #honkform {
2019-10-09 21:50:19 +02:00
padding: 1em;
border: 1px solid var(--fg);
2019-10-09 21:50:19 +02:00
}
.honk a {
color: var(--fg);
2019-10-09 21:50:19 +02:00
}
.honk header {
2019-10-09 21:50:19 +02:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.8em;
line-height: 1.1;
margin-top: 1em;
height: 64px;
}
.honk header .clip a {
color: var(--fg-subtle);
2019-10-09 21:50:19 +02:00
}
.honk header img {
2019-10-09 21:50:19 +02:00
float: left;
margin-right: 1em;
width: 64px;
height: 64px;
}
.honk header p {
2019-10-09 21:50:19 +02:00
margin-top: 0px;
}
.honk .actions button {
2019-10-09 21:50:19 +02:00
margin-left: 4em;
margin-top: 2em;
}
.honk .noise {
2019-10-09 21:50:19 +02:00
line-height: 1.4;
}
.honk .noise code .kw { font-weight: bold; }
.honk .noise code .bi { font-weight: bold; }
.honk .noise code .st { color: var(--fg-subtle); }
.honk .noise code .nm { color: #ba88ff; }
.honk .noise code .op { color: #ba88ff; }
.honk .noise code .tp { font-weight: bold; }
.honk .noise code .cm { color: var(--fg-subtle); font-style: italic; }
.honk .noise code .al { color: #aaffbb; }
.honk .noise code .dl { color: #ffaabb; }
.honk details.actions summary {
color: var(--fg-subtle);
2019-09-30 20:50:36 +02:00
}
.subtle .noise {
color: var(--fg-subtle);
2019-10-09 21:50:19 +02:00
font-size: 0.8em;
}
.subtle .noise a {
color: var(--fg-subtle);
}
.limited {
border: 1px solid var(--fg-limited);
color: var(--fg-limited);
}
.limited .noise {
color: var(--fg-limited);
2019-10-09 21:50:19 +02:00
}
.limited .noise a {
color: var(--fg-limited);
2019-10-09 21:50:19 +02:00
}
.limited details.actions summary {
color: var(--fg-limited);
2019-10-09 21:50:19 +02:00
}
2019-07-10 20:36:14 +02:00
details.noise[open] summary {
display: none;
}
2019-06-03 02:16:49 +02:00
h1, h2 {
font-size: 1.2em;
}
h3, h4 {
font-size: 1.1em;
}
2019-06-02 21:08:12 +02:00
img:not(.emu) {
background: var(--bg-page);
}
2019-06-03 19:41:44 +02:00
img, video {
2019-09-28 03:54:04 +02:00
max-width: 100%;
max-height: 600px;
2019-04-09 13:59:33 +02:00
}
2019-10-12 16:53:56 +02:00
.noise img:not(.emu) {
2019-10-08 22:56:19 +02:00
display: block;
}
2019-04-12 21:02:56 +02:00
img.emu {
2019-05-08 23:22:27 +02:00
width: 2em;
height: 2em;
2019-04-12 21:02:56 +02:00
vertical-align: middle;
margin: -2px;
2019-05-08 23:22:27 +02:00
object-fit: contain;
2019-04-12 21:02:56 +02:00
}
2019-04-21 03:55:23 +02:00
@media screen and (max-width: 740px) {
body {
font-size: 12px;
2019-04-21 03:55:23 +02:00
}
.honk header {
2019-06-02 20:54:18 +02:00
height: 52px;
2019-04-21 03:55:23 +02:00
}
.honk header img {
2019-04-21 03:55:23 +02:00
width: 48px;
height: 48px;
}
}
2019-11-21 07:15:26 +01:00
@media print {
#topmenu, #topspacer, #infobox, #refreshbox, .actions {
display: none;
}
html {
--bg-page: white;
--bg-dark: white;
--fg: black;
--fg-subtle: black;
--fg-limited: #a79;
}
}