forked from FarmBuddy2023/FarmBuddy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.css
More file actions
224 lines (198 loc) · 5.19 KB
/
checkout.css
File metadata and controls
224 lines (198 loc) · 5.19 KB
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');
*{
font-family: 'Poppins', sans-serif;
margin:0; padding:0;
box-sizing: border-box;
outline: none; border:none;
text-decoration: none;
text-transform: capitalize;
transition: all .2s linear;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.modal {
width: fit-content;
height: fit-content;
background: #006400;
box-shadow: 3px 3px 5px 4px rgba(0, 0, 0, 0.5);
border-radius: 26px;
max-width: 450px;
}
.form {
display: flex;
flex-direction: column;
gap: 20px;
padding: 20px;
}
.payment--options {
width: calc(100% - 40px);
display: grid;
grid-template-columns: 33% 34% 33%;
gap: 20px;
padding: 10px;
}
.payment--options button {
height: 55px;
background: #fff;
border-radius: 11px;
padding: 0;
border: 0;
outline: none;
}
.payment--options button svg {
height: 18px;
}
.payment--options button:last-child svg {
height: 22px;
}
.separator {
width: calc(100% - 20px);
display: grid;
grid-template-columns: 1fr 2fr 1fr;
gap: 10px;
color: #8B8E98;
margin: 0 10px;
}
.separator > p {
word-break: keep-all;
display: block;
text-align: center;
font-weight: 600;
font-size: 11px;
margin: auto;
}
.separator .line {
display: inline-block;
width: 100%;
height: 1px;
border: 0;
background-color: #e8e8e8;
margin: auto;
}
.credit-card-info--form {
display: flex;
flex-direction: column;
gap: 15px;
}
.input_container {
width: 100%;
height: fit-content;
display: flex;
flex-direction: column;
gap: 5px;
}
.split {
display: grid;
grid-template-columns: 4fr 2fr;
gap: 30px;
}
.split input {
width: 100%;
}
.input_label {
font-size: 15px;
color: #fff;
font-weight: 600;
}
.input_field {
width: auto;
height: 40px;
padding: 0 0 0 16px;
border-radius: 9px;
outline: none;
background-color: #F2F2F2;
border: 1px solid #e5e5e500;
transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}
.cvv{
width: 74px !important;
}
.input_field:focus {
border: 1px solid transparent;
box-shadow: 0px 0px 0px 2px #242424;
}
.purchase--btn {
height: 55px;
background: #F2F2F2;
border-radius: 11px;
border: 0;
outline: none;
color: #ffffff;
font-size: 13px;
font-weight: 700;
background: linear-gradient(180deg, #363636 0%, #1B1B1B 50%, #000000 100%);
box-shadow: 0px 0px 0px 0px #FFFFFF, 0px 0px 0px 0px #000000;
transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}
.purchase--btn:hover {
box-shadow: 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #0000003a;
}
/* Reset input number styles */
.input_field::-webkit-outer-spin-button,
.input_field::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* for navbar */
.spinnerContainer { display: flex;
flex-direction: column; align-items: center;
}
.spinner { width: 56px;
height: 56px; display: grid;
border: 4px solid #0000; border-radius: 50%;
border-right-color: #006400; animation: tri-spinner 1s infinite linear;
}
.spinner::before,.spinner::after {
content: ""; grid-area: 1/1;
margin: 2px; border: inherit;
border-radius: 50%; animation: tri-spinner 2s infinite;
}
.spinner::after { margin: 8px;
animation-duration: 3s;}
@keyframes tri-spinner {
100% { transform: rotate(1turn);
}}
.loader {
color: #4a4a4a; font-family: "Poppins",sans-serif;
font-weight: 500; font-size: 25px;
-webkit-box-sizing: content-box; box-sizing: content-box;
height: 40px; padding: 10px 10px;
display: -webkit-box;
display: -ms-flexbox;
display: flex; border-radius: 8px;
}
.words { overflow: hidden;
}
.word { display: block;
height: 100%; padding-left: 6px;
color: #006400; animation: cycle-words 5s infinite;
}
@keyframes cycle-words { 10% {
-webkit-transform: translateY(-105%); transform: translateY(-105%);
}
25% { -webkit-transform: translateY(-100%);
transform: translateY(-100%); }
35% {
-webkit-transform: translateY(-205%); transform: translateY(-205%);
}
50% { -webkit-transform: translateY(-200%);
transform: translateY(-200%); }
60% {
-webkit-transform: translateY(-305%); transform: translateY(-305%);
}
75% { -webkit-transform: translateY(-300%);
transform: translateY(-300%); }
85% {
-webkit-transform: translateY(-405%); transform: translateY(-405%);
}
100% { -webkit-transform: translateY(-400%);
transform: translateY(-400%); }
}.spinnerContainer{
height: 100vh; display: flex;
justify-content: center; align-items: center;
}