[gnome-software/1294-available-updates-dot-is-not-aligned-to-the-middle-of-the-menu-item] gtk-style.css: Center vertically the needs-attention sidebar row dot



commit 491b6360b28798447ba481b419be12ad3df4a658
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 28 16:09:25 2021 +0200

    gtk-style.css: Center vertically the needs-attention sidebar row dot
    
    Let the dot be centered vertically, which looks better than when it's
    slightly mis-positioned from the center.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1294

 src/gtk-style-hc.css | 4 ++--
 src/gtk-style.css    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gtk-style-hc.css b/src/gtk-style-hc.css
index b3e9ce6d3..af86e97a4 100644
--- a/src/gtk-style-hc.css
+++ b/src/gtk-style-hc.css
@@ -41,11 +41,11 @@ sidebar row.needs-attention > box > label {
                                        to(transparent));
        background-size: 6px 6px, 0 0;
        background-repeat: no-repeat;
-       background-position: right 3px, right 4px;
+       background-position: right center;
 }
 
 sidebar row.needs-attention > box > label:dir(rtl) {
-       background-position: left 3px, left 4px;
+       background-position: left center;
 }
 
 sidebar row.needs-attention:selected > box > label {
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 641bac64b..06a88379a 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -56,11 +56,11 @@ sidebar row.needs-attention > box > label {
                                        to(transparent));
        background-size: 6px 6px, 0 0;
        background-repeat: no-repeat;
-       background-position: right 3px, right 4px;
+       background-position: right center;
 }
 
 sidebar row.needs-attention > box > label:dir(rtl) {
-       background-position: left 3px, left 4px;
+       background-position: left center;
 }
 
 sidebar row.needs-attention:selected > box > label {


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