emacs-config/misc/org-css
TEC 0e471a6c18
A bundle of CSS improvements
I've collected a few tweaks that improve aspects of the CSS styling.
I actually forget all the details, but some of the changes that come to
mind are:
- Making the squiggly link affect respect light/dark mode
- Making code in headings be the right text size
- Make lists starting with particular numbers work (e.g. 4, 5, 6, ...)
- A few minor tweaks to spacing
2024-03-08 16:56:20 +08:00
..
.dir-locals.el Org: HTML, use compressed CSS 2021-04-17 13:39:43 +08:00
.gitignore Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
LICENSE Org html: update readme and licence of style 2021-01-09 01:15:45 +08:00
README.org Org: HTML, use compressed CSS 2021-04-17 13:39:43 +08:00
_$magnet_licence.js Org: HTML, add Expat licence magnet to included JS 2021-04-17 13:39:37 +08:00
_aside.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_bibliography.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_blocks.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_breadcrumbs.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_code.js Typo fix: clipboard not clipdord 2021-01-08 22:03:38 +08:00
_code.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_commons.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_dropcap.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_edits.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_figure.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_footnotes.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_headings.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_hr.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_layout.scss Org html styling: tweak subtitle selector 2022-04-12 11:39:13 +08:00
_links.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_lists.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_normalize.scss Org html: Upgrade normalise from v7 to v8 2021-01-09 00:02:11 +08:00
_org.scss Org: html, set default link colour to inherit 2021-04-26 04:20:17 +08:00
_print.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_table.scss ox-html: CSS style tweaks 2022-06-28 23:10:11 +08:00
_tags.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_theme.scss A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
_toc.js Org: html, check for TOC before JS assumes exists 2021-04-24 02:06:22 +08:00
_toc.scss Rename misc/pile-css-theme/ to misc/org-css/ 2021-01-08 19:56:53 +08:00
_~magnet_licence.js Org: HTML, add Expat licence magnet to included JS 2021-04-17 13:39:37 +08:00
build.sh Org: HTML, use compressed CSS 2021-04-17 13:39:43 +08:00
main.css A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
main.js Org: html, check for TOC before JS assumes exists 2021-04-24 02:06:22 +08:00
main.min.css A bundle of CSS improvements 2024-03-08 16:56:20 +08:00
main.scss Org html: delete/comment out some unused CSS 2021-01-09 00:14:21 +08:00

README.org

Pile Theme

A sass-based set of styles to be used by Org when exporting to HTML. main.scss is compiled to main.css which is then inserted into the <head> of generated HTML documents.

This is a modified version of lepisma's lovely pile-theme.

A little non-essential JS has been added to provide:

  • Functionality for copy-to-clipboard buttons
  • Have the table of contents auto-expand based on the current scroll position

Development

To build main.css and main.js, I simply run

sassc main.scss main.css

A minified CSS file would be nice to have too.

sassc --style compressed main.scss main.min.css
if command -v csso &> /dev/null; then
    csso main.min.css -o main.min.css
fi

Then for combining the JS

ls _*.js | sort -V | xargs cat > main.js