/
index.css
111 lines (93 loc) 路 1.9 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* Variables */
:root {
--window-border-radius: 6px;
--font-size: 14px;
/* light mode */
--background-color: #f5f5f4;
--secondary-background-color: #D8D8D8;
--text-color: #333;
--secondary-text-color: #666;
/* dark mode */
--d-background-color: #303030;
--d-secondary-background-color: #505050;
--d-text-color: #E0E0E0;
--d-secondary-text-color: #F8F8F8;
--d-menu-color: #404040;
}
/* add toolbar background, button, text color */
.toolbar {
display: flex;
justify-content: space-between;
box-shadow: none;
padding: 5px 0;
}
.window {
border-top-left-radius: var(--window-border-radius);
border-top-right-radius: var(--window-border-radius);
}
.game-box {
display: flex;
align-items: center;
padding: 5px 0;
}
.column {
width: 20%;
text-align: center;
}
.primary {
font-size: calc(var(--font-size) + 6px);
font-weight: 300;
}
.description {
text-transform: uppercase;
font-size: calc(var(--font-size) - 3px);
font-weight: 400;
}
img {
width: 80%;
}
.only-text {
text-align: center;
padding: 150px 0;
}
.footer-link {
padding-top: 8px;
padding-left: 10px;
font-size: calc(var(--font-size) - 4px);
float: left;
}
/* LIGHT MODE */
.light .window-content {
background: var(--background-color);
}
.light .game-box:nth-child(odd) {
background: var(--secondary-background-color);
}
.light .primary,
.light .footer-link a {
color: var(--text-color);
}
.light .description {
color: var(--secondary-text-color);
}
/* DARK MODE */
.dark .window-content {
background: var(--d-background-color);
}
.dark .game-box:nth-child(odd) {
background: var(--d-secondary-background-color);
}
.dark .primary,
.dark .footer-link a {
color: var(--d-text-color);
}
.dark .description {
color: var(--d-secondary-text-color);
}
.dark .toolbar,
.dark .toolbar button,
.dark .toolbar span,
.dark .title {
background: var(--d-menu-color);
color: var(--d-text-color);
}