Skip to content

Commit

Permalink
Fix darkmmode with Nextcloud 25
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jul 21, 2022
1 parent 1742771 commit cdcc469
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions styles/toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
background-color: var(--color-main-background);
color: var(--color-main-text);
box-shadow: 0 0 6px 0 var(--color-box-shadow);
padding: 0px 12px;
padding: 0 12px;
margin-top: 45px;
position: fixed;
z-index: 10100;
Expand Down Expand Up @@ -57,9 +57,23 @@

// icon styling
&.toast-close {
background-image: url('./close.svg');
text-indent: 200%;
text-indent: 0;
opacity: .4;
border: none;
min-height: 44px;
margin-left: 10px;
font-size: 0;

/* dark theme overrides for Nextcloud 25 and later */
&::before {
background-image: url('./close.svg');
content: ' ';
filter: var(--background-invert-if-dark);

display: inline-block;
width: 16px;
height: 16px;
}
}

&.toast-undo-button {
Expand Down Expand Up @@ -106,12 +120,12 @@
}
}

/* dark theme overrides */
/* dark theme overrides for Nextcloud 24 and earlier */
.theme--dark {
.toastify.dialogs {
.toast-close {
/* close icon style */
&.toast-close {
&.toast-close::before {
background-image: url('./close-dark.svg');
}
}
Expand Down

0 comments on commit cdcc469

Please sign in to comment.