her.esy.fun/src/css/mk.css

371 lines
6.9 KiB
CSS
Raw Normal View History

2019-07-09 12:03:32 +00:00
/* CSS to be used for HTML Org-mode export
Author: Yann Esposito
*/
2019-07-25 22:37:45 +00:00
/* Fonts */
2019-12-26 11:45:11 +00:00
:root {
2020-05-01 17:26:07 +00:00
--lh: 20px;
2019-12-26 11:45:11 +00:00
}
2020-04-25 10:41:37 +00:00
2019-07-08 21:16:48 +00:00
body {
2020-05-10 18:39:01 +00:00
font-size: 14px;
font-family: monospace;
2019-12-26 11:45:11 +00:00
line-height: var(--lh);
2020-04-18 21:07:50 +00:00
min-height: 100vh;
2019-07-25 22:37:45 +00:00
}
2020-05-02 17:43:19 +00:00
label + pre { margin-top: 2px; }
2020-05-04 08:49:00 +00:00
pre, code {
2019-11-04 08:14:45 +00:00
line-height: 1em;
2019-07-25 22:37:45 +00:00
}
2020-05-04 08:49:00 +00:00
code { font-size: 14px; }
2019-12-26 11:45:11 +00:00
blockquote pre {
line-height: var(--lh);
}
2019-07-25 22:37:45 +00:00
/* Layout */
2019-11-19 03:56:12 +00:00
body, h1, h2, h3, h4, h5, h6, pre, code, blockquote, ol, ul, ol ol, ul ul, ul ol, ol
ul, li, p, section, header, footer, img {
float: none;
2019-07-13 21:30:59 +00:00
margin: 0;
padding: 0;
border: 0;
2019-07-08 21:16:48 +00:00
hyphens: auto;
2019-11-05 08:51:18 +00:00
}
2019-07-20 19:58:09 +00:00
h1, h2, h3, h4, h5, h6, pre, code, blockquote, p, ul, ol, section, header,
2020-05-02 17:43:19 +00:00
figure,table,label {
2019-12-26 11:45:11 +00:00
margin-top: var(--lh);
margin-bottom: var(--lh);
2019-07-04 06:38:15 +00:00
}
2020-04-10 02:40:56 +00:00
blockquote {
border-left: solid 2px;
padding-left: 1ex;
}
2019-08-16 15:21:40 +00:00
li {
display: block;
2019-11-22 01:55:20 +00:00
padding-left: 2ch;
2019-08-16 15:21:40 +00:00
}
2019-11-19 03:56:12 +00:00
ol > li:before, ul > li:before {
2019-08-16 15:21:40 +00:00
content: " ";
float: left;
position: relative;
2019-11-22 01:55:20 +00:00
left: -2ch;
text-align: right;
2019-08-16 15:21:40 +00:00
width: 0;
}
ol {
counter-reset: ol;
}
ol > li:before {
content: counter(ol) ". ";
counter-increment: ol;
}
ol > li:nth-child(n+10) {
2019-11-22 01:55:20 +00:00
padding-left:3ch;
}
ol > li:nth-child(n+10):before {
2019-11-22 01:55:20 +00:00
left: -3ch;
}
2019-08-16 15:21:40 +00:00
img {
2019-11-22 00:42:48 +00:00
width: 100%;
2019-08-25 22:23:42 +00:00
margin: 1em auto;
2019-08-16 15:21:40 +00:00
}
p > img, li > img {
2019-11-22 01:55:20 +00:00
max-height: 1cap;
2019-11-22 00:46:03 +00:00
width: auto;
2019-08-16 15:21:40 +00:00
margin: 0;
vertical-align: middle;
}
table {
max-width: 100%;
2019-08-16 15:21:40 +00:00
border-collapse: collapse;
overflow: scroll;
2020-02-22 17:11:49 +00:00
border-top: solid 2px;
border-bottom: solid 2px;
2019-08-16 15:21:40 +00:00
}
td, th {
2019-08-25 22:23:42 +00:00
height: 1em;
2019-08-16 15:21:40 +00:00
padding: 0 10px;
text-align: left;
vertical-align: middle;
}
sup {
vertical-align: top;
position: relative;
top: -.25em;
}
sup > a {
text-decoration: none;
padding: 1px 2px;
font-weight: bold;
}
2019-07-20 19:58:09 +00:00
2019-08-16 15:21:40 +00:00
/* Markdown tricks */
2020-04-25 10:11:07 +00:00
h1 { font-size: 1.5em; }
h2,h3,h4,h5,h6 {
2019-07-20 19:58:09 +00:00
font-size: 1em;
}
2020-02-16 16:34:31 +00:00
h1:before,h2:before,h3:before,h4:before,h5:before,h6:before {
2020-05-04 08:49:00 +00:00
font-family: "PT Mono", monospace;
2020-02-16 16:34:31 +00:00
}
2019-07-20 19:58:09 +00:00
h1::before {
content: "# ";
}
h2::before {
content: "## ";
}
h3::before {
content: "### ";
}
h4::before {
content: "#### ";
}
h5::before {
content: "##### ";
}
h6::before {
content: "###### ";
}
2019-07-04 06:38:15 +00:00
hr {
border: 0;
}
2020-05-01 08:27:39 +00:00
#logo { text-align: center; }
2020-04-25 10:11:07 +00:00
#preamble h1, #preamble h2 {
margin-top: 0;
2020-04-25 10:11:07 +00:00
margin-bottom: .5em;
}
#table-of-contents,
#table-of-contents ul,
#table-of-contents h2
{
padding:0;
margin:0;
}
#table-of-contents {
2019-12-26 11:45:11 +00:00
margin-bottom: var(--lh);
}
2020-05-01 13:25:59 +00:00
hr:after {
2020-05-04 08:49:00 +00:00
font-family: "PT Mono", monospace;
2019-11-19 03:56:12 +00:00
text-align: center;
2020-02-29 17:19:00 +00:00
content: "----------------------------------------------------------";
2019-11-19 03:56:12 +00:00
display:block;
2019-07-04 06:38:15 +00:00
width: 100%;
2019-11-19 03:56:12 +00:00
overflow: hidden;
opacity: .5;
height: 1em;
2019-07-04 06:38:15 +00:00
}
2019-11-21 15:21:15 +00:00
pre {
2019-11-21 15:19:06 +00:00
max-width: 100%;
overflow-x: scroll;
overflow-y: hidden;
}
2019-11-19 03:56:12 +00:00
pre:after,pre:before {
2020-02-29 17:19:00 +00:00
content: "~~~~~~~";
2019-07-25 22:37:45 +00:00
display: block; }
2019-11-19 03:56:12 +00:00
pre:before {
2020-02-29 17:19:00 +00:00
content: "~~~~~~~ " attr(class);
}
2019-11-19 03:56:12 +00:00
nav {
2019-07-13 21:30:59 +00:00
display: block;
2019-11-19 03:56:12 +00:00
padding: 10px 0;
2019-07-13 21:30:59 +00:00
}
2020-02-21 10:27:51 +00:00
nav .details {
font-weight: normal;
font-size: .8em;
2019-07-13 21:30:59 +00:00
}
2019-07-28 16:44:25 +00:00
/* org mode ids and classes */
2019-11-22 00:42:48 +00:00
figure, .figure {
margin: 1em 0;
2019-07-28 16:44:25 +00:00
}
#content,.content {
2020-05-10 18:39:01 +00:00
max-width: 45em;
2020-04-25 10:11:07 +00:00
margin: 1em auto;
2019-11-27 16:07:25 +00:00
padding: 0 1em;
2019-07-28 16:44:25 +00:00
}
2019-11-19 03:56:12 +00:00
#content:last-child, .notes *:last-child, blockquote *:last-child {
margin-bottom: 0;
}
#content:first-child, .notes *:first-child, blockquote *:first-child{
2019-07-28 16:44:25 +00:00
margin-top: 0;
2019-07-13 21:30:59 +00:00
}
#postamble {
2019-12-26 11:45:11 +00:00
margin-top: var(--lh);
}
2019-07-20 19:58:09 +00:00
.todo, .done {
2020-05-01 08:27:39 +00:00
font-size: 14px;
2019-07-20 19:58:09 +00:00
font-weight: bold;
padding: 1px 1ex;
}
2020-04-25 10:11:07 +00:00
.metas {
font-weight: normal;
2019-07-28 16:44:25 +00:00
}
.footpara {
display: inline;
}
.footdef > sup {
vertical-align: middle;
}
.footdef > sup::after {
content: ": ";
}
2019-08-12 09:42:20 +00:00
.notes {
2020-01-01 22:54:53 +00:00
padding: 1ex;
2019-08-12 09:42:20 +00:00
}
2019-08-16 15:21:40 +00:00
.underline {
text-decoration: underline;
}
2020-04-25 10:41:37 +00:00
/* COLORS */
2019-07-19 23:12:41 +00:00
:root {
2020-04-25 10:11:07 +00:00
--b03: #2E3440;
--b02: #3B4252;
2020-02-12 23:39:46 +00:00
--b01: #656b74;
2019-11-27 23:28:10 +00:00
--b00: #727781;
--b0: #989ea8;
--b1: #b0bac7;
2020-04-25 10:11:07 +00:00
--b2: #ECEFF4;
--b3: #fff;
2020-05-01 17:26:07 +00:00
--y: #c18600;
--o: #d84100;
--r: #e62729;
--m: #ec0085;
--v: #6c71c4;
--b: #0095ff;
--c: #00b0a3;
--g: #879a00;
2019-10-19 20:37:25 +00:00
2020-02-17 16:56:36 +00:00
--bg: var(--b3);
--rbg: var(--b2);
2020-04-25 10:11:07 +00:00
--fg0: var(--b0);
--fg: var(--b02);
2020-05-01 08:27:39 +00:00
--rfg: #000;
2020-05-10 20:13:53 +00:00
--hl: blue;
2020-05-10 22:15:59 +00:00
--fhl: #FF0;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: black;
--rbg: var(--b03);
--fg: var(--b1);
--fg0: var(--b00);
--rfg: var(--b2);
--hl: var(--y);
--fhl: #000;
}
img { filter: brightness(0.5) saturate(0.5); }
2020-02-16 18:09:59 +00:00
}
2020-02-17 16:56:36 +00:00
2019-08-16 15:21:40 +00:00
/* Default color theme */
2020-04-25 10:11:07 +00:00
body {
2019-11-18 08:46:15 +00:00
background: var(--bg);
color: var(--fg);
2019-07-19 23:12:41 +00:00
}
2020-04-25 10:11:07 +00:00
h1, h2, h3, h4, h5, h6 {
2020-05-01 08:27:39 +00:00
color: var(--rfg);
2020-04-25 10:11:07 +00:00
}
a {
color: var(--hl);
2020-05-10 20:13:53 +00:00
font-weight: 700;
padding: 2px;
2020-04-25 10:11:07 +00:00
}
2019-09-19 21:36:20 +00:00
b, strong, i, em {
2019-11-18 08:46:15 +00:00
color: var(--rfg);
2019-09-19 21:36:20 +00:00
}
2019-11-11 00:05:52 +00:00
sup > a {
2019-11-18 08:46:15 +00:00
background: var(--rbg);
2019-11-11 00:05:52 +00:00
}
2020-04-10 02:40:56 +00:00
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {
color: var(--fg0);
}
2020-04-25 10:11:07 +00:00
.metas, .metas a, .metas a:visited {
color: var(--fg0);
}
nav a, nav a:visited {
2020-02-29 17:19:00 +00:00
color: var(--fg);
}
a:hover, .metas a:hover, nav a:hover, a:hover *
2020-05-01 17:26:07 +00:00
{
2020-05-10 22:15:59 +00:00
color: var(--fhl);
2020-05-01 17:26:07 +00:00
background: var(--hl);
}
ol > li:before, pre::after,pre::before,hr:after {
2020-02-12 23:39:46 +00:00
color: var(--fg0);
2019-07-28 16:44:25 +00:00
}
2020-02-29 17:19:00 +00:00
2019-12-25 15:35:56 +00:00
abbr { border-bottom: dashed 1px;
display: inline-block;
}
2020-04-25 10:11:07 +00:00
thead, tr:hover {
2019-11-19 03:56:12 +00:00
background: var(--rbg);
color: var(--rfg);
2019-07-20 19:58:09 +00:00
}
2020-04-25 10:11:07 +00:00
table, td, th {
2020-02-12 23:39:46 +00:00
border-color: var(--fg0);
2019-07-20 19:58:09 +00:00
}
2020-04-25 10:11:07 +00:00
code {
2019-11-18 08:46:15 +00:00
background: var(--rbg);
2020-05-10 20:13:53 +00:00
font-weight: 700;
2019-07-20 19:58:09 +00:00
}
/* -------- */
2019-07-11 22:26:33 +00:00
/* org colors */
2020-04-25 10:11:07 +00:00
.todo, .done {
2019-08-15 21:20:09 +00:00
height: 10px;
display: inline-block;
line-height: 12px;
font-weight: bold;
font-size: 10px;
2020-02-12 23:39:46 +00:00
border-left: solid 2px;
border-right: solid 2px;
padding: 0 3px;
2019-07-20 19:58:09 +00:00
}
2020-04-25 10:11:07 +00:00
.notes {
2019-11-19 03:56:12 +00:00
background: var(--rbg);
2019-11-18 08:46:15 +00:00
color: var(--rfg);
2019-12-25 15:35:56 +00:00
margin: 1em 0;
2019-08-12 09:42:20 +00:00
}
2019-11-04 08:03:38 +00:00
/* ---- SYNTAX HIGHLIGHTING ---- */
2019-11-27 23:28:10 +00:00
.org-rainbow-delimiters-depth-1, .org-rainbow-delimiters-depth-9,
.org-css-selector, .org-nix-attribute, .org-builtin,
2020-04-25 10:11:07 +00:00
.IN_REVIEW {
2019-11-27 23:28:10 +00:00
color:var(--c);
2019-11-19 03:56:12 +00:00
}
2019-11-27 23:28:10 +00:00
.org-rainbow-delimiters-depth-2, .org-nix-builtin, .org-variable-name,
.org-haskell-definition, .org-haskell-operator, .org-function-name, .org-diff-changed {
2019-11-27 23:28:10 +00:00
color:var(--b);
2019-11-19 03:56:12 +00:00
}
2019-11-28 16:56:57 +00:00
.org-rainbow-delimiters-depth-3, .HOLD, .WAITING {
2019-11-27 23:28:10 +00:00
color:var(--v);
2019-11-19 03:56:12 +00:00
}
2019-11-28 16:56:57 +00:00
.org-rainbow-delimiters-depth-4, .org-diff-hunk-header, .org-sh-quoted-exec,
.CANCELED {
2019-11-27 23:28:10 +00:00
color:var(--m);
2019-11-19 03:56:12 +00:00
}
2019-11-28 16:56:57 +00:00
.org-rainbow-delimiters-depth-5, .org-diff-removed, .TODO {
2019-11-27 23:28:10 +00:00
color:var(--r);
}
.org-rainbow-delimiters-depth-6, .org-haskell-constructor {
2019-11-27 23:28:10 +00:00
color:var(--o);
}
2019-11-28 16:56:57 +00:00
.org-rainbow-delimiters-depth-7, .org-type, .org-constant, .org-diff-header,
.org-haskell-keyword, .org-haskell-type, .IN_PROGRESS {
2019-11-27 23:28:10 +00:00
color:var(--y);
}
.org-rainbow-delimiters-depth-8, .org-sh-heredoc, .org-diff-added, .org-string,
2019-11-28 16:56:57 +00:00
.org-doc, .org-keyword, .DONE {
2019-11-27 23:28:10 +00:00
color:var(--g);
2019-11-19 03:56:12 +00:00
}
2020-04-18 21:07:50 +00:00
.org-highlight-numbers-number, .org-highlight-number-number,
2019-11-19 03:56:12 +00:00
.org-diff-none, .org-preprocessor, .org-comment-delimiter, .org-comment,
.org-outshine-level-1, .org-outshine-level-2, .org-outshine-level-3,
.org-outshine-level-4, .org-outshine-level-5, .org-outshine-level-6,
.org-outshine-level-7, .org-outshine-level-8, .org-outshine-level-9 {
2020-02-22 20:52:52 +00:00
color:var(--fg0);
2019-11-19 03:56:12 +00:00
}