[gnome-software: 3/4] category-tile: Make the text size adaptive




commit f415ffc7d713a04d2877e988a7ca72534fba8687
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Aug 10 13:39:53 2021 +0200

    category-tile: Make the text size adaptive
    
    Make it small in small windows, large in large windows.

 src/gtk-style.css | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/gtk-style.css b/src/gtk-style.css
index c93ec8826..5572d5ef1 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -184,7 +184,6 @@ summary-tile {
        padding: 20px 10px;
        border-radius: 8px;
        -gtk-outline-radius: 7px;
-       font-size: larger;
        font-weight: 900;
        text-shadow: none;
        border: none;
@@ -192,6 +191,14 @@ summary-tile {
        transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
 }
 
+clamp.medium .category-tile {
+       font-size: large;
+}
+
+clamp.large .category-tile {
+       font-size: larger;
+}
+
 /* Disable highlight on hover as it doesn’t make these icons look good */
 .category-tile:hover { -gtk-icon-effect: none }
 


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