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

182 lines
5.9 KiB
CSS
Raw Normal View History

2020-08-08 09:19:34 +00:00
html {
2022-06-19 16:09:41 +00:00
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
font-size: normal;
line-height: 1.5;
}
2021-05-09 10:11:33 +00:00
html,body { margin: 0; padding: 0; border: 0; }
2022-09-29 12:30:17 +00:00
body { padding-top: 5px;
padding-bottom: 5px;
border-top: solid 5px var(--y);
border-bottom: solid 5px var(--y);
box-sizing: border-box; min-height: 100vh;
}
* { block-sizing: border-box; }
#toc,#TOC {text-align: left;}
2020-08-22 17:32:12 +00:00
.main { min-height: calc(100vh - 1em); }
2022-09-29 12:30:17 +00:00
h1,h2,h3,h4,h5,h6,.abstract {
font-family: Georgia, Palatino, serif;
2020-08-08 09:19:34 +00:00
line-height: calc(1ex/0.42);
2022-06-19 16:09:41 +00:00
margin: 1rem 0; }
2022-09-29 12:30:17 +00:00
header > .content > h1 { margin: 0 0 1rem 0; }
2020-08-08 09:19:34 +00:00
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; }
2022-06-19 16:09:41 +00:00
code,pre { font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, 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;}
2022-02-21 07:40:30 +00:00
.details { display: inline-block; min-width: 13em; 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; }
2022-02-21 07:40:30 +00:00
.post-title { display: inline-block; min-width: 18em; }
2022-06-19 16:09:41 +00:00
.post-title > a { display: inline-block; padding: 0.5em; min-width: 100%; }
2021-05-09 10:11:33 +00:00
#logo { display: block;
vertical-align: middle;
text-align: center;
2022-09-29 12:30:17 +00:00
float: left;
2021-05-09 10:11:33 +00:00
}
#logo svg { width: 5em; }
2022-09-29 12:30:17 +00:00
/* For assistive technology we sometime want to keep a text in a link */
/* while not showing it. */
.vis-hidden {
border: 0;
clip: rect(0 0 0 0);
height: auto;
margin: 0;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
white-space: nowrap;
}
header, footer { text-align: center; }
#content,.content,footer {
padding: 1rem;
max-width: 65ch;
2020-08-06 08:29:34 +00:00
overflow: hidden;
margin: 0 auto;
}
2022-09-29 12:30:17 +00:00
header { padding-top: 5px; max-width: 80ch; margin: 0 auto;}
header > .content { padding-top: 0; text-align: left; }
header > .content > h1 { padding: 0; margin: 0; text-align: left; }
footer { 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;
2022-02-19 08:48:39 +00:00
padding: 0.1em 0.5em;
border-radius: 3px;
2020-10-16 10:33:10 +00:00
}
sub { top: 0.4em; }
.footdef > sup { vertical-align: top; font-size: medium; }
.footdef > sup > a { padding: 0.5em; }
.footpara { display: inline; }
2022-09-29 12:30:17 +00:00
footer { padding: 1em 0;
2020-06-14 21:52:09 +00:00
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; }
2022-06-19 16:09:41 +00:00
#toc { font-size: 0.875em; }
#toc ul { padding-left: 2rem; }
#toc, blockquote, pre.example, .line-block { margin: 0 1rem; padding: 0 1rem; border-left: solid var(--gr); }
2022-09-28 18:05:46 +00:00
.pubDate { display: inline-block; width: 7em; font-size: .825em; opacity: 0.7; }
2022-06-19 16:09:41 +00:00
/* Fonts; https://systemfontstack.com */
.sans { font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; }
.serif { font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; }
.mono { font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; }
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;
2022-06-19 16:09:41 +00:00
--fg: hsl(218,20%,15%);
2022-02-19 08:48:39 +00:00
--hl: #000;
2022-02-19 09:06:23 +00:00
--soft: hsl(218,20%,85%);
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%);
2022-02-19 08:48:39 +00:00
--hl: hsl(218,10%,93%);
2022-02-19 09:06:23 +00:00
--soft: hsl(218,20%,35%);
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); }
2022-02-19 08:48:39 +00:00
strong, b, i, emph, a:hover { color: ; }
}
2022-02-19 08:48:39 +00:00
strong, b, i, emph, a:hover, h1, h2, h3, h4, h5, h6 { color: var(--hl); }
pre,code,sup,sub { background: var(--gr); }
a > sup:hover, a > sub:hover { background: var(--o); color: white; }
body, body > div {
background: var(--bg);
color: var(--fg);
}
2022-02-19 09:06:23 +00:00
a { text-decoration: underline;
text-decoration-thickness: 2px;
text-decoration-color: var(--soft) ; }
2022-02-19 08:48:39 +00:00
a { color: var(--hl); }
a:visited { color: var(--fg); }
2022-02-19 09:06:23 +00:00
a:hover { color: var(--o);
text-decoration-color: var(--o);
}
/* ---- 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; }