From 1d0630dde9df61ecdeaf1642f00d9ea5880a9159 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 13 Nov 2020 13:23:29 -0500 Subject: Design work for mailbox subscriptions --- themes/alps/assets/style.css | 70 ++++++++++++++++++++++++++++------ themes/alps/mailbox.html | 2 +- themes/alps/util.html | 89 +++++++++++++++++++++++++++++--------------- 3 files changed, 117 insertions(+), 44 deletions(-) (limited to 'themes/alps') diff --git a/themes/alps/assets/style.css b/themes/alps/assets/style.css index 830506f..27d8463 100644 --- a/themes/alps/assets/style.css +++ b/themes/alps/assets/style.css @@ -127,10 +127,60 @@ footer { text-align: right; } aside { flex: 0 0 180px; } -aside a, -aside .noselect { width: 100%; display: block; padding: 0.4rem 0 0.4rem 0.5rem; } -aside a.active { font-weight: bold; color: black; text-decoration: none; } + aside img { display: block; } + +aside ul { + list-style: none; + margin: 0; + padding: 0; +} + +aside li { + width: 100%; + display: flex; + padding: 0.4rem 0 0.4rem 0.5rem; +} + +aside li a { + flex-grow: 1; +} + +aside .active { + font-weight: bold; + color: black; + text-decoration: none; +} + +aside .active, +aside .new.active { + background-color: #f6f6f6; +} + +aside .new.active { + color: #008d47; +} + +aside button { + margin: 0; + cursor: pointer; + text-decoration: none; + text-align: center; + display: inline-block; + padding: 0 0.3rem; + margin-right: 0.3rem; + border: none; + background: transparent; +} + +aside .active button:hover { + background: white; +} + +aside button:hover { + background: #f6f6f6; +} + main { flex: 1 100%; display: flex; @@ -151,15 +201,6 @@ main.login > section { padding: 1rem; } -aside a.active, -aside a.new.active { - background-color: #f6f6f6; -} - -aside a.new.active { - color: #008d47; -} - aside a.new.active, main.create-update { background-color: #f6fff6; @@ -455,6 +496,11 @@ main.create-update .event-date input { border: none; color: #BFA300; font-size: 13pt; + background: transparent; +} + +.message-list-unread.message-list-flags .flag-button:hover { + background: #f8f8f8; } .message-list-subject a { color: #77c; } diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html index ac09a7d..9a4c9ce 100644 --- a/themes/alps/mailbox.html +++ b/themes/alps/mailbox.html @@ -5,7 +5,7 @@
{{ template "aside" . }}
-
+
{{ template "messages-header.html" . }} diff --git a/themes/alps/util.html b/themes/alps/util.html index 93b8454..81c7061 100644 --- a/themes/alps/util.html +++ b/themes/alps/util.html @@ -1,42 +1,69 @@ {{ define "mbox-link" }} {{ if not (.HasAttr "\\Noselect") }} - - {{- if eq .Name "INBOX" -}} - Inbox - {{- else -}} - {{ .Name }} - {{- end -}} - {{- if .HasAttr "\\HasChildren" }}/{{ end }} - +
  • + + {{- if eq .Name "INBOX" -}} + Inbox + {{- else -}} + {{ .Name }} + {{- end -}} + {{- if .HasAttr "\\HasChildren" }}/{{ end }} + + + +
  • {{ else }} - +
  • {{.Name}}{{- if .HasAttr "\\HasChildren" }}/{{ end }} - +
  • {{ end }} {{ end }} {{ define "aside" }} +
    {{ end }} -- cgit v1.2.3