gallery/style/shiny/base.css

288 lines
4.4 KiB
CSS
Raw Normal View History

2020-07-20 16:40:34 -04:00
@import url(/fonts/muller/muller.css);
:root {
--gradient:
linear-gradient(135deg,
hsl(42deg, 67%, 70%),
hsl(348deg, 67%, 70%),
hsl(334deg, 77%, 80%),
hsl(234deg, 77%, 76%),
hsl(195deg, 67%, 67%),
hsl(155deg, 57%, 62%)
);
2020-07-24 12:40:16 -04:00
2020-08-03 13:23:20 -04:00
--text-col: white;
2021-03-12 23:28:22 -05:00
--text-shadow-col: hsl(0, 0%, 0%, 75%);
--text-shadow: 2px 2px 3px var(--text-shadow-col);
2020-07-24 12:40:16 -04:00
--nsfw-sticker-rotate: 15deg;
2020-08-03 13:32:40 -04:00
2020-08-03 17:06:19 -04:00
--focus-box: 0 0 20px hsl(55deg, 60%, 90%, 80%);
--focus-text: hsl(334deg, 87%, 90%);
2020-10-06 16:07:39 -04:00
--shadow-col: hsl(42deg, 82%, 90%, 75%);
--border-col: var(--text-col);
--border: 3px solid var(--border-col);
--border-radius: 1.5em;
--shadow: 0 0 3em var(--shadow-col);
--background: hsla(0, 0%, 0%, 60%);
2021-03-12 23:28:22 -05:00
--button-bg: hsl(330deg, 40%, 16%, 100%);
--button-corner: 0.25em;
2020-08-03 13:32:40 -04:00
font-family: Muller;
font-size: x-large;
2020-08-03 13:32:40 -04:00
font-weight: 600;
background: var(--gradient) fixed;
margin: 0;
2020-07-20 16:40:34 -04:00
}
header {
text-align: center;
}
2020-08-28 19:54:30 -04:00
h1 { font-weight: 300; }
2020-08-04 12:59:38 -04:00
h2, h3, h4 { font-weight: 400; }
2020-07-20 16:40:34 -04:00
h1 { font-size: 300%; }
h2 { font-size: 125%; }
2020-08-04 12:59:38 -04:00
h3 { font-size: 110%; }
2020-07-20 16:40:34 -04:00
2020-10-06 16:07:39 -04:00
.page {
background: var(--background);
border: var(--border);
box-shadow: var(--shadow);
2020-07-20 16:40:34 -04:00
position: relative;
2020-07-23 13:59:07 -04:00
padding: 2em 4em;
margin: 3em auto 3.5em;
2020-10-06 16:07:39 -04:00
border-radius: var(--border-radius);
2020-07-20 16:40:34 -04:00
2020-08-03 13:23:20 -04:00
color: var(--text-col);
2020-07-20 16:40:34 -04:00
text-shadow: var(--text-shadow);
}
header h1 {
margin: 0; padding: 0;
}
a {
color: inherit;
2020-08-04 12:59:38 -04:00
text-decoration: dotted underline;
2020-08-03 17:06:19 -04:00
text-decoration-thickness: 2px;
}
a:focus {
outline: none;
color: var(--focus-text);
text-decoration-style: double;
2020-07-20 16:40:34 -04:00
}
2020-08-28 19:54:30 -04:00
b {
font-weight: 700;
}
2020-08-03 17:06:19 -04:00
2020-07-20 16:40:34 -04:00
footer {
font-weight: 500;
}
2020-09-26 08:22:06 -04:00
figure > img {
display: block;
}
2020-07-20 16:40:34 -04:00
.corner {
display: block;
margin: 0;
padding: 0;
position: absolute;
top: 0.5em;
font-size: 100%;
font-weight: 500;
}
2020-09-19 01:52:03 -04:00
.corner.left {
left: 2em;
text-align: left;
}
.corner.right {
right: 2em;
text-align: right;
}
2020-07-21 09:11:52 -04:00
.emoji {
max-height: 1.2em;
2020-07-21 09:11:52 -04:00
}
2020-08-03 13:23:20 -04:00
2020-08-03 13:32:40 -04:00
.buttonbar {
padding: 0;
display: flex;
align-items: flex-start;
flex-flow: row wrap;
margin-bottom: -0.5em;
}
.buttonbar li {
list-style: none;
margin-bottom: 0.5em;
}
.buttonbar a {
text-decoration: none;
}
.bb-choice {
justify-content: center;
}
.bb-choice input {
display: inline;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
padding: 0;
width: 0;
}
.bb-choice label, .bb-links li {
2020-08-03 13:32:40 -04:00
margin-right: 0.5em;
padding: 0 0.35em;
2021-03-12 23:28:22 -05:00
border-radius: var(--button-corner);
2020-08-03 13:32:40 -04:00
border: 1px solid var(--text-col);
background: var(--button-bg);
text-shadow: none;
}
.bb-choice :focus ~ label, .bb-links li:focus-within {
2020-08-03 17:06:19 -04:00
box-shadow: var(--focus-box);
}
.bb-choice :checked ~ label {
2020-08-03 13:32:40 -04:00
color: var(--button-bg);
background: var(--text-col);
}
2020-08-04 12:59:38 -04:00
summary {
cursor: pointer;
2021-03-12 23:28:22 -05:00
position: relative;
2020-08-03 17:10:52 -04:00
}
summary:focus-within {
outline: none;
}
2021-03-12 23:28:22 -05:00
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after {
--fg: var(--text-col);
--bg: var(--button-bg);
background: var(--bg);
color: var(--fg);
text-shadow: none;
border: 1px solid var(--fg);
border-radius: var(--button-corner);
position: absolute;
right: 0; top: 0;
padding: 2px 5px;
margin-left: 1ex;
}
details summary::after { content: 'show'; }
details[open] summary::after {
content: 'hide';
--fg: var(--button-bg);
--bg: var(--text-col);
}
2020-08-28 19:54:42 -04:00
dt {
font-size: 120%;
}
dd {
margin-left: 0;
}
dd + dt {
margin-top: 0.5em;
}
.btw {
2021-02-09 06:33:18 -05:00
font-size: 80%;
font-weight: 700;
}
dt .btw {
2020-08-28 19:54:42 -04:00
margin-left: 1em;
}
2020-08-03 17:10:52 -04:00
2021-03-12 23:28:22 -05:00
p {
text-align: justify;
-ms-hyphens: auto;
hyphens: auto;
}
2020-12-05 14:02:55 -05:00
.threecol {
columns: 3;
column-gap: 2em;
}
.threecol dd {
break-before: avoid;
}
*[title] {
text-decoration: underline dotted;
}
2020-12-05 14:02:55 -05:00
2020-08-03 13:23:20 -04:00
@media (prefers-color-scheme: dark) {
:root {
--gradient:
linear-gradient(135deg,
hsl(42deg, 27%, 25%),
hsl(348deg, 27%, 25%),
hsl(334deg, 32%, 25%),
hsl(234deg, 57%, 23%),
hsl(195deg, 27%, 20%),
hsl(155deg, 22%, 20%)
);
--text-col: hsl(55deg, 60%, 90%);
}
2020-08-04 12:59:38 -04:00
body {
2020-10-06 16:07:39 -04:00
--shadow-col: hsl(42deg, 82%, 90%, 20%);
2020-08-04 12:59:38 -04:00
--border-col: black;
}
2020-08-03 13:23:20 -04:00
@media (prefers-contrast: high) {
:root {
--text-col: white;
background: black;
}
body {
border: unset;
box-shadow: unset;
background: unset;
}
}
}
2020-08-03 13:32:40 -04:00
@media (pointer: coarse) {
.buttonbar {
font-size: 200%;
}
}