Logo
Explore Help
Sign In
lwd/hugo-theme-relearn
1
0
Fork 0
You've already forked hugo-theme-relearn
mirror of https://github.com/McShelby/hugo-theme-relearn synced 2025-05-09 04:35:35 +08:00
Code Issues Packages Projects Releases Wiki Activity
hugo-theme-relearn/assets/css/theme-relearn.css

2 lines
35 B
CSS
Raw Normal View History

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-04 21:37:37 +01:00
@import 'theme-relearn-light.css';
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 76ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API