diff --git a/templates/default-layout.lucius b/templates/default-layout.lucius index 804ce17ff..fa894fe67 100644 --- a/templates/default-layout.lucius +++ b/templates/default-layout.lucius @@ -177,6 +177,10 @@ h4 { margin: 20px 0; } + a { + text-decoration: underline; + } + p { margin: 10px 0; } @@ -243,7 +247,7 @@ h4 { input[type="submit"], input[type="button"], button, -.btn, a.btn { +.btn { outline: 0; border: 0; box-shadow: 0; @@ -255,10 +259,7 @@ button, font-size: 16px; cursor: pointer; display: inline-block; - - a { - color: white; - } + text-decoration: none; a:hover { color: white; @@ -268,7 +269,6 @@ button, input[type="submit"][disabled], input[type="button"][disabled], button[disabled], -a.btn[disabled], .btn[disabled] { opacity: 0.3; background-color: var(--color-grey); @@ -278,32 +278,28 @@ a.btn[disabled], input[type="submit"]:not([disabled]):hover, input[type="button"]:not([disabled]):hover, button:not([disabled]):hover, -a.btn:not([disabled]):hover, .btn:not([disabled]):hover { background-color: var(--color-light); text-decoration: underline; color: white; } -input.btn-primary, -button.btn-primary, -a.btn.btn-primary, -.btn.btn-primary { +.btn-primary { background-color: var(--color-primary); } -input.btn-info, -button.btn-info, -a.btn.btn-info, -.btn.btn-info { +.btn-info { background-color: var(--color-info) } +.btn--small { + padding: 4px 7px; + background-color: var(--color-darker); +} + input[type="submit"].btn-info:hover, input[type="button"].btn-info:hover, -button.btn-info:hover, -a.btn.btn-info:hover, -.btn.btn-info:hover { +.btn-info:hover { background-color: var(--color-grey) } @@ -311,6 +307,10 @@ a.btn.btn-info:hover, .table { margin: 21px 0; width: 100%; + + a { + text-decoration: none; + } } .table--striped { @@ -407,3 +407,65 @@ a.btn.btn-info:hover, color: var(--color-font); } } + +.table--condensed { + margin: 0; + + .table__th, + .table__td { + padding: 4px 8px; + } +} + +/* UNORDERED LIST */ +.list-ul__item { + // padding: 4px 0; + line-height: 25px; +} + +/* DEFINITION LIST */ +.deflist { + display: grid; + grid-template-columns: 100% ; +} +.deflist__dt, +.deflist__dd { + padding: 4px 0; +} + +.deflist__dt { + font-weight: 600; + font-size: 20px; + + /* bad. avoid this. */ + > a { + font-size: 16px; + } +} + +.deflist__dd { + margin-bottom: 13px; +} + +@media (min-width: 768px) { + + .deflist { + grid-template-columns: repeat(2, max-content); + } + + .deflist__dt, + .deflist__dd { + border-bottom: 1px solid #d3d3d3; + padding: 12px 0; + margin: 0; + + &:last-of-type { + border: 0; + } + } + + .deflist__dt { + padding-right: 24px; + font-size: 16px; + } +} diff --git a/templates/profile.hamlet b/templates/profile.hamlet index fe40d2e3d..094c4aedb 100644 --- a/templates/profile.hamlet +++ b/templates/profile.hamlet @@ -1,77 +1,97 @@
-
- - -
_{MsgName} - #{display userDisplayName} - - _{MsgMatrikelNr} - #{display userMatrikelnummer} - - _{MsgEMail} - #{display userEmail} - - _{MsgIdent} - #{display userIdent} - - _{MsgPlugin} - #{display userPlugin} - $if not $ null admin_rights - - Administrator - -
    - $forall institute <- admin_rights -
  • #{display institute} - $if not $ null lecturer_rights - -
Lehrberechtigt - -
    - $forall institute <- lecturer_rights -
  • #{display institute} - $if not $ null lecture_owner - -
Eigene Kurse - - Korrektor - - Studiengänge - - - -
Abschluss - Studiengang - Studienart - Semester +
+
_{MsgName} +
#{display userDisplayName} +
_{MsgMatrikelNr} +
#{display userMatrikelnummer} +
_{MsgEMail} +
#{display userEmail} +
_{MsgIdent} +
#{display userIdent} +
_{MsgPlugin} +
#{display userPlugin} + $if not $ null admin_rights +
Administrator +
+