[gnome-software/wip/jimmac/pager-button-styling: 2/2] featured: style pager buttons
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/jimmac/pager-button-styling: 2/2] featured: style pager buttons
- Date: Thu, 18 Feb 2021 11:57:41 +0000 (UTC)
commit 0f31385d5239e40b7a595ec12f0106bc23954625
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Feb 18 12:29:20 2021 +0100
featured: style pager buttons
- contrasty
- hardcoded colors since the current implementation does not know
about the lightness of the banner at all.
https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1131
src/gtk-style.css | 54 ++++++++++++++++++++++++------------------------------
1 file changed, 24 insertions(+), 30 deletions(-)
---
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 398baf7ac..fd020845c 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -562,42 +562,36 @@ flowboxchild {
border-radius: 50%;
-gtk-outline-radius: 50%;
color: @theme_fg_color;
+ background: transparent;
+ border: none;
+ box-shadow: none;
+ margin: 6px;
}
-.featured-carousel button.osd {
- -gtk-icon-shadow: none;
-}
-
-.featured-carousel button.osd:focus {
- /* this is @theme_fg_color at 10% opacity, but we can’t use the variable
- * directly as rgba() requires 4 components */
- background: rgba(46, 52, 54, 0.1);
-}
+ .featured-carousel button.osd {
+ -gtk-icon-shadow: none;
+ }
-.featured-carousel button.osd:hover {
- /* this is @theme_fg_color at 20% opacity, but we can’t use the variable
- * directly as rgba() requires 4 components */
- background: rgba(46, 52, 54, 0.2);
-}
+ .featured-carousel button.osd:focus {
+ // can't actually tab into. all this does is getting stuck with mouse only
+ // interaction.
+ }
-.featured-carousel button.osd:active {
- /* this is @theme_fg_color at 35% opacity, but we can’t use the variable
- * directly as rgba() requires 4 components */
- background: rgba(46, 52, 54, 0.35);
-}
+ .featured-carousel button.osd:hover {
+ background-color: #808080;
+ color: @theme_selected_fg_color;
+ }
-.featured-button-left:not(:hover),
-.featured-button-right:not(:hover) {
- background: transparent;
- border:transparent;
- box-shadow: none;
-}
+ .featured-carousel button.osd:active {
+ background-color: #606060;
+ color: @theme_selected_fg_color;
+ }
-/* these typographical classes will be provided in gtk eventually */
-.title-1{
- font-weight: 800;
- font-size: 20pt;
-}
+ /* these typographical classes will be provided in gtk eventually */
+ .title-1{
+ font-weight: 800;
+ font-size: 20pt;
+ }
.caption{
font-weight: 400;
font-size: 10pt;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]