honk/views/style.css

421 lines
6.5 KiB
CSS
Raw Permalink Normal View History

html {
2019-12-09 10:32:46 +01:00
--bg-page: #306;
--bg-dark: #002;
2019-12-09 10:32:46 +01:00
--fg: #dcf;
2019-12-09 10:48:14 +01:00
--hl: #dcf;
2019-12-09 10:32:46 +01:00
--fg-subtle: #a9c;
--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;
2022-04-11 20:22:53 +02:00
margin-bottom: 0em;
2019-05-14 17:11:11 +02:00
padding-left: 0.5em;
border-left: 1px solid var(--fg-subtle);
2019-05-14 17:11:11 +02:00
}
2022-04-11 20:22:53 +02:00
cite {
margin-left: 2em;
}
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;
z-index: 2;
}
2019-09-24 19:52:06 +02:00
header > details[open] {
padding: 1em 1em 0em 1em;
background: var(--bg-dark);
2019-12-09 10:48:14 +01:00
border: 1px solid var(--hl);
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 {
cursor: pointer;
}
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;
}
2019-12-09 10:48:14 +01:00
hr {
border-color: var(--hl);
}
2019-04-09 13:59:33 +02:00
.info {
background: var(--bg-dark);
2019-12-09 10:48:14 +01:00
border: 1px solid var(--hl);
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);
2019-12-09 10:48:14 +01:00
border: 1px solid var(--hl);
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;
}
button {
cursor: pointer;
}
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);
2023-08-06 09:14:12 +02:00
width: 100%;
height: 4em;
2019-04-09 13:59:33 +02:00
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
}
textarea#honknoise {
height: 10em;
}
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 {
2019-12-10 03:24:27 +01:00
box-shadow: 0px 0px 16px var(--hl);
2019-10-29 05:26:05 +01:00
}
2019-04-09 13:59:33 +02:00
.honk {
margin: auto;
background: var(--bg-dark);
2019-12-09 10:48:14 +01:00
border: 1px solid var(--hl);
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;
}
2023-06-13 22:29:27 +02:00
.level1 {
margin-left: 0.5em;
}
.level1::before {
position: absolute;
content: ">";
}
.level2 {
margin-left: 1.0em;
}
.level2::before {
position: absolute;
content: ">>";
}
.level3 {
margin-left: 1.5em;
}
.level3::before {
position: absolute;
content: ">>>";
}
.level4 {
margin-left: 2.0em;
}
.level4::before {
position: absolute;
content: ">>>>";
}
2020-05-15 05:34:08 +02:00
.chat {
border-bottom: 0.5px solid var(--fg-subtle);
padding-left: 1em;
}
.chat p {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
.chattarget {
border-bottom: 1px solid var(--fg-subtle);
}
.chatstamp {
margin-left: -1em;
}
.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
}
#emupicker{height:300px;overflow-y:scroll;padding:3px;background:var(--bg-dark);border:solid 5px var(--fg-subtle);text-align:center;display:none;}
#emupicker img{margin:0;}
.emuload{background:var(--bg-page);padding:0.5em;}
.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);
}
2019-12-11 00:35:28 +01:00
.limited .glow {
box-shadow: 0px 0px 16px 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
}
details.noise[open] summary.noise {
2019-07-10 20:36:14 +02:00
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
height: 2em;
2019-04-12 21:02:56 +02:00
vertical-align: middle;
2019-05-08 23:22:27 +02:00
object-fit: contain;
2019-04-12 21:02:56 +02:00
}
.nophone {
position: fixed;
opacity: 0.7;
cursor: pointer;
}
@media screen and (max-width: 1360px) {
.nophone {
display: none;
}
}
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;
}
details summary {
outline: none;
}
2019-04-21 03:55:23 +02:00
}
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;
}
}
/*
* CSP: style-src: self
*/
li.details {
list-style-type: none;
margin-left: -1em;
}
.left1em {
margin-left: 1em;
}
.hide {
display: none;
}
2023-08-29 04:56:19 +02:00
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
2023-08-29 04:56:19 +02:00
.text-center {
text-align: center;
}
.font08em {
font-size: 0.8em;
}
.font18em {
font-size: 1.8em;
}
.wsnowrap {
white-space: nowrap;
}
.skinny main {
max-width: 700px;
}
.fontmonospace {
font-family: monospace;
}