-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
133 lines (115 loc) · 2.1 KB
/
styles.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
:root {
--dark-blue: rgb(13, 13, 99);
--body-bg: rgb(3, 3, 49);
--btn-text: #EEEEEE;
}
body {
margin: 0;
padding: 0;
background-color: var(--body-bg);
}
/* Implementing the scoreboard red font */
@font-face {
font-family: 'Cursed Timer';
src: url(fonts/CursedTimerULiL.ttf);
font-style: normal;
}
/* Scoreboard styling */
.scoreboard {
display: flex;
flex-direction: column;
width: 280px;
justify-content: space-between;
align-items: center;
padding: 1em 2em;
border: 2px solid white;
border-radius: 5px;
color: white;
background-color: var(--dark-blue);
margin: 0 auto;
margin-top: 5em;
}
.scores {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5em;
}
.home,
.guest {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
margin: 0.5em 0;
}
h3 {
margin: 0.1em 0;
}
#home-score,
#guest-score,
#time,
#period {
background: black;
text-align: center;
color: red;
font-family: 'Cursed Timer';
font-size: xx-large;
}
#home-score,
#guest-score,
#time {
width: 40%;
padding: 0.5em;
margin-bottom: 0.5em;
border-radius: 0.5em;
}
/* Buttons */
.buttons button {
font-family: 'Cursed Timer';
padding: 0.3em;
}
#new-game,
#pause-game {
padding: 0.6em;
}
.buttons button,
#new-game,
#pause-game {
border: none;
margin: 0 0.2em;
background-color: var(--dark-blue);
color: var(--btn-text);
border: solid 1px var(--btn-text);
border-radius: 0.3em;
}
.buttons button:hover,
#new-game:hover,
#pause-game:hover {
cursor: pointer;
background-color: var(--btn-text);
color: var(--dark-blue);
border: solid 1px var(--dark-blue);
}
/* Period styling */
#period {
border-radius: 0.3em;
width: 30px;
padding: 0.2em;
}
.period-div {
display: flex;
flex-direction: column;
align-items: center;
}
@media screen and (min-width: 600px) {
.scoreboard {
width: 400px;
padding: 2em 4em;
}
.buttons button {
padding: 0.6em;
}
}