Skip to content

Commit

Permalink
fix firefox rtl behavior. closes #179
Browse files Browse the repository at this point in the history
  • Loading branch information
Maronato committed Oct 18, 2021
1 parent 074ceb8 commit d2c322d
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/scss/_toastContainer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
.#{$vt-namespace}__toast {
margin-right: auto;
}
.#{$vt-namespace}__toast--rtl {
margin-right: unset;
margin-left: auto;
// Firefox does not apply rtl rules to containers and margins, it appears.
// See https://github.com/Maronato/vue-toastification/issues/179
@supports not (-moz-appearance:none) {
.#{$vt-namespace}__toast--rtl {
margin-right: unset;
margin-left: auto;
}
}
}

Expand All @@ -44,9 +48,13 @@
.#{$vt-namespace}__toast {
margin-left: auto;
}
.#{$vt-namespace}__toast--rtl {
margin-left: unset;
margin-right: auto;
// Firefox does not apply rtl rules to containers and margins, it appears.
// See https://github.com/Maronato/vue-toastification/issues/179
@supports not (-moz-appearance:none) {
.#{$vt-namespace}__toast--rtl {
margin-left: unset;
margin-right: auto;
}
}
}

Expand Down

0 comments on commit d2c322d

Please sign in to comment.