[gnome-themes-standard] notebook: flip padding according to the tab position
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] notebook: flip padding according to the tab position
- Date: Tue, 27 Sep 2011 17:47:40 +0000 (UTC)
commit c143dc2ba40c897d256de30226d9b582cff3bdbb
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 22 09:42:09 2011 -0400
notebook: flip padding according to the tab position
Now that GtkNotebook supports indicating the tab position with a style
class, use it to flip the padding if the tab is on the bottom side.
themes/Adwaita/gtk-3.0/gtk-widgets.css | 34 ++++++++++++++++++++++++++++---
1 files changed, 30 insertions(+), 4 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index c9b5b3a..34eba5c 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -468,8 +468,7 @@ GtkScrolledWindow.frame {
}
.notebook tab {
- padding: 3 2 0;
-
+ padding: 2;
background-image: -gtk-gradient (linear,
left top, left bottom,
from (@notebook_tab_gradient_a),
@@ -479,8 +478,6 @@ GtkScrolledWindow.frame {
}
.notebook tab:active {
- padding: 6 2 0;
-
-adwaita-border-gradient: -gtk-gradient (linear,
left top, left bottom,
from (@notebook_active_tab_border),
@@ -493,6 +490,35 @@ GtkScrolledWindow.frame {
to (@theme_base_color));
}
+.notebook tab.top {
+ padding: 3 2 0;
+}
+
+.notebook tab.top:active {
+ padding: 6 2 0;
+}
+
+.notebook tab.bottom {
+ padding: 0 2 3;
+}
+
+.notebook tab.bottom:active {
+ padding: 0 2 6;
+}
+
+.notebook tab.left,
+.notebook tab.right {
+ padding: 2;
+}
+
+.notebook tab.left:active {
+ padding: 2 2 2 5;
+}
+
+.notebook tab.right:active {
+ padding: 2 5 2 2;
+}
+
.notebook tab .button,
.notebook tab .button:hover,
.notebook tab .button:hover:active {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]