0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 13:52:38 +00:00
Commit Graph

273 Commits

Author SHA1 Message Date
Trevor Buckner
d53a271c9f Change to .page and tweak spacing/newlines to match other snippets
All of our "global" style snippets are just set at `.page`, not `.pages`. This still applies globally but is consistent with our current approach.
2024-10-18 10:53:16 -04:00
Trevor Buckner
9d81f50b60 Remove disabled = false
Don't need that tag at all when it's false.
2024-10-18 10:46:59 -04:00
David Bolack
631ef795b7 Fix .tocGlobalH?
Based on OH DEAR GOD THE LAG! discoveries related to the global toggles, these are being moved from a markup tag to a styles tab insert.
2024-10-17 18:30:31 -05:00
Trevor Buckner
f2f06b23fd Disable Global ToC Snippet 2024-10-17 16:42:57 -04:00
Trevor Buckner
a866b45c55 Merge branch 'master' into GlobalToCToggles 2024-09-16 09:45:35 -04:00
Trevor Buckner
63675a46e0 Lint more things 2024-09-16 01:42:21 -04:00
David Bolack
3ad0755c36 Correct ToC Global toggles subsnippets
The snippets incorrectedly reflected their previous incarnation as part of the Styles tab menus.
2024-09-15 18:33:14 -05:00
David Bolack
7c59f56fb2 Explode tocInclude and tocExclude snippet menus to match tocGlobal and tocDepth pattern. 2024-09-10 20:22:50 -05:00
David Bolack
bc6b4e3bfc Move ToC Includes Menu from styles to Table of Contents subsnippet
Create additional subsnippets for .tocInclude*, .tocExclude*, and move the existing depth entries to a subsnippet.
2024-09-10 14:18:36 -05:00
David Bolack
5a2e071879 Merge branch 'master' into GlobalToCToggles 2024-09-10 14:12:04 -05:00
David Bolack
59f27197f6 A few small cleanups for ToC
Explicitly define --TOC as included in :root so there is no doubt the default value.
Rearrange Block ToC inclusion classes for organization and comments

Add block level, single Header class exclusion convienance classes.
2024-09-10 13:34:47 -05:00
David Bolack
f8d170be87 Document level toggles need to look at pages, not page. 2024-09-10 12:15:12 -05:00
David Bolack
ed376f3154 Oy, what a typo. 2024-09-10 11:25:06 -05:00
David Bolack
930974f66d Merge branch 'GlobalToCToggles' of github.com:dbolack-ab/homebrewery into GlobalToCToggles 2024-09-10 11:11:12 -05:00
Trevor Buckner
5c906ee722 Logic rewrite
Realized we don't need to build a whole descendency tree of all the headers. We can just track the current indendation level and what headers are at each indent. This removes about 1/4 of the code, and lets us put all of the exit conditions (no title, no showPage, ToCExclude) in one place to easily see what is being excluded and what not.
2024-09-09 23:16:56 -04:00
David Bolack
3629292ebb Remove 2024-09-09 17:09:24 -05:00
David Bolack
3b4dd7dd61 Merge branch 'actualPageNumber' of github.com:dbolack-ab/homebrewery into actualPageNumber 2024-09-08 15:27:43 -05:00
David Bolack
4bc957159d Move a couple of variables back out of the global space because that was bad. 2024-09-08 15:23:03 -05:00
Trevor Buckner
7881d4b4a2 Small logic cleanup and renaming 2024-09-08 16:22:58 -04:00
David Bolack
758c2799a1 That was the wrong way. Lets try this ugly fix. 2024-09-07 20:40:29 -05:00
David Bolack
b0dffc6df1 Drop empty entries 2024-09-07 20:35:43 -05:00
David Bolack
6ea724bb16 Start skipping .skipCount in ToC 2024-09-07 20:30:16 -05:00
David Bolack
b58688bd62 Stop comparing lengths, dude. 2024-09-07 20:19:56 -05:00
David Bolack
0f8461ced6 Not a collection. 2024-09-07 20:16:16 -05:00
David Bolack
3b0028da69 Move some of thos variables back. 2024-09-07 20:12:05 -05:00
David Bolack
049b64cd41 Remove unneeded variable 2024-09-07 19:54:52 -05:00
David Bolack
dcc7a22272 First pass at code fixes.
Move functions out of function
Use querySelector instead of querySelectorAll
Flip skip and reset counter order.
2024-09-07 19:47:16 -05:00
Trevor Buckner
f0a8bf379a Fix non-uniform spacing/indenting 2024-09-06 16:43:44 -04:00
David Bolack
2a366c3053 Update ToC Style snippets for better specificity 2024-08-29 17:51:59 -05:00
David Bolack
de8bd67e07 Add toggles for global Toc changes. 2024-08-29 17:44:45 -05:00
David Bolack
51f758bf47 Rework page counters for skipping and resets.
Solves #513

This adds the .skipCounting and .resetCounting classes for causing
a page number to not be incremented or to reset the number at 1.

The ToC Snippet is corrected to match the displayed page numbers
while correctly tracking the page ids.
2024-08-15 17:15:49 -05:00
Víctor Losada Hernández
4337c67f69 Merge branch 'master' into Issue_2563 2024-08-01 23:37:43 +02:00
Trevor Buckner
84d0d15c5a Merge branch 'master' into fix-background-monster-in-safari 2024-08-01 17:07:18 -04:00
Trevor Buckner
b185fe8e35 Move Monster block changes under main monster block stuff 2024-08-01 17:06:18 -04:00
David Bolack
342963dae6 Merge branch 'master' into Issue_2563 2024-08-01 10:33:34 -05:00
Trevor Buckner
a4f17259e1 Merge branch 'master' into Issue_2688 2024-08-01 00:58:06 -04:00
Trevor Buckner
d797333b97 Merge branch 'master' into fixInkFriendlySnippet-#3563 2024-08-01 00:48:14 -04:00
Trevor Buckner
c77395149b Tweak shadow values to match 5ePHB
box-shadows are a little smaller than drop-shadow. This just uses the same values we already found previously so the shadow size is not affected.
2024-08-01 00:46:08 -04:00
G.Ambatte
8b68f24135 Merge branch 'master' into fixInkFriendlySnippet-#3563 2024-08-01 12:43:20 +12:00
G.Ambatte
e32ae9a792 Merge branch 'master' into fixToCUpperCasing-#3572 2024-08-01 12:42:08 +12:00
David Bolack
29bbf3fef9 Merge branch 'master' into Issue_2563 2024-07-30 10:59:43 -05:00
G.Ambatte
f830104531 Use textContent instead of innerText 2024-07-17 13:59:00 +12:00
Trevor Buckner
27aebf0e3b Give 5ePHB and Journal themes a baseTheme of "Blank" 2024-07-10 17:15:45 -04:00
G.Ambatte
7b9bd70554 Change filter to box-shadow 2024-07-08 19:57:21 +00:00
David Bolack
a413dc8d4f Merge branch 'master' into Issue_2563 2024-07-08 10:14:06 -05:00
David Bolack
74ee09397e Merge branch 'master' into Issue_2688 2024-07-08 10:08:54 -05:00
G.Ambatte
7c60fbe655 Remove page + 1 from ToC generator snippet 2024-07-02 20:46:01 +12:00
Trevor Buckner
9886200fa9 Fix partCover H1 inclusion rule 2024-06-28 09:39:49 -04:00
David Bolack
8a10fac81e Update Style based on suggestions. 2024-06-19 19:16:19 -05:00
Víctor Losada Hernández
65d6eb11dd suggested changes 2024-06-10 22:09:25 +02:00