-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
265 lines (220 loc) · 5.72 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
112
113
114
115
116
117
118
119
120
121
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
@font-face {
font-family: TimerFont;
src: url(CursedTimerUlil-Aznm.ttf);
/* Adding a new font using a .tff file which we have uploaded
* to our coding folder
*/
}
body {
margin: 0;
background-color: #1B244A;
}
.timer {
text-align: center;
font-family: 'Verdana';
font-style: normal;
font-weight: 400;
font-size: 30px;
color: #FFFFFF;
margin-bottom: -20px;
}
#nbaGameClock {
font-family: TimerFont;
font-size: 5vh;
color: #F94F6D;
background: #080001;
border-style: solid;
border-color: white;
width: 200px;
line-height: 92px;
margin-left:auto;
margin-right:auto;
width:212px; /* Here we knew the dimensions of our timer block so we set it as that
* Then we can auto-set its position by shifting the margins. The auto
* value is meant to center the block-level element
*/
height:92px;
margin-top: 20px;
margin-bottom: 10px;
}
.timerButtons {
box-sizing: border-box;
border: 2px solid #9AABD8;
border-radius: 5px;
width: 100px;
/* These are specifications to get a desired position for the text inside
* the box itself. It DOES NOT adjust AROUND the box
*/
height: 45px;
left: 82px;
top: 271px;
color: #9AABD8;
background-color: #1B244A;
font-family: 'Verdana';
}
.timerButtons:hover {
border: 2px solid #addf2f;
color: #addf2f;
cursor: pointer;
}
.scoreContainer {
display: flex;
/* We want to start by dividing it into two different columns
* so we use a flexbox to achieve that
*/
justify-content: space-evenly;
/* This achieves a specific desired layout but there can be multiple
* values which can help us to achieve that
*/
}
.title-el {
/* Note that many of these values have been used with Figma's help*/
font-family: 'Verdana';
font-style: normal;
font-weight: 400;
font-size: 30px;
text-align: center;
color: #FFFFFF;
height: 327px;
width: 211px;
}
#period-el {
font-family: 'Verdana';
font-style: normal;
font-weight: 700;
font-size: 20px;
justify-content: center;
color: #FFFFFF;
margin-top: 90px;
height: 183px;
text-align: center;
width: 123px;
/* Centering in CSS can get tricky so howtocenterincss.com is
* a fantastic resource. For example, line-height can be used
* to vertically align a single line if we know
*/
cursor: pointer;
}
#periodScore-el {
/* 123 x 24 */
padding-top: 20px;
background-color: #080001;
margin-top: 15px; /* We have lessened the border at the top */
height: 60px;
font-family: TimerFont;
font-size: 45px;
color: #FFC72C;
}
#homeScore-el {
font-family: TimerFont;
color: #F94F6D;
border: 3px solid transparent #FFC72C; /* We are keeping the border transparent and only showing it when they're
leader (using javascript logic). hidden is equivalent to none */
font-size: 10vh;
background: #080001;
width: 14vh;
height: 8vh;
padding: 4vh; /* Keep in mind how the box looks in CSS, padding is on the
* inside of the width, whereas border radius comes around
* it
*/
margin-bottom: 10px; /* Using margin-bottom to create space between
* our black box (one container) and the buttons
* which is technically a different inline block
*/
}
#guestScore-el {
font-family: TimerFont;
color: #F94F6D;
border: 3px solid transparent #FFC72C;
font-size: 10vh;
background: #080001;
width: 14vh;
height: 8vh;
padding: 4vh;
margin-bottom: 10px;
}
.button {
/* Since we have the same formatting for both columns essentially we
* are using a common division for CSS beautification
*/
box-sizing: border-box;
border: 2px solid #9AABD8;
border-radius: 5px;
width: 45px;
/* These are specifications to get a desired position for the text inside
* the box itself. It DOES NOT adjust AROUND the box
*/
height: 45px;
left: 82px;
top: 271px;
color: #9AABD8;
background-color: #1B244A;
font-family: TimerFont;
}
button:hover {
border: 2px solid #addf2f;
color: #addf2f;
cursor: pointer;
}
.foulsContainer {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.foulsText {
font-family: 'Verdana';
font-weight: 700;
font-size: 20px;
text-align: center;
color: #FFFFFF;
}
#homeFouls-el {
background-color: #080001;
height: 70px;
line-height: 80px; /* Lihe height used to center align*/
margin-top: 10px;
margin-bottom: 0px;
margin-left: 10px;
width: 50px;
font-family: TimerFont;
font-size: 45px;
color: #FFC72C;
cursor: pointer;
}
#guestFouls-el {
background-color: #080001;
height: 70px;
line-height: 80px;
margin-top: 10px;
margin-bottom: 0px;
margin-left: 10px;
width: 50px;
font-family: TimerFont;
font-size: 45px;
color: #FFC72C;
cursor: pointer;
}
.newGame {
text-align: center; /* Centering button in block using text-align*/
}
#newGameButton {
box-sizing: border-box;
border: 2px solid #9AABD8;
border-radius: 5px;
width: 100px;
/* These are specifications to get a desired position for the text inside
* the box itself. It DOES NOT adjust AROUND the box
*/
height: 45px;
left: 82px;
top: 271px;
color: #9AABD8;
background-color: #1B244A;
font-family: 'Verdana';
}
#newGameButton:hover {
border: 2px solid #addf2f;
color: #addf2f;
cursor: pointer;
}