From 482ac4547adb39bd9dccd35cc5b9fa4b9c3805f2 Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Sat, 9 Jun 2018 22:11:30 +0200 Subject: [PATCH] moved page actions to the top right --- src/Foundation.hs | 2 +- templates/widgets/pageactionprime.lucius | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/Foundation.hs b/src/Foundation.hs index 539115750..4c0797575 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -658,7 +658,7 @@ defaultLinks = -- Define the menu items of the header. , NavbarAside $ MenuItem { menuItemLabel = "Semester" , menuItemIcon = Nothing - , menuItemRoute = CourseListR -- should be TermListR ,,, + , menuItemRoute = TermShowR , menuItemAccessCallback' = return True } , NavbarAside $ MenuItem diff --git a/templates/widgets/pageactionprime.lucius b/templates/widgets/pageactionprime.lucius index 79cf56e78..2b73fb9af 100644 --- a/templates/widgets/pageactionprime.lucius +++ b/templates/widgets/pageactionprime.lucius @@ -1,13 +1,20 @@ .page-nav-prime { - background-color: rgba(200, 200, 200, 0.2); padding: 13px; - margin-top: 30px; + position: absolute; + right: 40px; + top: 40px; } -.page-nav-prime .pagenav__list { +.pagenav__list { display: block; } -.page-nav-prime .pagenav__list-item { + +.pagenav__list-item { display: inline-block; margin-right: 7px; + padding-right: 7px; + + &:not(:last-child) { + border-right: 1px solid var(--color-primary); + } }