Commit graph

6 commits

Author SHA1 Message Date
Sören Weber
0505b36141
theme: fix flash of non-default variant, part I #757
implements the first part, working for configured variants;

for that, loading of stylesheets was overhauled by now
merging all configured variants into one big stylesheet for
each output format and loading this instead of one stylesheet
per configured variant;

previously @media print styles were applied on top of @media screen
styles; this is now strictly isolated, which doesn't require styles
like neon to revert styles for print anymore;

this change was also used to implement the minify parameter, to shrink
those generated stylesheets, making them shrink to 66% of their
unminified size for the exampleSite;

the theme switcher functionality is now completely independend of
variant.js; the switch is now handled by in-page javascript which
avoids waiting for external scripts to load, so switching can happen
as early as possible;

switching of themes is now implemented by just setting a data attribute
to the html element, were previously a complex mechanism of dynamically
loading of variant CSS files was implemented;

the call for variant.js was removed in this changeset, making the
generator broken and useless; this will be fixed with the next patch;
2024-12-06 07:38:05 +01:00
Sören Weber
a22e183c51
theme: move fonts all into one dir #947
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled
2024-11-16 00:37:07 +01:00
Sören Weber
ce72cce3e9
theme: format more files #947 2024-11-16 00:30:25 +01:00
Sören Weber
9eec161dba
theme: replace font Work Sans with Roboto Flex #922 2024-10-11 16:47:22 +02:00
Sören Weber
0b37d72780
font: use woff2 for font-weight:200 2024-03-31 16:13:04 +02:00
Sören Weber
34f316d59e
theme: optimize loading of js and css #303 2022-07-08 00:10:17 +02:00