[gnome-software: 3/4] category-tile: Make the text size adaptive
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 3/4] category-tile: Make the text size adaptive
- Date: Tue, 10 Aug 2021 15:58:09 +0000 (UTC)
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]