-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
124 lines (102 loc) · 2.02 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
}
main {
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
}
h1 {
position: absolute;
left: -9999px;
}
.card {
display: flex;
flex-basis: 100%;
justify-content: center;
align-content: stretch;
align-items: center;
height: 20vh;
position: relative;
overflow: hidden;
font-size: 36px;
text-decoration: none;
color: rgba(0,0,0,.2);
transition: color .2s ease-in-out;
}
.card .fab {
font-size: 100px;
}
/* Desktops - set borders */
@media screen and (min-width: 1281px) {
.card {
}
}
/* Tablets - two columns */
@media screen and (max-width: 1280px) {
.card {
flex-basis: 70%;
font-size: 24px;
}
}
/* Mobile - full width */
@media screen and (max-width: 768px) {
.card {
flex-basis: 100%;
}
}
.card .overlay {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
align-content: center;
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
text-align: center;
background-color: black;
color: white;
opacity: 0;
transition: opacity 0s ease-in-out;
}
@media screen and (max-width: 1280px) {
.card .overlay {
height: auto;
width: auto;
max-width: 80%;
opacity: .8;
border-radius: 10px;
padding: 20px;
}
}
.card .overlay .number {
display: block;
width: 100%;
font-size: 72px;
margin-bottom: 20px;
}
@media screen and (max-width: 1280px) {
.card .overlay .number {
font-size: 36px;
font-weight: bold;
margin-bottom: 10px;
}
}
.card img {
z-index: 1;
opacity: .8;
transition: opacity .3s ease-in-out;
}
.card:hover .overlay {
opacity: .8;
}
.card:hover {
color: rgba(0,0,0,.7);
}