[nautilus] style: import back floating-bar style for Adwaita



commit cf414ce132ac4cde2c40d730b33d2be3e08ccb47
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Aug 20 18:46:46 2014 -0700

    style: import back floating-bar style for Adwaita
    
    This style is not defined by GTK.

 src/Adwaita.css |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/src/Adwaita.css b/src/Adwaita.css
index 60003ff..848c75c 100644
--- a/src/Adwaita.css
+++ b/src/Adwaita.css
@@ -93,3 +93,72 @@ NautilusQueryEditor .search-bar.toolbar:only-child {
 NautilusQueryEditor .toolbar:backdrop:nth-child(2) {
     border-color: @unfocused_borders;
 }
+
+ define-color floating_bar_inset_color alpha(white, 0.45);
+
+.floating-bar {
+    background-image: linear-gradient(to bottom,
+                                      @theme_base_color 20%,
+                                      shade(@theme_base_color, 0.9)
+                                      );
+    background-color: @theme_base_color;
+    border-color: @borders;
+
+    color: @theme_fg_color;
+    text-shadow: 0 1px alpha(white, 0.40);
+
+    border-radius: 3px;
+    border-width: 1px;
+    border-style: solid;
+    box-shadow: inset 1px 1px @floating_bar_inset_color, -1px -1px @floating_bar_inset_color;
+}
+
+.floating-bar.top {
+    border-top-width: 0;
+    border-top-right-radius: 0;
+    border-top-left-radius: 0;
+}
+
+.floating-bar.right {
+    border-right-width: 0;
+    border-top-right-radius: 0;
+    border-bottom-right-radius: 0;
+}
+
+.floating-bar.bottom {
+    border-bottom-width: 0;
+    border-bottom-right-radius: 0;
+    border-bottom-left-radius: 0;
+}
+
+.floating-bar.left {
+    border-left-width: 0;
+    border-top-left-radius: 0;
+    border-bottom-left-radius: 0;
+}
+
+.floating-bar.bottom.right {
+    box-shadow: inset 1px 1px @floating_bar_inset_color;
+}
+
+.floating-bar.bottom.left {
+    box-shadow: inset -1px 1px @floating_bar_inset_color;
+}
+
+.floating-bar:backdrop {
+    background-color: @theme_unfocused_base_color;
+    border-color: shade(@theme_unfocused_base_color, 0.9);
+    background-image: none;
+    box-shadow: none;
+}
+
+.floating-bar .button {
+    background-color: transparent;
+    background-image: none;
+
+    border-style: none;
+    border-image: none;
+
+    -GtkButton-image-spacing: 0;
+    -GtkButton-inner-border: 0;
+}


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