-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.css
153 lines (129 loc) · 3.47 KB
/
contact.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
.contact-image {
background-image: url("assets/images/design_6.png");
/* lower center center among x axis and bottom edge */
background-position: center bottom;
filter: saturate(0.7) sepia(0.2) contrast(1) brightness(1);
}
/* most of the time you will want to override the default input styles */
input {
border: none;
outline: none;
line-height: 1.5;
font-family: var(--boundeins-strange-font);
font-size: 16px;
height: 48px;
padding: 0 12px;
width: 100%;
box-sizing: border-box;
}
input::placeholder {
color: var(--color-2);
}
/* override the default class */
.bg-orange {
background-color: var(--background-color);
}
.contact {
/* using css grid to stack the child boxes on top of each other */
display: grid;
place-items: center;
/* chop off edges of the box when the front element slides out */
overflow: hidden;
}
/* so our boxes stack on top of each other */
.front,
.back {
grid-area: 1/1;
}
/* add a transition to the transform property */
.front {
transition: transform 0.5s ease-in;
}
/* we toggle this class using javascript */
.front.slide-up {
transform: translateY(-100%);
}
/* we show a pointer cursor so the users know they can click on */
/* group together as css works from top to bottom */
/* what comes last gets applied */
button {
/* cursor: pointer; */
outline: none;
}
.button {
display: inline-block;
background-color: var(--color-2);
color: var(--background-color);
text-transform: lowercase;
letter-spacing: 0.05em;
border: none;
padding: 24px 64px;
font-weight: 500;
border-radius: 16px;
}
.button-small {
font-size: 14px;
padding: 12px 20px;
}
.button-outline {
background-color: transparent;
border: solid 2px var(--color-2);
color: var(--text-color);
}
/* here we lock the form when it's submitting */
.form-fields {
transition: opacity 0.5s ease;
}
.processing .form-fields {
opacity: 0.5;
/* disabled interaction with the form when its submitting */
pointer-events: none;
}
/* taken from http://tobiasahlin.com/spinkit/*/
.spinner {
width: 40px;
height: 40px;
background-color: var(--color-2);
opacity: 0;
pointer-events: none;
/* margin: 100px auto; */
/* --webkit-animation: sk-rotateplane 1.2s infinite ease-in-out; */
animation: sk-rotateplane 1.2s infinite ease-in-out;
position: absolute;
top: 50%;
left: 50%;
margin-left: -20px;
margin-top: -20px;
transition: opacity 0.5s ease;
z-index: 10;
box-shadow: 0 0 11px 0px rgba(222, 184, 135, 0.5);
}
/* show the spinner when the form is processing */
.processing .spinner {
opacity: 1;
}
/* @--webkit-keyframes sk-rotateplane {
0% {
--webkit-transform: perspective(120px)
}
50% {
--webkit-transform: perspective(120px) rotateY(180deg)
}
100% {
--webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
}
} */
@keyframes sk-rotateplane {
0% {
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
--webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
}
50% {
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
--webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
}
100% {
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
--webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}