From af18a0cf40bee103555ffd31f13cd27b0d569d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 1 Mar 2017 18:38:52 +0100 Subject: [PATCH] calendar: Fake baseline alignment for notification timestamp We don't have GTK's baseline alignment, so all we can do is add some padding and hope it works out fine for most fonts and sizes ... https://bugzilla.gnome.org/show_bug.cgi?id=779820 --- data/theme/gnome-shell-high-contrast.css | 5 ++++- data/theme/gnome-shell-sass | 2 +- data/theme/gnome-shell.css | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css index 60ae69105..784d85492 100644 --- a/data/theme/gnome-shell-high-contrast.css +++ b/data/theme/gnome-shell-high-contrast.css @@ -901,7 +901,10 @@ StScrollBar { .message-secondary-bin > .event-time { color: #999999; - font-size: 0.7em; } + font-size: 0.7em; + /* HACK: the label should be baseline-aligned with a 1em label, + fake this with some bottom padding */ + padding-bottom: 0.13em; } .message-secondary-bin > StIcon { icon-size: 16px; } diff --git a/data/theme/gnome-shell-sass b/data/theme/gnome-shell-sass index 46697744a..296e54514 160000 --- a/data/theme/gnome-shell-sass +++ b/data/theme/gnome-shell-sass @@ -1 +1 @@ -Subproject commit 46697744a622a21955a6e16c7e161d2422bc0768 +Subproject commit 296e5451457032e2fd9919135828c213d118664e diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index f3cc69c76..20423b603 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -901,7 +901,10 @@ StScrollBar { .message-secondary-bin > .event-time { color: #8e8e80; - font-size: 0.7em; } + font-size: 0.7em; + /* HACK: the label should be baseline-aligned with a 1em label, + fake this with some bottom padding */ + padding-bottom: 0.13em; } .message-secondary-bin > StIcon { icon-size: 16px; }