From f2c84ee322431aaf9cce469c66c9d9aa619bc3fe Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 10 Jul 2022 21:13:43 +0200 Subject: [PATCH] Improve table of contents menu and style sheet. Major changes to the macros and the .css files which should improve the look and feel of the pages a bit. Most notable is the increased font size and the new layout of the table of contents dropdown menu. No content changes. --- include/css/aple.css | 64 ++++++++++++++++++++++++------------- include/m4/aple.m4 | 76 ++++++++++++++++++++++---------------------- 2 files changed, 80 insertions(+), 60 deletions(-) diff --git a/include/css/aple.css b/include/css/aple.css index e422518..da4c70c 100644 --- a/include/css/aple.css +++ b/include/css/aple.css @@ -1,26 +1,47 @@ body { - background-color: #aacccc; + color: #000; + background-color: #acc; text-align: justify; padding: 0px 30px 0px 25px; - + font-size: 110%; } h1 { - font-size: 150%; + font-size: 160%; +} + +h2 { + font-size: 130%; +} + +h3 { + font-size: 110%; +} + +p { + padding: 0px 0px 0px 0px; } + .logo { border: 0px; - padding: 0em 20px 0px 0px; - margin-left: 0px; - margin-right: 0px; - border: 0px; } table { - margin-left: auto; + margin-left: 0px; margin-right: auto; border: none; + padding: 10px 0px 10px 0px; +} + +table.menu { + padding: none; + border: 0px; + border-spacing: 0px; +} + +table.logo { + margin-left: 0px; } td { @@ -28,6 +49,15 @@ td { padding: 5px; } +td.logo { + border: none; +} + +td.menu { + border: none; + vertical-align: top; +} + svg { float: left; } @@ -38,14 +68,9 @@ svg { border: 0px; } -#overview_heading { - text-align: center; - font-weight: bold; -} - -#overview_text { +.overview { margin: 1% 5% 1% 5%; - font-size: 95%; + font-size: 90%; } div.solution { @@ -69,10 +94,6 @@ dt { text-decoration: underline; } -#chapter_list { - font-size: 120%; -} - .dropdown { position: fixed; top: 0; /* Position the navbar at the top of the page */ @@ -82,11 +103,10 @@ dt { .dropdown-content { display: none; background-color: #8aa; - min-width: 300px; - padding: 12px 12px; - font-size: 75%; + padding: 6px 25px 0px 30px; } .dropdown:hover .dropdown-content { display: block; + font-size: 80%; } diff --git a/include/m4/aple.m4 b/include/m4/aple.m4 index c209513..7b23385 100644 --- a/include/m4/aple.m4 +++ b/include/m4/aple.m4 @@ -13,22 +13,18 @@ define(«REFERENCE», [«REMOVE_NEWLINE(«$2»)»](««#»»«LOCAL_LINK_NAME(« define(«XREFERENCE», «[$2]»«($1)») define(«EMPH», ««_»REMOVE_NEWLINE(«$1»)«_»») define(«CMD», «`REMOVE_NEWLINE(«$1»)`») -define(«SECTION», « -divert(«0») -
  • $1
  • -divert(«2») - -») -define(«SUBSECTION», « -») +define(«SECTION», « divert(«0») $1
    divert(«2»)

    $1

    ») define(«SUBSECTION», +« ») define(«OVERVIEW», « -
    -ifelse(«$2», «», «Overview», «$2») -
    -
    -$1 +
    +
    + ifelse(«$2», «», «Overview», «$2») +
    + $1
    ») define(«EXERCISES», «

    Exercises

    ») @@ -63,7 +59,7 @@ define(«HEADER», « -