-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
131 lines (118 loc) · 2.93 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
@import url("https://fonts.googleapis.com/css?family=Roboto+Mono");
* {
box-sizing: border-box;
font-weight: normal;
}
body {
color: #555;
background:black;
text-align: center;
font-family: "Roboto Mono";
padding: 1em;
}
h1 {
font-size: 2.2em;
color: white;
}
.flip {
position: relative;
}
.flip > .front,
.flip > .back {
display: block;
transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
transition-duration: 0.5s;
transition-property: transform, opacity;
}
.flip > .front {
transform: rotateY(0deg);
}
.flip > .back {
position: absolute;
opacity: 0;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
transform: rotateY(-180deg);
}
.flip:hover > .front {
transform: rotateY(180deg);
}
.flip:hover > .back {
opacity: 1;
transform: rotateY(0deg);
}
.flip.flip-vertical > .back {
transform: rotateX(-180deg);
}
.flip.flip-vertical:hover > .front {
transform: rotateX(180deg);
}
.flip.flip-vertical:hover > .back {
transform: rotateX(0deg);
}
.flip {
position: relative;
display: inline-block;
margin-right: 2px;
margin-bottom: 1em;
width: 400px;
}
.flip > .front,
.flip > .back {
display: block;
color: white;
width: inherit;
background-size: cover !important;
background-position: center !important;
height: 220px;
padding: 1em 2em;
background: #313131;
border-radius: 10px;
}
.flip > .front p,
.flip > .back p {
font-size: 0.9125rem;
line-height: 160%;
color: #999;
}
.text-shadow {
text-shadow: 1px 1px rgba(0, 0, 0, 0.04), 2px 2px rgba(0, 0, 0, 0.04), 3px 3px rgba(0, 0, 0, 0.04), 4px 4px rgba(0, 0, 0, 0.04), 0.125rem 0.125rem rgba(0, 0, 0, 0.04), 6px 6px rgba(0, 0, 0, 0.04), 7px 7px rgba(0, 0, 0, 0.04), 8px 8px rgba(0, 0, 0, 0.04), 9px 9px rgba(0, 0, 0, 0.04), 0.3125rem 0.3125rem rgba(0, 0, 0, 0.04), 11px 11px rgba(0, 0, 0, 0.04), 12px 12px rgba(0, 0, 0, 0.04), 13px 13px rgba(0, 0, 0, 0.04), 14px 14px rgba(0, 0, 0, 0.04), 0.625rem 0.625rem rgba(0, 0, 0, 0.04), 16px 16px rgba(0, 0, 0, 0.04), 17px 17px rgba(0, 0, 0, 0.04), 18px 18px rgba(0, 0, 0, 0.04), 19px 19px rgba(0, 0, 0, 0.04), 1.25rem 1.25rem rgba(0, 0, 0, 0.04);
}
.heading {
font-family: "Playfair Display", serif;
font-size: 10vw;
}
.subheading {
font-family: "Open Sans", sans-serif;
font-size: 1em;
line-height: 1.5;
}
@media screen and (min-width: 40em) {
body {
width: 100%;
}
.heading {
font-size: 6vw;
}
.subheading {
font-size: 1.75vw;
}
}
/*================================================
Start Important Part
==================================================*/
.underline--magical {
background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
background-repeat: no-repeat;
background-size: 100% 0.2em;
background-position: 0 88%;
transition: background-size 0.25s ease-in;
&:hover {
background-size: 100% 88%;
}
}
/*================================================
End Important Part
==================================================*/