[libadwaita] Revert "stylesheet: Restrict .linked to box and grid"
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] Revert "stylesheet: Restrict .linked to box and grid"
- Date: Mon, 13 Sep 2021 11:09:24 +0000 (UTC)
commit 87a451f5e565b2b3dd9a8a606277840feca3d7e4
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Sep 13 11:09:24 2021 +0000
Revert "stylesheet: Restrict .linked to box and grid"
This reverts commit 907538f1d1859934828c814bdedd13bdd2ba6fcd
src/stylesheet/widgets/_linked.scss | 51 +++++++++++++++++------------------
src/stylesheet/widgets/_toolbars.scss | 13 ++++-----
2 files changed, 29 insertions(+), 35 deletions(-)
---
diff --git a/src/stylesheet/widgets/_linked.scss b/src/stylesheet/widgets/_linked.scss
index fee2a01c..1e29c3bc 100644
--- a/src/stylesheet/widgets/_linked.scss
+++ b/src/stylesheet/widgets/_linked.scss
@@ -10,38 +10,35 @@ $_linked_widgets: ("%button", ""),
("%entry", ""),
("entry", "");
-box,
-grid {
- @each $widget, $child in $_linked_widgets {
- &.linked:not(.vertical) > {
- #{$widget} {
- &:dir(ltr):not(:first-child) #{$child},
- &:dir(rtl):not(:last-child) #{$child} {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- margin-left: -1px;
- }
+@each $widget, $child in $_linked_widgets {
+ .linked:not(.vertical) > {
+ #{$widget} {
+ &:dir(ltr):not(:first-child) #{$child},
+ &:dir(rtl):not(:last-child) #{$child} {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ margin-left: -1px;
+ }
- &:dir(ltr):not(:last-child) #{$child},
- &:dir(rtl):not(:first-child) #{$child} {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
+ &:dir(ltr):not(:last-child) #{$child},
+ &:dir(rtl):not(:first-child) #{$child} {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
}
}
+ }
- &.linked.vertical {
- #{$widget} {
- &:not(:first-child) #{$child} {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- margin-top: -1px;
- }
+ .linked.vertical {
+ #{$widget} {
+ &:not(:first-child) #{$child} {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ margin-top: -1px;
+ }
- &:not(:last-child) #{$child} {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- }
+ &:not(:last-child) #{$child} {
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
}
}
}
diff --git a/src/stylesheet/widgets/_toolbars.scss b/src/stylesheet/widgets/_toolbars.scss
index acbc83c3..1fbae1e0 100644
--- a/src/stylesheet/widgets/_toolbars.scss
+++ b/src/stylesheet/widgets/_toolbars.scss
@@ -13,14 +13,11 @@
}
}
- box.linked,
- grid.linked {
- button:not(.raised):not(.suggested-action):not(.destructive-action) {
- &.arrow-button,
- &.image-button,
- &.image-text-button {
- @extend %button_basic_raised;
- }
+ .linked button:not(.raised):not(.suggested-action):not(.destructive-action) {
+ &.arrow-button,
+ &.image-button,
+ &.image-text-button {
+ @extend %button_basic_raised;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]