[gnome-shell] calendar: Fake baseline alignment for notification timestamp



commit af18a0cf40bee103555ffd31f13cd27b0d569d59
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 1 18:38:52 2017 +0100

    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 60ae691..784d854 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 4669774..296e545 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 f3cc69c..20423b6 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; }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]