/
styles.css
117 lines (104 loc) · 2.06 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
/***************
*
* DEMO PAGE STYLES
*
*************/
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: 'Roboto Slab', serif;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
font-weight: normal;
}
h2 {
text-align: center;
}
@keyframes pump {
0% {
transform: scale3d(0.5,0.5,5);
}
50% {
transform: scale3d(1,1,1);
}
100% {
transform: scale3d(0.5,0.5,5);
}
}
@keyframes blink {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.container {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100vh;
background: #f9f9f9;
padding: 32px;
border-bottom: 4px solid #FD1472;
}
.typethis,
.typethis__output {
display: inline-block;
position: relative;
}
.typethis__output {
z-index: 1;
}
.cursor {
display: block;
width: 2px;
height: 100%;
position: absolute;
top: 0;
right: 0;
z-index: 0;
background-color: #FD1472;
transition: all 200ms linear;
animation: blink 1s infinite forwards;
}
.cursor.is-done {
width: 100%;
animation: none;
}
.button__start {
display: inline-block;
padding: 10px 20px;
position: absolute;
top: 100px;
right: 100px;
color: #FD1472;
border: 2px solid currentColor;
border-radius: 4px;
background: transparent;
transition: all 200ms ease-in-out;
}
.button__start:hover, .button__start:focus {
color: #fafafa;
border-color: #FD1472;
background: #FD1472;
}
#svg-heart {
margin-top: 8px;
transition: all 200ms linear;
animation: pump 3s infinite forwards;
-webkit-backface-visibility: hidden;
}
.st0{
fill:#FD1472;
}