cleanup style
This commit is contained in:
parent
3fe423322c
commit
5ae19b34eb
8
engine/dev.sh
Executable file
8
engine/dev.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env zsh
|
||||
cd "$(git rev-parse --show-toplevel)" || exit 1
|
||||
echo "Watching $PWD/src"
|
||||
# fswatch --exclude='\\.#' src | while read event; do
|
||||
fswatch --exclude='^.*\.#.*$' src | while read event; do
|
||||
echo "$event"
|
||||
./build.sh fast
|
||||
done
|
|
@ -1,6 +1,6 @@
|
|||
@@html:
|
||||
<div style="text-align:center">
|
||||
<svg width="5em" viewBox="0 0 64 64">
|
||||
<svg viewBox="0 0 64 64">
|
||||
<circle cx="32" cy="32" r="30" stroke="var(--b2)" stroke-width="2" fill="var(--b03)"/>
|
||||
<circle cx="32" cy="32" r="12" stroke="var(--r)" stroke-width="2" fill="var(--o)"/>
|
||||
<circle cx="32" cy="32" r="6" stroke-width="0" fill="var(--y)"/>
|
||||
|
|
|
@ -1,20 +1,7 @@
|
|||
.outline-4 {
|
||||
margin: 1em 0;
|
||||
padding: 1em;
|
||||
border: solid;
|
||||
min-height: 21em;
|
||||
display: block;
|
||||
}
|
||||
.outline-3 > h3,
|
||||
.outline-2 > h2 {
|
||||
h1, h2 {
|
||||
border: solid;
|
||||
padding: 10em 1em;
|
||||
margin: 1em 0;
|
||||
text-align: center;
|
||||
}
|
||||
#content,.content {
|
||||
max-width: 53em !important;
|
||||
}
|
||||
#preamble {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
h3 { border-top: solid; margin-top: 2em; }
|
||||
|
|
|
@ -1,27 +1,28 @@
|
|||
html { font-family: "Helvetica Neue", sans-serif; font-size: 14px; line-height: 20px; }
|
||||
html {
|
||||
font-family: "Helvetica Neue", sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: calc(1ex/0.32); }
|
||||
html,body { margin: 0; padding: 0; border: 0; }
|
||||
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; }
|
||||
pre { overflow-x: scroll; border: solid 1px; padding: 1ex; }
|
||||
pre > code { font-size: 0.875em; }
|
||||
code,pre { font-size: 0.875em; }
|
||||
figure { margin: 1rem 0; padding: 0; }
|
||||
.meta { margin: 1rem 0;}
|
||||
.abstract { margin: 1rem; }
|
||||
#logo { text-align: center; }
|
||||
.meta { font-size: small;}
|
||||
.abstract { margin: 1rem; font-size: 0.875em; font-style: italic; }
|
||||
#logo { display: inline-block; }
|
||||
#logo svg { width: 3em; }
|
||||
#preamble, #postamble { text-align: center; }
|
||||
#content,.content,#preamble,#postamble {
|
||||
padding: 0 1rem;
|
||||
max-width: 67ch;
|
||||
max-width: 68ch;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* COLORS */
|
||||
|
||||
/* colortheme switch */
|
||||
body>input { display: none; }
|
||||
#labels > .content { margin: 0 auto; text-align: center; }
|
||||
label { font-weight: 700; }
|
||||
label:hover { cursor: pointer; }
|
||||
label ~ pre { margin-top: 0; }
|
||||
.org-src-container { margin: 1rem 0; }
|
||||
figure img { width: 100%; }
|
||||
.footdef > sup { vertical-align: top; font-size: medium; }
|
||||
.footdef > sup > a { padding: 0.5em; }
|
||||
|
@ -31,14 +32,22 @@ footer { margin: 3em 0;
|
|||
border-top: solid 1px;
|
||||
border-bottom: solid 1px;
|
||||
line-height: 1em;
|
||||
font-size: 0.85em;
|
||||
text-align: center;
|
||||
font-size: 0.875em;
|
||||
}
|
||||
td { border-bottom: none; padding: .2rem; }
|
||||
table { margin-top: 1rem; }
|
||||
nav { text-align: center; padding: 1em 0; }
|
||||
pre { line-height: 1em; }
|
||||
|
||||
/* COLORS */
|
||||
|
||||
/* colortheme switch */
|
||||
body>input { display: none; }
|
||||
#labels > .content { margin: 0 auto; text-align: center; }
|
||||
label { font-weight: 700; }
|
||||
label:hover { cursor: pointer; }
|
||||
label ~ pre { margin-top: 0; }
|
||||
|
||||
:root {
|
||||
--b03: #2E3440;
|
||||
--b02: #3B4252;
|
||||
|
@ -65,7 +74,7 @@ pre { line-height: 1em; }
|
|||
--fg0: var(--b0);
|
||||
--fg: var(--b02);
|
||||
--rfg: #000;
|
||||
--hl: var(--r);
|
||||
--hl: var(--g);
|
||||
}
|
||||
|
||||
/* dark preferred */
|
||||
|
@ -101,7 +110,7 @@ input#l:checked ~ div {
|
|||
--fg0: var(--b0);
|
||||
--fg: var(--b02);
|
||||
--rfg: #000;
|
||||
--hl: var(--o);
|
||||
--hl: var(--g);
|
||||
--y: #c18600;
|
||||
--o: #d84100;
|
||||
--r: #e62729;
|
||||
|
@ -156,51 +165,14 @@ body, body > div {
|
|||
color: var(--fg);
|
||||
}
|
||||
a,a:visited { color: var(--hl); }
|
||||
|
||||
figcaption { color: var(--fg0); }
|
||||
|
||||
/* ---- SYNTAX HIGHLIGHTING ---- */
|
||||
#table-of-contents { text-align: left; }
|
||||
|
||||
.org-rainbow-delimiters-depth-1, .org-rainbow-delimiters-depth-9,
|
||||
.org-css-selector, .org-builtin,
|
||||
.IN_REVIEW, .ex {
|
||||
color:var(--c);
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-2, .org-nix-builtin, .org-variable-name,
|
||||
.org-haskell-definition, .org-haskell-operator, .org-function-name, .org-diff-changed,
|
||||
.org-nix-attribute, .org-nxml-element-local-name, .op, .fu, .ot {
|
||||
color:var(--b);
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-3, .HOLD, .WAITING {
|
||||
color:var(--v);
|
||||
}
|
||||
|
||||
.org-rainbow-delimiters-depth-4, .org-diff-hunk-header, .org-sh-quoted-exec,
|
||||
.CANCELED, .bu {
|
||||
color:var(--m);
|
||||
}
|
||||
.org-rainbow-delimiters-depth-5, .org-diff-removed, .TODO {
|
||||
color:var(--r);
|
||||
}
|
||||
.org-rainbow-delimiters-depth-6, .org-haskell-constructor, .dt {
|
||||
color:var(--o);
|
||||
}
|
||||
.org-rainbow-delimiters-depth-7, .org-type, .org-constant, .org-diff-header,
|
||||
.org-haskell-keyword, .org-haskell-type, .IN_PROGRESS, .kw {
|
||||
color:var(--y);
|
||||
}
|
||||
.org-rainbow-delimiters-depth-8, .org-sh-heredoc, .org-diff-added, .org-string,
|
||||
.org-doc, .org-keyword, .DONE, .st {
|
||||
color:var(--g);
|
||||
}
|
||||
|
||||
.org-highlight-numbers-number, .org-highlight-number-number,
|
||||
.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, .co {
|
||||
color:var(--fg0);
|
||||
}
|
||||
.ex { color:var(--c); }
|
||||
.op, .fu, .ot {color:var(--b);}
|
||||
.bu { color:var(--m); }
|
||||
.dt { color:var(--o); }
|
||||
.kw { color:var(--y); }
|
||||
.st { color:var(--g); }
|
||||
.co { color:var(--fg0); }
|
||||
|
|
|
@ -39,13 +39,13 @@ Here is the CSS you could use:
|
|||
#+begin_export html
|
||||
<style>#colors div {
|
||||
display: inline-block;
|
||||
height: 60.0px;
|
||||
width: 60.0px;
|
||||
height: 50.0px;
|
||||
width: 50.0px;
|
||||
margin: 2px 0;
|
||||
font-weight: bold;
|
||||
line-height: 60.0px;
|
||||
line-height: 50.0px;
|
||||
text-align: center; }
|
||||
#colors { padding: 20px; margin: 10px 0; }
|
||||
#colors { padding: 10px; margin: 10px 0; }
|
||||
</style>
|
||||
<div id="colors">
|
||||
#+end_export
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<div id="preamble" class="status">
|
||||
<div id="logo">
|
||||
<a href="/">
|
||||
<svg width="5em" viewBox="0 0 64 64">
|
||||
<svg viewBox="0 0 64 64">
|
||||
<circle cx="32" cy="32" r="30" stroke="var(--b2)" stroke-width="2" fill="var(--b03)"/>
|
||||
<circle cx="32" cy="32" r="12" stroke="var(--r)" stroke-width="2" fill="var(--o)"/>
|
||||
<circle cx="32" cy="32" r="6" stroke-width="0" fill="var(--y)"/>
|
||||
|
@ -31,9 +31,9 @@
|
|||
<div class="content">
|
||||
<h1>{{title}}</h1>
|
||||
<div class="meta">
|
||||
<span class="author">{{author}}</span><br/>
|
||||
<span class="article-date">{{date}}</span><br/>on
|
||||
<a href="https://her.esy.fun">Yann Esposito's blog</a> -
|
||||
<span class="article-date">{{date}}</span> on
|
||||
<a href="https://her.esy.fun">
|
||||
<span class="author">{{author}}</span>'s blog</a> -
|
||||
<a href="{{orgsource}}">source</a> -
|
||||
<a href="{{txtsource}}">txt</a> -
|
||||
<a href="{{pdf}}">pdf</a> -
|
||||
|
|
Loading…
Reference in a new issue