thirdculture/werc/pub/style/style.css

543 lines
10 KiB
CSS
Raw Permalink Normal View History

2024-07-18 14:09:32 -04:00
body { display: flex; flex-wrap: wrap; font-family: sans; }
header { flex-basis: 100%; flex-shrink: 0; }
article { flex-basis: 60%; padding-left: 1em; }
footer { flex-basis: 100%; flex-shrink: 0; }
header nav { display: flex; justify-content: space-between; }
nav a, header a { text-decoration: none ; color: inherit; }
header h1 span { margin-left: 1em; font-size: 50%; font-style: italic; }
body > nav { flex-basis: content; padding-right: 1vw; min-width: 16em; }
nav ul { display: flex; flex-direction: column; list-style-type: none; list-style-position: outside; padding-left: 0; }
nav li ul { padding-left: 0.6em }
footer { display: flex; justify-content: space-between; }
2024-11-11 14:52:00 -05:00
@font-face {
font-family: 'ft88';
src: url('fonts/FT88-Gothique.woff2') format('woff2'),
url('fonts/FT88-Gothique.woff') format('woff');
}
@font-face {
font-family: 'gt';
src: url('fonts/terminal-grotesque-webfont.woff2') format('woff2'),
url('fonts/terminal-grotesque-webfont.woff') format('woff');
}
@font-face {
font-family: 'wonder';
src: url('fonts/WonderType-Regular.otf') format('opentype');
}
@font-face {
font-family: 'c';
src: url('fonts/Creduci.ttf') format('truetype');
}
@font-face {
font-family: 'rumeur';
src: url('fonts/rumeur.otf') format('opentype');
}
2024-07-18 14:09:32 -04:00
:root {
2024-11-11 14:52:00 -05:00
/* Main color scheme */
--color-primary: #E4F0FEff;
--color-secondary: #AEA3F0ff;
--color-accent: #A4D1ADff;
/* Background colors */
--bg-primary: #000300ff;
--bg-secondary: #1C202Fff;
/* Text colors */
--text-primary: #E4F0FEff;
--text-secondary: #989898ff;
--text-accent: #AEA3F0ff;
/* Header colours */
--header-primary:#AEA3F0ff;
--header-secondary: #AEA3F0ff;
--header-tertiary: #A4D1ADff;
--header-other: #E4F0FEff;
/* Link colors */
--link-color: #2667deff;
--link-hover: #5B3D8Aff;
/* Border colors */
--border-primary: #C0CEE8ff;
--border-secondary: #0C072Cff;
--border-image: #000300ff;
/* Special purpose colors */
--code-color: #18A02Cff;
--header-bg: #AEA3F0ff;
--header-text: #0C072Cff;
/* Font families */
--font-headers: 'rumeur', sans-serif;
--font-body: verdana, helvetica, arial, sans-serif;
2024-07-18 14:09:32 -04:00
}
body {
background:
linear-gradient(to right, rgba(0, 5, 10, 0.9), rgba(0, 5, 5, 0.9)),
url('imgs/back.jpeg'),
2024-11-11 14:52:00 -05:00
var(--bg-primary);
background-color: var(--bg-primary);
2024-07-18 14:09:32 -04:00
background-position: center center;
background-size: 110vh 75vh;
background-repeat: repeat-y;
margin: 0;
padding: 0;
2024-11-11 14:52:00 -05:00
font-size: 90%;
font-family: var(--font-body);
2024-07-18 14:09:32 -04:00
}
a {
text-decoration: none;
2024-11-11 14:52:00 -05:00
color: var(--link-color);
2024-07-18 14:09:32 -04:00
}
a:hover {
text-decoration: underline;
}
/* header and top bar */
header nav {
2024-11-11 14:52:00 -05:00
background-color: var(--header-bg);
color: var(--header-text);
border-bottom: 3px solid var(--border-secondary);
2024-07-18 14:09:32 -04:00
padding: 0.3em;
2024-11-11 14:52:00 -05:00
font-size: 110%;
2024-07-18 14:09:32 -04:00
}
header h1 {
display: flex;
background-color: var(--back-secondary);
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
2024-07-18 14:09:32 -04:00
margin: 0;
2024-11-11 14:52:00 -05:00
border-bottom: 3px solid var(--border-secondary);
2024-07-18 14:09:32 -04:00
font-size: 200%;
font-weight: bold;
padding: 0.5ex 0 0.5ex 0.6ex;
}
header h1 #headerSubTitle {
display: block;
margin-left: 2em;
font-size: 40%;
2024-11-11 14:52:00 -05:00
color: var(--color-accent);
2024-07-18 14:09:32 -04:00
}
header h1 .headerLink {
display: inline-block;
margin-top: 0.2ex;
margin-left: 0.6ex;
2024-11-11 14:52:00 -05:00
font-family: var(--font-headers);
font-size: xx-large;
2024-07-18 14:09:32 -04:00
}
header h1 a img {
width: 50px;
}
header a:hover {
text-decoration: none;
}
header nav a {
padding: 0.2ex 0.5ex 0.2ex;
transition: background-color 0.3s ease;
}
header nav a:hover {
text-decoration: underline;
background-color: rgba(255, 255, 255, 0.2);
}
header nav .right {
font-weight: bold;
}
/* sidebar */
body>nav {
padding: 0;
2024-11-11 14:52:00 -05:00
border-right: 3px solid var(--border-primary);
2024-07-18 14:09:32 -04:00
}
body>nav>div a,
2024-11-11 14:52:00 -05:00
input[type="submit"],
.bu {
color: var(--color-accent);
2024-07-18 14:09:32 -04:00
display: block;
font-weight: bold;
padding: 0.25em 1ex 0.25em 2mm;
font-size: 102%
}
body>nav>div a:hover,
2024-11-11 14:52:00 -05:00
input[type="submit"]:hover,
.bu:hover {
color: var(--text-accent) !important;
background-color: var(--bg-primary);
border-left: var(--color-accent) solid 0.3em;
2024-07-18 14:09:32 -04:00
text-decoration: none;
}
2024-11-11 14:52:00 -05:00
input[type="submit"], .bu {
2024-07-18 14:09:32 -04:00
background-color: transparent;
font-family: inherit;
border: none;
margin-top: 0;
}
2024-11-11 14:52:00 -05:00
fieldset input[type="submit"]:hover, .bu:hover {
border: 2px ridge var(--color-accent);
border-left: var(--color-accent) solid 0.3em;
2024-07-18 14:09:32 -04:00
}
2024-11-11 14:52:00 -05:00
fieldset input[type="submit"], .bu {
border: 2px solid var(--color-accent);
2024-07-18 14:09:32 -04:00
margin-top: 0.6em;
}
2024-11-11 14:52:00 -05:00
.bu {
width: fit-content;
}
2024-07-18 14:09:32 -04:00
fieldset {
padding: 1em;
max-width: 1000px;
}
input[type="text"], textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
box-sizing: border-box;
font-size: 12px;
font-family: monospace;
}
.log input[type="text"] {
padding: 2px;
width: unset;
}
body>nav>div .dt {
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
2024-07-18 14:09:32 -04:00
}
body>nav>div a:hover .dt {
2024-11-11 14:52:00 -05:00
color: var(--text-accent);
2024-07-18 14:09:32 -04:00
}
body>nav>div p {
font-weight: bold;
margin: 0 0 0.5em 2mm;
padding: 1em 0 0 0;
}
/* main copy */
article {
padding: 0.5ex 1vw 5vh 1vw;
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
2024-07-18 14:09:32 -04:00
backdrop-filter: blur(3px);
flex: 1 1 60%;
max-width: 1100px;
}
2024-11-11 14:52:00 -05:00
article h1 {
color: var(--header-primary);
font-weight: bold;
margin: 1em 0 0.5em 0;
font-size: xx-large;
font-family: rumeur, sans-serif;
}
2024-07-18 14:09:32 -04:00
article h2 {
2024-11-11 14:52:00 -05:00
color: var(--header-secondary);
2024-07-18 14:09:32 -04:00
font-weight: bold;
2024-11-11 14:52:00 -05:00
margin: 1em 0 0.5em 0;
font-family: var(--font-headers);
2024-07-18 14:09:32 -04:00
}
article h3 {
2024-11-11 14:52:00 -05:00
color: var(--header-tertiary);
2024-07-18 14:09:32 -04:00
font-weight: bold;
2024-11-11 14:52:00 -05:00
margin: 2em 0 0.2em 0;
2024-07-18 14:09:32 -04:00
}
article h4 article h5 {
2024-11-11 14:52:00 -05:00
color: var(--header-other);
2024-07-18 14:09:32 -04:00
margin: 2em 0 0 0;
}
article h6,
article h7,
article h8 {
2024-11-11 14:52:00 -05:00
color: var(--header-other);
2024-07-18 14:09:32 -04:00
font-weight: bold;
margin: 2em 0 0 0;
}
2024-11-11 14:52:00 -05:00
article p, article li {
2024-11-12 16:45:42 -05:00
color: var(--text-primary);
2024-11-11 14:52:00 -05:00
font-size: large;
}
2024-07-18 14:09:32 -04:00
article a {
2024-11-11 14:52:00 -05:00
color: var(--link-color);
2024-07-18 14:09:32 -04:00
}
article a:hover {
filter: brightness(85%)
}
article img {
2024-11-11 14:52:00 -05:00
border: 0.4em solid var(--bg-primary);
}
textarea#comment_text {
max-width: 50em;
max-height: 5em;
2024-07-18 14:09:32 -04:00
}
.center {
text-align: center;
}
img[title="main"] {
2024-11-11 14:52:00 -05:00
width: 90%;
max-width: 600px;
border: 0.4em solid var(--bg-primary);
background-color: var(--border-image) !important;
padding: 0.2em;
2024-07-18 14:09:32 -04:00
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
hr {
2024-11-11 14:52:00 -05:00
color: var(--border-primary);
}
.notify_errors {
padding: 0.2em;
color: red;
2024-07-18 14:09:32 -04:00
}
/* footer */
footer {
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
background-color: color-mix(in srgb, var(--bg-primary), transparent 86%);
2024-07-18 14:09:32 -04:00
}
footer a {
2024-11-11 14:52:00 -05:00
color: var(--link-color);
2024-07-18 14:09:32 -04:00
}
footer div {
padding: 1em;
}
/* tables */
table {
2024-11-11 14:52:00 -05:00
border: 1px solid rgba(var(--bg-secondary), 0.5);
2024-07-18 14:09:32 -04:00
padding: 0;
}
th {
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
background-color: var(--bg-primary);
2024-07-18 14:09:32 -04:00
}
tr:nth-child(odd) {
2024-11-11 14:52:00 -05:00
background-color: rgba(var(--bg-secondary), 0.1);
2024-07-18 14:09:32 -04:00
}
/* accents */
.accent {
2024-11-11 14:52:00 -05:00
color: var(--text-accent)
2024-07-18 14:09:32 -04:00
}
.accent2 {
2024-11-11 14:52:00 -05:00
color: var(--color-accent)
2024-07-18 14:09:32 -04:00
}
/* dates */
.date {
display: flex;
align-items: center;
text-align: center;
font-weight: normal;
max-width: fit-content;
font-size: x-small;
2024-11-11 14:52:00 -05:00
color: var(--text-primary);
2024-07-18 14:09:32 -04:00
}
.date::before,
.date::after {
content: '⋆★⋆';
flex: 1;
2024-11-11 14:52:00 -05:00
color: var(--text-secondary);
2024-07-18 14:09:32 -04:00
}
.date:not(:empty)::before {
margin-right: .25em;
}
.date:not(:empty)::after {
margin-left: .25em;
}
.bfeed p {
margin: 0.6ex 0 0.6ex;
}
.bfeed h2 {
margin-bottom: 0.2ex;
}
.bfeed h2 a {
font-size: 90%;
2024-11-11 14:52:00 -05:00
color: var(--text-accent);
2024-07-18 14:09:32 -04:00
text-decoration: none;
}
.bfeed h2 a:hover {
text-decoration: none;
}
blockquote {
font-style: italic;
2024-11-11 14:52:00 -05:00
color: var(--color-accent);
border-left: 3px solid var(--text-secondary);
2024-07-18 14:09:32 -04:00
padding-left: 1em;
}
2024-11-11 14:52:00 -05:00
.copybox {
background-color: var(--bg-primary);
border: 1px solid var(--text-primary);
border-radius: 4px;
padding: 16px;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
color: var(--code-color);
overflow-x: auto;
position: relative;
}
.info {
text-align: left;
}
2024-11-12 16:45:42 -05:00
#test-search {
padding: 5px;
margin: 5px;
}
2024-07-18 14:09:32 -04:00
/* animations */
.fire {
color: #f48c06;
text-shadow:
0px -1px 3px #f48c06,
0px -2px 6px #dc2f02,
0px -6px 12px #9d0208;
animation: flicker 3s infinite;
}
@keyframes flicker {
0%,
100% {
text-shadow:
0px -1px 3px #f48c06,
0px -2px 6px #dc2f02,
0px -6px 12px #9d0208;
}
50% {
text-shadow:
0 -2px 6px #f48c06,
0 -4px 12px #dc2f02,
0 -8px 16px #9d0208;
}
}
2024-11-11 14:52:00 -05:00
.menu-toggle {
display: none;
}
.menu-toggle + label {
display: none;
}
.menu-toggle + label div {
display: none;
height: 20px;
width: 60px;
margin-top: 15px;
margin-left: 5px;
padding: 5px 5px 5px 5px;
text-align: center;
border: 2px solid var(--border-primary);
border-radius: 3px;
font-weight: bold;
font-family: 'Courier New', Courier, monospace;
font-size: xx-large;
}
.menu-toggle + label p {
display: inline-block;
font-size: x-large;
color: var(--text-primary);
margin-left: 10px;
margin-bottom: 0px;
}
@media (max-width: 600px) {
.menu-toggle + label {
display: block;
}
.menu-toggle + label div {
display: inline-flex;
justify-content: center;
align-items: center;
}
.nav-content {
padding: 0;
display: none;
}
.menu-toggle:checked ~ .nav-content {
display: block;
}
.menu-toggle + label div::after {
content: '▶';
color: var(--text-primary);
}
.menu-toggle:checked + label div::after {
content: '▽';
}
.nav-list li:hover {
background-color: #555;
}
}
2024-07-18 14:09:32 -04:00
/* media */
@media screen and (max-width: 600px) {
article {
flex-basis: 100%;
padding: 0.5em;
}
body > nav {
flex-basis: 100%;
border-right: none;
2024-11-11 14:52:00 -05:00
border-bottom: 3px solid var(--border-primary);
border-top: 3px solid var(--border-primary);
2024-07-18 14:09:32 -04:00
padding-bottom: 1em;
}
}