[libadwaita/wip/exalm/borderless: 7/15] stylesheet: Reset toolbar styles for popovers
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/borderless: 7/15] stylesheet: Reset toolbar styles for popovers
- Date: Thu, 9 Sep 2021 15:56:07 +0000 (UTC)
commit f92e0edeaa6926fdb85d362e3cf9f9143aa5058f
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 312622e4..07c0e193 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]