aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.scss
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-03-09 10:33:21 +0100
committerRoger Braun <roger@rogerbraun.net>2017-03-09 10:33:21 +0100
commit0eeccb87cef4d137710e3c7fd215b94e45aff3d1 (patch)
tree584085071af589e58f79ffb67051c49b6bd883bb /src/components/notifications/notifications.scss
parent290180a987ecb4949fc877c512f3cff120bcbc70 (diff)
parent64d71b75cfed41d82a99e3e478fc75d5f81f84bd (diff)
Merge branch 'develop' into feature/hash-routed
Diffstat (limited to 'src/components/notifications/notifications.scss')
-rw-r--r--src/components/notifications/notifications.scss28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss
index 5da6d495..6ad7ec1e 100644
--- a/src/components/notifications/notifications.scss
+++ b/src/components/notifications/notifications.scss
@@ -6,19 +6,32 @@
// force the text to stay centered, while keeping
// the button in the right side of the panel heading
position: relative;
- button {
+ .read-button {
position: absolute;
padding: 0.1em 0.3em 0.25em 0.3em;
- right: 0.6em;
+ right: 0.7em;
}
}
- .unseen {
- border-left: 4px solid rgba(255, 48, 16, 0.65);
+ .unseen-count {
+ display: inline-block;
+ background-color: rgba(255, 16, 8, 0.8);
+ text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
+ min-width: 1.3em;
+ border-radius: 1.3em;
+ margin: 0 0.2em 0 -0.4em;
+ color: white;
+ font-size: 0.9em;
+ text-align: center;
+ line-height: 1.3em;
}
.notification {
- padding: 0.4em 0 0 0.7em;
+ // Will have to use pixels here to ensure consistent distance with
+ // pad alone and pad + border, browsers bad at rounding this with em,
+ // they love to give a 1 pixel ghost offset with 0.7em vs 0.3em + 0.4em,
+ // which does not happen with 10px vs 4px + 6px.
+ padding: 0.4em 0 0 10px;
display: flex;
border-bottom: 1px solid silver;
@@ -62,4 +75,9 @@
border: none
}
}
+
+ .unseen {
+ border-left: 4px solid rgba(255, 16, 8, 0.75);
+ padding-left: 6px;
+ }
}