Skip to content

Commit 8793c4f

Browse files
committed
Auto merge of #2454 - Turbo87:root, r=locks
styles: Use `:root` to define global CSS variables This seems to be a best practice 🤷‍♂️ r? @locks
2 parents 4f61f5e + 116272c commit 8793c4f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/styles/application.module.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
* {
2-
box-sizing: border-box;
3-
}
4-
5-
html {
1+
:root {
62
--main-color: #383838;
73
--main-color-light: #858585;
84
--main-bg: #f9f7ec;
@@ -11,7 +7,13 @@ html {
117
--link-color: rgb(0, 172, 91);
128
--link-hover-color: #007940;
139
--separator-color: #284725;
10+
}
1411

12+
* {
13+
box-sizing: border-box;
14+
}
15+
16+
html {
1517
background: url('/assets/noise.png');
1618
background-color: #3b6837;
1719
}

0 commit comments

Comments
 (0)