From 5df70ad45d346313e08d0d581596d8bf08c54aa9 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sat, 26 Jan 2019 12:07:13 +0100 Subject: [PATCH] bright asidenav that spans whole height --- templates/default-layout.hamlet | 8 +- templates/default-layout.lucius | 24 +++-- templates/widgets/asidenav.hamlet | 5 ++ templates/widgets/asidenav.lucius | 107 +++++++++++++++++++++-- templates/widgets/breadcrumbs.lucius | 14 +-- templates/widgets/navbar.hamlet | 4 - templates/widgets/navbar.lucius | 101 +++------------------ templates/widgets/pageactionprime.lucius | 2 +- 8 files changed, 131 insertions(+), 134 deletions(-) diff --git a/templates/default-layout.hamlet b/templates/default-layout.hamlet index f9885fac9..c9c6c69e7 100644 --- a/templates/default-layout.hamlet +++ b/templates/default-layout.hamlet @@ -1,13 +1,13 @@ +$if not isModal + +^{asidenav} + $if not isModal ^{navbar}
- $if not isModal - - ^{asidenav} -
$if not isModal diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index c5e76804c..74753907e 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -7,7 +7,8 @@ --color-lightblack: #1A2A36; --color-lightwhite: #fcfffa; --color-grey: #B1B5C0; - --color-grey-light: #f4f5f6; + --color-grey-light: #efefef; + --color-grey-medium: #9A989E; --color-font: #34303a; --color-fontsec: #5b5861; @@ -45,7 +46,8 @@ body { body { /* DEFAULT LMU THEME */ - --color-primary: #0a9342; + --color-lmu-green: #0a9342; + --color-primary: var(--color-lmu-green); --color-light: #31cc72; --color-lighter: #35db7a; --color-dark: #087536; @@ -160,15 +162,12 @@ h4 { .main { position: relative; min-height: calc(100vh - var(--header-height)); - padding: 20px; - overflow: hidden; } @media (max-width: 768px) { .main { min-height: calc(100vh - var(--header-height-collapsed)); - padding: 10px; } } @@ -178,6 +177,7 @@ h4 { transition: padding-left .2s ease-out; max-width: 1200px; margin: 0 auto; + margin-top: var(--header-height); > .container { margin: 20px 0; @@ -198,16 +198,15 @@ h4 { .logged-in { .main__content { - margin: 0; max-width: none; - padding-left: 0; + margin-left: 0; } } @media (min-width: 425px) { .logged-in:not(.modal) { .main__content { - padding-left: calc(var(--asidenav-width-md, 50px) + 10px); + margin-left: var(--asidenav-width-md, 50px); } } } @@ -215,7 +214,7 @@ h4 { @media (min-width: 769px) { .logged-in:not(.modal) { .main__content { - padding-left: calc(var(--asidenav-width-lg, 20%) + 20px); + margin-left: var(--asidenav-width-lg, 20%); } } } @@ -223,14 +222,13 @@ h4 { @media (min-width: 1200px) { .logged-in:not(.modal) { .main__content { - padding-left: calc(var(--asidenav-width-xl, 250px) + 20px); + margin-left: var(--asidenav-width-xl, 250px); } } } -/* sepcial case for breadcrumbs */ -.breadcrumbs__container + .main__content-body { - padding-top: 0; +.main__content-body { + padding: 40px; } .pseudo-focus { diff --git a/templates/widgets/asidenav.hamlet b/templates/widgets/asidenav.hamlet index fe8a7e8f5..ac8a1de6b 100644 --- a/templates/widgets/asidenav.hamlet +++ b/templates/widgets/asidenav.hamlet @@ -1,5 +1,10 @@ $newline never