[gtk+/wip/csoriano/bookmarks] Adwaita: placessidebar style fixes.
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/bookmarks] Adwaita: placessidebar style fixes.
- Date: Thu, 14 May 2015 12:50:16 +0000 (UTC)
commit 3b515f4b7d045eeeea942a8157677c4e65e439a3
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Thu May 14 14:49:54 2015 +0200
Adwaita: placessidebar style fixes.
gtk/theme/Adwaita/_common.scss | 16 ++++++++--------
gtk/theme/Adwaita/gtk-contained-dark.css | 11 +++++------
gtk/theme/Adwaita/gtk-contained.css | 11 +++++------
3 files changed, 18 insertions(+), 20 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index f337cbf..f70e84d 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2884,19 +2884,19 @@ GtkPlacesSidebar.sidebar {
$_placesidebar_icons_opacity: 0.7;
- SidebarRow {
- padding-left: 14px;
- padding-right: 6px;
- padding-top: 2px;
- padding-bottom: 2px;
+ SidebarRow { padding: 8px 2px; }
+
+ .sidebar-icon {
+ padding-left: 8px;
+ padding-right: 8px;
+ opacity: $_placesidebar_icons_opacity; // dim the device icons
}
- SidebarRow > GtkBox > GtkImage { opacity: $_placesidebar_icons_opacity; } // dim the device icons
@at-root .sidebar-button.button { // @at-root needded to not change the specificity making button styling
inheritance broken
// so istead of "GtkPlacesSidebar.sidebar .sidebar-button.button"
[specificity 0,0,3,1]
// the extended selector ".sidebar-button.button" [specificity 0,0,2,0]
-
- &.image-button { padding: 6px; }
+
+ &.image-button { padding: 4px; }
@extend .button.flat;
border-radius: 100%;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 6281202..a40df9b 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -3989,11 +3989,10 @@ GtkFileChooserDialog .dialog-action-box {
background-color: #454c4c; }
GtkPlacesSidebar.sidebar SidebarRow {
- padding-left: 14px;
- padding-right: 6px;
- padding-top: 2px;
- padding-bottom: 2px; }
-GtkPlacesSidebar.sidebar SidebarRow > GtkBox > GtkImage {
+ padding: 8px 2px; }
+GtkPlacesSidebar.sidebar .sidebar-icon {
+ padding-left: 8px;
+ padding-right: 8px;
opacity: 0.7; }
.sidebar-button.button, .header-bar .sidebar-button.button.titlebutton,
.titlebar .sidebar-button.button.titlebutton {
@@ -4008,7 +4007,7 @@ GtkPlacesSidebar.sidebar SidebarRow > GtkBox > GtkImage {
} */ }
.sidebar-button.button.image-button, .header-bar .sidebar-button.titlebutton.button,
.titlebar .sidebar-button.titlebutton.button {
- padding: 6px; }
+ padding: 4px; }
.sidebar-button.button:not(:hover):not(:active) > GtkImage, .header-bar
.sidebar-button.button.titlebutton:not(:hover):not(:active) > GtkImage,
.titlebar .sidebar-button.button.titlebutton:not(:hover):not(:active) > GtkImage,
.sidebar-button.button:backdrop > GtkImage, .header-bar .sidebar-button.button.titlebutton:backdrop >
GtkImage,
.titlebar .sidebar-button.button.titlebutton:backdrop > GtkImage {
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 4c8fba1..7f91ce4 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -4161,11 +4161,10 @@ GtkFileChooserDialog .dialog-action-box {
background-color: #fafafa; }
GtkPlacesSidebar.sidebar SidebarRow {
- padding-left: 14px;
- padding-right: 6px;
- padding-top: 2px;
- padding-bottom: 2px; }
-GtkPlacesSidebar.sidebar SidebarRow > GtkBox > GtkImage {
+ padding: 8px 2px; }
+GtkPlacesSidebar.sidebar .sidebar-icon {
+ padding-left: 8px;
+ padding-right: 8px;
opacity: 0.7; }
.sidebar-button.button, .header-bar .sidebar-button.button.titlebutton,
.titlebar .sidebar-button.button.titlebutton {
@@ -4180,7 +4179,7 @@ GtkPlacesSidebar.sidebar SidebarRow > GtkBox > GtkImage {
} */ }
.sidebar-button.button.image-button, .header-bar .sidebar-button.titlebutton.button,
.titlebar .sidebar-button.titlebutton.button {
- padding: 6px; }
+ padding: 4px; }
.sidebar-button.button:not(:hover):not(:active) > GtkImage, .header-bar
.sidebar-button.button.titlebutton:not(:hover):not(:active) > GtkImage,
.titlebar .sidebar-button.button.titlebutton:not(:hover):not(:active) > GtkImage,
.sidebar-button.button:backdrop > GtkImage, .header-bar .sidebar-button.button.titlebutton:backdrop >
GtkImage,
.titlebar .sidebar-button.button.titlebutton:backdrop > GtkImage {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]