From 4d1183cc1f0909f3d0aa459d1a38b6548bccfba2 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 27 Feb 2017 19:21:40 +0200 Subject: Fix the very visible padding offset in unread notification caused by the border. --- src/components/notifications/notifications.scss | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/components/notifications') diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 5da6d495..100349eb 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -13,12 +13,12 @@ } } - .unseen { - border-left: 4px solid rgba(255, 48, 16, 0.65); - } - .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 +62,9 @@ border: none } } + + .unseen { + border-left: 4px solid rgba(255, 48, 16, 0.65); + padding-left: 6px; + } } -- cgit v1.2.3-70-g09d2 From a4ebf44f242fd877506dcdadf035840168e16364 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 6 Mar 2017 23:51:39 +0200 Subject: Fix overlapping styles in timeline and notifications that screwed up user-card. --- src/components/notifications/notifications.scss | 2 +- src/components/notifications/notifications.vue | 2 +- src/components/timeline/timeline.vue | 17 +++++++++-------- 3 files changed, 11 insertions(+), 10 deletions(-) (limited to 'src/components/notifications') diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 1378e730..8e3e0721 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -6,7 +6,7 @@ // 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.7em; diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 180b86a1..e0dcb12d 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -3,7 +3,7 @@
Notifications ({{unseenCount}}) - +
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 8a302e18..11280a08 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -1,13 +1,13 @@