@rogieking/figui3 1.0.93 → 1.0.94

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.
Files changed (3) hide show
  1. package/example.html +2 -2
  2. package/fig.css +16 -47
  3. package/package.json +1 -1
package/example.html CHANGED
@@ -39,11 +39,11 @@
39
39
  disabled>Button 3</fig-button>
40
40
  </fig-button-combo>
41
41
  <br /><br />
42
- <fig-dropdown>
42
+ <fig-dropdown style="width:100px;">
43
43
  <option>One</option>
44
44
  <option>Two</option>
45
45
  <option>Three</option>
46
- <option selected>Four</option>
46
+ <option selected>Fourhundred sixty two</option>
47
47
  </fig-dropdown>
48
48
  <br /><br />
49
49
  <fig-slider min="0"
package/fig.css CHANGED
@@ -595,6 +595,9 @@ input[type="text"][list] {
595
595
  background-color: var(--figma-color-bg);
596
596
  box-shadow: inset 0 0 0 1px var(--figma-color-border);
597
597
  accent-color: var(--figma-color-bg-brand);
598
+ overflow:hidden;
599
+ white-space:nowrap;
600
+ text-overflow:ellipsis;
598
601
 
599
602
  &:focus {
600
603
  box-shadow: inset 0 0 0 1px var(--figma-color-border-selected);
@@ -635,6 +638,7 @@ fig-dropdown,
635
638
  }
636
639
  > select {
637
640
  display: block;
641
+ width: 100%;
638
642
  }
639
643
  }
640
644
 
@@ -1420,44 +1424,8 @@ details {
1420
1424
  content: var(--icon-chevron);
1421
1425
  }
1422
1426
 
1423
- /* Details
1424
-
1425
- details summary{
1426
- cursor: pointer;
1427
- user-select: none;
1428
- padding: 0 1rem;
1429
- min-height: 2rem;
1430
- list-style: none;
1431
- pointer-events: none;
1432
- }
1433
- details summary>*{
1434
- pointer-events: all;
1435
- }
1436
- details summary:before{
1437
- content: '▸';
1438
- display: inline-flex;
1439
- align-items: start;
1440
- justify-content: center;
1441
- width: 0.75rem;
1442
- margin-right: -0.75rem;
1443
- transform: translateX(-100%);
1444
- color: inherit;
1445
- visibility: hidden;
1446
- }
1447
- details summary:hover:before{
1448
- visibility: visible;
1449
- }
1450
- details[open] summary:before{
1451
- content: '▾';
1452
- }
1453
- details summary:first-child:last-child:before{
1454
- content: '';
1455
- }
1456
- details summary:first-child:last-child h3{
1457
- pointer-events: none;
1458
- }
1459
- */
1460
1427
 
1428
+ /* Sliders */
1461
1429
  .fig-slider,
1462
1430
  fig-slider {
1463
1431
  --slider-height: 1rem;
@@ -1490,6 +1458,7 @@ fig-slider {
1490
1458
  position: absolute;
1491
1459
  left: 0;
1492
1460
  top: 0;
1461
+ pointer-events: none;
1493
1462
  bottom: 0;
1494
1463
  border-radius: 0.5rem;
1495
1464
  min-width: var(--slider-height);
@@ -1576,11 +1545,9 @@ fig-slider {
1576
1545
  border-radius: calc(var(--slider-height) / 2);
1577
1546
  display: block;
1578
1547
  width: 100%;
1579
- cursor: grab;
1580
- cursor: -webkit-grab;
1581
1548
  background-color: transparent;
1582
1549
 
1583
- &:active {
1550
+ &:active::-webkit-slider-thumb {
1584
1551
  cursor: grabbing;
1585
1552
  cursor: -webkit-grabbing;
1586
1553
  }
@@ -1599,6 +1566,8 @@ fig-slider {
1599
1566
  border: none;
1600
1567
  position: relative;
1601
1568
  z-index: 1;
1569
+ cursor: grab;
1570
+ cursor: -webkit-grab;
1602
1571
  box-shadow: var(--slider-handle-shadow);
1603
1572
  }
1604
1573
 
@@ -1645,19 +1614,17 @@ fig-slider {
1645
1614
  border-radius: calc(var(--slider-height) / 2);
1646
1615
  display: block;
1647
1616
  width: 100%;
1648
- cursor: grab;
1649
- cursor: -moz-grab;
1650
1617
  background-color: transparent;
1651
1618
 
1652
- &:active {
1653
- cursor: grabbing;
1654
- cursor: -moz-grabbing;
1655
- }
1656
-
1657
1619
  &:focus {
1658
1620
  outline: none;
1659
1621
  }
1660
1622
 
1623
+ &:active::-moz-range-thumb {
1624
+ cursor: grabbing;
1625
+ cursor: -webkit-grabbing;
1626
+ }
1627
+
1661
1628
  &::-moz-range-thumb {
1662
1629
  appearance: none;
1663
1630
  border-radius: 0.5rem;
@@ -1667,6 +1634,8 @@ fig-slider {
1667
1634
  border: none;
1668
1635
  position: relative;
1669
1636
  z-index: 1;
1637
+ cursor: grab;
1638
+ cursor: -moz-grab;
1670
1639
  box-shadow: var(--slider-handle-shadow);
1671
1640
  }
1672
1641
 
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.93"
3
+ "version": "1.0.94"
4
4
  }