Commit graph

15 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
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
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
dbfada89d6
style: relaxing to restrictive rule #891
this caused ill formatting for .article-subheading in print outputformat
2024-10-11 16:47:00 +02:00
Sören Weber
c5db84c5db
theme: add migration layer #891 2024-10-11 16:45:46 +02:00
Sören Weber
8692fc4988
theme: broadly renaming template files #891 2024-10-11 16:45:40 +02:00
Sören Weber
e95d057776
theme: replace output-partial by Hugo mechanisms #891 2024-10-11 16:45:37 +02:00
Sören Weber
1b2e139512
assetbuster: use asset buster for all resources #875 2024-07-04 08:23:54 +02:00
Sören Weber
ca0db4d815
variant: remove unnecessary themeVariantModifier option #831 2024-04-19 00:03:45 +02:00
Sören Weber
e952e148fc
theme: end support for Internet Explorer 11 #584 2024-04-18 23:32:19 +02:00
Sören Weber
7ee2023bff
print: make it nice #822
now the user can use <mark> aswell as the theme, when marking search results in the page;
to only print users <mark> with color, we had to adjust the serach highlighting
2024-04-05 00:22:12 +02:00
Sören Weber
829a097e18
print: fix overflows after removing !important stuff 2023-12-04 00:41:44 +01:00
Sören Weber
8cca74e3e6
variant: introduce option for filename modifier #679 #734 2023-12-03 15:22:32 +01:00
Sören Weber
b49668a203
variant: make chroma style dynamically switchable #679 2023-11-25 14:23:58 +01:00
Renamed from static/css/format-print.css (Browse further)