From 47680f07df468d763cfdfc4a8e15168d0f32c574 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 30 May 2023 17:17:17 -0400 Subject: [PATCH] Change to nested lists, shrink font to match PHB --- themes/V3/5ePHB/snippets/index.gen.js | 56 +++++++++++++++++++++------ themes/V3/5ePHB/style.less | 21 ++++++---- 2 files changed, 57 insertions(+), 20 deletions(-) diff --git a/themes/V3/5ePHB/snippets/index.gen.js b/themes/V3/5ePHB/snippets/index.gen.js index 985d5116f..dff6467ac 100644 --- a/themes/V3/5ePHB/snippets/index.gen.js +++ b/themes/V3/5ePHB/snippets/index.gen.js @@ -4,7 +4,7 @@ module.exports = () => { return dedent` {{index,wide,columns:5; ##### Index - - Ankh-Morpork + - Ankhesh-Bort - city map, 7 - city watch, 12 - guilds, 19 @@ -35,19 +35,51 @@ module.exports = () => { - types of inns, 9 - inn amenities, 18 - Jokes - - types of jokes,11-12 - - joke delivery,25 + - types of jokes, 11-12 + - joke delivery, 25 - Knives - - types of knives,16-17 - - knife skills,22-23 - - knife fights,28-29 + - types of knives, 16-17 + - knife skills, 22-23 + - knife fights, 28-29 - Luggage - - appearance,10 - - personality,13 - - abilities,23 + - appearance, 10 + - personality, 13 + - abilities, 23 - Magic - - types of magic,15 - - magic rules,24 - - magic mishaps,28 + - types of magic, 15 + - magic rules, 24 + - magic mishaps, 28 + - Socks + - types of socks, 9 + - sock-related magic (yes, really), 15 + - sock-related quests (no, really), 26 + - Trolls + - appearance and biology, 11 + - culture and language, 18 + - troll rights and activism, 31 + - Unknown University + - history and architecture, 12 + - faculty and staff, 20 + - courses and exams, 33 + - Vampires + - types and origins, 13 + - vampiric powers and weaknesses, 21 + - vampiric etiquette and politics, 34 + - Witches + - types and traditions, 14 + - witchcraft and headology, 22 + - witch trials and tribulations, 35 + - Xylophones + - musical instruments or weapons?, 15 + - xylophone-related magic and lore, 23 + - xylophone-related quests and puzzles, 36 + - Yetis + - appearance and behavior, 16 + - yeti philosophy and religion, 24 + - yeti encounters and stories, 37 + - Zombies + - types and causes, 17 + - zombie rights and duties, 25 + - zombie survival and prevention, 38 }}`; }; \ No newline at end of file diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index f09d5a024..c6e87c40a 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -1111,16 +1111,21 @@ break-inside : avoid; // *****************************/ .page { .index { - font-size:11px; + font-size : 0.218cm; + + ul ul { + margin : 0; + } ul { - margin-bottom: .5em; - padding-left: 1em; - text-indent: -1em; - list-style-type: none; - -webkit-column-break-inside: auto; - page-break-inside: auto; - break-inside: auto; + padding-left : 0; + text-indent : 0; + list-style-type : none; + } + + & > ul > li { + text-indent : -1.5em; + padding-left : 1.5em; } } }