Skip to content

Commit 3175ba7

Browse files
committed
Fix other background-positions
Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
1 parent 68b9e74 commit 3175ba7

File tree

5 files changed

+42
-13
lines changed

5 files changed

+42
-13
lines changed

core/css/apps.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/apps.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/css/apps.scss

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ kbd {
166166
width: 100%;
167167
padding: 10px;
168168
padding-inline-start: 34px;
169-
background-position: 10px center;
170169
text-align: start;
171170
margin: 0;
172171
}
@@ -330,7 +329,6 @@ kbd {
330329
/* Main entry link */
331330
> a {
332331
background-size: 16px 16px;
333-
background-position: 14px center;
334332
background-repeat: no-repeat;
335333
display: block;
336334
justify-content: space-between;
@@ -671,21 +669,37 @@ kbd {
671669
}
672670
}
673671

674-
/* Floating fix */
672+
/* Floating and background-position fix */
675673
/* Cannot use inline-start and :dir to support Samsung Internet */
676674
body[dir='ltr'] {
677675
.app-navigation-personal,
678676
.app-navigation-administration {
679-
> ul > li > ul > li > a > .app-navigation-entry-utils {
680-
float: right;
677+
.app-navigation-new button {
678+
background-position: left 10px center;
679+
}
680+
681+
> ul > li > ul > li > a {
682+
background-position: left 14px center;
683+
684+
> .app-navigation-entry-utils {
685+
float: right;
686+
}
681687
}
682688
}
683689
}
684690
body[dir='rtl'] {
685691
.app-navigation-personal,
686692
.app-navigation-administration {
687-
> ul > li > ul > li > a > .app-navigation-entry-utils {
688-
float: left;
693+
.app-navigation-new button {
694+
background-position: right 10px center;
695+
}
696+
697+
> ul > li > ul > li > a {
698+
background-position: right 14px center;
699+
700+
> .app-navigation-entry-utils {
701+
float: left;
702+
}
689703
}
690704
}
691705
}
@@ -884,7 +898,6 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -
884898

885899
&::before {
886900
background-image: var(--icon-settings-dark);
887-
background-position: 14px center;
888901
background-repeat: no-repeat;
889902
content: '';
890903
width: 44px;
@@ -896,11 +909,27 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -
896909

897910
&:focus-visible {
898911
box-shadow: 0 0 0 2px inset var(--color-primary-element) !important;
899-
background-position: 12px center;
900912
}
901913
}
902914
}
903915

916+
/* Background-position fix */
917+
body[dir='ltr'] #app-settings-header .settings-button {
918+
&::before {
919+
background-position: left 14px center;
920+
}
921+
&:focus-visible {
922+
background-position: left 12px center;
923+
}
924+
}
925+
body[dir='rtl'] #app-settings-header .settings-button {
926+
&::before {
927+
background-position: right 14px center;
928+
}
929+
&:focus-visible {
930+
background-position: right 12px center;
931+
}
932+
}
904933
/* GENERAL SECTION ------------------------------------------------------------ */
905934
.section {
906935
display: block;

core/css/server.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)