[libadwaita/wip/snwh/linked-button-fixes] buttons: fix linked flat button radii
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/snwh/linked-button-fixes] buttons: fix linked flat button radii
- Date: Fri, 12 Nov 2021 14:43:08 +0000 (UTC)
commit 6d3b6cbdb65c8c03d2420b77cc87779158843d7b
Author: Sam Hewitt <sam snwh org>
Date: Fri Nov 12 10:54:44 2021 -0330
buttons: fix linked flat button radii
src/stylesheet/widgets/_buttons.scss | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 524a8a7a..7cf004de 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -238,6 +238,7 @@ button {
&:active,
&:checked {
box-shadow: inset 0 0 0 1px $border_color;
+ > * {transform: none;}
}
}
@@ -392,6 +393,7 @@ button.outline {
@if $contrast == 'high' {
box-shadow: inset 0 0 0 1px $border_color;
+ > * {transform: none;}
}
@else {
box-shadow: inset 0 0 0 1px gtkalpha(currentColor, .15);
@@ -569,6 +571,21 @@ splitbutton {
> * {transform: translateY(1px);}
}
}
+
+ // Reimplementing linked so we don't blow up css
+ > button:dir(ltr),
+ > menubutton > button:dir(rtl) {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ margin-right: -1px;
+ }
+
+ > button:dir(rtl),
+ > menubutton > button:dir(ltr) {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ margin-left: -1px;
+ }
}
&.outline {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]