beyond-rails 0.0.295 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/src/font/beyond.eot +0 -0
  3. data/src/font/beyond.svg +9 -2
  4. data/src/font/beyond.ttf +0 -0
  5. data/src/font/beyond.woff +0 -0
  6. data/src/font/beyond.woff2 +0 -0
  7. data/src/js/components/BarChart.js +19 -7
  8. data/src/js/components/Dropdown.js +9 -2
  9. data/src/js/components/LineChart.js +18 -8
  10. data/src/js/components/PieChart.js +16 -6
  11. data/src/js/components/SearchDropdown.js +10 -5
  12. data/src/js/components/Tooltip.js +1 -5
  13. data/src/js/consts/index.js +42 -0
  14. data/src/js/decorators/chartCommon.js +4 -1
  15. data/src/js/index.js +0 -1
  16. data/src/sass/_base.scss +170 -0
  17. data/src/sass/_beyond-dark.scss +3 -0
  18. data/src/sass/_beyond.scss +0 -54
  19. data/src/sass/_main.scss +56 -176
  20. data/src/sass/abstracts/_mixins.scss +2 -4
  21. data/src/sass/abstracts/_placeholders.scss +3 -3
  22. data/src/sass/abstracts/_post-variables.scss +85 -0
  23. data/src/sass/abstracts/_variables.scss +296 -222
  24. data/src/sass/base/_background.scss +2 -3
  25. data/src/sass/base/_typography.scss +18 -17
  26. data/src/sass/components/_alert.scss +8 -14
  27. data/src/sass/components/_autocomplete.scss +4 -5
  28. data/src/sass/components/_avatar.scss +5 -6
  29. data/src/sass/components/_badge.scss +2 -4
  30. data/src/sass/components/_breadcrumb.scss +3 -2
  31. data/src/sass/components/_btn-group.scss +1 -1
  32. data/src/sass/components/_btn.scss +65 -67
  33. data/src/sass/components/_card.scss +12 -6
  34. data/src/sass/components/_chart.scss +5 -5
  35. data/src/sass/components/_checkbox.scss +8 -8
  36. data/src/sass/components/_date-menu.scss +10 -10
  37. data/src/sass/components/_date-time-ranger.scss +9 -3
  38. data/src/sass/components/_dropdown.scss +22 -14
  39. data/src/sass/components/_form.scss +17 -18
  40. data/src/sass/components/_icon.scss +143 -2
  41. data/src/sass/components/_input.scss +4 -4
  42. data/src/sass/components/_mega-menu.scss +9 -6
  43. data/src/sass/components/_modal.scss +5 -6
  44. data/src/sass/components/_month-menu.scss +11 -11
  45. data/src/sass/components/_nav.scss +5 -5
  46. data/src/sass/components/_navbar.scss +26 -33
  47. data/src/sass/components/_pagination.scss +9 -8
  48. data/src/sass/components/_radio.scss +2 -4
  49. data/src/sass/components/_search-dropdown.scss +3 -2
  50. data/src/sass/components/_select.scss +15 -23
  51. data/src/sass/components/_sidebar.scss +1 -1
  52. data/src/sass/components/_spinner.scss +0 -1
  53. data/src/sass/components/_switch.scss +5 -5
  54. data/src/sass/components/_tabbox.scss +19 -32
  55. data/src/sass/components/_table.scss +13 -14
  56. data/src/sass/components/_tag-input.scss +2 -4
  57. data/src/sass/components/_tag.scss +4 -4
  58. data/src/sass/components/_time-menu.scss +4 -4
  59. data/src/sass/components/_toast.scss +4 -3
  60. data/src/sass/components/_tooltip.scss +19 -27
  61. data/src/sass/themes/_dark.scss +309 -0
  62. metadata +6 -2
@@ -140,7 +140,7 @@ label {
140
140
  color: #a9aebf;
141
141
  }
142
142
  padding: 5px 7px 6px;
143
- background-color: #fff;
143
+ background-color: $control-bg;
144
144
  background-clip: padding-box;
145
145
  border-radius: 4px;
146
146
  box-shadow: 0 0 0 1px rgba(60, 66, 87, .16),
@@ -206,18 +206,18 @@ label {
206
206
  .form-control-sm,
207
207
  .form-control-plaintext {
208
208
  &.is-valid {
209
- box-shadow: 0 0 0 1px $txt-color-success;
209
+ box-shadow: 0 0 0 1px $txt-success;
210
210
  }
211
211
  &.is-invalid {
212
- box-shadow: 0 0 0 1px $txt-color-danger;
212
+ box-shadow: 0 0 0 1px $txt-danger;
213
213
  }
214
214
  &:disabled {
215
215
  cursor: not-allowed;
216
216
  }
217
217
  &:disabled,
218
218
  &[readonly] {
219
- color: #111;
220
- background-color: #e9ecef;
219
+ color: $control-disabled-color;
220
+ background: $control-disabled-bg;
221
221
  }
222
222
  }
223
223
  .form-control-plaintext {
@@ -239,17 +239,17 @@ label {
239
239
  }
240
240
 
241
241
  .valid-feedback {
242
- color: $txt-color-success;
242
+ color: $txt-success;
243
243
  &:before {
244
- color: $txt-color-success;
244
+ color: $txt-success;
245
245
  @extend .icon-check:before;
246
246
  }
247
247
  }
248
248
 
249
249
  .invalid-feedback {
250
- color: $txt-color-danger;
250
+ color: $txt-danger;
251
251
  &:before {
252
- color: $txt-color-danger;
252
+ color: $txt-danger;
253
253
  @extend .icon-exclamation-triangle:before;
254
254
  }
255
255
  }
@@ -269,10 +269,12 @@ label {
269
269
  padding-left: 0;
270
270
  margin-right: .75rem;
271
271
 
272
- .checkbox,
273
- .radio {
272
+ .checkbox {
274
273
  transform: translateY(0);
275
274
  }
275
+ .radio {
276
+ transform: translateY(1px);
277
+ }
276
278
  .checkbox + span,
277
279
  .radio + span {
278
280
  position: relative;
@@ -287,18 +289,15 @@ label {
287
289
  cursor: pointer;
288
290
  margin-right: 25px;
289
291
  vertical-align: middle;
290
- color: #3c4257;
292
+ color: $txt;
291
293
  font-size: 14px;
292
294
  .checkbox + span,
293
295
  .radio + span {
294
296
  position: relative;
295
297
  margin-left: 4px;
296
298
  }
297
- .checkbox .icon-checkbox {
298
- transform: translateY(-1px);
299
- }
300
299
  &.disabled {
301
- color: #6c757d;
300
+ color: $form-check-disabled-color;
302
301
  cursor: not-allowed;
303
302
  .checkbox {
304
303
  @extend %checkbox-disabled;
@@ -308,10 +307,10 @@ label {
308
307
  }
309
308
  }
310
309
  span.is-valid {
311
- color: $txt-color-success;
310
+ color: $txt-success;
312
311
  }
313
312
  span.is-invalid {
314
- color: $txt-color-danger;
313
+ color: $txt-danger;
315
314
  }
316
315
  }
317
316
 
@@ -64,279 +64,371 @@
64
64
  }
65
65
  .icon-bell:before {
66
66
  content: "\e90c";
67
+
67
68
  }
68
69
  .icon-bell-alt:before {
69
70
  content: "\e90b";
71
+
70
72
  }
71
73
  .icon-bh:before {
72
74
  content: "\e90d";
75
+
73
76
  }
74
77
  .icon-birthday-cake:before {
75
78
  content: "\e90e";
79
+
76
80
  }
77
81
  .icon-black-cat:before {
78
82
  content: "\e90f";
83
+
79
84
  }
80
85
  .icon-bolt:before {
81
86
  content: "\e911";
87
+
82
88
  }
83
89
  .icon-bolt-alt:before {
84
90
  content: "\e910";
91
+
85
92
  }
86
93
  .icon-brush:before {
87
94
  content: "\e912";
95
+
88
96
  }
89
97
  .icon-brush-alt:before {
90
98
  content: "\e986";
99
+
91
100
  }
92
101
  .icon-calculator:before {
93
102
  content: "\e913";
103
+
94
104
  }
95
105
  .icon-calendar:before {
96
106
  content: "\e914";
107
+
97
108
  }
98
109
  .icon-caret-square-up:before {
99
110
  content: "\e915";
111
+
100
112
  }
101
113
  .icon-cart:before {
102
114
  content: "\e917";
115
+
103
116
  }
104
117
  .icon-cart-empty:before {
105
118
  content: "\e916";
119
+
106
120
  }
107
121
  .icon-chart-bar:before {
108
122
  content: "\e918";
123
+
109
124
  }
110
125
  .icon-check:before {
111
126
  content: "\e91a";
127
+
112
128
  }
113
129
  .icon-check-circle:before {
114
130
  content: "\e919";
131
+
115
132
  }
116
133
  .icon-chevron-down:before {
117
134
  content: "\e91b";
135
+
118
136
  }
119
137
  .icon-chevron-left:before {
120
138
  content: "\e91c";
139
+
121
140
  }
122
141
  .icon-chevron-right:before {
123
142
  content: "\e91d";
143
+
124
144
  }
125
145
  .icon-chevron-up:before {
126
146
  content: "\e91e";
147
+
127
148
  }
128
149
  .icon-clock:before {
129
150
  content: "\e91f";
151
+
130
152
  }
131
153
  .icon-code:before {
132
154
  content: "\e920";
155
+
133
156
  }
134
157
  .icon-cog:before {
135
158
  content: "\e921";
159
+
136
160
  }
137
161
  .icon-cogs:before {
138
162
  content: "\e922";
163
+
139
164
  }
140
165
  .icon-comments:before {
141
166
  content: "\e923";
167
+
142
168
  }
143
169
  .icon-copy:before {
144
170
  content: "\e924";
171
+
145
172
  }
146
173
  .icon-credit-card:before {
147
174
  content: "\e925";
175
+
148
176
  }
149
177
  .icon-cross:before {
150
178
  content: "\e927";
179
+
151
180
  }
152
181
  .icon-cross-circle:before {
153
182
  content: "\e926";
183
+
154
184
  }
155
185
  .icon-crown:before {
156
186
  content: "\e983";
187
+
157
188
  }
158
189
  .icon-doc:before {
159
190
  content: "\e928";
191
+
160
192
  }
161
193
  .icon-dollar:before {
162
194
  content: "\e92a";
195
+
163
196
  }
164
197
  .icon-dollar-alt:before {
165
198
  content: "\e929";
199
+
166
200
  }
167
201
  .icon-dot-circle:before {
168
202
  content: "\e92c";
203
+
169
204
  }
170
205
  .icon-dot-circle-alt:before {
171
206
  content: "\e92b";
207
+
172
208
  }
173
209
  .icon-download:before {
174
210
  content: "\e92d";
211
+
175
212
  }
176
213
  .icon-earth:before {
177
214
  content: "\e92e";
215
+
178
216
  }
179
217
  .icon-ecpay:before {
180
218
  content: "\e92f";
219
+
181
220
  }
182
221
  .icon-ellipsis-h:before {
183
222
  content: "\e930";
223
+
184
224
  }
185
225
  .icon-ellipsis-v:before {
186
226
  content: "\e931";
227
+
187
228
  }
188
229
  .icon-envelop:before {
189
230
  content: "\e932";
231
+
190
232
  }
191
233
  .icon-exchange:before {
192
234
  content: "\e933";
235
+
193
236
  }
194
237
  .icon-exclamation-triangle:before {
195
238
  content: "\e934";
239
+
196
240
  }
197
241
  .icon-expand:before {
198
242
  content: "\e984";
243
+
199
244
  }
200
245
  .icon-external-link:before {
201
246
  content: "\e935";
247
+
202
248
  }
203
249
  .icon-family-mart:before {
204
250
  content: "\e936";
251
+
205
252
  }
206
253
  .icon-fb:before {
207
254
  content: "\e938";
255
+
208
256
  }
209
257
  .icon-fb-messenger:before {
210
258
  content: "\e937";
259
+
211
260
  }
212
261
  .icon-female:before {
213
262
  content: "\e939";
263
+
214
264
  }
215
265
  .icon-file:before {
216
266
  content: "\e93b";
267
+
217
268
  }
218
269
  .icon-file-alt:before {
219
270
  content: "\e93a";
271
+
220
272
  }
221
273
  .icon-flag:before {
222
274
  content: "\e93c";
275
+
223
276
  }
224
277
  .icon-google-map:before {
225
278
  content: "\e93d";
279
+
226
280
  }
227
281
  .icon-h:before {
228
282
  content: "\e93e";
283
+
229
284
  }
230
285
  .icon-hamburger:before {
231
286
  content: "\e93f";
287
+
232
288
  }
233
289
  .icon-hct:before {
234
290
  content: "\e940";
291
+
235
292
  }
236
293
  .icon-hi-life:before {
237
294
  content: "\e941";
295
+
238
296
  }
239
297
  .icon-horn:before {
240
298
  content: "\e942";
299
+
241
300
  }
242
301
  .icon-ig:before {
243
302
  content: "\e943";
303
+
244
304
  }
245
305
  .icon-image:before {
246
306
  content: "\e945";
307
+
247
308
  }
248
309
  .icon-image-alt:before {
249
310
  content: "\e944";
311
+
250
312
  }
251
313
  .icon-images:before {
252
314
  content: "\e947";
315
+
253
316
  }
254
317
  .icon-images-alt:before {
255
318
  content: "\e946";
319
+
256
320
  }
257
321
  .icon-info:before {
258
322
  content: "\e948";
323
+
259
324
  }
260
325
  .icon-invoice:before {
261
326
  content: "\e949";
327
+
262
328
  }
263
329
  .icon-kafen:before {
264
330
  content: "\e94a";
331
+
265
332
  }
266
333
  .icon-language:before {
267
334
  content: "\e94b";
335
+
268
336
  }
269
337
  .icon-line:before {
270
338
  content: "\e94c";
339
+
271
340
  }
272
341
  .icon-link:before {
273
342
  content: "\e94d";
343
+
274
344
  }
275
345
  .icon-list:before {
276
346
  content: "\e94e";
347
+
277
348
  }
278
349
  .icon-lock:before {
279
350
  content: "\e94f";
351
+
280
352
  }
281
353
  .icon-male:before {
282
354
  content: "\e950";
355
+
283
356
  }
284
357
  .icon-medium:before {
285
358
  content: "\e952";
359
+
286
360
  }
287
361
  .icon-medium-alt:before {
288
362
  content: "\e951";
363
+
289
364
  }
290
365
  .icon-minus:before {
291
366
  content: "\e953";
367
+
292
368
  }
293
369
  .icon-move:before {
294
370
  content: "\e954";
371
+
295
372
  }
296
373
  .icon-ok-mart:before {
297
374
  content: "\e955";
375
+
298
376
  }
299
377
  .icon-paint-brush:before {
300
378
  content: "\e956";
379
+
301
380
  }
302
381
  .icon-paper-plane:before {
303
382
  content: "\e957";
383
+
304
384
  }
305
385
  .icon-pause:before {
306
386
  content: "\e958";
387
+
307
388
  }
308
389
  .icon-pelican:before {
309
390
  content: "\e959";
391
+
310
392
  }
311
393
  .icon-pencil:before {
312
394
  content: "\e95a";
395
+
313
396
  }
314
397
  .icon-phone:before {
315
398
  content: "\e95b";
399
+
316
400
  }
317
401
  .icon-pie:before {
318
402
  content: "\e95c";
403
+
319
404
  }
320
405
  .icon-pin:before {
321
406
  content: "\e95d";
407
+
322
408
  }
323
409
  .icon-play:before {
324
410
  content: "\e95e";
411
+
325
412
  }
326
413
  .icon-plus:before {
327
414
  content: "\e95f";
415
+
328
416
  }
329
417
  .icon-question-mark:before {
330
418
  content: "\e960";
419
+
331
420
  }
332
421
  .icon-quote:before {
333
422
  content: "\e961";
423
+
334
424
  }
335
425
  .icon-random:before {
336
426
  content: "\e962";
427
+
337
428
  }
338
429
  .icon-refresh:before {
339
430
  content: "\e963";
431
+
340
432
  }
341
433
  .icon-refund:before {
342
434
  content: "\e965";
@@ -344,87 +436,115 @@
344
436
  }
345
437
  .icon-refund-alt:before {
346
438
  content: "\e964";
439
+
347
440
  }
348
441
  .icon-rocket:before {
349
442
  content: "\e966";
443
+
350
444
  }
351
445
  .icon-search:before {
352
446
  content: "\e967";
447
+
353
448
  }
354
449
  .icon-seven-eleven:before {
355
450
  content: "\e968";
451
+
356
452
  }
357
453
  .icon-shipping:before {
358
454
  content: "\e969";
455
+
359
456
  }
360
457
  .icon-shrink:before {
361
458
  content: "\e985";
459
+
362
460
  }
363
461
  .icon-sign-out:before {
364
462
  content: "\e96a";
463
+
365
464
  }
366
465
  .icon-site-map:before {
367
466
  content: "\e96b";
467
+
368
468
  }
369
469
  .icon-smilepay:before {
370
470
  content: "\e96c";
471
+
371
472
  }
372
473
  .icon-sms:before {
373
474
  content: "\e96d";
475
+
374
476
  }
375
477
  .icon-star:before {
376
478
  content: "\e96f";
479
+
377
480
  }
378
481
  .icon-star-alt:before {
379
482
  content: "\e96e";
483
+
380
484
  }
381
485
  .icon-sticky:before {
382
486
  content: "\e971";
487
+
383
488
  }
384
489
  .icon-sticky-alt:before {
385
490
  content: "\e970";
491
+
386
492
  }
387
493
  .icon-store:before {
388
494
  content: "\e972";
495
+
389
496
  }
390
497
  .icon-super-landing:before {
391
498
  content: "\e974";
499
+
392
500
  }
393
501
  .icon-super-landing-alt:before {
394
502
  content: "\e973";
503
+
395
504
  }
396
505
  .icon-tachometer:before {
397
506
  content: "\e975";
507
+
398
508
  }
399
509
  .icon-tag:before {
400
510
  content: "\e976";
511
+
401
512
  }
402
513
  .icon-target:before {
403
514
  content: "\e977";
515
+
404
516
  }
405
517
  .icon-tasks:before {
406
518
  content: "\e978";
519
+
407
520
  }
408
521
  .icon-text-cog:before {
409
522
  content: "\e979";
523
+
410
524
  }
411
525
  .icon-trash:before {
412
526
  content: "\e97a";
527
+
413
528
  }
414
529
  .icon-upload:before {
415
530
  content: "\e97b";
531
+
416
532
  }
417
533
  .icon-user:before {
418
534
  content: "\e97d";
535
+
419
536
  }
420
537
  .icon-user-alt:before {
421
538
  content: "\e97c";
539
+
422
540
  }
423
541
  .icon-users:before {
424
542
  content: "\e97f";
543
+
425
544
  }
426
545
  .icon-users-alt:before {
427
546
  content: "\e97e";
547
+
428
548
  }
429
549
  .icon-window-maximize:before {
430
550
  content: "\e980";
@@ -432,11 +552,32 @@
432
552
  .icon-youtube:before {
433
553
  content: "\e981";
434
554
  }
555
+ .icon-pencil7:before {
556
+ content: "\e987";
557
+ }
558
+ .icon-store2:before {
559
+ content: "\e9fd";
560
+ }
561
+ .icon-basket:before {
562
+ content: "\ea06";
563
+ }
564
+ .icon-coin-dollar:before {
565
+ content: "\ea0b";
566
+ }
567
+ .icon-database-refresh:before {
568
+ content: "\ea9d";
569
+ }
435
570
  .icon-bug:before {
436
- content: "\e999";
571
+ content: "\eb79";
572
+ }
573
+ .icon-meter:before {
574
+ content: "\ebde";
437
575
  }
438
576
  .icon-target1:before {
439
- content: "\e9b3";
577
+ content: "\ec2c";
578
+ }
579
+ .icon-pencil-ruler:before {
580
+ content: "\ee83";
440
581
  }
441
582
 
442
583
  @if $beyond-icon-font-name == 'beyond-full' {
@@ -3,7 +3,7 @@
3
3
  @media (max-width: $screen-sm) {
4
4
  width: initial;
5
5
  }
6
- color: #3c4257;
6
+ color: $control-color;
7
7
  border-radius: 4px;
8
8
  border: 0;
9
9
  appearance: none;
@@ -12,7 +12,7 @@
12
12
  font-size: 14px;
13
13
  padding: 6px 7px 7px;
14
14
  outline: 0;
15
- background-color: #fff;
15
+ background-color: $control-bg;
16
16
  &:focus {
17
17
  @include focus-outline;
18
18
  }
@@ -27,13 +27,13 @@
27
27
 
28
28
  .search-input {
29
29
  display: inline-block;
30
- background-color: #fff;
30
+ background-color: $control-bg;
31
31
  border-radius: 4px;
32
32
  box-shadow: 0 0 0 1px rgba(60, 66, 87, .16),
33
33
  0 1px 1px 0 rgba(0, 0, 0, .12);
34
34
 
35
35
  i:before {
36
- color: #8892b3;
36
+ color: $txt-light;
37
37
  margin-left: 10px;
38
38
  font-size: 12px;
39
39
  }
@@ -10,7 +10,7 @@ $mega-menu-text-color-ex: #8A8D90;
10
10
  }
11
11
 
12
12
  .mega-menu {
13
- font-size: .9375rem;
13
+ font-size: .875rem;
14
14
  }
15
15
  .mega-menu-divider {
16
16
  border-bottom: 1px solid #ebebeb;
@@ -28,20 +28,23 @@ $mega-menu-text-color-ex: #8A8D90;
28
28
  display: block;
29
29
  padding: .7rem 1.5rem;
30
30
  @include mega-menu-text;
31
+ i {
32
+ color: #40468a;
33
+ }
31
34
  }
32
35
  .mega-menu-icon-box {
33
36
  display: table;
34
37
  width: 100%;
35
- > div {
36
- display: table-row;
37
- }
38
38
  }
39
39
  .mega-menu-icon-box-item {
40
40
  cursor: pointer;
41
41
  transition: .3s all;
42
42
  display: table-cell;
43
- padding: 1rem 1.5rem;
43
+ padding: 0.8rem 1.2rem;
44
44
  text-align: center;
45
+ flex-basis: 33.3%;
46
+ flex-grow: 0;
47
+ flex-shrink: 0;
45
48
  @include mega-menu-text;
46
49
  &:hover {
47
50
  i {
@@ -50,7 +53,7 @@ $mega-menu-text-color-ex: #8A8D90;
50
53
  }
51
54
  i {
52
55
  transition: .3s color;
53
- color: #88add2;
56
+ color: #40468a;
54
57
  display: block;
55
58
  margin-bottom: .4rem;
56
59
  }