You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/scss/main.scss
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
/* variables (mainly for colors) */
2
2
$brown-border: rgb(121, 77, 46);
3
3
$colored-container: rgb(255, 243, 209);
4
-
$dialog-backdrop-opacity: 50%; /* default value for dialog opacity if something goes wrong (and for simple popups :D) */
4
+
5
+
// non-SCSS variables that are used for anything that needs to be modified programmatically
6
+
:root {
7
+
--dialog-backdrop-opacity: 50%; /* default value for dialog opacity if something goes wrong (and for simple popups :D) */
8
+
}
5
9
6
10
@use"buildings.scss";
7
11
@@ -27,7 +31,7 @@ body {
27
31
28
32
/* no select for images */
29
33
-webkit-user-drag: none;
30
-
-webkit-touch-callout: none; /*yes its a mobile thing in the desktop version but its here anyway in case mobile breaks idk*/
34
+
-webkit-touch-callout: none; /* mobile-only*/
31
35
}
32
36
33
37
/* todo 0.7.1: find why these are here and how we can make their elements assigned to their own specific class instead of making every element have these properties*/
@@ -367,7 +371,7 @@ small {
367
371
dialog::backdrop {
368
372
background-color: black;
369
373
opacity: 50%;
370
-
opacity: $dialog-backdrop-opacity; /* for programmatic modification todo: fix*/
374
+
opacity: var(--dialog-backdrop-opacity); /* for programmatic modification */
0 commit comments