Remove inset shorthand property for Qt5 support (#2180)

This commit is contained in:
Matthias Metelka 2022-11-05 01:55:17 +01:00 committed by GitHub
parent 2504ad0b99
commit c60a1c8ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 5 deletions

View File

@ -74,12 +74,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
.chevron { .chevron {
position: absolute; position: absolute;
inset: 0 0 0 auto; top: 0;
right: 0;
bottom: 0;
left: auto;
border-left: 1px solid var(--border-subtle); border-left: 1px solid var(--border-subtle);
} }
:global([dir="rtl"]) { :global([dir="rtl"]) {
.chevron { .chevron {
inset: 0 auto 0 0; left: 0;
right: auto;
border-left: none; border-left: none;
border-right: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle);
} }

View File

@ -174,12 +174,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
@include button.base($border: false); @include button.base($border: false);
&.left { &.left {
inset: 0 auto 0 0; top: 0;
right: auto;
bottom: 0;
left: 0;
border-right: 1px solid var(--border); border-right: 1px solid var(--border);
} }
&.right { &.right {
position: absolute; position: absolute;
inset: 0 0 0 auto; right: 0;
left: auto;
border-left: 1px solid var(--border); border-left: 1px solid var(--border);
} }
} }

View File

@ -21,7 +21,13 @@
position: absolute; position: absolute;
height: $icon-size; height: $icon-size;
width: $icon-size; width: $icon-size;
inset: $padding;
// replace with inset once Qt5 support is dropped
top: $padding;
right: $padding;
bottom: $padding;
left: $padding;
.nightMode & { .nightMode & {
filter: invert(1); filter: invert(1);
} }