-
Notifications
You must be signed in to change notification settings - Fork 0
/
QuoteGenerator.css
175 lines (142 loc) · 2.95 KB
/
QuoteGenerator.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
<video autoplay loop muted>
}
.app {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
background-color: white;
border-radius: 5px white;
}
header {
width: 100%;
font-size: 30px;
text-align: center;
padding: 10px;
color: white;
font-family: 'Reggae One', cursive;
}
.quotes {
padding: 20px 50px;
min-height: 200px;
}
.quote-text {
padding-bottom: 20px;
font-size: 40px;
color: white;
opacity: 0.6;
font-family: 'Caveat', cursive;
}
.quote-author{
padding-bottom: 20px;
font-size: 35px;
text-align: right;
color: white;
font-family: 'Caveat', cursive;
}
.controls {
width: 100%;
padding: 20px 50px;
}
.button {
display: block;
color: white;
border-radius: 4px;
border: none;
padding: 10px 20px;
cursor: pointer;
text-align: center;
max-width: 350px;
font-size: 20px;
}
.new-quote {
background-color: rgba(255, 255, 255, 0);
display:inline-block;
padding:0.5em 3em;
border:0.1em solid rgba(255, 255, 255, 0.534);
margin:0 0.3em 0.3em 0;
box-sizing: border-box;
text-decoration:none;
text-transform:uppercase;
font-family:'Roboto',sans-serif;
font-weight:400;
color:rgba(255, 255, 255, 0.705);
text-align:center;
transition: all 0.15s
}
.new-quote:hover {
background-color:transparent;
}
.new-quote:disabled {
background-color: trnsparent;
color: #cfcfcf60;
cursor: not-allowed;
}
@media screen and (max-width: 600px) {
.app {
width: 100%;
}
.quote-text {
font-size: 18px;
}
}
.spinner {
margin: 10px auto;
width: 50px;
height: 40px;
text-align: center;
font-size: 10px;
}
.spinner.hidden {
visibility: hidden;
}
.spinner > div {
background-color: #rgba(255, 255,255,0.651);
height: 100%;
width: 6px;
display: inline-block;
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
animation: sk-stretchdelay 1.2s infinite ease-in-out;
}
.spinner .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}
.spinner .rect3 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
.spinner .rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
.spinner .rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}
@-webkit-keyframes sk-stretchdelay {
0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
20% { -webkit-transform: scaleY(1.0) }
}
@keyframes sk-stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
-webkit-transform: scaleY(0.4);
} 20% {
transform: scaleY(1.0);
-webkit-transform: scaleY(1.0);
}
}