react-ui-basics 0.0.211 → 0.0.212

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.
package/bundle.css CHANGED
@@ -1,12 +1,3 @@
1
- .animated {
2
- transition: opacity 250ms ease;
3
- opacity: 0;
4
- }
5
-
6
- .animated.mounting, .animated.mounted {
7
- opacity: 1;
8
- }
9
-
10
1
  .AutocompleteSelect {
11
2
  display: inline-flex;
12
3
  flex-flow: column;
@@ -302,66 +293,6 @@
302
293
  position: absolute;
303
294
  }
304
295
 
305
- .Dropzone {
306
- position: relative;
307
- }
308
-
309
- .Dropzone > .overlay {
310
- position: absolute;
311
- left: 0;
312
- right: 0;
313
- top: 0;
314
- bottom: 0;
315
- background-color: #38ADC4;
316
- z-index: 1;
317
- opacity: 0;
318
- transition: all 0.2s ease;
319
- transition-delay: 100ms;
320
- visibility: hidden;
321
- display: flex;
322
- justify-content: center;
323
- align-items: center;
324
- }
325
-
326
- .Dropzone > .overlay .drop {
327
- border-radius: 4px;
328
- border: 1px dashed #FFFFFF;
329
- position: absolute;
330
- top: 18px;
331
- left: 18px;
332
- right: 18px;
333
- bottom: 18px;
334
- display: flex;
335
- justify-content: center;
336
- align-items: center;
337
- font-weight: 500;
338
- font-size: 18px;
339
- color: #FFFFFF;
340
- }
341
-
342
- .Dropzone.dragging > .overlay {
343
- opacity: 0.7;
344
- visibility: visible;
345
- transition-delay: 0s;
346
- }
347
-
348
- .Dropzone.dragging > * {
349
- pointer-events: none;
350
- }
351
-
352
- .Dropzone > input.file {
353
- position: absolute;
354
- left: 0;
355
- right: 0;
356
- top: 0;
357
- bottom: 0;
358
- width: 100%;
359
- height: 100%;
360
- opacity: 0;
361
- cursor: pointer;
362
- z-index: 1;
363
- }
364
-
365
296
  .Button {
366
297
  position: relative;
367
298
  min-width: 64px;
@@ -528,73 +459,73 @@
528
459
  border: 0;
529
460
  }
530
461
 
531
- .FormUploadProgress {
462
+ .animated {
463
+ transition: opacity 250ms ease;
464
+ opacity: 0;
465
+ }
466
+
467
+ .animated.mounting, .animated.mounted {
468
+ opacity: 1;
469
+ }
470
+
471
+ .Dropzone {
472
+ position: relative;
473
+ }
474
+
475
+ .Dropzone > .overlay {
532
476
  position: absolute;
533
477
  left: 0;
534
478
  right: 0;
535
479
  top: 0;
536
480
  bottom: 0;
537
- background-color: rgba(255, 255, 255, 0.6);
538
- z-index: 2;
539
- }
540
-
541
- .FormUploadProgress.animated.mounting, .FormUploadProgress.animated.mounted {
542
- transition-delay: 500ms;
543
- }
544
-
545
- .FormUploadProgress .wrapper {
546
- position: sticky;
547
- top: 40%;
548
- margin-top: 40%;
549
- margin-left: 50%;
550
- transform: translateX(-50%);
481
+ background-color: #38ADC4;
482
+ z-index: 1;
483
+ opacity: 0;
484
+ transition: all 0.2s ease;
485
+ transition-delay: 100ms;
486
+ visibility: hidden;
551
487
  display: flex;
552
- flex-flow: column;
553
488
  justify-content: center;
554
489
  align-items: center;
555
490
  }
556
491
 
557
- .FormUploadProgress .wrapper .CircleProgress, .FormUploadProgress .wrapper .SpinningProgress {
492
+ .Dropzone > .overlay .drop {
493
+ border-radius: 4px;
494
+ border: 1px dashed #FFFFFF;
558
495
  position: absolute;
559
- width: 107px;
560
- height: 107px;
561
- top: 0;
562
- left: 0;
563
- }
564
-
565
- .FormUploadProgress .wrapper .CircleProgress .line, .FormUploadProgress .wrapper .SpinningProgress .line {
566
- stroke: #2196F3;
567
- }
568
-
569
- .FormUploadProgress .wrapper > .progress {
570
- width: 107px;
571
- height: 107px;
572
- min-height: 107px;
496
+ top: 18px;
497
+ left: 18px;
498
+ right: 18px;
499
+ bottom: 18px;
573
500
  display: flex;
574
501
  justify-content: center;
575
502
  align-items: center;
576
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
577
- border-radius: 50%;
578
- background: white;
579
- position: relative;
503
+ font-weight: 500;
504
+ font-size: 18px;
505
+ color: #FFFFFF;
580
506
  }
581
507
 
582
- .FormUploadProgress .wrapper > .progress > .value {
583
- display: inline-block;
584
- margin-top: 5px;
585
- font-weight: bold;
586
- line-height: 16px;
587
- font-size: 13px;
588
- text-align: center;
589
- color: #818181;
508
+ .Dropzone.dragging > .overlay {
509
+ opacity: 0.7;
510
+ visibility: visible;
511
+ transition-delay: 0s;
590
512
  }
591
513
 
592
- .FormUploadProgress .wrapper .cancel {
593
- min-width: 107px;
594
- margin-top: 20px;
595
- background-color: white;
596
- color: #F96B5C;
597
- box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
514
+ .Dropzone.dragging > * {
515
+ pointer-events: none;
516
+ }
517
+
518
+ .Dropzone > input.file {
519
+ position: absolute;
520
+ left: 0;
521
+ right: 0;
522
+ top: 0;
523
+ bottom: 0;
524
+ width: 100%;
525
+ height: 100%;
526
+ opacity: 0;
527
+ cursor: pointer;
528
+ z-index: 1;
598
529
  }
599
530
 
600
531
  .FilteredList {
@@ -823,6 +754,76 @@
823
754
  will-change: left;
824
755
  }
825
756
 
757
+ .Modal {
758
+ display: block;
759
+ position: fixed;
760
+ top: 0;
761
+ left: 0;
762
+ right: 0;
763
+ bottom: 100%;
764
+ overflow-y: scroll;
765
+ transition: bottom 0ms linear;
766
+ transition-delay: 0.2s;
767
+ }
768
+
769
+ .Modal.show {
770
+ transition-delay: 0s;
771
+ bottom: 0;
772
+ }
773
+
774
+ .Modal > .overlay {
775
+ position: fixed;
776
+ top: 0;
777
+ bottom: 100%;
778
+ left: 0;
779
+ right: 0;
780
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
781
+ opacity: 0;
782
+ background-color: black;
783
+ pointer-events: none;
784
+ }
785
+
786
+ .Modal > .overlay.show {
787
+ opacity: 0.5;
788
+ bottom: 0;
789
+ }
790
+
791
+ .Modal > .content {
792
+ left: 50%;
793
+ top: 10vh;
794
+ margin-bottom: 10vh;
795
+ font-size: 16px;
796
+ padding: 0;
797
+ opacity: 0;
798
+ transition: opacity 0.25s ease, transform 0.25s ease;
799
+ transform: scaleY(0) translateY(-200px) translateX(-50%);
800
+ transform-origin: top;
801
+ position: absolute;
802
+ border-radius: 2px;
803
+ box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
804
+ }
805
+
806
+ .Modal > .content.show {
807
+ opacity: 1;
808
+ transform: scaleY(1) translateY(0px) translateX(-50%);
809
+ }
810
+
811
+ .Modal > .content > .Scrollable {
812
+ overflow: visible;
813
+ max-height: 80vh;
814
+ }
815
+
816
+ .Modal > .content > .Scrollable > .viewport {
817
+ min-width: 10px;
818
+ min-height: 10px;
819
+ }
820
+
821
+ .Modal > .content > .Button.close {
822
+ top: 10px;
823
+ right: 10px;
824
+ position: absolute;
825
+ }
826
+
826
827
  .TextField {
827
828
  position: relative;
828
829
  width: 100%;
@@ -966,23 +967,92 @@
966
967
  animation-name: shake;
967
968
  }
968
969
 
969
- .ImageGallery {
970
- position: fixed;
971
- top: 0;
970
+ .FormUploadProgress {
971
+ position: absolute;
972
972
  left: 0;
973
- bottom: 0;
974
973
  right: 0;
975
- z-index: 1000;
976
- background-color: rgba(0, 0, 0, 0.01);
977
- user-select: none;
974
+ top: 0;
975
+ bottom: 0;
976
+ background-color: rgba(255, 255, 255, 0.6);
977
+ z-index: 2;
978
978
  }
979
979
 
980
- .ImageGallery:focus {
981
- outline-width: 0px;
980
+ .FormUploadProgress.animated.mounting, .FormUploadProgress.animated.mounted {
981
+ transition-delay: 500ms;
982
982
  }
983
983
 
984
- .ImageGallery.animated {
985
- transition: background-color 0.25s ease;
984
+ .FormUploadProgress .wrapper {
985
+ position: sticky;
986
+ top: 40%;
987
+ margin-top: 40%;
988
+ margin-left: 50%;
989
+ transform: translateX(-50%);
990
+ display: flex;
991
+ flex-flow: column;
992
+ justify-content: center;
993
+ align-items: center;
994
+ }
995
+
996
+ .FormUploadProgress .wrapper .CircleProgress, .FormUploadProgress .wrapper .SpinningProgress {
997
+ position: absolute;
998
+ width: 107px;
999
+ height: 107px;
1000
+ top: 0;
1001
+ left: 0;
1002
+ }
1003
+
1004
+ .FormUploadProgress .wrapper .CircleProgress .line, .FormUploadProgress .wrapper .SpinningProgress .line {
1005
+ stroke: #2196F3;
1006
+ }
1007
+
1008
+ .FormUploadProgress .wrapper > .progress {
1009
+ width: 107px;
1010
+ height: 107px;
1011
+ min-height: 107px;
1012
+ display: flex;
1013
+ justify-content: center;
1014
+ align-items: center;
1015
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
1016
+ border-radius: 50%;
1017
+ background: white;
1018
+ position: relative;
1019
+ }
1020
+
1021
+ .FormUploadProgress .wrapper > .progress > .value {
1022
+ display: inline-block;
1023
+ margin-top: 5px;
1024
+ font-weight: bold;
1025
+ line-height: 16px;
1026
+ font-size: 13px;
1027
+ text-align: center;
1028
+ color: #818181;
1029
+ }
1030
+
1031
+ .FormUploadProgress .wrapper .cancel {
1032
+ min-width: 107px;
1033
+ margin-top: 20px;
1034
+ background-color: white;
1035
+ color: #F96B5C;
1036
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
1037
+ }
1038
+
1039
+ .ImageGallery {
1040
+ position: fixed;
1041
+ top: 0;
1042
+ left: 0;
1043
+ bottom: 0;
1044
+ right: 0;
1045
+ z-index: 1000;
1046
+ background-color: rgba(0, 0, 0, 0.01);
1047
+ user-select: none;
1048
+ }
1049
+
1050
+ .ImageGallery:focus {
1051
+ outline-width: 0px;
1052
+ }
1053
+
1054
+ .ImageGallery.animated {
1055
+ transition: background-color 0.25s ease;
986
1056
  opacity: 1;
987
1057
  }
988
1058
 
@@ -1201,76 +1271,6 @@
1201
1271
  font-size: 24px;
1202
1272
  }
1203
1273
 
1204
- .Modal {
1205
- display: block;
1206
- position: fixed;
1207
- top: 0;
1208
- left: 0;
1209
- right: 0;
1210
- bottom: 100%;
1211
- overflow-y: scroll;
1212
- transition: bottom 0ms linear;
1213
- transition-delay: 0.2s;
1214
- }
1215
-
1216
- .Modal.show {
1217
- transition-delay: 0s;
1218
- bottom: 0;
1219
- }
1220
-
1221
- .Modal > .overlay {
1222
- position: fixed;
1223
- top: 0;
1224
- bottom: 100%;
1225
- left: 0;
1226
- right: 0;
1227
- transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
1228
- opacity: 0;
1229
- background-color: black;
1230
- pointer-events: none;
1231
- }
1232
-
1233
- .Modal > .overlay.show {
1234
- opacity: 0.5;
1235
- bottom: 0;
1236
- }
1237
-
1238
- .Modal > .content {
1239
- left: 50%;
1240
- top: 10vh;
1241
- margin-bottom: 10vh;
1242
- font-size: 16px;
1243
- padding: 0;
1244
- opacity: 0;
1245
- transition: opacity 0.25s ease, transform 0.25s ease;
1246
- transform: scaleY(0) translateY(-200px) translateX(-50%);
1247
- transform-origin: top;
1248
- position: absolute;
1249
- border-radius: 2px;
1250
- box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
1251
- }
1252
-
1253
- .Modal > .content.show {
1254
- opacity: 1;
1255
- transform: scaleY(1) translateY(0px) translateX(-50%);
1256
- }
1257
-
1258
- .Modal > .content > .Scrollable {
1259
- overflow: visible;
1260
- max-height: 80vh;
1261
- }
1262
-
1263
- .Modal > .content > .Scrollable > .viewport {
1264
- min-width: 10px;
1265
- min-height: 10px;
1266
- }
1267
-
1268
- .Modal > .content > .Button.close {
1269
- top: 10px;
1270
- right: 10px;
1271
- position: absolute;
1272
- }
1273
-
1274
1274
  .DNDContainer .DroppableList .Draggable {
1275
1275
  transform: unset;
1276
1276
  transition: unset;
@@ -1314,6 +1314,73 @@
1314
1314
  height: 100%;
1315
1315
  }
1316
1316
 
1317
+ .Checkbox {
1318
+ position: relative;
1319
+ white-space: pre;
1320
+ }
1321
+
1322
+ .Checkbox *, .Checkbox *:before, .Checkbox *:after {
1323
+ box-sizing: border-box;
1324
+ }
1325
+
1326
+ .Checkbox label {
1327
+ font-family: Roboto, sans-serif;
1328
+ font-size: 14px;
1329
+ color: #1e252d;
1330
+ cursor: pointer;
1331
+ }
1332
+
1333
+ .Checkbox label:before, .Checkbox label:after {
1334
+ content: "";
1335
+ position: absolute;
1336
+ left: 0;
1337
+ top: 0;
1338
+ }
1339
+
1340
+ .Checkbox label:before {
1341
+ width: 20px;
1342
+ height: 20px;
1343
+ background: #fff;
1344
+ border: 2px solid #252525;
1345
+ border-radius: 2px;
1346
+ cursor: pointer;
1347
+ transition: background 0.3s;
1348
+ }
1349
+
1350
+ .Checkbox input[type=checkbox] {
1351
+ outline: 0;
1352
+ margin-right: 10px;
1353
+ visibility: hidden;
1354
+ }
1355
+
1356
+ .Checkbox input[type=checkbox]:checked + label:before {
1357
+ background: #4AC263;
1358
+ border: none;
1359
+ }
1360
+
1361
+ .Checkbox input[type=checkbox]:checked + label:after {
1362
+ transform: rotate(-45deg);
1363
+ top: 6px;
1364
+ left: 4px;
1365
+ width: 12px;
1366
+ height: 6px;
1367
+ border: 2px solid #fff;
1368
+ border-top-style: none;
1369
+ border-right-style: none;
1370
+ }
1371
+
1372
+ .Checkbox input[type=checkbox]:disabled + label {
1373
+ color: gray;
1374
+ }
1375
+
1376
+ .Checkbox input[type=checkbox]:disabled + label:before {
1377
+ border-color: rgba(0, 0, 0, 0.26);
1378
+ }
1379
+
1380
+ .Checkbox input[type=checkbox]:disabled:checked + label:before {
1381
+ background: rgba(0, 0, 0, 0.26);
1382
+ }
1383
+
1317
1384
  .DatePicker {
1318
1385
  position: relative;
1319
1386
  }
@@ -1431,19 +1498,6 @@
1431
1498
  background-color: #51adf6;
1432
1499
  }
1433
1500
 
1434
- .CircleProgress {
1435
- width: 48px;
1436
- height: 48px;
1437
- }
1438
-
1439
- .CircleProgress .line {
1440
- stroke-width: 2px;
1441
- stroke: black;
1442
- stroke-linecap: square;
1443
- fill: none;
1444
- transition: stroke-dashoffset 0.2s ease;
1445
- }
1446
-
1447
1501
  .DNDContainer {
1448
1502
  position: relative;
1449
1503
  }
@@ -1476,71 +1530,81 @@
1476
1530
  pointer-events: none;
1477
1531
  }
1478
1532
 
1479
- .Checkbox {
1480
- position: relative;
1481
- white-space: pre;
1482
- }
1483
-
1484
- .Checkbox *, .Checkbox *:before, .Checkbox *:after {
1485
- box-sizing: border-box;
1533
+ .ModalMenu {
1534
+ position: absolute;
1535
+ top: 10px;
1536
+ right: 50px;
1486
1537
  }
1487
1538
 
1488
- .Checkbox label {
1489
- font-family: Roboto, sans-serif;
1490
- font-size: 14px;
1491
- color: #1e252d;
1492
- cursor: pointer;
1539
+ .ModalMenu .material-icons {
1540
+ color: #818181;
1493
1541
  }
1494
1542
 
1495
- .Checkbox label:before, .Checkbox label:after {
1496
- content: "";
1543
+ .ModalMenu .Button.animated {
1497
1544
  position: absolute;
1498
- left: 0;
1545
+ transition: opacity 150ms ease-in, right 200ms ease-in;
1546
+ opacity: 0;
1547
+ right: 0;
1499
1548
  top: 0;
1500
1549
  }
1501
1550
 
1502
- .Checkbox label:before {
1503
- width: 20px;
1504
- height: 20px;
1505
- background: #fff;
1506
- border: 2px solid #252525;
1507
- border-radius: 2px;
1508
- cursor: pointer;
1509
- transition: background 0.3s;
1510
- }
1551
+ .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1552
+ opacity: 1;
1553
+ }
1511
1554
 
1512
- .Checkbox input[type=checkbox] {
1513
- outline: 0;
1514
- margin-right: 10px;
1515
- visibility: hidden;
1555
+ .ModalMenu .Button.animated.unmounting {
1556
+ transition: opacity 100ms ease-out, right 200ms ease-out;
1516
1557
  }
1517
1558
 
1518
- .Checkbox input[type=checkbox]:checked + label:before {
1519
- background: #4AC263;
1520
- border: none;
1559
+ .ModalMenu .Button.active {
1560
+ background: #EBEBEB;
1521
1561
  }
1522
1562
 
1523
- .Checkbox input[type=checkbox]:checked + label:after {
1524
- transform: rotate(-45deg);
1525
- top: 6px;
1526
- left: 4px;
1527
- width: 12px;
1528
- height: 6px;
1529
- border: 2px solid #fff;
1530
- border-top-style: none;
1531
- border-right-style: none;
1563
+ .ModalMenu .separator {
1564
+ height: 24px;
1565
+ width: 1px;
1566
+ background-color: #D9D9D9;
1567
+ margin-left: 4px;
1532
1568
  }
1533
1569
 
1534
- .Checkbox input[type=checkbox]:disabled + label {
1570
+ .DropFileInput {
1571
+ flex-grow: 1;
1572
+ }
1573
+
1574
+ .DropFileInput .Dropzone {
1575
+ border: 1px dashed #808080;
1576
+ padding: 12px;
1577
+ display: flex;
1578
+ flex-flow: row nowrap;
1579
+ justify-content: center;
1580
+ align-items: center;
1535
1581
  color: gray;
1582
+ cursor: pointer;
1583
+ border-radius: 3px;
1584
+ font-weight: normal;
1585
+ line-height: 22px;
1586
+ font-size: 14px;
1587
+ color: #7E7E7E;
1588
+ max-width: 100%;
1589
+ word-break: break-all;
1590
+ word-break: break-word;
1536
1591
  }
1537
1592
 
1538
- .Checkbox input[type=checkbox]:disabled + label:before {
1539
- border-color: rgba(0, 0, 0, 0.26);
1593
+ .DropFileInput .Dropzone .icon.withText {
1594
+ margin-right: 10px;
1540
1595
  }
1541
1596
 
1542
- .Checkbox input[type=checkbox]:disabled:checked + label:before {
1543
- background: rgba(0, 0, 0, 0.26);
1597
+ .CircleProgress {
1598
+ width: 48px;
1599
+ height: 48px;
1600
+ }
1601
+
1602
+ .CircleProgress .line {
1603
+ stroke-width: 2px;
1604
+ stroke: black;
1605
+ stroke-linecap: square;
1606
+ fill: none;
1607
+ transition: stroke-dashoffset 0.2s ease;
1544
1608
  }
1545
1609
 
1546
1610
  .SpinningProgress {
@@ -1596,152 +1660,6 @@
1596
1660
  stroke-dashoffset: -53px;
1597
1661
  }
1598
1662
  }
1599
- .ModalMenu {
1600
- position: absolute;
1601
- top: 10px;
1602
- right: 50px;
1603
- }
1604
-
1605
- .ModalMenu .material-icons {
1606
- color: #818181;
1607
- }
1608
-
1609
- .ModalMenu .Button.animated {
1610
- position: absolute;
1611
- transition: opacity 150ms ease-in, right 200ms ease-in;
1612
- opacity: 0;
1613
- right: 0;
1614
- top: 0;
1615
- }
1616
-
1617
- .ModalMenu .Button.animated.mounting, .ModalMenu .Button.animated.mounted {
1618
- opacity: 1;
1619
- }
1620
-
1621
- .ModalMenu .Button.animated.unmounting {
1622
- transition: opacity 100ms ease-out, right 200ms ease-out;
1623
- }
1624
-
1625
- .ModalMenu .Button.active {
1626
- background: #EBEBEB;
1627
- }
1628
-
1629
- .ModalMenu .separator {
1630
- height: 24px;
1631
- width: 1px;
1632
- background-color: #D9D9D9;
1633
- margin-left: 4px;
1634
- }
1635
-
1636
- .DropFileInput {
1637
- flex-grow: 1;
1638
- }
1639
-
1640
- .DropFileInput .Dropzone {
1641
- border: 1px dashed #808080;
1642
- padding: 12px;
1643
- display: flex;
1644
- flex-flow: row nowrap;
1645
- justify-content: center;
1646
- align-items: center;
1647
- color: gray;
1648
- cursor: pointer;
1649
- border-radius: 3px;
1650
- font-weight: normal;
1651
- line-height: 22px;
1652
- font-size: 14px;
1653
- color: #7E7E7E;
1654
- max-width: 100%;
1655
- word-break: break-all;
1656
- word-break: break-word;
1657
- }
1658
-
1659
- .DropFileInput .Dropzone .icon.withText {
1660
- margin-right: 10px;
1661
- }
1662
-
1663
- .Switch {
1664
- display: inline-flex;
1665
- padding-top: 5px;
1666
- }
1667
-
1668
- .Switch .switch-input {
1669
- display: none;
1670
- }
1671
-
1672
- .Switch .switch-label {
1673
- position: relative;
1674
- display: inline-flex;
1675
- align-items: center;
1676
- min-width: 38px;
1677
- height: 24px;
1678
- cursor: pointer;
1679
- font-weight: 500;
1680
- text-align: left;
1681
- user-select: none;
1682
- margin: 0;
1683
- padding: 0;
1684
- padding-left: 44px;
1685
- box-sizing: border-box;
1686
- }
1687
-
1688
- .Switch .switch-label:before, .Switch .switch-label:after {
1689
- content: "";
1690
- box-sizing: border-box;
1691
- position: absolute;
1692
- margin: 0;
1693
- outline: 0;
1694
- top: 50%;
1695
- transform: translate(0, -50%);
1696
- transition: all 0.3s ease;
1697
- }
1698
-
1699
- .Switch .switch-label:before {
1700
- left: 1px;
1701
- width: 34px;
1702
- height: 14px;
1703
- background-color: #9E9E9E;
1704
- border-radius: 8px;
1705
- }
1706
-
1707
- .Switch .switch-label:after {
1708
- left: 0;
1709
- width: 20px;
1710
- height: 20px;
1711
- background-color: #FAFAFA;
1712
- border-radius: 50%;
1713
- box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
1714
- }
1715
-
1716
- .Switch .switch-label .toggle--on {
1717
- display: none;
1718
- }
1719
-
1720
- .Switch .switch-label .toggle--off {
1721
- display: inline-block;
1722
- }
1723
-
1724
- .Switch .switch-label .label {
1725
- margin-right: 5px;
1726
- }
1727
-
1728
- .Switch .switch-input:checked + .switch-label:before {
1729
- background-color: #A5D6A7;
1730
- }
1731
-
1732
- .Switch .switch-input:checked + .switch-label:after {
1733
- background-color: #4CAF50;
1734
- transform: translate(80%, -50%);
1735
- }
1736
-
1737
- .Switch .switch-input:checked + .switch-label .toggle--on {
1738
- display: inline-block;
1739
- }
1740
-
1741
- .Switch .switch-input:checked + .switch-label .toggle--off {
1742
- display: none;
1743
- }
1744
-
1745
1663
  .Button.FloatingActionButton {
1746
1664
  position: absolute;
1747
1665
  right: 16px;
@@ -1933,6 +1851,88 @@
1933
1851
  margin: 0;
1934
1852
  }
1935
1853
 
1854
+ .Switch {
1855
+ display: inline-flex;
1856
+ padding-top: 5px;
1857
+ }
1858
+
1859
+ .Switch .switch-input {
1860
+ display: none;
1861
+ }
1862
+
1863
+ .Switch .switch-label {
1864
+ position: relative;
1865
+ display: inline-flex;
1866
+ align-items: center;
1867
+ min-width: 38px;
1868
+ height: 24px;
1869
+ cursor: pointer;
1870
+ font-weight: 500;
1871
+ text-align: left;
1872
+ user-select: none;
1873
+ margin: 0;
1874
+ padding: 0;
1875
+ padding-left: 44px;
1876
+ box-sizing: border-box;
1877
+ }
1878
+
1879
+ .Switch .switch-label:before, .Switch .switch-label:after {
1880
+ content: "";
1881
+ box-sizing: border-box;
1882
+ position: absolute;
1883
+ margin: 0;
1884
+ outline: 0;
1885
+ top: 50%;
1886
+ transform: translate(0, -50%);
1887
+ transition: all 0.3s ease;
1888
+ }
1889
+
1890
+ .Switch .switch-label:before {
1891
+ left: 1px;
1892
+ width: 34px;
1893
+ height: 14px;
1894
+ background-color: #9E9E9E;
1895
+ border-radius: 8px;
1896
+ }
1897
+
1898
+ .Switch .switch-label:after {
1899
+ left: 0;
1900
+ width: 20px;
1901
+ height: 20px;
1902
+ background-color: #FAFAFA;
1903
+ border-radius: 50%;
1904
+ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.14), 0 2px 2px 0 rgba(0, 0, 0, 0.098), 0 1px 5px 0 rgba(0, 0, 0, 0.084);
1905
+ }
1906
+
1907
+ .Switch .switch-label .toggle--on {
1908
+ display: none;
1909
+ }
1910
+
1911
+ .Switch .switch-label .toggle--off {
1912
+ display: inline-block;
1913
+ }
1914
+
1915
+ .Switch .switch-label .label {
1916
+ margin-right: 5px;
1917
+ }
1918
+
1919
+ .Switch .switch-input:checked + .switch-label:before {
1920
+ background-color: #A5D6A7;
1921
+ }
1922
+
1923
+ .Switch .switch-input:checked + .switch-label:after {
1924
+ background-color: #4CAF50;
1925
+ transform: translate(80%, -50%);
1926
+ }
1927
+
1928
+ .Switch .switch-input:checked + .switch-label .toggle--on {
1929
+ display: inline-block;
1930
+ }
1931
+
1932
+ .Switch .switch-input:checked + .switch-label .toggle--off {
1933
+ display: none;
1934
+ }
1935
+
1936
1936
  .ScrollableTable .Scrollable .scrollbar {
1937
1937
  top: 56px;
1938
1938
  }