styles.scss 3.59 KB
Newer Older
Rahix's avatar
Rahix committed
1
2
@import "rc3-colors";
@import "rc3-fonts";
Rahix's avatar
Rahix committed
3

Rahix's avatar
Rahix committed
4
5
6
body {
   margin: 0;
   overflow: hidden;
Rahix's avatar
Rahix committed
7
   background-color: darken($background, 2);
Rahix's avatar
Rahix committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
}

div.game {
    position: relative;
    width: 98vw;
    height: 98vh;
    margin-top: 1vh;
    margin-bottom: 1vh;
    margin-left: 1vw;
    margin-right: 1vw;
    overflow: hidden;

    canvas, svg {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
Rahix's avatar
Rahix committed
26
27

    svg.game-gui {
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
        // The SVG itself passes all events through, to the canvas.  All
        // elements inside it, however, do receive pointer events.
        pointer-events: none;
        * {
            pointer-events: auto;
        }

        .background {
            fill: $background;
        }

        .transparent-background {
            fill: transparentize($background, 0.8);
        }

43
44
45
46
47
48
        text.version-info {
            font-family: "Montserrat";
            font-size: 12pt;
            fill: #ffffff90;
        }

49
50
51
52
53
        text.header {
            font-family: "Orbitron";
            font-weight: 900;
            fill: #ffffff;
            font-size: 72pt;
54

55
56
57
            text-anchor: middle;
        }

Rahix's avatar
Rahix committed
58
59
60
61
        rect.overlay-backdrop {
            fill: transparentize($primary1-shade3, 0.3);
        }

62
        text.footer {
63
            fill: $primary3-shade1;
Rahix's avatar
Rahix committed
64
65
            font-family: "Montserrat";
            font-size: 24pt;
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
        }

        g.button-1 {
            rect { fill: $typography-1; }
            text { fill: #ffffff; }
        }
        g.button-2 {
            rect { fill: $typography-2; }
            text { fill: #000000; }
        }
        g.button-3 {
            rect { fill: $typography-3; }
            text { fill: #ffffff; }
        }

        g.big-button {
            cursor: pointer;
            text {
                font-family: "Orbitron";
                font-weight: 900;
                font-size: 48pt;

                text-anchor: middle;
                dominant-baseline: middle;
            }
        }

Rahix's avatar
Rahix committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
        text.stats-label {
            fill: #ffffff;
            font-family: "Montserrat";
            font-weight: 700;
            font-size: 24pt;

            dominant-baseline: hanging;
        }

        text.stats-number {
            font-family: "Orbitron";
            font-weight: 900;
            font-size: 24pt;

            dominant-baseline: hanging;
            text-anchor: end;

            &.positive {
                fill: $typography-2;
            }

            &.negative {
                fill: $typography-3;
            }
        }

119
120
        text.group-box-label {
            font-family: "Orbitron";
Rahix's avatar
Rahix committed
121
            font-weight: 900;
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
            font-size: 32pt;

            fill: $primary3-shade1;
        }

        rect.group-box {
            fill: transparent;
            stroke: $primary3-shade1;
            stroke-width: 4px;
        }

        text.flowtext-header {
            fill: #ffffff;
            font-family: "Orbitron";
            font-weight: 700;
            font-size: 24pt;

            dominant-baseline: hanging;
        }

        foreignObject.flowtext div {
            margin: 0;
            font-family: "Montserrat";
            font-size: 24pt;
            color: #ffffff;
Rahix's avatar
Rahix committed
147
        }
Rahix's avatar
Rahix committed
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166

        text.sanity {
            font-family: "Orbitron";
            font-weight: 900;
            fill: $typography-2;
            font-size: 48pt;

            text-anchor: middle;
        }

        rect.sanity-amount {
            fill: $typography-3;
        }

        rect.sanity-outline {
            fill: transparent;
            stroke: #ffffff;
            stroke-width: 4px;
        }
Rahix's avatar
Rahix committed
167
    }
Rahix's avatar
Rahix committed
168
}