Commit graph

183 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
25824cef5b
mermaid: print preview closes automatically after opening #959
Some checks failed
docs-build-deployment / Run deploy (push) Has been cancelled
docs-build / Run build (push) Has been cancelled
2024-12-04 20:10:25 +01:00
Sören Weber
a36e20dad7
theme: changed prettier settings #947 2024-11-27 19:23:52 +01:00
Sören Weber
348702d8c2
theme: apply Prettier config #947 2024-11-15 23:38: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
b896794c80
highlight: remove additional newlines from code if copied from cursor selection #925 2024-10-11 16:16:28 +02:00
Sören Weber
28975d0dbf
mermaid: classDiagram breaks when using <<interface>> #895 2024-08-29 11:36:44 +02:00
Sören Weber
3a0ae52e61
arrownav: avoid rude event handling for form elements #887 2024-08-22 19:25:40 +02:00
Sören Weber
efa0a93fb7
anchor: add option to scroll into view #886 2024-08-22 18:33:27 +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
625ca2d45a
variant: remove themeVariantModifier artifact #831 2024-04-19 22:40: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
bd49d54aa2
scrollbar: another day, another try #808 2024-04-02 20:31:53 +02:00
Sören Weber
0c4bee9adb
nav: scroll to prev/next heading using keyboard shortcut #819 2024-03-29 21:09:03 +01:00
Sören Weber
94ce982039
[theme] rename baseUriFull to absBaseUri #813 2024-03-18 21:58:26 +01:00
Sören Weber
5f40e57d17
[theme] rename baseUri to relBasePath #813 2024-03-18 21:56:21 +01:00
Sören Weber
a3c4d72125
[theme] cleanup distration #813 2024-03-18 21:49:45 +01:00
Sören Weber
bd94fe6b81
generator: fix mermaid zoom after #795 2024-03-17 01:45:14 +01:00
Sören Weber
f1c8e5c79d
mermaid: show reset button after pan #807 2024-03-17 01:09:46 +01:00
Sören Weber
ec5dde6442
openapi: better error message on failed parsing #806 2024-03-17 00:55:37 +01:00
Sören Weber
aa97395407
openapi: yaml support for file:// protocol #806 2024-03-17 00:47:48 +01:00
Sören Weber
b18bca9172
openapi: make it run for file:// protocol #806 2024-03-17 00:27:38 +01:00
Sören Weber
628d6070c0
openapi: there's a small fire buring in hell #804 2024-03-16 21:23:31 +01:00
Sören Weber
d0cc34396d
openapi: next try #804
Hugo's making me angry
2024-03-16 18:40:06 +01:00
Sören Weber
4da0ebbaf8
openapi: finally fixing url sh..tuff? #804 2024-03-16 14:53:15 +01:00
Sören Weber
f76f75b57b
openapi: remove / from the end of baseUri & friends #804 2024-03-16 13:39:30 +01:00
Sören Weber
131b3a9a01
openapi: fix theme switch #804 2024-03-16 12:56:56 +01:00
Sören Weber
dc6524200d
nav: browser back navigation does not jump to the correct position #509 2024-03-16 01:14:42 +01:00
Sören Weber
91752cc6b2
theme: support full page width #752 2024-03-11 23:52:26 +01:00
Sören Weber
74b9aaaeed
mermaid: let it behave like block level element #795 2024-03-11 21:37:55 +01:00
Sören Weber
c557b051f7
clipboard: fix broken style if block code is in table #790 2024-03-04 20:19:43 +01:00
Sören Weber
67e1f2567b
theme: wildspace and typos 2024-01-05 16:35:04 +01:00
Sören Weber
3dc2f9a629
theme: switch color on OS color scheme change #745
- Mermaid
- Chroma
2023-12-03 18:16:04 +01:00
Sören Weber
3df6c1bde7
openapi: switch color on OS color scheme change #745 2023-12-03 15:25:30 +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
27de2fb301
clipboard: fix O(n²) buttons #738 2023-11-29 17:11:04 +01:00
Sören Weber
5d06241911
menu: make swipe handler passive #735 2023-11-28 19:56:16 +01:00
Sören Weber
b49668a203
variant: make chroma style dynamically switchable #679 2023-11-25 14:23:58 +01:00
Sören Weber
1b0e888861
tabs: remove active tab from tab order #726 2023-11-19 00:55:23 +01:00
Sören Weber
32d5fd5d56
mermaid: fix zoom button #725 2023-11-18 23:19:35 +01:00
Sören Weber
fcb255caf7
theme: fix JS errors on hugo --minifiy #724 2023-11-16 23:53:06 +01:00
Sören Weber
6cdb5c1dad
mermaid: show zoom reset button always on mobile #691 2023-10-27 00:30:30 +02:00
Sören Weber
3787cfccc5
mermaid: only show zoom reset button if zoomed #691 2023-10-18 22:43:30 +02:00
Sören Weber
292e261617
mermaid: reset zoom correctly #690 2023-10-18 22:11:33 +02:00
Sören Weber
d2cfca4b2e
theme: fix mobile layout for width=48rem #676
clumsy solution as long as we still support IE11, otherwise we could have used
media query range syntax
2023-10-05 08:51:31 +02:00
Sören Weber
032b2556de
clipboard: fix RTL location of tooltip #661 2023-10-01 13:48:56 +02:00
Sören Weber
67264dba47
clipboard: ignore RTL for code #660 2023-10-01 12:23:50 +02:00
Sören Weber
394ff3f7b2
mermaid: improve zoom UX #659 2023-10-01 12:21:29 +02:00
Sören Weber
5342161fed
mermaid: avoid graph bombing on hugo --minify #656 2023-09-30 21:41:31 +02:00