diff --git a/public_html/css/hpr.css b/public_html/css/hpr.css index cb3c32b..6b2a3e3 100644 --- a/public_html/css/hpr.css +++ b/public_html/css/hpr.css @@ -47,6 +47,7 @@ https://creativecommons.org/publicdomain/ --link-secondary: #a8f8ff; --link-secondary-hover: #f9e9c2; --link-title-color: #00003e; + --link-navigation-hover: #030303; --primary-content-line-height: 1.45; --font-family-hpr: Verdana, Arial, Helvetica, sans-serif; /* 1em/1.5 OpenDyslexic, */; @@ -635,7 +636,7 @@ fieldset > table td input[type="radio"] { margin-bottom: 0.5rem; } .no-css { - display: none; + display: none !important; } #tags .date { margin:0; @@ -730,6 +731,57 @@ fieldset > table td input[type="radio"] { clip: rect(0, 0, 0, 0); border: 0; } +nav.episodes { + color: var(--background-primary); + font-size: 0.9em; + display: flex; + flex-direction: row; + justify-content: space-around; + max-width: 100vw; +} +nav.episodes span { + color: var(--text-primary); + display: inline-block; + text-align: center; + border: solid thin var(--text-primary); +} +nav.episodes span:nth-child(-n+2), +nav.episodes span:nth-child(-n+2) a { + border-top-left-radius: 2rem; + border-bottom-left-radius: 2rem; +} +nav.episodes span:nth-child(n+3), +nav.episodes span:nth-child(n+3) a { + border-top-right-radius: 2rem; + border-bottom-right-radius: 2rem; +} +nav.episodes span.no-link, +nav.episodes span a { + padding: 0.3em 0.4em 0.1em 0.4em; + display: inline-block; + min-width: 4.4em; + min-height: 1.5em; +} +nav.episodes span a:hover { + background-color: var(--link-primary-hover); + color: var(--link-secondary-hover); +} +nav.episodes svg { + margin: 0 0.2rem; + height: 0.85em; + max-width: 13px; + vertical-align: middle; +} +nav.episodes span a svg #arrow, +nav.episodes span a svg #bar { + stroke: var(--link-primary); + fill: var(--link-primary); +} +nav.episodes span a:hover svg #arrow, +nav.episodes span a:hover svg #bar { + stroke: var(--link-secondary-hover); + fill: var(--link-secondary-hover); +} @media (min-width: 600px) { body > header .bounding-box { justify-content: space-between; @@ -826,6 +878,9 @@ fieldset > table td input[type="radio"] { #host { gap: 1rem; } + nav.episodes { + display: inline-block; + } } @media (min-width: 900px) { #podcast_lane > .lane, @@ -876,4 +931,18 @@ fieldset > table td input[type="radio"] { #hosts td:nth-child(-n+2) { color: var(--text-primary); } + nav.episodes span a:hover { + background-color: var(--link-primary-hover); + color: var(--link-navigation-hover); + } + nav.episodes span svg #arrow, + nav.episodes span svg #bar { + stroke: var(--text-primary); + fill: var(--text-primary); + } + nav.episodes span a:hover svg #arrow, + nav.episodes span a:hover svg #bar { + stroke: var(--link-navigation-hover); + fill: var(--link-navigation-hover); + } } diff --git a/public_html/images/icons/arrow-first.svg b/public_html/images/icons/arrow-first.svg new file mode 100644 index 0000000..4d67727 --- /dev/null +++ b/public_html/images/icons/arrow-first.svg @@ -0,0 +1,24 @@ + + + + + + diff --git a/public_html/images/icons/arrow-last.svg b/public_html/images/icons/arrow-last.svg new file mode 100644 index 0000000..00a3f28 --- /dev/null +++ b/public_html/images/icons/arrow-last.svg @@ -0,0 +1,25 @@ + + + + + + diff --git a/public_html/images/icons/arrow-next.svg b/public_html/images/icons/arrow-next.svg new file mode 100644 index 0000000..e5ca5f9 --- /dev/null +++ b/public_html/images/icons/arrow-next.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/public_html/images/icons/arrow-previous.svg b/public_html/images/icons/arrow-previous.svg new file mode 100644 index 0000000..6fe8101 --- /dev/null +++ b/public_html/images/icons/arrow-previous.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/site.cfg b/site.cfg index 8ab7af0..16904de 100644 --- a/site.cfg +++ b/site.cfg @@ -10,7 +10,7 @@ driver: dbi:SQLite:hpr.db # Configure the location of the templates and the generated HTML [app_paths] -templates_path: ./templates +templates_path: ./templates:./public_html/images/icons output_path: ./public_html # Configure the root template page which pulls in the navigation and diff --git a/templates/shared-utils.tpl.html b/templates/shared-utils.tpl.html index 4d9a2c5..5ff3660 100644 --- a/templates/shared-utils.tpl.html +++ b/templates/shared-utils.tpl.html @@ -117,16 +117,20 @@ -<< First, + + + + +