-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
130 lines (110 loc) · 2.54 KB
/
style.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* Document Root */
:root {
/* Background Color */
--background-color: rgb(185, 185, 185);
/* Score Color */
--score-color: rgb(55, 55, 55);
/* Main Grid/Block Color */
--grid-color: rgb(55, 55, 55);
--block-color: rgb(115, 115, 115);
/* Other Grid/Block Color */
--won-color: rgb(0, 255, 0);
--lost-color: rgb(255, 0, 0);
--incorrect-color: rgb(185, 0, 0);
--correct-color: rgb(185, 185, 185);
/* Button Color */
--button-color: rgb(125, 125, 125);
--button-hover-color: rgb(145, 145, 145);
--border-color: rgb(85, 85, 85);
/* Font Color */
--font-color: rgb(0, 0, 0);
}
/* Body */
body {
background-color: var(--background-color);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
font-family: "Oswald";
}
/* Heading One */
h1 {
color: var(--font-color);
font-size: 30px;
text-align: center;
}
/* Heading Two */
h2 {
color: var(--font-color);
font-size: 20px;
text-align: center;
}
/* Grid */
div.grid {
margin: 15px auto;
width: 650px;
height: 650px;
display: grid;
background: var(--grid-color);
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
gap: 10px;
padding: 10px;
}
/* Grid - Won Color */
.grid.won .block {
background: var(--won-color);
}
/* Grid - Lost Color*/
.grid.lost .block {
background: var(--lost-color);
}
/* Block */
.block {
width: 100%;
height: 100%;
border-radius: 5px;
cursor: pointer;
background: var(--block-color);
}
/* Block Show - Block Correct */
.block.show, .block.correct{
background: var(--correct-color);
}
/* Block Incorrect */
.block.incorrect{
background: var(--incorrect-color);
}
/* Grid Lost - Show Block */
.grid.lost .show.block {
background: var(--won-color);
}
/* Grid Lost - Block*/
.grid.lost .block {
background: var(--lost-color);
}
/* Grid Lost - Block Clicked Incorrect*/
.grid.lost .block.clicked.incorrect {
background: var(--incorrect-color);
}
/* Grid Lost - Block Clicked Correct */
.grid.lost .block.clicked.correct {
background: var(--correct-color);
}
/* Start Button - Base */
.start-button {
display: block;
padding: 15px 50px;
cursor: pointer;
font-size: 15px;
text-align: center;
text-decoration: none;
transition-duration: 0.1s;
border: 2px solid var(--border-color);
background: var(--button-color);
}
/* Start Button - Hover */
.start-button:hover {
background: var(--button-hover-color);
}