Skip to content

Commit

Permalink
Update: Updated RTL styling (fixes #105) (#106)
Browse files Browse the repository at this point in the history
* Updated RTL styling

* Button close RTL update

* Readability item RTL padding update
  • Loading branch information
guywillis authored Dec 18, 2023
1 parent 0eae830 commit 1e660f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 35 deletions.
7 changes: 1 addition & 6 deletions less/preview.less
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@
}

.letter {
margin-right: .5rem;
margin-inline-end: .5rem;
color: @font-color;
font-size: 1.25rem;
line-height: 1;

.dir-rtl & {
margin-left: .5rem;
margin-right: inherit;
}
}

.lines {
Expand Down
44 changes: 15 additions & 29 deletions less/visua11ySettings.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
&__group {
background-color: darken(@notify, 5%);
}

&__group-profiles {
display: flex;
justify-content: space-between;
flex-direction: column;

@media (min-width: @device-width-medium) {
flex-direction: row;
}
Expand All @@ -34,7 +34,7 @@
.visua11ysettings__item {
display: flex;
flex-direction: column;

@media (min-width: @device-width-medium) {
flex-direction: row;
align-items: center;
Expand All @@ -47,7 +47,7 @@
color: @notify-icon-inverted;
border: 0.0625rem solid @notify-icon;
}

input:checked + label .item-text {
background-color: @notify-icon-hover;
color: @notify-icon-inverted-hover;
Expand Down Expand Up @@ -92,7 +92,7 @@
color: @drawer-item-inverted;
border: 0.0625rem solid @drawer-item;
}

input:checked + label .item-text {
background-color: @drawer-item-selected;
color: @drawer-item-inverted-selected;
Expand All @@ -102,8 +102,8 @@

&__item {
border-top: 1px solid fade(@drawer-inverted, 30%);
}
}
}
}
}

// Global UI settings
Expand All @@ -128,14 +128,10 @@
}

&__item {
padding: @item-padding (@item-padding / 2);
padding-right: @icon-size + @item-padding;
padding-top: @item-padding;
padding-bottom: @item-padding;
padding-inline: (@item-padding / 2) (@icon-size + @item-padding);
position: relative;

.dir-rtl & {
padding-left: @icon-size + @item-padding;
padding-right: inherit;
}
}

.visua11ysettings__item > input {
Expand Down Expand Up @@ -170,20 +166,15 @@
// --------------------------------------------------
&__group-readability {
.visua11ysettings__item {
padding-right: @item-padding / 2;
padding-inline-end: @item-padding / 2;
}

.visua11ysettings__item-title {
margin-bottom: @item-margin;

@media (min-width: @device-width-medium) {
margin-right: @item-margin;
margin-inline-end: @item-margin;
margin-bottom: inherit;

.dir-rtl & {
margin-left: @item-margin;
margin-right: inherit;
}
}
}

Expand Down Expand Up @@ -225,12 +216,7 @@
.icon {
display: inline-block;
vertical-align: middle;
margin-right: .5rem;

.dir-rtl & {
margin-left: .5rem;
margin-right: inherit;
}
margin-inline-end: .5rem;
}

.colorprofileid .icon {
Expand Down Expand Up @@ -290,13 +276,13 @@
}

.btn-close {
margin-left: @btn-padding;
margin-inline-start: @btn-padding;
background-color: @btn-color-inverted;
color: @btn-color;

.no-touch &:hover {
background-color: @btn-color-inverted-hover;
color: @btn-color-hover;
}
}
}
}

0 comments on commit 1e660f1

Please sign in to comment.