Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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