mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-08 19:56:39 +00:00
Update menubar styles.tid
Also here: breakpoint-plus-one and sidebarbreakpoint-minus-one become functions and we use subpixels for the media queries like stated here: https://getbootstrap.com/docs/5.0/layout/breakpoints/
This commit is contained in:
parent
66975102d3
commit
23a03e0965
@ -1,13 +1,9 @@
|
||||
title: $:/plugins/tiddlywiki/menubar/styles
|
||||
tags: [[$:/tags/Stylesheet]]
|
||||
|
||||
\define breakpoint-plus-one()
|
||||
<$text text={{{ [{$:/config/plugins/menubar/breakpoint}removesuffix[px]add[1]addsuffix[px]] ~[{$:/config/plugins/menubar/breakpoint}] }}} />
|
||||
\end
|
||||
\function breakpoint-plus-one() [{$:/config/plugins/menubar/breakpoint}removesuffix[px]add[0.02]addsuffix[px]] ~[{$:/config/plugins/menubar/breakpoint}]
|
||||
|
||||
\define sidebarbreakpoint-minus-one()
|
||||
<$text text={{{ [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] }}} />
|
||||
\end
|
||||
\function sidebarbreakpoint-minus-one() [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[0.02]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}]
|
||||
|
||||
\define set-sidebar-scrollable-top-if-hamburger()
|
||||
<$list filter="[all[tiddlers+shadows]tag[$:/tags/MenuBar]] -[all[tiddlers+shadows]prefix[$:/config/plugins/menubar/MenuItems/Visibility/]regexp:text[hide]removeprefix[$:/config/plugins/menubar/MenuItems/Visibility/]] -[all[tiddlers+shadows]tag[$:/tags/TopLeftBar]limit[1]then[]else[$:/plugins/tiddlywiki/menubar/items/topleftbar]] -[all[tiddlers+shadows]tag[$:/tags/TopRightBar]limit[1]then[$:/plugins/tiddlywiki/menubar/items/toprightbar]] -$:/plugins/tiddlywiki/menubar/items/hamburger +[limit[1]]">
|
||||
|
Loading…
x
Reference in New Issue
Block a user