pepperminty-wiki-website/src/static/css/main.css

116 lines
3.6 KiB
CSS

@charset "UTF-8";
:root {
--bg-back: #eee8f2;
--text-main: #111111;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-back: hsl(270, 29%, 28%);
--text-main: hsl(277, 38%, 89%);
}
a { color: hsl(208, 67%, 67%); }
a:hover { color: hsl(214, 67%, 75%); }
a:active, a:focus { color: hsl(214, 87%, 85%); }
a:visited { color: hsl(264, 77%, 65%); }
}
html, body { font-size: 100%; }
body {
background: var(--bg-back);
color: var(--text-main);
font-family: sans-serif;
}
h1 {
text-align: center;
}
/* A small tweak to things more responsive */
iframe, object, embed, img, table { max-width: 100%; }
/* Turn the user's cursor into a hand when over things they can click */
button, summary { cursor: pointer; }
/*
███████ ███████ ███████ ███████ ██████ ████████ ███████
██ ██ ██ ██ ██ ██ ██
█████ █████ █████ █████ ██ ██ ███████
██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ███████ ██████ ██ ███████
*/
.fancy-browser-window {
display: inline-block;
/* background: radial-gradient(0.25em at top 0.25em right 0.25em, red 0%, red 99%, transparent 100%), */
--button-size: 0.35em;
--border-thin: 0.5em;
--border-top: 1.25em;
--button-spacing: 1em;
--colour-z: hsl(0, 0%, 85%);
--colour-a1: hsl(5, 80%, 60%);
--colour-a2: hsl(7, 74%, 48%); /*hsl(6, 75%, 37%)*/
--colour-b1: hsl(53, 80%, 60%);
--colour-b2: hsl(53, 73%, 48%);
--colour-c1: hsl(114, 80%, 59%);
--colour-c2: hsl(114, 73%, 48%);
background: radial-gradient(
var(--button-size) at top calc(var(--button-size) + var(--border-thin) / 2) left calc(0.5em + var(--button-size)),
var(--colour-a1) 50%,
var(--colour-a2) 100%,
transparent 100%
), radial-gradient(
var(--button-size) at top calc(var(--button-size) + var(--border-thin) / 2) left calc(0.5em + var(--button-size) + var(--button-spacing)),
var(--colour-b1) 50%,
var(--colour-b2) 100%,
transparent 100%
), radial-gradient(
var(--button-size) at top calc(var(--button-size) + var(--border-thin) / 2) left calc(0.5em + var(--button-size) + var(--button-spacing) * 2),
var(--colour-c1) 50%,
var(--colour-c2) 100%,
transparent 100%
), var(--colour-z);
border-radius: 0.25em;
padding: var(--border-top) var(--border-thin) var(--border-thin) var(--border-thin);
}
/*
██ █████ ██ ██ ██████ ██ ██ ████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ███████ ████ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ██ ██████ ██████ ██
*/
.double {
display: grid;
grid-template-rows: auto;
grid-template-columns: 1fr 1fr;
}
.double.lean-right { grid-template-columns: 2fr 3fr; }
.double.lean-left { grid-template-columns: 3fr 2fr; }
.centre-horizontal { align-self: center; }
.centre-vertical { justify-self: center; }
.centre { align-self: center; justify-self: center; }
.padding-wide { padding: 3em; }
.logo { vertical-align: middle; }
.logo.large { max-width: 2em; }
.logo.medium { max-width: 1.5em; }
.logo.small { max-width: 1em; }