167 lines
11 KiB
CSS
167 lines
11 KiB
CSS
/* tc.css: thirdculture tokens, type and components. Layout lives in style.css. */
|
|
|
|
:root {
|
|
--color-primary: #E4F0FE;
|
|
--color-secondary: #AEA3F0;
|
|
--color-accent: #A4D1AD;
|
|
--bg-primary: #000300;
|
|
--bg-secondary: #1C202F;
|
|
--text-primary: #E4F0FE;
|
|
--text-secondary: #989898;
|
|
--text-accent: #AEA3F0;
|
|
--header-primary: #AEA3F0;
|
|
--header-secondary: #A4D1AD;
|
|
--header-tertiary: #A4D1AD;
|
|
--header-other: #E4F0FE;
|
|
--link-color: #8FC1FF;
|
|
--link-hover: #E4F0FE;
|
|
--border-primary: #C0CEE8;
|
|
--border-secondary: #0C072C;
|
|
--border-image: #000300;
|
|
--code-color: #5FD27A;
|
|
--header-bg: #AEA3F0;
|
|
--header-text: #0C072C;
|
|
--font-headers: rumeur, 'Victor Mono', ui-monospace, monospace;
|
|
--font-body: abordage, verdana, sans-serif;
|
|
--font-ui: abordage, vg5000, ui-monospace, monospace;
|
|
--hot: #FF6AD5;
|
|
--measure: none;
|
|
--leading: 1.6;
|
|
}
|
|
|
|
body {
|
|
background:
|
|
repeating-linear-gradient(to bottom, rgba(228, 240, 254, .025) 0 1px, transparent 1px 3px),
|
|
linear-gradient(rgba(0, 1, 2, .9), rgba(0, 1, 2, .9)),
|
|
url('imgs/back.jpeg'),
|
|
var(--bg-primary);
|
|
background-color: var(--bg-primary);
|
|
background-position: center center;
|
|
background-size: auto, auto, 110vh 75vh, auto;
|
|
background-repeat: repeat, repeat, repeat-y, repeat;
|
|
font-size: 90%;
|
|
font-family: var(--font-body);
|
|
line-height: var(--leading);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* links: bright at rest, brighter with a 1px chromatic split on hover, no motion */
|
|
a { color: var(--link-color); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
|
|
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; text-shadow: -1px 0 var(--color-secondary), 1px 0 var(--color-accent); }
|
|
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
|
|
|
|
/* headings */
|
|
article h1, article h2 { font-family: var(--font-headers); font-weight: bold; margin: 1em 0 .5em; line-height: 1.2; }
|
|
article h1 { color: var(--header-primary); font-size: xx-large; }
|
|
article h2 { color: var(--header-secondary); }
|
|
article h3 { color: var(--header-tertiary); font-weight: bold; margin: 2em 0 .2em; }
|
|
article h4, article h5, article h6 { color: var(--header-other); font-weight: bold; margin: 2em 0 0; }
|
|
|
|
/* text */
|
|
article { color: var(--text-primary); }
|
|
article p, article li { color: var(--text-primary); font-size: large; }
|
|
article p, article li, article blockquote, article dd { max-width: var(--measure); }
|
|
article em { color: var(--text-accent); }
|
|
hr { border: 0; border-top: 1px solid var(--border-primary); opacity: .5; }
|
|
|
|
blockquote { font-style: italic; color: var(--color-accent); border-left: 3px solid var(--text-secondary); margin-left: 0; padding-left: 1em; }
|
|
|
|
code, kbd, pre { font-family: 'Victor Mono', ui-monospace, monospace; }
|
|
code { color: var(--code-color); }
|
|
pre { color: var(--code-color); background: var(--bg-primary); border: 1px solid var(--border-secondary); border-left: 3px solid var(--code-color); padding: .75em 1em; overflow-x: auto; line-height: 1.45; }
|
|
pre code { color: inherit; }
|
|
pre.cmd code::before { content: '$ '; color: var(--text-secondary); user-select: none; }
|
|
kbd { display: inline-block; padding: 0 .4em; border: 1px solid var(--text-secondary); border-bottom-width: 3px; font-size: .85em; color: var(--text-primary); background: var(--bg-secondary); }
|
|
|
|
table { border-collapse: collapse; border: 1px solid color-mix(in srgb, var(--bg-secondary), transparent 50%); }
|
|
th, td { padding: .3em .6em; text-align: left; }
|
|
th { color: var(--text-primary); background-color: var(--bg-primary); font-family: var(--font-ui); }
|
|
tr:nth-child(odd) { background-color: color-mix(in srgb, var(--bg-secondary), transparent 60%); }
|
|
|
|
article img { max-width: 100%; height: auto; border: .4em solid var(--bg-primary); }
|
|
img[title="main"], img[title="main2"] {
|
|
display: block; width: 90%; max-width: 600px; margin: 0 auto; padding: .2em;
|
|
border: .4em solid var(--bg-primary); background-color: var(--border-image);
|
|
}
|
|
img[title="main2"] { max-width: 400px; }
|
|
|
|
/* panels: <div class="panel warn" data-label="warn">…</div> */
|
|
.panel { margin: 1.25em 0; padding: .75em 1em; max-width: var(--measure); border: 1px solid var(--text-secondary); border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--bg-primary), transparent 20%); }
|
|
.panel::before { content: attr(data-label); display: block; margin-bottom: .35em; font-family: var(--font-ui); font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); }
|
|
.panel > :last-child { margin-bottom: 0; }
|
|
.panel.warn { border-left-color: var(--hot); }
|
|
.panel.warn::before { color: var(--hot); }
|
|
.panel.privacy { border-left-color: var(--color-secondary); }
|
|
.panel.privacy::before { color: var(--color-secondary); }
|
|
.panel.onion { border-left-color: var(--text-accent); }
|
|
.panel.onion::before { color: var(--text-accent); }
|
|
|
|
/* badges: <span class="badge">onion</span> */
|
|
.badge { display: inline-block; padding: 0 .45em; margin: 0 .2em .2em 0; border: 1px solid currentColor; font-family: var(--font-ui); font-size: .75em; font-style: normal; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; color: var(--color-accent); white-space: nowrap; }
|
|
.badge.hot { color: var(--hot); }
|
|
.badge.dim { color: var(--text-secondary); }
|
|
|
|
/* small helpers used across content */
|
|
.accent { color: var(--text-accent); }
|
|
.accent2 { color: var(--color-accent); }
|
|
.sep { color: var(--color-accent); border: 2px solid var(--color-accent); }
|
|
.center { text-align: center; }
|
|
.info { text-align: left; }
|
|
.notify_errors { padding: .2em; color: var(--hot); }
|
|
.copybox { position: relative; overflow-x: auto; padding: 1em; background-color: var(--bg-primary); border: 1px solid var(--text-primary); color: var(--code-color); font-family: 'Victor Mono', ui-monospace, monospace; font-size: 14px; }
|
|
|
|
.date { display: flex; align-items: center; max-width: fit-content; text-align: center; font-weight: normal; font-size: x-small; color: var(--text-primary); }
|
|
.date::before, .date::after { content: '⋆★⋆'; flex: 1; color: var(--text-secondary); }
|
|
.date:not(:empty)::before { margin-right: .25em; }
|
|
.date:not(:empty)::after { margin-left: .25em; }
|
|
.bfeed p { margin: .6ex 0; }
|
|
.bfeed h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .5em; margin: 2.2em 0 .6em; padding-bottom: .3em; border-bottom: 1px dashed color-mix(in srgb, var(--text-secondary), transparent 50%); }
|
|
.bfeed h2 a { color: var(--text-accent); text-decoration: none; }
|
|
.bfeed h2 .date { display: block; margin-left: auto; text-align: left; font-family: var(--font-body); font-size: .62em; font-weight: normal; letter-spacing: .12em; white-space: nowrap; color: var(--color-accent); }
|
|
.bfeed h2 .date::before { content: '['; margin-right: .35em; color: var(--text-secondary); }
|
|
.bfeed h2 .date::after { content: ']'; margin-left: .35em; color: var(--text-secondary); }
|
|
@media (max-width: 700px) { .bfeed h2 .date { flex-basis: 100%; max-width: none; margin-left: 0; } }
|
|
|
|
/* dir: a listing for members, links, anything list-shaped. Rows are <a> (or <div>) with
|
|
<b> number (leave empty to auto-count), <span> name, <small> note, <i> tag. Optional first row: <div class="h">. */
|
|
.dir { counter-reset: row; position: relative; font-size: 1.05em; line-height: 1.35; margin: 1.6em 0 1.2em; padding: .8em .3em .2em; border: 1px solid color-mix(in srgb, var(--border-primary), transparent 55%); border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--bg-primary), transparent 25%); display: grid; grid-template-columns: 3.5ch minmax(0, 1fr) minmax(0, 1.4fr) auto; column-gap: 1em; }
|
|
.dir[data-label]::before { content: '[ ' attr(data-label) ' ]'; position: absolute; top: -.75em; left: .8em; padding: 0 .5em; background: var(--bg-primary); font-family: var(--font-ui); font-size: .85em; letter-spacing: .12em; text-transform: lowercase; color: var(--color-accent); }
|
|
.dir > * { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-areas: "n name note tag"; row-gap: .1em; align-items: baseline; padding: .22em .6em; color: var(--text-primary); text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--text-secondary), transparent 55%); }
|
|
.dir > :last-child { border-bottom: 0; }
|
|
.dir > :not(.h) { counter-increment: row; }
|
|
.dir b { grid-area: n; font-weight: normal; color: var(--text-secondary); }
|
|
.dir b:empty::before { content: counter(row, decimal-leading-zero); }
|
|
.dir span { grid-area: name; font-weight: bold; color: var(--c, var(--text-accent)); }
|
|
.dir small { grid-area: note; color: var(--text-secondary); }
|
|
.dir i { grid-area: tag; font-style: normal; font-family: var(--font-ui); font-size: .8em; letter-spacing: .08em; color: var(--text-secondary); text-align: right; }
|
|
.dir > .h { padding-top: 0; font-family: var(--font-ui); font-size: .75em; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid color-mix(in srgb, var(--color-accent), transparent 50%); }
|
|
.dir > .h > * { color: inherit; font: inherit; }
|
|
.dir > a:hover, .dir > a:focus-visible { color: var(--text-primary); text-shadow: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--color-secondary)), transparent 80%), transparent 70%); }
|
|
.dir > a:hover b, .dir > a:focus-visible b { color: var(--c, var(--color-accent)); }
|
|
.dir > a:hover b:empty::before, .dir > a:focus-visible b:empty::before { content: ">>"; }
|
|
.dir > a:hover span, .dir > a:focus-visible span { text-shadow: -1px 0 var(--c2, var(--color-secondary)), 1px 0 var(--c, var(--color-accent)); }
|
|
@media (max-width: 700px) {
|
|
.dir { grid-template-columns: 3.5ch minmax(0, 1fr) auto; }
|
|
.dir > * { grid-template-areas: "n name tag" ". note note"; }
|
|
.dir > .h small { display: none; }
|
|
}
|
|
|
|
.fire {
|
|
color: #f48c06;
|
|
text-shadow: 0 -1px 3px #f48c06, 0 -2px 6px #dc2f02, 0 -6px 12px #9d0208;
|
|
animation: flicker 3s infinite;
|
|
}
|
|
@keyframes flicker {
|
|
0%, 100% { text-shadow: 0 -1px 3px #f48c06, 0 -2px 6px #dc2f02, 0 -6px 12px #9d0208; }
|
|
50% { text-shadow: 0 -2px 6px #f48c06, 0 -4px 12px #dc2f02, 0 -8px 16px #9d0208; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
}
|
|
|
|
/* misaki button, lilac */
|
|
.misaki-btn { font-family: 'Courier New', Courier, monospace; font-size: 15px; cursor: pointer; padding: .35rem 1rem; color: #16112b; background: #c9c0f2; border: 2px solid; border-color: #f3f0ff #6b5fa8 #6b5fa8 #f3f0ff; box-shadow: 1px 1px 0 #000; }
|
|
.misaki-btn:hover { background: #b9aeec; }
|
|
.misaki-btn:active { border-color: #6b5fa8 #f3f0ff #f3f0ff #6b5fa8; box-shadow: none; }
|
|
.misaki-btn:focus-visible { outline: 1px dotted #16112b; outline-offset: -5px; }
|