Skip to content

Commit c761848

Browse files
committed
Update the initial styles.css for a new theme
The CSS variables apply to .numbas-container, not :root
1 parent fe7fdc3 commit c761848

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
/* Use this file to add CSS rules affecting the appearance of your theme. */
22

3-
:root {
4-
/* These colours are used as the background of the sidebar, among other places, in light mode and dark mode respectively. */
5-
--light-main-color: #a2d1f0;
6-
--dark-main-color: #1b4764;
3+
@layer theme {
4+
.numbas-container, #style-modal {
5+
/* These colours are used as the background of the sidebar, among other places, in light mode and dark mode respectively. */
6+
--light-main-color: #a2d1f0;
7+
--dark-main-color: #1b4764;
78

8-
/* More colours are defined in `files/resources/color-mix.css`. */
9+
/* More colours are defined in `files/resources/color-mix.css`. */
910

1011

11-
/* This determines the default main font */
12-
--main-font: sans-serif;
13-
/* To add more font options, add to Numbas.display.font_options -- see `files/scripts/display-base.js`. */
12+
/* This determines the default main font */
13+
--main-font: sans-serif;
14+
/* To add more font options, add to Numbas.display.font_options -- see `files/scripts/display-base.js`. */
1415

15-
/* More variables are defined in `files/resources/_variables.css`. */
16+
/* More variables are defined in `files/resources/_variables.css`. */
17+
}
1618
}

0 commit comments

Comments
 (0)