[libadwaita/wip/exalm/radii: 1/2] stylesheet: Unlink menu radius and margin
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/radii: 1/2] stylesheet: Unlink menu radius and margin
- Date: Thu, 14 Oct 2021 09:21:22 +0000 (UTC)
commit e8ab7b776fc3f8d2a1bec8c79d7e831b8b09169c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Oct 14 13:07:48 2021 +0500
stylesheet: Unlink menu radius and margin
No idea why they were linked.
src/stylesheet/_common.scss | 2 +-
src/stylesheet/widgets/_dialogs.scss | 2 +-
src/stylesheet/widgets/_menus.scss | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index a261f65d..a0add299 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -4,7 +4,7 @@ $button_transition: all 200ms $ease-out-quad;
$focus_transition: outline-width 200ms $ease-out-quad, outline-offset 200ms $ease-out-quad;
$button_radius: 5px;
$menu_radius: 5px;
-$menu_margin: $menu_radius; //margin around menuitems & sidebar items
+$menu_margin: 5px; //margin around menuitems & sidebar items
$menu_padding: 12px; //inner menuitem padding
$window_radius: $button_radius + 3;
$popover_radius: $button_radius + 4;
diff --git a/src/stylesheet/widgets/_dialogs.scss b/src/stylesheet/widgets/_dialogs.scss
index 0b6787be..006f50fb 100644
--- a/src/stylesheet/widgets/_dialogs.scss
+++ b/src/stylesheet/widgets/_dialogs.scss
@@ -35,7 +35,7 @@ window.assistant {
> label {
padding: 6px 12px;
- border-radius: $menu-margin;
+ border-radius: $menu_radius;
&.highlight {
background-color: $view_selected_color;
diff --git a/src/stylesheet/widgets/_menus.scss b/src/stylesheet/widgets/_menus.scss
index aedb5606..d6ef4269 100644
--- a/src/stylesheet/widgets/_menus.scss
+++ b/src/stylesheet/widgets/_menus.scss
@@ -45,7 +45,7 @@ popover.menu {
&, > scrolledwindow > viewport {
> stack > box {
- padding: $menu-margin;
+ padding: $menu_margin;
}
}
}
@@ -99,7 +99,7 @@ popover.menu {
min-height: 30px;
min-width: 40px;
padding: 0 $menu_padding;
- border-radius: $menu-margin;
+ border-radius: $menu_radius;
@extend %undecorated_button;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]