honk/views/style.css

266 lines
3.8 KiB
CSS
Raw Normal View History

$bg-page: #305;
$bg-dark: #002;
$fg: #dde;
$fg-subtle: #aab;
$fg-limited: #a79;
2019-04-09 13:59:33 +02:00
body {
background: $bg-page;
color: $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;
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 $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: $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: $bg-page;
color: $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: $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;
}
2019-09-24 19:52:06 +02:00
header > details[open] {
padding: 1em 1em 0em 1em;
background: $bg-dark;
border: 1px solid $fg;
margin-bottom: 1em;
opacity: 1.0;
}
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: $bg-dark;
border: 1px solid $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 {
font-size: 1.0em;
}
label.button, button, select {
font-size: 16px;
2019-04-09 13:59:33 +02:00
font-family: monospace;
color: $fg;
background: $bg-page;
border: 1px solid $fg;
2019-04-09 13:59:33 +02:00
padding: 0.5em;
}
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: $bg-page;
color: $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;
}
2019-10-08 08:06:09 +02:00
.buttonarray {
line-height: 2.5em;
}
label.button {
white-space: nowrap;
}
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 $fg;
2019-04-09 13:59:33 +02:00
}
input[type=file] {
2019-04-09 13:59:33 +02:00
display: none;
}
.honk {
margin: auto;
background: $bg-dark;
border: 1px solid $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;
2019-04-09 13:59:33 +02:00
}
2019-07-06 20:36:07 +02:00
.honk #honkform {
padding: 1em;
border: 1px solid $fg;
}
2019-04-09 13:59:33 +02:00
.honk a {
color: $fg;
2019-04-09 13:59:33 +02:00
}
2019-04-29 01:16:24 +02:00
.honk header .clip a {
color: $fg-subtle;
2019-04-09 13:59:33 +02:00
}
2019-04-29 01:16:24 +02:00
.honk header {
2019-04-09 13:59:33 +02:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.8em;
line-height: 1.1;
2019-04-09 13:59:33 +02:00
margin-top: 1em;
height: 64px;
2019-04-09 13:59:33 +02:00
}
2019-04-29 01:16:24 +02:00
.honk header img {
2019-04-09 13:59:33 +02:00
float: left;
margin-right: 1em;
width: 64px;
height: 64px;
}
2019-04-29 01:16:24 +02:00
.honk header p {
2019-04-09 13:59:33 +02:00
margin-top: 0px;
}
.honk .actions button {
2019-06-02 21:32:10 +02:00
margin-left: 4em;
margin-top: 2em;
}
2019-09-30 20:50:36 +02:00
.honk .noise {
line-height: 1.4;
}
.subtle {
}
.subtle .noise {
color: $fg-subtle;
font-size: 0.8em;
}
.subtle .noise a {
color: $fg-subtle;
}
.limited {
2019-09-04 19:32:22 +02:00
border: 1px solid $fg-limited;
color: $fg-limited;
2019-05-02 05:37:54 +02:00
}
.limited .noise {
2019-09-04 19:32:22 +02:00
color: $fg-limited;
2019-05-02 05:37:54 +02:00
}
.limited .noise a {
2019-09-04 19:32:22 +02:00
color: $fg-limited;
}
2019-07-10 20:36:14 +02:00
details.noise[open] summary {
display: none;
}
2019-04-26 15:07:13 +02:00
.inlineform {
display: inline;
}
.inlineform select {
}
2019-07-10 20:36:14 +02:00
.honk details.actions summary {
color: $fg-subtle;
2019-06-02 21:08:12 +02:00
}
2019-07-10 20:36:14 +02:00
.limited details.actions summary {
2019-09-04 19:32:22 +02:00
color: $fg-limited;
2019-06-02 21:08:12 +02:00
}
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: $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-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;
}
}