[gnome-shell/wip/snwh/stylesheet-refresh-fixes] stylesheet: reduce padding in popovers
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/snwh/stylesheet-refresh-fixes] stylesheet: reduce padding in popovers
- Date: Tue, 18 Jan 2022 15:25:21 +0000 (UTC)
commit 03f2457f14ed1a252dd7be973b68a389410943a3
Author: Sam Hewitt <sam snwh org>
Date: Tue Jan 18 11:55:15 2022 -0330
stylesheet: reduce padding in popovers
data/theme/gnome-shell-sass/widgets/_popovers.scss | 30 +++++++++++++++-------
1 file changed, 21 insertions(+), 9 deletions(-)
---
diff --git a/data/theme/gnome-shell-sass/widgets/_popovers.scss
b/data/theme/gnome-shell-sass/widgets/_popovers.scss
index 66afb2f996..f523ec6dd0 100644
--- a/data/theme/gnome-shell-sass/widgets/_popovers.scss
+++ b/data/theme/gnome-shell-sass/widgets/_popovers.scss
@@ -39,7 +39,7 @@
border: 1px solid $borders_color;
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
background-color: $bg_color;
- padding: $base_padding * 2;
+ padding: $base_padding*1.5;
}
.popup-menu-item {}
@@ -54,7 +54,7 @@
// menu items
.popup-menu-item {
spacing: $base_spacing;
- padding: $base_padding*2;
+ padding: $base_padding*1.5;
margin: 2px 0;
border-radius: $base_border_radius;
transition: 0.2s all ease;
@@ -155,16 +155,28 @@
.popup-separator-menu-item {
padding: 0;
+ &:ltr { padding-right:$base_padding; padding-left: 0; }
+ &:rtl { padding-right: 0; padding-left:$base_padding; }
+
+
.popup-separator-menu-item-separator {
- //-margin-horizontal: 24px;
height: 1px; //not really the whole box
- margin: $base_margin 2em;
+ margin: 0 !important;
+ padding: 0 !important;
background-color: $borders_color;
+ }
+
+ .popup-menu-ornament {
+ width: 0 !important;
+ }
+
+ .popup-sub-menu & {
+ padding: 0;
+ margin-right: 2.5em !important; // account for ornament
+ background-color: transparent;
- .popup-sub-menu & { //submenu separators
- margin:0 2em 0 0 !important; // balance it in the middle
- padding:0 !important;
- background-color: darken($hover_bg_color, 5%);
+ .popup-separator-menu-item-separator {
+ background-color: lighten($borders_color, 7%);
}
}
}
@@ -177,7 +189,7 @@
// system status menu
.aggregate-menu {
- min-width: 21em;
+ min-width: 22em;
// this is unneeded in at the top-level this menu, hide it
.popup-menu-ornament {width:0;padding:0;spacing:0;margin:0;}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]