[libadwaita/wip/exalm/borderless: 5/13] stylesheet: Reset toolbar styles for popovers
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/borderless: 5/13] stylesheet: Reset toolbar styles for popovers
- Date: Wed, 8 Sep 2021 12:03:17 +0000 (UTC)
commit b51295ad730434c5b3914ca5e8de74c8c918d92e
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Jul 20 15:32:03 2021 +0500
stylesheet: Reset toolbar styles for popovers
We've already been propagating button and switch margins. On top of that,
now we're also making buttons flat. Don't do this and explicitly reset the
styles instead.
src/stylesheet/widgets/_toolbars.scss | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index 7b1fe6f4..ce8b6b5b 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -38,8 +38,7 @@
splitbutton,
separator:not(.sidebar),
button,
- menubutton,
- .linked2 {
+ menubutton {
margin-top: 6px;
margin-bottom: 6px;
}
@@ -56,6 +55,30 @@
margin-top: 10px;
margin-bottom: 10px;
}
+
+ // Reset styles for popovers
+ popover {
+ button.image-button:not(.raised):not(.suggested-action):not(.destructive-action),
+ button.image-text-button:not(.raised):not(.suggested-action):not(.destructive-action) {
+ @extend %button_basic_raised;
+ }
+
+ entry,
+ spinbutton,
+ splitbutton,
+ separator:not(.sidebar),
+ button,
+ menubutton,
+ switch {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
+
+ &.menu separator:not(.sidebar) {
+ margin-top: 6px;
+ margin-bottom: 6px;
+ }
+ }
}
.toolbar {
@@ -80,10 +103,6 @@
&.top,
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
}
-
- // toolbar separators
- &.horizontal > separator { margin: 6px 0; }
- &.vertical > separator { margin: 0 6px; }
}
/****************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]