-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
99 lines (50 loc) · 1.08 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
h1 { color: red; }
#grid {
position: relative;
width: 50vw;
height: 50vw;
min-width: 250px;
min-height: 250px;
overflow: hidden;
border: 12px solid blue;
border-radius: 12px;
}
#tests {
display: grid;
grid-template-columns: 25% 25% 25% 25%;
grid-template-rows: 25% 25% 25% 25%;
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.test {
position: relative;
width: 100%;
height: 100%;
box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.05), inset -2px -2px 0 blue;
vertical-align: middle;
background-size: 100%; /* needed to scale background-image */
margin: 0;
}
.test * {
position: absolute;
top: 0;
z-index: 50;
margin: 0;
height: 100%;
width: 100%;
}
.test p {
position: relative;
top: 50%;
transform: translateY(-50%);
margin: 0;
z-index: 100;
color: #808080;
font-weight: bold;
text-align: center;
height: initial;
width: initial;
}