From 0d2c5696c5c419fe4916c2e91bdd05f002cc501f Mon Sep 17 00:00:00 2001 From: Felix Hamann Date: Thu, 7 Jun 2018 11:06:23 +0200 Subject: [PATCH] slight refinments for inputs and --- src/Foundation.hs | 2 +- static/css/tabber.css | 2 -- templates/course.hamlet | 12 +++--------- templates/default-layout.lucius | 1 - templates/standalone/inputs.lucius | 24 ++++++++---------------- 5 files changed, 12 insertions(+), 29 deletions(-) diff --git a/src/Foundation.hs b/src/Foundation.hs index 9373de9f8..70c4327a5 100644 --- a/src/Foundation.hs +++ b/src/Foundation.hs @@ -467,7 +467,7 @@ instance Yesod UniWorX where $(widgetFile "standalone/showHide") $(widgetFile "standalone/inputs") withUrlRenderer $(hamletFile "templates/default-layout-wrapper.hamlet") - + -- The page to be redirected to when authentication is required. authRoute _ = Just $ AuthR LoginR diff --git a/static/css/tabber.css b/static/css/tabber.css index f768f6f24..6f823b410 100644 --- a/static/css/tabber.css +++ b/static/css/tabber.css @@ -1,8 +1,6 @@ .tab-group { - /* box-shadow: 0 0 0 18px white, 0 0 0 20px #b3b7c1; */ border-top: 2px solid #dcdcdc; padding-top: 30px; - margin-top: 40px; } .tab-group-openers { diff --git a/templates/course.hamlet b/templates/course.hamlet index 7d50e73ec..f1db6a0a7 100644 --- a/templates/course.hamlet +++ b/templates/course.hamlet @@ -68,11 +68,7 @@ Do 18.04.18 NotGraded -   -   -   -   - + Neues Übungsblatt anlegen

Übungsgruppen @@ -87,16 +83,14 @@ Anmeldung bis - - Gruppe 1 + Gruppe 1 Montag 10:00 - 12:00 N/A 2/10 Tutor1 Tutoren Do 21.02.2019, 19:00 - - Gruppe 2 + Gruppe 2 Montag 12:00 - 14:00 N/A 0/10 diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index abfcc19a2..16a7599c0 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -244,4 +244,3 @@ a.btn.btn-info:hover, .alert-debug { background-color: rgb(240, 30, 240); } - diff --git a/templates/standalone/inputs.lucius b/templates/standalone/inputs.lucius index 1ef824d13..71402a4b5 100644 --- a/templates/standalone/inputs.lucius +++ b/templates/standalone/inputs.lucius @@ -44,26 +44,12 @@ input[type="password"], input[type="url"], input[type="number"], input[type="email"] { - /* - background-color: rgba(0, 0, 0, 0.05); - padding: 7px 3px 7px; - outline: 0; - border: 0; - border-bottom: 2px solid var(--darkbase); - box-shadow: 0 2px 13px rgba(0, 0, 0, 0.05); - color: var(--fontbase); - transition: all .1s; - font-size: 16px; - min-width: 400px; - */ - - /* from bulma */ + /* from bulma.css */ background-color: #fff; border-color: #dbdbdb; color: #363636; - box-shadow: inset 0 1px 2px rgba(10,10,10,.1); + box-shadow: inset 0 2px 3px 1px rgba(50,50,50,.1); min-width: 400px; - width: 100%; -webkit-appearance: none; align-items: center; border: 1px solid transparent; @@ -83,6 +69,12 @@ input[type="email"] { .form-group--required { + label::before { + content: '*'; + position: absolute; + left: -14px; + } + input, textarea { border-bottom-color: var(--lighterbase); }