From b79765f4383bd08f3b89fde947a2f1ae3c837e1d Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Sun, 23 Feb 2020 20:54:34 +0100 Subject: Move plugin-specific SASS rules in Soupault.org --- site/cleopatra/Bootstrap.org | 2 +- site/cleopatra/Soupault.org | 96 ++++++++++++++++++++++++++++++++++---------- site/cleopatra/Theme.org | 38 +----------------- 3 files changed, 77 insertions(+), 59 deletions(-) (limited to 'site/cleopatra') diff --git a/site/cleopatra/Bootstrap.org b/site/cleopatra/Bootstrap.org index e1e7902..9274fb4 100644 --- a/site/cleopatra/Bootstrap.org +++ b/site/cleopatra/Bootstrap.org @@ -277,7 +277,7 @@ started using ~soupault~. You can read more about [[./Soupault.org][how the ~sou configuration of the present website in the dedicated document]]. #+BEGIN_SRC makefile :tangle bootstrap.mk :noweb tangle :exports none -<> +<> #+END_SRC ** Theming and Templating diff --git a/site/cleopatra/Soupault.org b/site/cleopatra/Soupault.org index 2ff6ab6..7f73561 100644 --- a/site/cleopatra/Soupault.org +++ b/site/cleopatra/Soupault.org @@ -140,28 +140,17 @@ while index do end #+END_SRC -#+BEGIN_SRC html :tangle templates/history.html -
- Revisions -

- This revisions table has been automatically generated from - the git - history of this website repository, and the change descriptions may not - always be as useful as they should. You can consult the source of this file - in its current - version here. -

+#+BEGIN_SRC sass :tangle site/style/plugins.sass +.url-mark.fa + display: inline + font-size: 90% + width: 1em - - {{#history}} - - - - - - {{/history}} -
{{date}}{{subject}}{{abbr_hash}}
-
+.url-mark.fa-github::before + content: "\00a0\f09b" + +.url-mark.fa-external-link::before + content: "\00a0\f08e" #+END_SRC #+BEGIN_SRC toml :tangle soupault.conf @@ -232,6 +221,66 @@ haskell-mustache ${1} ${tmp_file} rm ${tmp_file} #+END_SRC +#+NAME: repo +#+BEGIN_SRC text +https://code.soap.coffee/writing/lthms.git +#+END_SRC + +#+BEGIN_SRC html :tangle templates/history.html :noweb tangle +
+ Revisions +

+ This revisions table has been automatically generated from + the + git history of this website repository, + and the change descriptions may not always be as useful as + they should. You can consult the source of this file + in its current version + here. +

+ + + {{#history}} + + + + + + {{/history}} +
{{date}}{{subject}} + + {{abbr_hash}} + +
+
+#+END_SRC + +#+BEGIN_SRC sass :tangle site/style/plugins.sass +#history + summary + color: $primary-color + font-weight: bold + + table + border-top: 2px solid $primary-color + border-bottom: 2px solid $primary-color + border-collapse: collapse; + + td + border-bottom: 1px solid $primary-color + padding: .5em + vertical-align: top + + td.commit + font-size: smaller + + td.commit + font-family: 'Fira Code', monospace + color: $code-fg-color + font-size: 80% + white-space: nowrap; +#+END_SRC + #+BEGIN_SRC toml :tangle soupault.conf [widgets.generate-history] widget = "preprocess_element" @@ -272,6 +321,11 @@ GENFILES += package-lock.json GENAUX += node_modules/ #+END_SRC +#+BEGIN_SRC sass :tangle site/style/plugins.sass +.imath + font-size: smaller +#+END_SRC + #+BEGIN_SRC toml :tangle soupault.conf [widgets.math] widget = "preprocess_element" diff --git a/site/cleopatra/Theme.org b/site/cleopatra/Theme.org index 0478683..e013ee6 100644 --- a/site/cleopatra/Theme.org +++ b/site/cleopatra/Theme.org @@ -206,43 +206,7 @@ body#vcard ol margin-top: 0.3em -.url-mark.fa - display: inline - font-size: 90% - width: 1em - -.url-mark.fa-github::before - content: "\00a0\f09b" - -.url-mark.fa-external-link::before - content: "\00a0\f08e" - -#history - summary - color: $primary-color - font-weight: bold - - table - border-top: 2px solid $primary-color - border-bottom: 2px solid $primary-color - border-collapse: collapse; - - td - border-bottom: 1px solid $primary-color - padding: .5em - vertical-align: top - - td.commit - font-size: smaller - - td.commit - font-family: 'Fira Code', monospace - color: $code-fg-color - font-size: 80% - white-space: nowrap; - -.imath - font-size: smaller +@import plugins #+END_SRC #+BEGIN_SRC makefile :tangle theme.mk -- cgit v1.2.3