File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77@import 'chrome://global/skin/in-content/common.css' ; /* Firefox-only */
88
99: root {
10- --body-margin-h : 8 px ;
10+ --background-color-for-chrome : # 292a2d ;
1111 max-width : 700px ;
1212 margin : auto;
1313}
1414
1515body {
16+ --body-margin-h : 8px ;
1617 margin-left : var (--body-margin-h );
1718 margin-right : var (--body-margin-h );
1819}
@@ -77,12 +78,14 @@ textarea {
7778}
7879
7980@-moz-document url-prefix('') {
80- : root {
81- --body-margin-h : 6px ; /* Must be a variable so <hr>’s margin is changed too */
82- background-color : # fff ;
83- }
84-
81+ : root , /* Visible on a options_page */
8582 body {
83+ --body-margin-h : 6px ; /* Must be a variable so <hr>’s margin is changed too */ /* Visible on a options_page and options_ui */
84+ color : var (--in-content-page-color );
85+
86+ /* Also supports dark themes in Firefox */
87+ /* !important is to override the dark-mode setting for Chrome below */
88+ background-color : var (--in-content-box-background ) !important ;
8689 min-height : 250px ; /* Without this there’s a white space at the bottom in dark mode */
8790 }
8891
@@ -98,7 +101,7 @@ textarea {
98101
99102@media (prefers-color-scheme : dark) {
100103 : root {
101- background-color : var (--in-content-box-background , # 292a2d );
104+ background-color : var (--background-color-for-chrome );
102105 }
103106
104107 body ,
You can’t perform that action at this time.
0 commit comments