her.esy.fun/src/css/y.css

147 lines
4.1 KiB
CSS
Raw Normal View History

2020-08-08 09:19:34 +00:00
html {
font-family: Georgia, serif;
2021-05-26 05:58:35 +00:00
font-size: 18px;
line-height: calc(1ex/0.37);
}
2020-08-23 12:06:08 +00:00
#TOC {text-align: left;}
2021-05-09 10:11:33 +00:00
html,body { margin: 0; padding: 0; border: 0; }
2020-08-22 17:32:12 +00:00
.main { min-height: calc(100vh - 1em); }
2020-08-08 09:19:34 +00:00
h1,h2,h3,h4,h5,h6 {
line-height: calc(1ex/0.42);
margin: calc(1ex/0.42) 0; }
#preamble h1 { margin: 0; }
p { text-align: justify; hyphens: auto; }
2021-05-24 13:54:47 +00:00
pre { overflow-x: scroll; padding: 1em; border-left: dotted 1px; }
2021-05-15 22:38:26 +00:00
pre > code { background: none; font-size: 0.875em; padding: 0; }
2021-05-16 11:32:44 +00:00
code,pre { font-family: Menlo, Monaco, monospace; font-size: 0.825em; }
2021-05-15 22:38:26 +00:00
code { padding: 1px 3px; }
2020-08-06 08:29:34 +00:00
figure { margin: 1rem 0; padding: 0; }
2021-05-25 20:25:47 +00:00
hr { opacity: 0.3; }
2020-08-08 09:19:34 +00:00
.meta { font-size: small;}
2021-05-24 13:40:47 +00:00
.abstract,.notes { margin: 1rem 10% 0; font-size: 0.875em; }
.notes { border: dotted 1px; padding: 1em 2em;}
.abstract { font-style: italic; }
2021-05-09 10:11:33 +00:00
#logo { display: block;
vertical-align: middle;
text-align: center;
padding: 1rem;
}
#logo svg { width: 5em; }
2020-08-06 08:29:34 +00:00
#preamble, #postamble { text-align: center; }
2021-05-09 10:11:33 +00:00
#content,.content,#postamble {
2020-08-06 08:29:34 +00:00
padding: 0 1rem;
2021-05-26 05:58:35 +00:00
max-width: 62ch;
2020-08-06 08:29:34 +00:00
overflow: hidden;
margin: 0 auto;
}
2021-05-09 10:11:33 +00:00
#content, #preamble,#postamble { padding: 1rem; }
figure img { width: 100%; }
2021-06-20 15:26:45 +00:00
img { max-width: 100%; border: solid; }
2021-05-15 22:38:26 +00:00
li p { margin: 0; padding: 0; }
2021-05-09 10:11:33 +00:00
li > img, p > img { max-height: 1.5em; vertical-align: middle; }
abbr {border-bottom: dotted 1px;}
2020-10-16 10:33:10 +00:00
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub { top: 0.4em; }
.footdef > sup { vertical-align: top; font-size: medium; }
.footdef > sup > a { padding: 0.5em; }
.footpara { display: inline; }
2020-06-14 21:52:09 +00:00
footer { margin: 3em 0;
padding: 1em 0;
border-top: solid 1px;
border-bottom: solid 1px;
line-height: 1em;
2020-08-08 09:19:34 +00:00
font-size: 0.875em;
2020-06-14 21:52:09 +00:00
}
2021-05-01 18:48:20 +00:00
table { margin: 1rem 0; line-height: 1em; max-width: 100%; overflow: scroll;
display: block;
2021-05-24 13:40:47 +00:00
border: solid 1px;}
2021-05-01 18:48:20 +00:00
table th { padding: .1em 1em; }
table td { padding: .1em 1em; }
2020-08-06 08:29:34 +00:00
nav { text-align: center; padding: 1em 0; }
pre { line-height: 1em; }
2021-05-16 11:32:44 +00:00
figcaption { text-align: right; font-style: italic; font-size: 0.875em; }
2021-05-24 13:40:47 +00:00
#table-of-contents { text-align: left; }
#toc { font-size: 0.875em; padding: 1rem; }
#toc ul { padding-left: 2em; }
2021-06-10 17:13:04 +00:00
#toc, blockquote, pre.example, .line-block { margin: 1rem; padding: 1rem; border-left: solid var(--gr); }
2021-05-25 08:25:11 +00:00
.pubDate { display: inline-block; width: 7em; font-size: .825em; opacity: 0.4; }
2021-11-02 08:08:30 +00:00
/* blockquote */
blockquote {
padding-top: 0;
padding-bottom: 0;
}
blockquote > p:first-child {
margin-top: 0;
padding-top: 0;
}
blockquote > p:last-child {
margin-bottom: 0;
padding-bottom: 0;
}
2020-08-08 09:19:34 +00:00
/* COLORS */
/* colortheme switch */
:root {
--y: #c18600;
--o: #d84100;
--r: #e62729;
--m: #ec0085;
--v: #6c71c4;
--b: #0095ff;
--c: #00b0a3;
--g: #879a00;
2021-05-24 13:40:47 +00:00
--bg: #fff;
--fg: #000;
2021-05-24 13:54:47 +00:00
--gr: hsl(218,20%,95%);
}
2021-05-05 21:35:53 +00:00
img { filter: brightness(0.8) sepia(100%) hue-rotate(185deg) saturate(0.5); }
2021-06-20 16:57:54 +00:00
img:hover,svg:hover { filter: none; }
2021-05-05 21:35:53 +00:00
2020-05-24 23:39:31 +00:00
/* dark preferred */
@media (prefers-color-scheme: dark)
{
:root {
2020-06-14 21:52:09 +00:00
--y: #ae8c51;
--o: #a9654a;
--r: #af6255;
--m: #ae5e7d;
--v: #6774b2;
--b: #3f8cc3;
--c: #15a198;
--g: #939452;
2021-06-02 22:48:41 +00:00
--bg: hsl(218,20%,12%);
2021-05-24 13:40:47 +00:00
--fg: hsl(218,20%,70%);
2021-05-24 13:54:47 +00:00
--gr: hsl(218,20%,20%);
2020-05-24 23:39:31 +00:00
}
2021-05-05 21:35:53 +00:00
img { filter: brightness(0.6) sepia(100%) hue-rotate(185deg) saturate(0.5); }
img:hover { filter: brightness(0.7); }
2021-06-02 22:48:41 +00:00
strong, b, i, emph, a:hover { color: hsl(218,50%,90%); }
}
2021-05-24 13:54:47 +00:00
pre,code { background: var(--gr); }
body, body > div {
background: var(--bg);
color: var(--fg);
}
2021-05-24 13:40:47 +00:00
a,a:visited { color: var(--fg); }
/* ---- SYNTAX HIGHLIGHTING ---- */
2020-08-20 20:55:45 +00:00
.ex { color:var(--v); }
2020-08-08 09:19:34 +00:00
.op, .fu, .ot {color:var(--b);}
.bu { color:var(--m); }
.dt { color:var(--o); }
.kw { color:var(--y); }
.st { color:var(--g); }
2021-05-24 13:40:47 +00:00
.co { opacity: 0.4; }
2021-05-01 18:48:20 +00:00
.todo,.done { background: var(--r); color: #FFF; font-weight: bold; font-size: .66em; padding: .2em;}
.done { background: var(--g); }
2021-05-25 08:25:11 +00:00
/* LEGACY */
.inlineblockimg { display: inline-block; }
.inlineblockimg > img { display: inline-block; vertical-align: middle; width: 3em; }