Skip to content

Commit

Permalink
Fix other background-positions
Browse files Browse the repository at this point in the history
Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
  • Loading branch information
ahangarha committed Jan 10, 2024
1 parent d98c23f commit e306407
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/css/apps.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/css/apps.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 38 additions & 9 deletions core/css/apps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ kbd {
width: 100%;
padding: 10px;
padding-inline-start: 34px;
background-position: 10px center;
text-align: start;
margin: 0;
}
Expand Down Expand Up @@ -330,7 +329,6 @@ kbd {
/* Main entry link */
> a {
background-size: 16px 16px;
background-position: 14px center;
background-repeat: no-repeat;
display: block;
justify-content: space-between;
Expand Down Expand Up @@ -671,21 +669,37 @@ kbd {
}
}

/* Floating fix */
/* Floating and background-position fix */
/* Cannot use inline-start and :dir to support Samsung Internet */
body[dir='ltr'] {
.app-navigation-personal,
.app-navigation-administration {
> ul > li > ul > li > a > .app-navigation-entry-utils {
float: right;
.app-navigation-new button {
background-position: left 10px center;
}

> ul > li > ul > li > a {
background-position: left 14px center;

> .app-navigation-entry-utils {
float: right;
}
}
}
}
body[dir='rtl'] {
.app-navigation-personal,
.app-navigation-administration {
> ul > li > ul > li > a > .app-navigation-entry-utils {
float: left;
.app-navigation-new button {
background-position: right 10px center;
}

> ul > li > ul > li > a {
background-position: right 14px center;

> .app-navigation-entry-utils {
float: left;
}
}
}
}
Expand Down Expand Up @@ -884,7 +898,6 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width -

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

&:focus-visible {
box-shadow: 0 0 0 2px inset var(--color-primary-element) !important;
background-position: 12px center;
}
}
}

/* Background-position fix */
body[dir='ltr'] #app-settings-header .settings-button {
&::before {
background-position: left 14px center;
}
&:focus-visible {
background-position: left 12px center;
}
}
body[dir='rtl'] #app-settings-header .settings-button {
&::before {
background-position: right 14px center;
}
&:focus-visible {
background-position: right 12px center;
}
}
/* GENERAL SECTION ------------------------------------------------------------ */
.section {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion core/css/server.css

Large diffs are not rendered by default.

Loading

0 comments on commit e306407

Please sign in to comment.