Commit graph

15 commits

Author SHA1 Message Date
Sören Weber
deee4ae6b7
theme: fix flash of non-default variant, part II #757
adapt the variant generator to previous changes;
interestingly, the new mechanism caused the variant generator
to be greatly simplified; something, I didn't expect beforehand
2024-12-08 00:17:03 +01:00
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
bda57027b3
notice: improve accessibility of notice title #897
switch to details/summary elements which hopefully has better a11y
and will simplify state handling as it is build into the browser
2024-11-30 19:10:58 +01:00
Sören Weber
e32ff04f06
expand: use notice internally #953 2024-11-29 22:41:18 +01:00
Sören Weber
348702d8c2
theme: apply Prettier config #947 2024-11-15 23:38:25 +01:00
Sören Weber
57defcfab7
theme: prepare for Prettier config #947 2024-11-15 23:36:23 +01:00
Sören Weber
9f69cb73b0
theme: make users with font changes accountable #922 2024-10-13 00:48:07 +02:00
Sören Weber
2061495d2e
theme: make bold weight configurable #922
to avoid migration hassle if someone forced a different font
2024-10-12 23:09:25 +02:00
Sören Weber
34c46451bd
theme: fix home button styling 2024-10-11 16:47:24 +02: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
83b1f27cb9
theme: support for GitHub styled alerts #885 2024-08-13 12:48:25 +02:00
Sören Weber
f00152ec3f
variant: align Neon colors to Learn
to better match auto mode with both variants
2024-04-27 15:58:31 +02:00
Sören Weber
0c748b2fd3
variant: darker purple for neon 2024-04-23 22:07:53 +02:00
Sören Weber
56bc54d92d
variant: purple is the new blue in neon 2024-04-23 22:04:28 +02:00
Sören Weber
bd40625c21
variant: avoid Hugo permission errors on build #831 2024-04-19 00:02:28 +02:00
Renamed from static/css/theme-neon.css (Browse further)