aboutsummaryrefslogtreecommitdiffstats
path: root/styles/modules.css
diff options
context:
space:
mode:
Diffstat (limited to 'styles/modules.css')
-rw-r--r--styles/modules.css30
1 files changed, 30 insertions, 0 deletions
diff --git a/styles/modules.css b/styles/modules.css
index 4d3d38e..9044455 100644
--- a/styles/modules.css
+++ b/styles/modules.css
@@ -106,6 +106,36 @@
min-width: 22px;
}
+/* ------------------------------------------------------ *
+ * Mail: envelope icon, unread count as text. *
+ * *
+ * The count is content rather than decoration, so it stays *
+ * text like the clock. The state comes from the watcher's *
+ * class: nothing unread is dim, a dead watcher is loud. *
+ * ------------------------------------------------------ */
+
+#custom-mail {
+ background-image: url("@ICONS@/actions/22/mail-unread.svg");
+ background-repeat: no-repeat;
+ background-position: 10px center;
+ background-size: 16px 16px;
+ padding-left: 32px;
+ min-height: 16px;
+}
+
+#custom-mail.empty {
+ color: @main-fg;
+ opacity: 0.45;
+}
+
+#custom-mail.unread {
+ color: @main-fg;
+}
+
+#custom-mail.error {
+ color: @critical;
+}
+
/* ------------------------------------------- *
* Dots: coloured by their scripts, not by CSS. *
* ------------------------------------------- */