[libadwaita/wip/exalm/buttons-v2] stylesheet: Inline %linked_not_*
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/buttons-v2] stylesheet: Inline %linked_not_*
- Date: Sun, 23 May 2021 12:41:49 +0000 (UTC)
commit 8fa389fce233d01e97edbaccd7cf58a210848011
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun May 23 17:39:24 2021 +0500
stylesheet: Inline %linked_not_*
These are only used once now, no point in keeping them separate.
src/stylesheet/widgets/_linked.scss | 53 +++++++++++++++----------------------
1 file changed, 22 insertions(+), 31 deletions(-)
---
diff --git a/src/stylesheet/widgets/_linked.scss b/src/stylesheet/widgets/_linked.scss
index 2844ce72..44834088 100644
--- a/src/stylesheet/widgets/_linked.scss
+++ b/src/stylesheet/widgets/_linked.scss
@@ -10,45 +10,36 @@ $_linked_widgets: ("%button", ""),
("%entry", ""),
("entry", "");
-%linked_not_left {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
-}
-
-%linked_not_right {
- border-right-style: none;
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-%linked_not_top {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
-}
-
-%linked_not_bottom {
- border-bottom-style: none;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
@each $widget, $child in $_linked_widgets {
.linked:not(.vertical) > {
- #{$widget}:dir(ltr) {
- &:not(:first-child) #{$child} { @extend %linked_not_left; }
- &:not(:last-child) #{$child} { @extend %linked_not_right; }
- }
+ #{$widget} {
+ &:dir(ltr):not(:first-child) #{$child},
+ &:dir(rtl):not(:last-child) #{$child} {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ }
- #{$widget}:dir(rtl) {
- &:not(:first-child) #{$child} { @extend %linked_not_right; }
- &:not(:last-child) #{$child} { @extend %linked_not_left; }
+ &:dir(ltr):not(:last-child) #{$child},
+ &:dir(rtl):not(:first-child) #{$child} {
+ border-right-style: none;
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
}
}
.linked.vertical {
#{$widget} {
- &:not(:first-child) #{$child} { @extend %linked_not_top; }
- &:not(:last-child) #{$child} { @extend %linked_not_bottom; }
+ &:not(:first-child) #{$child} {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ }
+
+ &:not(:last-child) #{$child} {
+ border-bottom-style: none;
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+ }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]