[libadwaita/wip/exalm/less-selectors] stylesheet: Apply toolbar popover overrides for all popovers
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/less-selectors] stylesheet: Apply toolbar popover overrides for all popovers
- Date: Wed, 10 Nov 2021 21:56:03 +0000 (UTC)
commit 4704b141f5a5c5fde6d295c8f8919bbb893a48fb
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Nov 11 02:25:15 2021 +0500
stylesheet: Apply toolbar popover overrides for all popovers
Reduce the amount of selectors a bit. There isn't much harm in applying
these styles everywhere instead of popovers inside those specific widgets,
as they are just specificity bumps.
src/stylesheet/widgets/_toolbars.scss | 54 +++++++++++++++++------------------
1 file changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index 3e14afcf..90ae3216 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -78,39 +78,39 @@
margin-top: 10px;
margin-bottom: 10px;
}
+}
- // Reset styles for popovers
- popover {
-
button:not(.flat):not(.outline):not(.raised):not(.suggested-action):not(.destructive-action):not(.opaque) {
- &.arrow-button,
- &.image-button,
- &.image-text-button {
- @extend %button_basic_raised;
- }
+// Reset styles for popovers inside toolbars
+popover {
+ button:not(.flat):not(.outline):not(.raised):not(.suggested-action):not(.destructive-action):not(.opaque) {
+ &.arrow-button,
+ &.image-button,
+ &.image-text-button {
+ @extend %button_basic_raised;
}
+ }
-
menubutton:not(.flat):not(.outline):not(.raised):not(.suggested-action):not(.destructive-action):not(.opaque)
{
- &.image-button > button {
- @extend %button_basic_raised;
- }
+
menubutton:not(.flat):not(.outline):not(.raised):not(.suggested-action):not(.destructive-action):not(.opaque)
{
+ &.image-button > button {
+ @extend %button_basic_raised;
}
+ }
- entry,
- spinbutton,
- splitbutton,
- separator:not(.sidebar),
- button,
- menubutton,
- scalebutton,
- switch {
- margin-top: 0;
- margin-bottom: 0;
- }
+ entry,
+ spinbutton,
+ splitbutton,
+ separator:not(.sidebar),
+ button,
+ menubutton,
+ scalebutton,
+ switch {
+ margin-top: 0;
+ margin-bottom: 0;
+ }
- &.menu separator:not(.sidebar) {
- margin-top: 6px;
- margin-bottom: 6px;
- }
+ &.menu separator:not(.sidebar) {
+ margin-top: 6px;
+ margin-bottom: 6px;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]