@rabbitio/ui-kit 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,459 @@
1
+ @import "functions";
2
+ @import "placeholder";
3
+ @import "variables";
4
+
5
+ @for $i from 0 through 10 {
6
+ .m-#{$i} {
7
+ margin: #{$i * 4}px;
8
+ }
9
+ .p-#{$i} {
10
+ padding: #{$i * 4}px;
11
+ }
12
+ }
13
+
14
+ @for $i from 0 through 10 {
15
+ .ml-#{$i} {
16
+ margin-left: #{$i * 4}px;
17
+ }
18
+ .pl-#{$i} {
19
+ padding-left: #{$i * 4}px;
20
+ }
21
+ }
22
+
23
+ @for $i from 0 through 10 {
24
+ .mr-#{$i} {
25
+ margin-right: #{$i * 4}px;
26
+ }
27
+ .pr-#{$i} {
28
+ padding-right: #{$i * 4}px;
29
+ }
30
+ }
31
+
32
+ @for $i from 0 through 10 {
33
+ .mt-#{$i} {
34
+ margin-top: #{$i * 4}px;
35
+ }
36
+ .pt-#{$i} {
37
+ padding-top: #{$i * 4}px;
38
+ }
39
+ }
40
+
41
+ @for $i from 0 through 10 {
42
+ .mb-#{$i} {
43
+ margin-bottom: #{$i * 4}px;
44
+ }
45
+ .pb-#{$i} {
46
+ padding-bottom: #{$i * 4}px;
47
+ }
48
+ }
49
+
50
+ @for $i from 0 through 10 {
51
+ .mx-#{$i} {
52
+ margin-right: #{$i * 4}px;
53
+ margin-left: #{$i * 4}px;
54
+ }
55
+ .px-#{$i} {
56
+ padding-right: #{$i * 4}px;
57
+ padding-left: #{$i * 4}px;
58
+ }
59
+ }
60
+
61
+ @for $i from 0 through 10 {
62
+ .my-#{$i} {
63
+ margin-top: #{$i * 4}px;
64
+ margin-bottom: #{$i * 4}px;
65
+ }
66
+ .py-#{$i} {
67
+ padding-top: #{$i * 4}px;
68
+ padding-bottom: #{$i * 4}px;
69
+ }
70
+ }
71
+
72
+ @media (min-width: $phone-width) {
73
+ @for $i from 0 through 10 {
74
+ .m-sm-#{$i} {
75
+ margin: #{$i * 4}px;
76
+ }
77
+ .p-sm-#{$i} {
78
+ padding: #{$i * 4}px;
79
+ }
80
+ }
81
+
82
+ @for $i from 0 through 10 {
83
+ .ml-sm-#{$i} {
84
+ margin-left: #{$i * 4}px !important;
85
+ }
86
+ .pl-sm-#{$i} {
87
+ padding-left: #{$i * 4}px !important;
88
+ }
89
+ }
90
+
91
+ @for $i from 0 through 10 {
92
+ .mr-sm-#{$i} {
93
+ margin-right: #{$i * 4}px !important;
94
+ }
95
+ .pr-sm-#{$i} {
96
+ padding-right: #{$i * 4}px !important;
97
+ }
98
+ }
99
+
100
+ @for $i from 0 through 10 {
101
+ .mt-sm-#{$i} {
102
+ margin-top: #{$i * 4}px !important;
103
+ }
104
+ .pt-sm-#{$i} {
105
+ padding-top: #{$i * 4}px !important;
106
+ }
107
+ }
108
+
109
+ @for $i from 0 through 10 {
110
+ .mb-sm-#{$i} {
111
+ margin-bottom: #{$i * 4}px !important;
112
+ }
113
+ .pb-sm-#{$i} {
114
+ padding-bottom: #{$i * 4}px !important;
115
+ }
116
+ }
117
+
118
+ @for $i from 0 through 10 {
119
+ .mx-sm-#{$i} {
120
+ margin-right: #{$i * 4}px !important;
121
+ margin-left: #{$i * 4}px !important;
122
+ }
123
+ .px-sm-#{$i} {
124
+ padding-right: #{$i * 4}px !important;
125
+ padding-left: #{$i * 4}px !important;
126
+ }
127
+ }
128
+
129
+ @for $i from 0 through 10 {
130
+ .my-sm-#{$i} {
131
+ margin-top: #{$i * 4}px !important;
132
+ margin-bottom: #{$i * 4}px !important;
133
+ }
134
+
135
+ .py-sm-#{$i} {
136
+ padding-top: #{$i * 4}px !important;
137
+ padding-bottom: #{$i * 4}px !important;
138
+ }
139
+ }
140
+ }
141
+
142
+ @media (min-width: $laptop-width) {
143
+ @for $i from 0 through 10 {
144
+ .m-lg-#{$i} {
145
+ margin: #{$i * 4}px;
146
+ }
147
+ .p-lg-#{$i} {
148
+ padding: #{$i * 4}px;
149
+ }
150
+ }
151
+
152
+ @for $i from 0 through 10 {
153
+ .ml-lg-#{$i} {
154
+ margin-left: #{$i * 4}px !important;
155
+ }
156
+ .pl-lg-#{$i} {
157
+ padding-left: #{$i * 4}px !important;
158
+ }
159
+ }
160
+
161
+ @for $i from 0 through 10 {
162
+ .mr-lg-#{$i} {
163
+ margin-right: #{$i * 4}px !important;
164
+ }
165
+ .pr-lg-#{$i} {
166
+ padding-right: #{$i * 4}px !important;
167
+ }
168
+ }
169
+
170
+ @for $i from 0 through 10 {
171
+ .mt-lg-#{$i} {
172
+ margin-top: #{$i * 4}px !important;
173
+ }
174
+ .pt-lg-#{$i} {
175
+ padding-top: #{$i * 4}px !important;
176
+ }
177
+ }
178
+
179
+ @for $i from 0 through 10 {
180
+ .mb-lg-#{$i} {
181
+ margin-bottom: #{$i * 4}px !important;
182
+ }
183
+ .pb-lg-#{$i} {
184
+ padding-bottom: #{$i * 4}px !important;
185
+ }
186
+ }
187
+
188
+ @for $i from 0 through 10 {
189
+ .mx-lg-#{$i} {
190
+ margin-right: #{$i * 4}px !important;
191
+ margin-left: #{$i * 4}px !important;
192
+ }
193
+ .px-lg-#{$i} {
194
+ padding-right: #{$i * 4}px !important;
195
+ padding-left: #{$i * 4}px !important;
196
+ }
197
+ }
198
+
199
+ @for $i from 0 through 10 {
200
+ .my-lg-#{$i} {
201
+ margin-top: #{$i * 4}px !important;
202
+ margin-bottom: #{$i * 4}px !important;
203
+ }
204
+ .py-lg-#{$i} {
205
+ padding-top: #{$i * 4}px !important;
206
+ padding-bottom: #{$i * 4}px !important;
207
+ }
208
+ }
209
+ }
210
+
211
+ @media (min-width: $tablet-width) {
212
+ @for $i from 0 through 10 {
213
+ .m-md-#{$i} {
214
+ margin: #{$i * 4}px;
215
+ }
216
+ .p-md-#{$i} {
217
+ padding: #{$i * 4}px;
218
+ }
219
+ }
220
+
221
+ @for $i from 0 through 10 {
222
+ .ml-md-#{$i} {
223
+ margin-left: #{$i * 4}px !important;
224
+ }
225
+ .pl-md-#{$i} {
226
+ padding-left: #{$i * 4}px !important;
227
+ }
228
+ }
229
+
230
+ @for $i from 0 through 10 {
231
+ .mr-md-#{$i} {
232
+ margin-right: #{$i * 4}px !important;
233
+ }
234
+ .pr-md-#{$i} {
235
+ padding-right: #{$i * 4}px !important;
236
+ }
237
+ }
238
+
239
+ @for $i from 0 through 10 {
240
+ .mt-md-#{$i} {
241
+ margin-top: #{$i * 4}px !important;
242
+ }
243
+ .pt-md-#{$i} {
244
+ padding-top: #{$i * 4}px !important;
245
+ }
246
+ }
247
+
248
+ @for $i from 0 through 10 {
249
+ .mb-md-#{$i} {
250
+ margin-bottom: #{$i * 4}px !important;
251
+ }
252
+ .pb-md-#{$i} {
253
+ padding-bottom: #{$i * 4}px !important;
254
+ }
255
+ }
256
+
257
+ @for $i from 0 through 10 {
258
+ .mx-md-#{$i} {
259
+ margin-right: #{$i * 4}px !important;
260
+ margin-left: #{$i * 4}px !important;
261
+ }
262
+ .px-md-#{$i} {
263
+ padding-right: #{$i * 4}px !important;
264
+ padding-left: #{$i * 4}px !important;
265
+ }
266
+ }
267
+
268
+ @for $i from 0 through 10 {
269
+ .my-md-#{$i} {
270
+ margin-top: #{$i * 4}px !important;
271
+ margin-bottom: #{$i * 4}px !important;
272
+ }
273
+ .py-md-#{$i} {
274
+ padding-top: #{$i * 4}px !important;
275
+ padding-bottom: #{$i * 4}px !important;
276
+ }
277
+ }
278
+ }
279
+
280
+ @media (min-width: $desktop-width) {
281
+ @for $i from 0 through 10 {
282
+ .m-xl-#{$i} {
283
+ margin: #{$i * 4}px;
284
+ }
285
+ .p-xl-#{$i} {
286
+ padding: #{$i * 4}px;
287
+ }
288
+ }
289
+
290
+ @for $i from 0 through 10 {
291
+ .ml-xl-#{$i} {
292
+ margin-left: #{$i * 4}px !important;
293
+ }
294
+ .pl-xl-#{$i} {
295
+ padding-left: #{$i * 4}px !important;
296
+ }
297
+ }
298
+
299
+ @for $i from 0 through 10 {
300
+ .mr-xl-#{$i} {
301
+ margin-right: #{$i * 4}px !important;
302
+ }
303
+ .pr-xl-#{$i} {
304
+ padding-right: #{$i * 4}px !important;
305
+ }
306
+ }
307
+
308
+ @for $i from 0 through 10 {
309
+ .mt-xl-#{$i} {
310
+ margin-top: #{$i * 4}px !important;
311
+ }
312
+ .pt-xl-#{$i} {
313
+ padding-top: #{$i * 4}px !important;
314
+ }
315
+ }
316
+
317
+ @for $i from 0 through 10 {
318
+ .mb-xl-#{$i} {
319
+ margin-bottom: #{$i * 4}px !important;
320
+ }
321
+ .pb-xl-#{$i} {
322
+ padding-bottom: #{$i * 4}px !important;
323
+ }
324
+ }
325
+
326
+ @for $i from 0 through 10 {
327
+ .mx-xl-#{$i} {
328
+ margin-right: #{$i * 4}px !important;
329
+ margin-left: #{$i * 4}px !important;
330
+ }
331
+ .px-xl-#{$i} {
332
+ padding-right: #{$i * 4}px !important;
333
+ padding-left: #{$i * 4}px !important;
334
+ }
335
+ }
336
+
337
+ @for $i from 0 through 10 {
338
+ .my-xl-#{$i} {
339
+ margin-top: #{$i * 4}px !important;
340
+ margin-bottom: #{$i * 4}px !important;
341
+ }
342
+ .py-xl-#{$i} {
343
+ padding-top: #{$i * 4}px !important;
344
+ padding-bottom: #{$i * 4}px !important;
345
+ }
346
+ }
347
+ }
348
+
349
+ .container {
350
+ max-width: 1260px;
351
+ margin: 0 auto;
352
+ @extend %container-padding;
353
+ }
354
+
355
+ .background-shine {
356
+ position: absolute;
357
+ left: -165px;
358
+ top: -300px;
359
+ z-index: -1;
360
+
361
+ @media (max-width: $phone-width) {
362
+ left: -165px;
363
+ top: -103px;
364
+ width: 648px;
365
+ }
366
+ }
367
+
368
+ .path {
369
+ width: 100%;
370
+ height: 1px;
371
+ background: LightColor("white-20");
372
+ }
373
+
374
+ .line {
375
+ width: 100%;
376
+ height: 1px;
377
+ border-bottom: 0.5px solid SolidColor("smoke");
378
+ }
379
+
380
+ a {
381
+ text-decoration: none;
382
+ }
383
+
384
+ .skeleton {
385
+ background: SolidColor("lightsmoke");
386
+ animation: skeleton-animate 1s 1s infinite ease-in-out;
387
+ }
388
+
389
+ .skeleton-dark {
390
+ background: LightColor("dark-20");
391
+ animation: skeleton-dark-animate 1s 1s infinite ease-in-out;
392
+ }
393
+
394
+ .skeleton-transparent {
395
+ background: rgba($white, 0.2);
396
+ animation: skeleton-transparent-animate 1s 1s infinite ease-in-out;
397
+ }
398
+
399
+ .semi-transparent {
400
+ opacity: 0.5;
401
+ }
402
+
403
+ td {
404
+ padding: 0;
405
+ }
406
+
407
+ /* Chrome, Safari, Edge, Opera */
408
+ input::-webkit-outer-spin-button,
409
+ input::-webkit-inner-spin-button {
410
+ -webkit-appearance: none;
411
+ margin: 0;
412
+ }
413
+
414
+ /* Firefox */
415
+ input[type="number"] {
416
+ -moz-appearance: textfield;
417
+ }
418
+
419
+ textarea {
420
+ -webkit-appearance: none;
421
+ -moz-appearance: none;
422
+ appearance: none;
423
+ }
424
+
425
+ @keyframes skeleton-animate {
426
+ 0% {
427
+ background: #eaeaea;
428
+ }
429
+ 50% {
430
+ background: SolidColor("lightsmoke");
431
+ }
432
+ 100% {
433
+ background: #eaeaea;
434
+ }
435
+ }
436
+
437
+ @keyframes skeleton-dark-animate {
438
+ 0% {
439
+ background: LightColor("dark-20");
440
+ }
441
+ 50% {
442
+ background: LightColor("grey-20");
443
+ }
444
+ 100% {
445
+ background: LightColor("dark-20");
446
+ }
447
+ }
448
+
449
+ @keyframes skeleton-transparent-animate {
450
+ 0% {
451
+ background: rgba($white, 0.2);
452
+ }
453
+ 50% {
454
+ background: rgba($white, 0.1);
455
+ }
456
+ 100% {
457
+ background: rgba($white, 0.2);
458
+ }
459
+ }
@@ -0,0 +1,59 @@
1
+ @import "variables";
2
+ @import "functions";
3
+
4
+ @mixin typograpy($tag) {
5
+ @if ($tag == "h1") {
6
+ font-size: 40px;
7
+ line-height: 50px;
8
+ letter-spacing: $letterSpacing;
9
+ font-weight: $extra-bold;
10
+ margin: 0;
11
+ color: SolidColor("dark");
12
+ }
13
+ @if ($tag == "h2") {
14
+ font-size: 35px;
15
+ line-height: 45px;
16
+ letter-spacing: $letterSpacing;
17
+ font-weight: $extra-bold;
18
+ margin: 0;
19
+ color: SolidColor("dark");
20
+ }
21
+ @if ($tag == "h3") {
22
+ font-size: 30px;
23
+ line-height: 40px;
24
+ letter-spacing: $letterSpacing;
25
+ font-weight: $extra-bold;
26
+ margin: 0;
27
+ color: SolidColor("dark");
28
+ }
29
+ @if ($tag == "h4") {
30
+ font-size: 25px;
31
+ line-height: 35px;
32
+ letter-spacing: $letterSpacing;
33
+ margin: 0;
34
+ color: SolidColor("dark");
35
+ }
36
+ @if ($tag == "h5") {
37
+ font-size: 20px;
38
+ line-height: 30px;
39
+ letter-spacing: $letterSpacing;
40
+ margin: 0;
41
+ font-weight: $medium;
42
+ color: SolidColor("dark");
43
+ }
44
+ @if ($tag == "h6") {
45
+ font-size: 16px;
46
+ line-height: 26px;
47
+ letter-spacing: $letterSpacing;
48
+ margin: 0;
49
+ font-weight: $medium;
50
+ color: SolidColor("dark");
51
+ }
52
+ @if ($tag == "p") {
53
+ font-size: 14px;
54
+ line-height: 24px;
55
+ letter-spacing: $letterSpacing;
56
+ margin: 0;
57
+ color: SolidColor("dark");
58
+ }
59
+ }
@@ -0,0 +1,146 @@
1
+ @import "variables";
2
+ @import "functions";
3
+
4
+ %container-padding {
5
+ padding: Padding("50");
6
+
7
+ @media (max-width: $phone-width) {
8
+ padding: Padding("5");
9
+ }
10
+ }
11
+
12
+ %font {
13
+ font-family: NunitoSans;
14
+ }
15
+
16
+ %text-very-bold {
17
+ font-weight: $very-bold;
18
+ line-height: 1.71;
19
+ letter-spacing: $letterSpacing;
20
+ @extend %font;
21
+ }
22
+
23
+ %text-bold {
24
+ font-weight: $bold;
25
+ line-height: 1.71;
26
+ letter-spacing: $letterSpacing;
27
+ @extend %font;
28
+ }
29
+
30
+ %text-semibold {
31
+ font-weight: $semi-bold;
32
+ line-height: 1.71;
33
+ letter-spacing: $letterSpacing;
34
+ @extend %font;
35
+ }
36
+
37
+ %text-medium {
38
+ font-weight: $medium;
39
+ line-height: 1.71;
40
+ letter-spacing: $letterSpacing;
41
+ @extend %font;
42
+ }
43
+
44
+ %fiat-amount-grey {
45
+ color: SolidColor("grey");
46
+ font-size: 12px;
47
+ line-height: 22px;
48
+ }
49
+
50
+ %fiat-amount-white {
51
+ color: $white;
52
+ font-size: 12px;
53
+ line-height: 22px;
54
+ }
55
+
56
+ %seperator-border {
57
+ position: relative;
58
+
59
+ &:before {
60
+ content: "";
61
+ position: absolute;
62
+ top: 0;
63
+ left: 50%;
64
+ transform: translateX(-50%);
65
+ width: calc(100% - 40px);
66
+ height: 1px;
67
+ border-top: $separatorBorder;
68
+ }
69
+ }
70
+
71
+ %skeleton-text {
72
+ height: 16px;
73
+ width: 100%;
74
+ border-radius: 4px;
75
+ }
76
+
77
+ %skeleton-big-text {
78
+ height: 20px;
79
+ width: 100%;
80
+ border-radius: 4px;
81
+ }
82
+
83
+ %skeleton-text-h3 {
84
+ height: 30px;
85
+ width: 100%;
86
+ border-radius: 4px;
87
+ }
88
+
89
+ %skeleton-icon {
90
+ width: 20px;
91
+ height: 20px;
92
+ border-radius: 50%;
93
+ }
94
+
95
+ %skeleton-icon-h3 {
96
+ width: 30px;
97
+ height: 30px;
98
+ border-radius: 50%;
99
+ }
100
+
101
+ %white-box {
102
+ border-radius: $borderRadius;
103
+ background-color: $white;
104
+ padding: Padding("7");
105
+ }
106
+
107
+ %white-box-big-padding {
108
+ border-radius: $borderRadius;
109
+ background-color: $white;
110
+
111
+ padding: Padding("10");
112
+
113
+ @media (max-width: $phone-width) {
114
+ padding: Padding("5");
115
+ }
116
+ }
117
+
118
+ %hover-state {
119
+ opacity: 1;
120
+ transition-property: opacity;
121
+ transition-timing-function: ease;
122
+ transition-duration: 0.3s;
123
+
124
+ @media (hover: hover) {
125
+ &:hover {
126
+ cursor: pointer !important;
127
+ opacity: 0.6;
128
+ transition-duration: 0.03s;
129
+ }
130
+ }
131
+
132
+ &:active {
133
+ transition-duration: 0.03s;
134
+ opacity: 0.6;
135
+ }
136
+ }
137
+
138
+ %black-window {
139
+ position: fixed;
140
+ left: 0;
141
+ top: 0;
142
+ width: 100%;
143
+ height: 100%;
144
+ background: rgba(#0d1e3c, 0.5);
145
+ z-index: -1;
146
+ }
@@ -0,0 +1,46 @@
1
+ @import "colors/solid-colors";
2
+ @import "colors/light-colors";
3
+ @import "size/margin-size";
4
+ @import "size/padding-size";
5
+
6
+ $borderRadius: 16px;
7
+ $background: linear-gradient(
8
+ 39deg,
9
+ #6fdfa0 0%,
10
+ #405db0 81%,
11
+ #405db0 81%,
12
+ #3b5bb6 81%
13
+ );
14
+ $white: #ffffff;
15
+
16
+ $separatorBorder: 0.5px solid SolidColor("smoke");
17
+ $buttonBorder: 2px solid SolidColor("tosca");
18
+ $buttonBorderWhite: 2px solid $white;
19
+
20
+ $shadowOutlineStatic: 0px 0px 0px 1px rgba(0, 0, 0, 0) inset,
21
+ 0px 0px 3px 0px rgba(0, 0, 0, 0);
22
+ $shadowOutlineHover: 0px 0px 0px 1px LightColor("dark-20") inset,
23
+ 0px 0px 3px 0px rgba(0, 0, 0, 0);
24
+ $shadowOutlineActive: 0px 0px 0px 1px #16cdd6 inset,
25
+ 0px 0px 3px 0px rgba(22, 205, 214, 0.3);
26
+ $shadowOutlineError: 0px 0px 0px 1px #ee6a7d inset,
27
+ 0px 0px 3px 0px rgba(#ee6a7d, 0.3);
28
+
29
+ $transitionEaseOut: cubic-bezier(0.22, 0.61, 0.36, 1);
30
+
31
+ // Width values for breakpoints. Should be used with the "@media (max-width: ..."
32
+ $wide-desktop-width: 1279.98px;
33
+ $desktop-width: 1199.98px;
34
+ $laptop-width: 991.98px;
35
+ $tablet-width: 767.98px;
36
+ $phone-width: 575.98px;
37
+ $extra-small: 358.98px;
38
+
39
+ $extra-bold: 900;
40
+ $very-bold: 800;
41
+ $bold: 700;
42
+ $semi-bold: 600;
43
+ $medium: 400;
44
+ $regular: 300;
45
+
46
+ $letterSpacing: 0.5px;
@@ -0,0 +1,14 @@
1
+ $lightColor: (
2
+ "dark-20": #d3d5d9,
3
+ "red-20": #fce1e5,
4
+ "green-20": #d3f2e1,
5
+ "blue-20": #d3eafc,
6
+ "yellow-20": #fff0de,
7
+ "grey-20": #e9eaec,
8
+ "tosca-20": #d0f5f7,
9
+ "purple-20": #eae3fe,
10
+ "orange-20": #fde4e0,
11
+ "cyan-20": #e9eaec,
12
+ "army-20": #d0f5f7,
13
+ "white-20": rgba(#fff, 0.2),
14
+ );