From 7d2e22c64e8e6419cb49f5d973921de43041a7bb Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 12 Jul 2017 15:11:10 +0200 Subject: [PATCH] Resized the hovering links to contain the white-space and made bootstrap work --- slt/css/desktop.css | 22 ++++++++++++++++------ slt/css/visual.css | 2 +- slt/index.php | 5 +++-- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/slt/css/desktop.css b/slt/css/desktop.css index af54b76..b610ad2 100644 --- a/slt/css/desktop.css +++ b/slt/css/desktop.css @@ -20,6 +20,7 @@ body { position: fixed; display: block; width: 100vw; + z-index: 5000; } #topmenu > .nav { @@ -34,11 +35,20 @@ body { } #topmenu > .nav > li { - padding: 10px; display: inline-block; text-align: left; } +#topmenu .nav > li > a { + font-size: x-large; + padding: 10px; +} + +#topmenu .nav > li > a, +#topmenu .nav > li:hover > a { + background-color: inherit; +} + #topmenu > .nav > li:hover { background-color: white; color: black; @@ -49,7 +59,7 @@ body { display: none; z-index: 30; background-color: white; - margin: 10px 20px 10px 0px; + margin: 0px 20px 10px 0px; border: none; padding: 0px; } @@ -59,17 +69,17 @@ body { box-shadow: 3px 5px 5px 2px rgba(0,0,0,0.5); } -#topmenu > .nav > li > .nav-child > li { +#topmenu > .nav > li > .nav-child > li > a { display: block; padding: 10px; } -#topmenu > .nav > li > .nav-child > li:hover { +#topmenu > .nav > li > .nav-child > li:hover > a { background-color: gray; } -#topmenu .nav > li > a { - font-size: x-large; +#topmenu > .nav > li > .nav-child > li:hover > a:hover { + text-decoration: none; } #page { diff --git a/slt/css/visual.css b/slt/css/visual.css index ecb5d7c..7ffbb1e 100644 --- a/slt/css/visual.css +++ b/slt/css/visual.css @@ -32,4 +32,4 @@ table.alternating tr:nth-child(1) { table.alternating tr:nth-child(even) { background-color: lightgray; -} \ No newline at end of file +} diff --git a/slt/index.php b/slt/index.php index 481185f..6ea918d 100644 --- a/slt/index.php +++ b/slt/index.php @@ -12,8 +12,9 @@ $app = JFactory::getApplication(); - - + + +