-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
152 lines (132 loc) · 2.24 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: 'Press Start 2P', 'cursive';
}
.container {
height: 100vh;
background-image: linear-gradient(#a1c4fd 0%, rgba(194, 233, 251, 0.46) 100%);
display: flex;
justify-content: space-around;
align-items: center;
}
/*ADDING BORDER TO STATS, NEXT AND CONTROLS DIV*/
.stats,
.next,
.controls {
border-radius: 5px;
border: 3px solid black;
}
/*CREATING A FLEX DISPLAY FOR LEFT AND RIGHT SIDE OF CANVAS*/
.left,
.right {
height: 90vh;
display: flex;
flex-direction: column;
justify-content: space-around;
}
/* STYLING THE MID */
.mid {
text-align: center;
position: relative;
}
/*HEADER STYLE*/
.header span {
text-shadow: 2px 2px 3px black;
font-size: 2rem;
/* fixing the spacing problem of span tag*/
float: left;
margin: 5px;
}
/* giving different color to each letter */
.header span:nth-child(1) {
color: #23a148;
}
.header span:nth-child(2) {
color: #db98ae;
}
.header span:nth-child(3) {
color: #ee7828;
}
.header span:nth-child(4) {
color: #870116;
}
.header span:nth-child(5) {
color: #ece000;
}
.header span:nth-child(6) {
color: #008fcd;
}
.stats,
.controls p {
font-size: 0.8rem;
text-align: left;
}
.stats p {
padding: 0.5rem;
}
/* STYLING BUTTONS */
.buttons {
text-align: center;
}
.btn {
font-size: 0.8rem;
font-family: inherit;
margin-top: 1.5rem;
background-color: transparent;
border: 3px solid black;
border-radius: 5px;
padding: 0.5rem;
cursor: pointer;
outline: none;
box-shadow: 2px 2px black;
transition: all 0.2s;
}
.btn:active,
.btn-active {
box-shadow: 0.5px 0.5px black;
}
/* STYLING CANVAS */
.my-canvas {
border: 3px solid black;
border-radius: 5px;
height: 90vh;
}
/* STYLING TEXT THAT WILL APPEAR OVER THE CANVAS*/
.game-condition {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.game-condition p {
margin-top: 1rem;
font-size: 0.8rem;
white-space: nowrap;
}
/*STYLING THE NEXT BLOCK*/
.next {
text-align: center;
padding: 0.5rem;
width: 90%;
}
.tetro-img {
height: 6rem;
width: 6rem;
margin-top: 0.8rem;
transform: scale(0.8, 0.8);
}
/*STYLING CONTROLS BLOCK*/
.controls {
padding: 0.5rem;
}
.controls h4 {
text-align: center;
}
.controls p {
margin-top: 1rem;
}