[gtk+] Adwaita: Initial theming for scrollable indication



commit 691c96db2a0041ef1f3eecb5d0bf00b6c67c6cdf
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 10 10:00:45 2014 -0500

    Adwaita: Initial theming for scrollable indication
    
    This just uses a narrow shadow for now.

 gtk/theme/Adwaita/_common.scss           |   19 +++++++++
 gtk/theme/Adwaita/gtk-contained-dark.css |   61 ++++++++++++++++++------------
 gtk/theme/Adwaita/gtk-contained.css      |   61 ++++++++++++++++++------------
 3 files changed, 93 insertions(+), 48 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 2840af3..a38d4f1 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -140,6 +140,25 @@ $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
   }
 }
 
+.undershoot {
+  &.top {
+    box-shadow: inset 0 6px 4px -4px rgba(0,0,0,.3);
+    background: none;
+  } 
+  &.bottom {
+    box-shadow: inset 0 -6px 4px -4px rgba(0,0,0,.3);
+    background: none;
+  } 
+  &.left {
+    box-shadow: inset 6px 0 4px -4px rgba(0,0,0,.3);
+    background: none;
+  } 
+  &.right {
+    box-shadow: inset -6px 0 4px -4px rgba(0,0,0,.3);
+    background: none;
+  } 
+}
+
 .label {
   &.separator {
     color: $fg_color;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index fd64f6c..2553059 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -140,6 +140,19 @@
     border: none;
     box-shadow: none; }
 
+.undershoot.top {
+  box-shadow: inset 0 6px 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.bottom {
+  box-shadow: inset 0 -6px 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.left {
+  box-shadow: inset 6px 0 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.right {
+  box-shadow: inset -6px 0 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+
 .label.separator, GtkPlacesSidebar.sidebar .view .label.separator {
   color: #eeeeec; }
   .label.separator:backdrop, GtkPlacesSidebar.sidebar .view .label.separator:backdrop {
@@ -275,18 +288,18 @@ GtkTextView {
     box-shadow: none; }
     .entry.progressbar:backdrop {
       background-color: transparent; }
-  .linked .entry {
+  .linked > .entry {
     border-radius: 0; }
-    .linked .entry:first-child {
+    .linked > .entry:first-child {
       border-top-left-radius: 3px;
       border-bottom-left-radius: 3px; }
-      .linked .entry:first-child:dir(rtl) {
+      .linked > .entry:first-child:dir(rtl) {
         border-right-style: none; }
-    .linked .entry:last-child {
+    .linked > .entry:last-child {
       border-top-right-radius: 3px;
       border-bottom-right-radius: 3px;
       border-left-style: none; }
-      .linked .entry:last-child:dir(rtl) {
+      .linked > .entry:last-child:dir(rtl) {
         border-left-style: solid; }
   .entry.error {
     color: #cc0000;
@@ -316,7 +329,7 @@ GtkTextView {
       color: #215d9c; }
     .entry.image:backdrop {
       color: #7e8080; }
-  .linked.vertical .entry {
+  .linked.vertical > .entry {
     background-color: transparent;
     background-image: linear-gradient(to bottom, #212121, #292929 90%);
     color: white;
@@ -325,10 +338,10 @@ GtkTextView {
     background-image: linear-gradient(to bottom, #292929);
     border-bottom-color: #252626;
     box-shadow: none; }
-    .linked.vertical .entry:focus {
+    .linked.vertical > .entry:focus {
       border-color: #0f2b48;
       box-shadow: inset 0 0 0 1px rgba(33, 93, 156, 0.7), 0 -1px 0 0 #0f2b48; }
-    .linked.vertical .entry:insensitive {
+    .linked.vertical > .entry:insensitive {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #212121, #292929 90%);
       color: #939695;
@@ -336,7 +349,7 @@ GtkTextView {
       background-image: linear-gradient(to bottom, #323636);
       box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
       border-bottom-color: #252626; }
-      .linked.vertical .entry:insensitive:backdrop {
+      .linked.vertical > .entry:insensitive:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         color: #5d6767;
@@ -344,7 +357,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, #323636);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #272929; }
-    .linked.vertical .entry:backdrop {
+    .linked.vertical > .entry:backdrop {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #212121, #292929 90%);
       color: #d4d4d4;
@@ -352,19 +365,19 @@ GtkTextView {
       background-image: linear-gradient(to bottom, #2c2c2c);
       box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
       border-bottom-color: #272929; }
-    .linked.vertical .entry:first-child {
+    .linked.vertical > .entry:first-child {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #212121, #292929 90%);
       color: white;
       border-color: #1c1f1f;
       box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(33, 93, 156, 0);
       border-bottom-color: #252626; }
-      .linked.vertical .entry:first-child:focus {
+      .linked.vertical > .entry:first-child:focus {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(33, 93, 156, 0.7);
         border-color: #0f2b48; }
-      .linked.vertical .entry:first-child:insensitive {
+      .linked.vertical > .entry:first-child:insensitive {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         color: #939695;
@@ -372,7 +385,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, #323636);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #272929; }
-        .linked.vertical .entry:first-child:insensitive:backdrop {
+        .linked.vertical > .entry:first-child:insensitive:backdrop {
           background-color: transparent;
           background-image: linear-gradient(to bottom, #212121, #292929 90%);
           color: #5d6767;
@@ -381,7 +394,7 @@ GtkTextView {
           box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
           border-bottom-color: #272929;
           border-top-style: solid; }
-      .linked.vertical .entry:first-child:backdrop {
+      .linked.vertical > .entry:first-child:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         color: #d4d4d4;
@@ -389,7 +402,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, #2c2c2c);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #272929; }
-    .linked.vertical .entry:last-child {
+    .linked.vertical > .entry:last-child {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #212121, #292929 90%);
       color: white;
@@ -397,24 +410,24 @@ GtkTextView {
       box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(33, 93, 156, 0), 0 1px rgba(238, 238, 236, 0.1);
       background-image: linear-gradient(to bottom, #292929);
       box-shadow: 0 1px rgba(238, 238, 236, 0.1); }
-      .linked.vertical .entry:last-child:focus {
+      .linked.vertical > .entry:last-child:focus {
         border-color: #0f2b48;
         box-shadow: inset 0 0 0 1px rgba(33, 93, 156, 0.7), 0 -1px 0 0 #0f2b48, 0 1px rgba(238, 238, 236, 
0.1); }
-      .linked.vertical .entry:last-child:insensitive {
+      .linked.vertical > .entry:last-child:insensitive {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         color: #939695;
         border-color: #1c1f1f;
         background-image: linear-gradient(to bottom, #323636);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent, 0 1px 
rgba(238, 238, 236, 0.1); }
-        .linked.vertical .entry:last-child:insensitive:backdrop {
+        .linked.vertical > .entry:last-child:insensitive:backdrop {
           background-color: transparent;
           background-image: linear-gradient(to bottom, #212121, #292929 90%);
           color: #5d6767;
           border-color: #1e2222;
           background-image: linear-gradient(to bottom, #323636);
           box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent, 0 1px 
rgba(238, 238, 236, 0); }
-      .linked.vertical .entry:last-child:backdrop {
+      .linked.vertical > .entry:last-child:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #212121, #292929 90%);
         color: #d4d4d4;
@@ -1269,20 +1282,20 @@ GtkComboBox.combobox-entry .titlebar .button.titlebutton,
   border-radius: 3px;
   border-style: solid; }
 
-.linked.vertical .entry, .linked.vertical .entry:focus, .linked.vertical .entry:insensitive, 
.linked.vertical .entry:insensitive:backdrop, .linked.vertical .entry:backdrop, .linked.vertical > .button, 
.linked.vertical > .button:hover, .linked.vertical > .button:active, .linked.vertical > .button:checked, 
.linked.vertical > .button:backdrop, .linked.vertical > GtkComboBoxText > .button,
+.linked.vertical > .entry, .linked.vertical > .entry:focus, .linked.vertical > .entry:insensitive, 
.linked.vertical > .entry:insensitive:backdrop, .linked.vertical > .entry:backdrop, .linked.vertical > 
.button, .linked.vertical > .button:hover, .linked.vertical > .button:active, .linked.vertical > 
.button:checked, .linked.vertical > .button:backdrop, .linked.vertical > GtkComboBoxText > .button,
 .linked.vertical > GtkComboBox > .button {
   border-left-style: solid;
   border-top-style: none;
   border-radius: 0; }
 
-.linked.vertical .entry:first-child, .linked.vertical > .button:first-child, .linked.vertical > 
GtkComboBoxText:first-child > .button,
+.linked.vertical > .entry:first-child, .linked.vertical > .button:first-child, .linked.vertical > 
GtkComboBoxText:first-child > .button,
 .linked.vertical > GtkComboBox:first-child > .button {
   border-style: solid;
   border-radius: 3px 3px 0 0; }
-.linked.vertical .entry:last-child, .linked.vertical > .button:last-child, .linked.vertical > 
GtkComboBoxText:last-child > .button,
+.linked.vertical > .entry:last-child, .linked.vertical > .button:last-child, .linked.vertical > 
GtkComboBoxText:last-child > .button,
 .linked.vertical > GtkComboBox:last-child > .button {
   border-radius: 0 0 3px 3px; }
-.linked.vertical .entry:only-child, .linked.vertical > .button:only-child, .linked.vertical > 
GtkComboBoxText:only-child > .button,
+.linked.vertical > .entry:only-child, .linked.vertical > .button:only-child, .linked.vertical > 
GtkComboBoxText:only-child > .button,
 .linked.vertical > GtkComboBox:only-child > .button {
   border-radius: 3px;
   border-style: solid; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 22862db..7c40c53 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -140,6 +140,19 @@
     border: none;
     box-shadow: none; }
 
+.undershoot.top {
+  box-shadow: inset 0 6px 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.bottom {
+  box-shadow: inset 0 -6px 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.left {
+  box-shadow: inset 6px 0 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+.undershoot.right {
+  box-shadow: inset -6px 0 4px -4px rgba(0, 0, 0, 0.3);
+  background: none; }
+
 .label.separator, GtkPlacesSidebar.sidebar .view .label.separator {
   color: #2e3436; }
   .label.separator:backdrop, GtkPlacesSidebar.sidebar .view .label.separator:backdrop {
@@ -275,18 +288,18 @@ GtkTextView {
     box-shadow: none; }
     .entry.progressbar:backdrop {
       background-color: transparent; }
-  .linked .entry {
+  .linked > .entry {
     border-radius: 0; }
-    .linked .entry:first-child {
+    .linked > .entry:first-child {
       border-top-left-radius: 3px;
       border-bottom-left-radius: 3px; }
-      .linked .entry:first-child:dir(rtl) {
+      .linked > .entry:first-child:dir(rtl) {
         border-right-style: none; }
-    .linked .entry:last-child {
+    .linked > .entry:last-child {
       border-top-right-radius: 3px;
       border-bottom-right-radius: 3px;
       border-left-style: none; }
-      .linked .entry:last-child:dir(rtl) {
+      .linked > .entry:last-child:dir(rtl) {
         border-left-style: solid; }
   .entry.error {
     color: #cc0000;
@@ -316,7 +329,7 @@ GtkTextView {
       color: #4a90d9; }
     .entry.image:backdrop {
       color: #a3a6a7; }
-  .linked.vertical .entry {
+  .linked.vertical > .entry {
     background-color: transparent;
     background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
     color: black;
@@ -325,10 +338,10 @@ GtkTextView {
     background-image: linear-gradient(to bottom, #ffffff);
     border-bottom-color: #e2e2e2;
     box-shadow: none; }
-    .linked.vertical .entry:focus {
+    .linked.vertical > .entry:focus {
       border-color: #4a90d9;
       box-shadow: inset 0 0 0 1px rgba(74, 144, 217, 0.15), 0 -1px 0 0 #4a90d9; }
-    .linked.vertical .entry:insensitive {
+    .linked.vertical > .entry:insensitive {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
       color: #8d9091;
@@ -336,7 +349,7 @@ GtkTextView {
       background-image: linear-gradient(to bottom, #f4f4f4);
       box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
       border-bottom-color: #e2e2e2; }
-      .linked.vertical .entry:insensitive:backdrop {
+      .linked.vertical > .entry:insensitive:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         color: #c7c7c7;
@@ -344,7 +357,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, #f4f4f4);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #e4e4e4; }
-    .linked.vertical .entry:backdrop {
+    .linked.vertical > .entry:backdrop {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
       color: #323232;
@@ -352,19 +365,19 @@ GtkTextView {
       background-image: linear-gradient(to bottom, white);
       box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
       border-bottom-color: #e4e4e4; }
-    .linked.vertical .entry:first-child {
+    .linked.vertical > .entry:first-child {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
       color: black;
       border-color: #a1a1a1;
       box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(74, 144, 217, 0);
       border-bottom-color: #e2e2e2; }
-      .linked.vertical .entry:first-child:focus {
+      .linked.vertical > .entry:first-child:focus {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(74, 144, 217, 0.15);
         border-color: #4a90d9; }
-      .linked.vertical .entry:first-child:insensitive {
+      .linked.vertical > .entry:first-child:insensitive {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         color: #8d9091;
@@ -372,7 +385,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, #f4f4f4);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #e4e4e4; }
-        .linked.vertical .entry:first-child:insensitive:backdrop {
+        .linked.vertical > .entry:first-child:insensitive:backdrop {
           background-color: transparent;
           background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
           color: #c7c7c7;
@@ -381,7 +394,7 @@ GtkTextView {
           box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
           border-bottom-color: #e4e4e4;
           border-top-style: solid; }
-      .linked.vertical .entry:first-child:backdrop {
+      .linked.vertical > .entry:first-child:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         color: #323232;
@@ -389,7 +402,7 @@ GtkTextView {
         background-image: linear-gradient(to bottom, white);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent;
         border-bottom-color: #e4e4e4; }
-    .linked.vertical .entry:last-child {
+    .linked.vertical > .entry:last-child {
       background-color: transparent;
       background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
       color: black;
@@ -397,24 +410,24 @@ GtkTextView {
       box-shadow: inset 0 3px rgba(0, 0, 0, 0.02), inset 0 2px rgba(0, 0, 0, 0.03), inset 0 1px rgba(0, 0, 
0, 0.08), inset 0 0 0 1px rgba(74, 144, 217, 0), 0 1px white;
       background-image: linear-gradient(to bottom, #ffffff);
       box-shadow: 0 1px white; }
-      .linked.vertical .entry:last-child:focus {
+      .linked.vertical > .entry:last-child:focus {
         border-color: #4a90d9;
         box-shadow: inset 0 0 0 1px rgba(74, 144, 217, 0.15), 0 -1px 0 0 #4a90d9, 0 1px white; }
-      .linked.vertical .entry:last-child:insensitive {
+      .linked.vertical > .entry:last-child:insensitive {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         color: #8d9091;
         border-color: #a1a1a1;
         background-image: linear-gradient(to bottom, #f4f4f4);
         box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent, 0 1px white; }
-        .linked.vertical .entry:last-child:insensitive:backdrop {
+        .linked.vertical > .entry:last-child:insensitive:backdrop {
           background-color: transparent;
           background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
           color: #c7c7c7;
           border-color: #a8a8a8;
           background-image: linear-gradient(to bottom, #f4f4f4);
           box-shadow: inset 0 3px transparent, inset 0 2px transparent, inset 0 1px transparent, 0 1px 
rgba(255, 255, 255, 0); }
-      .linked.vertical .entry:last-child:backdrop {
+      .linked.vertical > .entry:last-child:backdrop {
         background-color: transparent;
         background-image: linear-gradient(to bottom, #f7f7f7, #ffffff 90%);
         color: #323232;
@@ -1269,20 +1282,20 @@ GtkComboBox.combobox-entry .titlebar .button.titlebutton,
   border-radius: 3px;
   border-style: solid; }
 
-.linked.vertical .entry, .linked.vertical .entry:focus, .linked.vertical .entry:insensitive, 
.linked.vertical .entry:insensitive:backdrop, .linked.vertical .entry:backdrop, .linked.vertical > .button, 
.linked.vertical > .button:hover, .linked.vertical > .button:active, .linked.vertical > .button:checked, 
.linked.vertical > .button:backdrop, .linked.vertical > GtkComboBoxText > .button,
+.linked.vertical > .entry, .linked.vertical > .entry:focus, .linked.vertical > .entry:insensitive, 
.linked.vertical > .entry:insensitive:backdrop, .linked.vertical > .entry:backdrop, .linked.vertical > 
.button, .linked.vertical > .button:hover, .linked.vertical > .button:active, .linked.vertical > 
.button:checked, .linked.vertical > .button:backdrop, .linked.vertical > GtkComboBoxText > .button,
 .linked.vertical > GtkComboBox > .button {
   border-left-style: solid;
   border-top-style: none;
   border-radius: 0; }
 
-.linked.vertical .entry:first-child, .linked.vertical > .button:first-child, .linked.vertical > 
GtkComboBoxText:first-child > .button,
+.linked.vertical > .entry:first-child, .linked.vertical > .button:first-child, .linked.vertical > 
GtkComboBoxText:first-child > .button,
 .linked.vertical > GtkComboBox:first-child > .button {
   border-style: solid;
   border-radius: 3px 3px 0 0; }
-.linked.vertical .entry:last-child, .linked.vertical > .button:last-child, .linked.vertical > 
GtkComboBoxText:last-child > .button,
+.linked.vertical > .entry:last-child, .linked.vertical > .button:last-child, .linked.vertical > 
GtkComboBoxText:last-child > .button,
 .linked.vertical > GtkComboBox:last-child > .button {
   border-radius: 0 0 3px 3px; }
-.linked.vertical .entry:only-child, .linked.vertical > .button:only-child, .linked.vertical > 
GtkComboBoxText:only-child > .button,
+.linked.vertical > .entry:only-child, .linked.vertical > .button:only-child, .linked.vertical > 
GtkComboBoxText:only-child > .button,
 .linked.vertical > GtkComboBox:only-child > .button {
   border-radius: 3px;
   border-style: solid; }


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