Skip to content

Commit

Permalink
fix: get rid of sass/mixins (#2774)
Browse files Browse the repository at this point in the history
  • Loading branch information
limonte authored Oct 20, 2024
1 parent 2900935 commit e79ddb0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 30 deletions.
22 changes: 9 additions & 13 deletions src/scss/_body.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
@import 'toasts-body';

@mixin sweetalert2-body() {
&.swal2-shown {
@include not('.swal2-no-backdrop', '.swal2-toast-shown') {
overflow: hidden; // not overflow-y because of Sarari, #1253
}
&.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) {
overflow: hidden; // not overflow-y because of Sarari, #1253
}

&.swal2-height-auto {
Expand All @@ -27,17 +25,15 @@
}

@media print {
&.swal2-shown {
@include not('.swal2-no-backdrop', '.swal2-toast-shown') {
overflow-y: scroll !important;
&.swal2-shown:not(.swal2-no-backdrop, .swal2-toast-shown) {
overflow-y: scroll !important;

> [aria-hidden='true'] {
display: none;
}
> [aria-hidden='true'] {
display: none;
}

.swal2-container {
position: static !important;
}
.swal2-container {
position: static !important;
}
}
}
Expand Down
16 changes: 0 additions & 16 deletions src/scss/_mixins.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/scss/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// doesn't include at-rules or root selectors (like body) which allows for more comprehensive extending

@import '../variables';
@import 'mixins';
@import 'toasts';
@import 'body';
@import 'core';

0 comments on commit e79ddb0

Please sign in to comment.