forked from jamiewilson/form-to-google-sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
118 lines (102 loc) · 2.31 KB
/
main.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
:root {
--accent: #F18260;
--purple: #252431;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #eee;
color: var(--purple);
padding: 10% 5%;
font-family: system, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.4;
}
.form-container {
position: relative;
background: #fff;
padding: 2rem;
border-radius: 6px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
width: 350px;
min-height: 300px;
margin: 0 auto;
box-shadow: 0 10px 50px 0 #ccc;
margin-bottom: 2rem;
}
input, button {
appearance: none;
border: none;
font-size: inherit;
background: #eee;
border-radius: 3px;
padding: 1rem;
width: 100%;
}
input {
margin-bottom: 1rem;
}
input:focus {
outline: 1px solid var(--accent);
}
button {
color: #fff;
cursor: pointer;
background-color: var(--purple);
}
button:hover {
background-color: var(--accent);
}
.is-hidden {
display: none !important;
}
a {
display: block;
width: max-content;
margin: 0 auto;
color: var(--accent);
text-decoration: none;
margin-bottom: 0.5rem;
}
@keyframes rotate {
100% { transform: rotate(360deg); }
}
@keyframes dash {
0% { stroke-dasharray: 1,200; stroke-dashoffset: 0; }
50% { stroke-dasharray: 89,200; stroke-dashoffset: -35; }
100% { stroke-dasharray: 89,200; stroke-dashoffset: -124; }
}
.loading {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.loading-spinner {
width: 50px;
height: 50px;
}
.loading-spinner svg {
position: relative;
animation: rotate 2s linear infinite;
height: 50px;
width: 50px;
}
.loading-spinner circle {
stroke: var(--accent);
stroke-dasharray: 1,200;
stroke-dashoffset: 0;
stroke-linecap: round;
animation: dash 1.5s ease-in-out infinite;
}