diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-08-20 18:46:46 -0700 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-08-20 18:46:46 -0700 |
commit | cf414ce132ac4cde2c40d730b33d2be3e08ccb47 (patch) | |
tree | 6f5e60b4f5b0fb68820e20c84ee93c62849fc951 | |
parent | 6dd4727e7ee2af4634622189411524d908fd8136 (diff) | |
download | nautilus-cf414ce132ac4cde2c40d730b33d2be3e08ccb47.tar.gz |
style: import back floating-bar style for Adwaita
This style is not defined by GTK.
-rw-r--r-- | src/Adwaita.css | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/Adwaita.css b/src/Adwaita.css index 60003ff9d..848c75cf4 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; +} |