👨💻 about me home CV/Resume News 🖊️ Contact Codeberg Github LinkedIn 🏆 Best of LuaX (tools) pub bang ypp panda lsvg ldc yreq Fizzbuzz Calculadoira TPG picfg Belenos (intro) 🔀 Git Repos
Made in Europe
cdsoft.css is a simple and reusable CSS file designed to
provide consistent styling across multiple CDSoft projects. This
stylesheet supports both light and dark themes
automatically, using the user's system preferences.
It is meant to be used with Pandoc.
You can apply this stylesheet to any document you convert with
pandoc, using the --css option. This file is
self-contained and does not require any build tools or
JavaScript to function. It adapts to the user's preferred color scheme
(light or dark) using the prefers-color-scheme media
query.
You have to add --standalone (-s) to
generate a full HTML document with embedded metadata and optionally
--embed-resources to embed everything in the HTML document
(images, cdsoft.css...) to make it easier to
distribute.
pandoc input.md -o output.html --standalone --embed-resources --css=cdsoft.cssThe stylesheet automatically adjusts based on the user's system theme preference:
No configuration or JavaScript is required -- the switch is fully automatic via media queries.
example/example.md is
an example how to use cdsoft.css.
See build.lua to see how to build
an HTML file with:
Once bang, ninja, ypp and
pandoc are installed:
$ bang # generate build.ninja
$ ninja # generate example.html in the .build directoryhttps://cdelord.fr uses
cdsoft.css.
This file is licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0). You may use it freely in your projects, including proprietary ones, as long as any modifications to this CSS file are published under the same license.
For full license terms, see the LICENSE file or visit: https://www.gnu.org/licenses/lgpl-3.0.html
This site is powered by LuaX, bang, ypp, cdsoft.css and Pandoc.
Mirrors: cdelord.fr – christophe.delord.free.fr – cdsoft.codeberg.page