[gnome-themes-standard] linked: turn the GtkPathBar linked button style into a generic style
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] linked: turn the GtkPathBar linked button style into a generic style
- Date: Mon, 28 Nov 2011 19:46:05 +0000 (UTC)
commit b2abbc8ec6be3c33de80fd9114df783f5747bae6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Nov 28 14:45:14 2011 -0500
linked: turn the GtkPathBar linked button style into a generic style
Now that GTK+ defines the linked style class, we can use these selectors
for a more generic linked button style.
themes/Adwaita/gtk-3.0/gtk-widgets.css | 69 ++++++++++++++++----------------
1 files changed, 35 insertions(+), 34 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index e27e1bf..89c3131 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -465,6 +465,41 @@ GtkScrolledWindow.frame {
border-width: 1;
}
+/* linked style for buttons */
+.linked .button {
+ border-image: none;
+ border-style: solid;
+ border-width: 1 0;
+ border-radius: 0;
+ border-color: @button_border;
+ box-shadow: 1 0 inset shade(@button_border, 1.40), -1 0 inset @button_border;
+}
+
+.linked .button:active,
+.linked .button:active:hover {
+ border-image: none;
+ box-shadow: -1 0 inset @button_border;
+}
+
+.linked .button:nth-child(first),
+.linked .button:active:nth-child(first),
+.linked .button:active:hover:nth-child(first) {
+ border-radius: 3 0 0 3;
+ border-left-width: 1;
+ box-shadow: -1 0 inset @button_border;
+}
+
+.linked .button:nth-child(last) {
+ box-shadow: 1 0 inset shade(@button_border, 1.40);
+ border-radius: 0 3 3 0;
+ border-right-width: 1;
+}
+
+.linked .button:active:nth-child(last),
+.linked .button:active:hover:nth-child(last) {
+ box-shadow: none;
+}
+
/*****************
* Notebooks and *
* tabs *
@@ -1188,40 +1223,6 @@ GtkTreeMenu .menuitem * {
border-width: 1 1 1 0;
}
-GtkPathBar .button {
- border-image: none;
- border-style: solid;
- border-width: 1 0;
- border-radius: 0;
- border-color: @button_border;
- box-shadow: 1 0 inset shade(@button_border, 1.40), -1 0 inset @button_border;
-}
-
-GtkPathBar .button:active,
-GtkPathBar .button:active:hover {
- border-image: none;
- box-shadow: -1 0 inset @button_border;
-}
-
-GtkPathBar .button:nth-child(first),
-GtkPathBar .button:active:nth-child(first),
-GtkPathBar .button:active:hover:nth-child(first) {
- border-radius: 3 0 0 3;
- border-left-width: 1;
- box-shadow: -1 0 inset @button_border;
-}
-
-GtkPathBar .button:nth-child(last) {
- box-shadow: 1 0 inset shade(@button_border, 1.40);
- border-radius: 0 3 3 0;
- border-right-width: 1;
-}
-
-GtkPathBar .button:active:nth-child(last),
-GtkPathBar .button:active:hover:nth-child(last) {
- box-shadow: none;
-}
-
.primary-toolbar.toolbar .entry {
background-color: @primary_toolbar_entry_bg;
color: @primary_toolbar_entry_fg;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]