Skip to content

Commit

Permalink
changed from supports to media
Browse files Browse the repository at this point in the history
  • Loading branch information
edelvarden committed Oct 31, 2023
1 parent ef2e582 commit 92ddf23
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion chrome/user-chrome.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chrome/user-content.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/global/_experimental.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// fixes for default Firefox colors feature
@supports -moz-bool-pref("userChrome.default-theme-colors") {
@media (-moz-bool-pref: meta.inspect("userChrome.default-theme-colors")) {
:root,
html,
body,
Expand Down
1 change: 1 addition & 0 deletions src/user-chrome.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:meta";
@import "variables/index";
@import "global/reset";
@import "global/fonts";
Expand Down
2 changes: 1 addition & 1 deletion src/user-chrome/_variables-local.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@supports not -moz-bool-pref("userChrome.default-theme-colors") {
@media not (-moz-bool-pref: meta.inspect("userChrome.default-theme-colors")) {
// accent color vars
:root,
html,
Expand Down
2 changes: 1 addition & 1 deletion src/user-chrome/tabbar/_new-tabbar-feature.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@supports -moz-bool-pref("userChrome.chrome-refresh-2023") {
@media (-moz-bool-pref: meta.inspect("userChrome.chrome-refresh-2023")) {
// tabs bar top margin
#TabsToolbar-customization-target > :not(#alltabs-button) {
margin-top: 0px !important;
Expand Down
2 changes: 1 addition & 1 deletion src/user-chrome/urlbar/_compact-urlbar-feature.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@supports -moz-bool-pref("userChrome.compact-url-bar") {
@media (-moz-bool-pref: meta.inspect("userChrome.compact-url-bar")) {
#urlbar {
--urlbar-height: 28px !important;
--urlbar-toolbar-height: 36px !important;
Expand Down
3 changes: 1 addition & 2 deletions src/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ $colors: (
// --------------------------------------------------------------------------------
// -- Shadow
// --------------------------------------------------------------------------------
"elevation-2":
(rgba(0, 0, 0, 0.3) 0 1px 2px 0, rgba(0, 0, 0, 0.15) 0 2px 6px 2px),
"elevation-2": (0 2px 4px 0 rgba(0, 0, 0, 0.28)),
"elevation-3": (
rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px
Expand Down
10 changes: 5 additions & 5 deletions src/variables/_index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "sass:meta";
@import "constants";
@import "functions";
@import "animation";
Expand All @@ -14,8 +15,7 @@ body {
--#{$prefix}-#{$key}: #{$value};
}
}

@supports -moz-bool-pref("userChrome.force-enable-animations") {
@media (-moz-bool-pref: meta.inspect("userChrome.force-enable-animations")) {
// animation durations
@each $key, $value in $animation-durations {
--#{$prefix}-#{$key}: #{$value};
Expand Down Expand Up @@ -43,21 +43,21 @@ body {
}

// optional feature: Github theme colors
@supports -moz-bool-pref("userChrome.github-theme-colors") {
@media (-moz-bool-pref: meta.inspect("userChrome.github-theme-colors")) {
@each $key, $value in $github-theme-colors {
--#{$prefix}-#{$key}: #{$value};
}
}

// optional feature: Dracula theme colors
@supports -moz-bool-pref("userChrome.dracula-theme-colors") {
@media (-moz-bool-pref: meta.inspect("userChrome.dracula-theme-colors")) {
@each $key, $value in $dracula-theme-colors {
--#{$prefix}-#{$key}: #{$value};
}
}

// optional feature: Chrome refresh theme colors
@supports -moz-bool-pref("userChrome.chrome-refresh-colors") {
@media (-moz-bool-pref: meta.inspect("userChrome.chrome-refresh-colors")) {
@each $key, $value in $chrome-refresh-colors {
--#{$prefix}-#{$key}: #{$value};
}
Expand Down

0 comments on commit 92ddf23

Please sign in to comment.