From 25f5fb35806a4297c6f435431c59a2aefe0a227c Mon Sep 17 00:00:00 2001 From: jimmaclean <33517841+jimmaclean@users.noreply.github.com> Date: Mon, 2 Mar 2020 11:28:31 +0000 Subject: [PATCH 01/16] Update styles.css - line up with nav items left edge with rest of the content - Good practice to define media queries and styles 'mobile first' - Remove underline hover on current link - display `block` things are not `list-item` so have no bullet/counter - borders are best defined in px, to avoid extremely thin lines on high dpi devices (not essential) --- css/styles.css | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/css/styles.css b/css/styles.css index bcfcff8..0bc453f 100644 --- a/css/styles.css +++ b/css/styles.css @@ -4,31 +4,30 @@ justify-content: center; flex-flow: column wrap; align-content: stretch; - max-height: 13em; } -@media (max-width: 1000px) { +@media (min-width: 1000px) { #pages ul { - max-height: none; + max-height: 13em; } } #pages ul li { - margin: 0.2em 1em; + margin: 0.2em 1em 0.2em 0; min-width: 20em; - display: block; + list-style: none; flex: 1 1 0; - border-bottom: 0.1em rgba(0,0,0,0) solid; - padding-bottom: 0.1em; + border-bottom: 1px transparent solid; + padding-bottom: 1px; } #pages ul li.current { - list-style: disc; - border-bottom-color: black; + border-bottom-color: inherit; } #pages ul li.current a { color: inherit; + text-decoration: none; } body > div { From 21ffda32dfe02a120d050721aaea1050b3b96910 Mon Sep 17 00:00:00 2001 From: jimmaclean <33517841+jimmaclean@users.noreply.github.com> Date: Mon, 2 Mar 2020 15:15:18 +0000 Subject: [PATCH 02/16] zoom level on on mobile This is needed for the page to be as wide as the viewport instead of trying to scale the page down to fit the viewport. --- templates/layout.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/layout.html.twig b/templates/layout.html.twig index a462989..75f1ea3 100644 --- a/templates/layout.html.twig +++ b/templates/layout.html.twig @@ -3,6 +3,8 @@
+ +