From a0fb4313c91c4b451ee6248275976894ed8c7073 Mon Sep 17 00:00:00 2001 From: rourien <32525257+rourien@users.noreply.github.com> Date: Wed, 24 Aug 2022 22:11:43 -0600 Subject: [PATCH 1/4] Make book table of contents prettier Changes the way the table of contents looks. The two biggest parts are hiding the bullets in the list, making each link black and hiding the link underline. This makes them look more like buttons than web links. The #dialogToc changes resize the table of contents based on the length of the list and the length of the longest chapter name rather than have the table of contents take up most of the screen for a short and small list. The link text size was also increased from 92% to 120%. --- src/plugins/bookPlayer/style.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/plugins/bookPlayer/style.scss b/src/plugins/bookPlayer/style.scss index c53f6a3a81..6f5e0e3341 100644 --- a/src/plugins/bookPlayer/style.scss +++ b/src/plugins/bookPlayer/style.scss @@ -42,6 +42,12 @@ #dialogToc { background-color: white; + height: fit-content; + width: fit-content; + max-height: 80%; + max-width: 60%; + padding-right: 50px; + padding-bottom: 15px; .bookplayerButtonIcon { color: black; @@ -49,5 +55,18 @@ .toc li { margin-bottom: 5px; + + list-style-type: none; + font-size: 120%; + + a:link { + color: #black; + text-decoration: none; + + a:active, + a:hover { + color: #00a4dc; + text-decoration: none; + } } } From 8791d32ed2ff96861d19f967a2ace2d3641294ed Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 16 Sep 2022 10:03:35 -0400 Subject: [PATCH 2/4] Fix missing curly brace --- src/plugins/bookPlayer/style.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/bookPlayer/style.scss b/src/plugins/bookPlayer/style.scss index 6f5e0e3341..e7f21618b3 100644 --- a/src/plugins/bookPlayer/style.scss +++ b/src/plugins/bookPlayer/style.scss @@ -62,6 +62,7 @@ a:link { color: #black; text-decoration: none; + } a:active, a:hover { From fd5033a8b6afdbf230f3fca1f3021feaa3fe2978 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 16 Sep 2022 10:06:36 -0400 Subject: [PATCH 3/4] Fix link text invalid color value --- src/plugins/bookPlayer/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/bookPlayer/style.scss b/src/plugins/bookPlayer/style.scss index e7f21618b3..dd53420093 100644 --- a/src/plugins/bookPlayer/style.scss +++ b/src/plugins/bookPlayer/style.scss @@ -60,7 +60,7 @@ font-size: 120%; a:link { - color: #black; + color: #000000; text-decoration: none; } From 02a0aa911cc3332cd5b038aa0916d640294dc4f0 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 16 Sep 2022 10:18:17 -0400 Subject: [PATCH 4/4] Fix invalid link color value again --- src/plugins/bookPlayer/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/bookPlayer/style.scss b/src/plugins/bookPlayer/style.scss index dd53420093..5348e9d3c6 100644 --- a/src/plugins/bookPlayer/style.scss +++ b/src/plugins/bookPlayer/style.scss @@ -60,7 +60,7 @@ font-size: 120%; a:link { - color: #000000; + color: #000; text-decoration: none; }