[gnome-themes-standard/wip/sass] focus for entries using box-shadow (extended)



commit ca3edb36fbd4aaa57ce54516dbb73b3207355ad8
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue May 13 12:02:21 2014 +0200

    focus for entries using box-shadow (extended)

 themes/Adwaita/gtk-3.0/_common.scss |    4 ++++
 themes/Adwaita/gtk-3.0/gtk-dark.css |    3 +++
 themes/Adwaita/gtk-3.0/gtk.css      |    3 +++
 3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/_common.scss b/themes/Adwaita/gtk-3.0/_common.scss
index a240685..fffdd43 100644
--- a/themes/Adwaita/gtk-3.0/_common.scss
+++ b/themes/Adwaita/gtk-3.0/_common.scss
@@ -154,6 +154,10 @@ GtkGrid:insensitive {
   &:insensitive, &:backdrop:insensitive {
     color: $insensitive_fg_color;
   }
+  &:focus {
+    border-color: $theme_selected_bg_color;
+    box-shadow: inset 0 0 2px 1px transparentize($theme_selected_bg_color,.5);
+  }
 }
 
 .linked .entry {
diff --git a/themes/Adwaita/gtk-3.0/gtk-dark.css b/themes/Adwaita/gtk-3.0/gtk-dark.css
index 878f848..5300568 100644
--- a/themes/Adwaita/gtk-3.0/gtk-dark.css
+++ b/themes/Adwaita/gtk-3.0/gtk-dark.css
@@ -164,6 +164,9 @@ GtkGrid:insensitive {
   background-color: transparent; }
   .entry:insensitive, .entry:backdrop:insensitive {
     color: white; }
+  .entry:focus {
+    border-color: #2a76c6;
+    box-shadow: inset 0 0 2px 1px rgba(42, 118, 198, 0.5); }
 
 .linked .entry:first-child {
   border-top-right-radius: 0;
diff --git a/themes/Adwaita/gtk-3.0/gtk.css b/themes/Adwaita/gtk-3.0/gtk.css
index 5e6c858..8830f9f 100644
--- a/themes/Adwaita/gtk-3.0/gtk.css
+++ b/themes/Adwaita/gtk-3.0/gtk.css
@@ -164,6 +164,9 @@ GtkGrid:insensitive {
   background-color: transparent; }
   .entry:insensitive, .entry:backdrop:insensitive {
     color: #748489; }
+  .entry:focus {
+    border-color: #4a90d9;
+    box-shadow: inset 0 0 2px 1px rgba(74, 144, 217, 0.5); }
 
 .linked .entry:first-child {
   border-top-right-radius: 0;


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