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

478 lines
9.6 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-07-08 21:16:48 +00:00
body {
2019-11-19 03:56:12 +00:00
font: 14px/1.4 monospace;
2019-11-18 08:46:15 +00:00
line-height: 16px;
2019-07-25 22:37:45 +00:00
}
pre, pre code {
2019-11-04 08:14:45 +00:00
line-height: 1em;
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,
2019-11-19 03:56:12 +00:00
figure,table {
2019-08-25 22:23:42 +00:00
margin-top: 1em;
margin-bottom: 1em;
2019-07-04 06:38:15 +00:00
}
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: " ";
opacity: 0.5;
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%;
max-height: 100vh;
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 {
2019-11-19 03:56:12 +00:00
display: block; /* for overflow to work */
max-width: 100%;
2019-08-16 15:21:40 +00:00
border-collapse: collapse;
border: solid 1px;
overflow: scroll;
}
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;
border-right: solid 1px;
border-left: solid 1px;
}
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 */
2019-11-18 08:46:15 +00:00
h1,h2,h3,h4,h5,h6 {
2019-07-20 19:58:09 +00:00
font-size: 1em;
}
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;
}
#preamble h1 {
margin-top: 0;
}
#table-of-contents,
#table-of-contents ul,
#table-of-contents h2
{
padding:0;
margin:0;
}
#table-of-contents {
margin-bottom: 1em;
}
#postamble:before, hr:after {
2019-11-19 03:56:12 +00:00
text-align: center;
2019-12-08 15:00:31 +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 {
2019-07-05 21:29:02 +00:00
content: "~~~~~~~~~";
2019-07-25 22:37:45 +00:00
display: block; }
2019-11-19 03:56:12 +00:00
pre:before {
content: "~~~~~~~~~ " attr(class);
}
2019-07-20 19:58:09 +00:00
pre code {
background: none;
}
blockquote,#table-of-contents {
2019-07-08 21:16:48 +00:00
margin-left: 0;
2019-07-04 06:38:15 +00:00
position: relative;
padding-left: 17px;
padding-left: 2ch;
overflow: hidden;
}
#table-of-contents:after, blockquote:after {
2019-07-04 06:38:15 +00:00
content: ">\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>\A>";
white-space: pre;
position: absolute;
top: 0;
left: 0;
}
2019-11-19 03:56:12 +00:00
nav {
2019-07-13 21:30:59 +00:00
font-weight: bold;
display: block;
2019-11-19 03:56:12 +00:00
padding: 10px 0;
2019-07-13 21:30:59 +00:00
}
2019-11-19 03:56:12 +00:00
nav > a {
2019-07-13 21:30:59 +00:00
margin-right: 10px;
}
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 {
2019-11-27 16:07:25 +00:00
max-width: 48em;
2019-10-19 20:37:25 +00:00
margin: 0 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 {
margin-top: 1em;
}
2019-07-20 19:58:09 +00:00
.timestamp-wrapper {
font-size: 12px;
}
.todo, .done {
font-size: 12px;
font-weight: bold;
padding: 1px 1ex;
}
2019-07-28 16:44:25 +00:00
.article-date {
2019-09-16 09:42:49 +00:00
font-size: 0.8em;
2019-07-28 16:44:25 +00:00
font-style: italic;
float: right;
}
.footpara {
display: inline;
}
.footdef > sup {
vertical-align: middle;
}
.footdef > sup::after {
content: ": ";
}
2019-08-12 09:42:20 +00:00
.notes {
padding: 5px 10px;
}
.notes::before {
content: "☞";
float: left;
display: inline-block;
2019-08-16 15:29:38 +00:00
width: 1.5em;
2019-08-12 09:42:20 +00:00
}
2019-08-16 15:21:40 +00:00
.underline {
text-decoration: underline;
}
2019-07-20 19:58:09 +00:00
/* colors theme */
2019-07-19 23:12:41 +00:00
:root {
2019-07-20 19:58:09 +00:00
color-scheme: light dark; /* support color scheme */
2019-11-27 23:28:10 +00:00
--b03: #202631;
--b02: #2B313C;
--b01: #656B74;
--b00: #727781;
--b0: #8B919B;
--b1: #989EA8;
--b2: #E5E8ED;
--b3: #F4F7FC;
--y: #A98D50;
--o: #aa6550;
--r: #b85a64;
--m: #af53b0;
--violet: #846f93;
2019-11-27 23:28:10 +00:00
--b: #5679a4;
--cyan: #4c8493;
2019-11-27 23:28:10 +00:00
--g: #728b5c;
2019-10-19 20:37:25 +00:00
/* Solaryzed accented colors */
2019-11-27 23:28:10 +00:00
--bg: var(--b03);
--fg: var(--b0);
--bg2: var(--b02);
--fg2: var(--b01);
--rfg: var(--b1);
--rbg: var(--b02);
--bdr: var(--b02);
2019-11-19 15:18:41 +00:00
--l-fg: var(--bg);
2019-11-27 23:28:10 +00:00
--l-bg: var(--g);
2019-07-19 23:12:41 +00:00
}
2019-07-11 22:26:33 +00:00
2019-07-20 19:58:09 +00:00
/* org colors */
2019-07-19 23:12:41 +00:00
@media (prefers-color-scheme: light) {
:root {
2019-11-27 23:28:10 +00:00
--bg: var(--b3);
--fg: var(--b00);
--bg2: var(--b2);
--fg2: var(--b1);
--rfg: var(--b01);
--rbg: var(--b2);
--bdr: var(--b2);
2019-11-19 15:18:41 +00:00
--l-fg: var(--bg);
2019-11-27 23:28:10 +00:00
--l-bg: var(--o);
2019-07-19 23:12:41 +00:00
}
}
2019-11-05 09:24:21 +00:00
/* Dark themes soften and darken images */
@media (prefers-color-scheme: dark) {
img {
2019-11-22 00:42:48 +00:00
filter: brightness(0.8) sepia(100%) hue-rotate(182deg) saturate(0.6);
2019-11-05 09:24:21 +00:00
}
}
2019-11-22 00:42:48 +00:00
@media (prefers-color-scheme: light) {
img {
filter: sepia(100%) hue-rotate(182deg) saturate(0.6);
}
}
2019-11-27 16:07:25 +00:00
#h {
float: left;
}
2019-11-27 18:06:42 +00:00
.main {
padding-top: 1em;
}
2019-08-13 07:35:42 +00:00
#labels {
width: 100%;
2019-08-13 22:20:14 +00:00
text-align: right;
2019-08-13 07:35:42 +00:00
}
#labels label {
text-decoration: underline;
cursor: pointer;
2019-08-13 22:20:14 +00:00
font-style: italic;
2019-08-13 07:35:42 +00:00
}
2019-08-14 12:54:14 +00:00
2019-10-20 19:56:27 +00:00
/* Light themes does not soften and darken images */
2019-11-22 00:42:48 +00:00
#l:checked ~ .main img { filter: sepia(100%) hue-rotate(182deg) saturate(0.6); }
#d:checked ~ .main img { filter: brightness(0.8) sepia(100%) hue-rotate(182deg) saturate(0.6); }
2019-08-14 12:54:14 +00:00
2019-10-20 19:56:27 +00:00
/* --------------------------------------------------------------------------- */
2019-08-24 22:32:42 +00:00
/* Dark theme selected */
2019-11-19 15:18:41 +00:00
#d:checked ~ .main, #d:checked ~ #labels {
2019-11-27 23:28:10 +00:00
--bg: var(--b03);
--fg: var(--b0);
--bg2: var(--b02);
--fg2: var(--b01);
--rfg: var(--b1);
--rbg: var(--b02);
--bdr: var(--b02);
2019-11-19 15:18:41 +00:00
--l-fg: var(--bg);
2019-11-27 23:28:10 +00:00
--l-bg: var(--g);
2019-08-13 07:35:42 +00:00
}
2019-08-14 12:54:14 +00:00
2019-10-20 19:56:27 +00:00
/* --------------------------------------------------------------------------- */
2019-08-24 22:32:42 +00:00
/* Light theme selected */
2019-11-19 15:18:41 +00:00
#l:checked ~ .main, #l:checked ~ #labels {
2019-11-27 23:28:10 +00:00
--bg: var(--b3);
--fg: var(--b01);
--bg2: var(--b2);
--fg2: var(--b00);
--rfg: var(--b01);
--rbg: var(--b2);
--bdr: var(--b2);
2019-11-19 15:18:41 +00:00
--l-fg: var(--bg);
2019-11-27 23:28:10 +00:00
--l-bg: var(--o);
2019-08-13 07:35:42 +00:00
}
2019-08-14 12:54:14 +00:00
2019-10-20 19:56:27 +00:00
/* --------------------------------------------------------------------------- */
2019-08-16 15:21:40 +00:00
/* Default color theme */
2019-08-13 07:35:42 +00:00
body,.main {
2019-11-18 08:46:15 +00:00
background: var(--bg);
color: var(--fg);
2019-08-13 22:20:14 +00:00
min-height: 100vh;
2019-07-19 23:12:41 +00:00
}
2019-08-13 07:35:42 +00:00
::selection, .main ::selection,
::-moz-selection, .main ::-moz-selection {
2019-10-19 20:37:25 +00:00
color: white;
2019-11-27 23:28:10 +00:00
background: var(--b);
2019-07-21 07:29:43 +00:00
}
2019-08-13 07:35:42 +00:00
a, a:visited,
.main a, .main a:visited {
2019-11-18 08:46:15 +00:00
color: var(--rfg);
2019-07-20 19:58:09 +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
}
2019-09-19 21:36:20 +00:00
body > input { display:none; }
2019-11-05 08:51:18 +00:00
#labels {
2019-11-18 08:46:15 +00:00
background: var(--bg2);
color: var(--fg2);
2019-11-05 08:51:18 +00:00
}
2019-09-16 09:42:49 +00:00
.keywords {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
2019-09-16 09:42:49 +00:00
}
li .keywords {
float: right;
2019-09-16 09:42:49 +00:00
}
.main ol > li:before, ol > li:before {
2019-11-18 08:46:15 +00:00
color: var(--fg2)
}
2019-08-13 07:35:42 +00:00
pre::after,pre::before,hr:after,
.main pre::after,.main pre::before,.main hr:after {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
2019-07-25 22:37:45 +00:00
}
2019-11-19 15:18:41 +00:00
nav a, nav a:visited, .main nav a,.main nav a:visited {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
2019-07-28 16:44:25 +00:00
}
2019-11-19 15:18:41 +00:00
#labels label:hover, a:hover, a:active, a:focus, .main a:hover,.main a:active,.main a:focus,
nav a:focus, nav a:hover, .main nav a:focus,.main nav a:hover {
color: var(--l-fg);
background: var(--l-bg);
2019-07-28 16:44:25 +00:00
}
2019-11-19 15:18:41 +00:00
2019-11-19 03:56:12 +00:00
thead, .main thead, tr:hover, .main tr:hover {
background: var(--rbg);
color: var(--rfg);
2019-07-20 19:58:09 +00:00
}
2019-10-20 11:44:42 +00:00
.description {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
}
h1, .main h1,
h2, .main h2,
h3, .main h3,
h4, .main h4,
h5, .main h5,
h6, .main h6,
{
color: var(--rfg);
2019-07-20 19:58:09 +00:00
}
2019-08-13 07:35:42 +00:00
table, td, th,
.main table,.main td,.main th {
2019-11-18 08:46:15 +00:00
border-color: var(--bdr);
2019-07-20 19:58:09 +00:00
}
2019-08-13 07:35:42 +00:00
code, .main code {
2019-11-18 08:46:15 +00:00
background: var(--rbg);
2019-07-20 19:58:09 +00:00
}
2019-08-13 07:35:42 +00:00
blockquote:after, .main blockquote:after {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
2019-07-28 16:44:25 +00:00
}
2019-08-13 07:35:42 +00:00
#preamble,#postamble,.main #preamble, .main #postamble {
2019-11-19 03:56:12 +00:00
border-color: transparent;
2019-07-19 23:12:41 +00:00
}
2019-08-13 07:35:42 +00:00
.article-date, .main .article-date {
2019-11-18 08:46:15 +00:00
color: var(--fg2);
2019-07-28 16:44:25 +00:00
}
/* -------- */
2019-07-11 22:26:33 +00:00
/* org colors */
2019-08-13 07:35:42 +00:00
.todo, .done, .main .todo, .main .done {
2019-11-19 03:56:12 +00:00
background: var(--rbg);
2019-08-15 21:20:09 +00:00
border: solid 1px;
height: 10px;
display: inline-block;
line-height: 12px;
font-weight: bold;
font-size: 10px;
2019-07-20 19:58:09 +00:00
}
2019-08-13 07:35:42 +00:00
.notes, .main .notes {
2019-11-19 03:56:12 +00:00
background: var(--rbg);
2019-11-18 08:46:15 +00:00
color: var(--rfg);
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,
2019-11-28 16:56:57 +00:00
.IN_REVIEW, a {
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-function-name, .org-diff-changed {
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 {
color:var(--o);
}
2019-11-28 16:56:57 +00:00
.org-rainbow-delimiters-depth-7, .org-type, .org-constant, .org-diff-header,
.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
}
.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 {
color:var(--fg2);
}
2019-11-28 16:56:57 +00:00
.org-highlight-number-number {
2019-11-27 23:28:10 +00:00
color:var(--rfg);
}