Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

styles: Use @supports for Mozilla detection.

Anders Kaseorg978f25d4ac2f
diff --git a/static/styles/night_mode.scss b/static/styles/night_mode.scss
index 71078eb7307..9abb5716e8c 100644
--- a/static/styles/night_mode.scss
+++ b/static/styles/night_mode.scss
@@ -785,7 +785,7 @@ on a dark background, and don't change the dark labels dark either. */
}
}
-@-moz-document url-prefix() {
+@supports (-moz-appearance: none) {
body.night-mode #settings_page select {
background-color: hsla(0, 0%, 0%, 0.2);
}
diff --git a/static/styles/settings.scss b/static/styles/settings.scss
index 5e0dbee5009..9caa0b5c3bb 100644
--- a/static/styles/settings.scss
+++ b/static/styles/settings.scss
@@ -1946,7 +1946,7 @@ body:not(.night-mode) #settings_page .custom_user_field .datepicker {
margin-left: 2px;
}
-@-moz-document url-prefix() {
+@supports (-moz-appearance: none) {
#settings_page select {
-moz-appearance: none;
background: hsl(0, 0%, 100%) url('../images/dropdown.png') right / 20px no-repeat;