lexgui 0.5.5 → 0.5.7
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/build/lexgui.css +177 -69
- package/build/lexgui.js +1119 -192
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +1119 -192
- package/build/lexgui.module.min.js +1 -1
- package/build/utilities.css +74 -8
- package/changelog.md +23 -3
- package/demo.js +17 -10
- package/examples/all_widgets.html +13 -3
- package/examples/area_tabs.html +1 -1
- package/examples/dialogs.html +3 -3
- package/examples/timeline.html +1 -1
- package/package.json +1 -1
package/build/lexgui.css
CHANGED
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
--global-color-warning: #ffc107;
|
|
32
32
|
--global-color-error: #f54c4c;
|
|
33
33
|
--global-text-primary: light-dark(#0d0d0e, #f0efef);
|
|
34
|
-
--global-text-secondary: light-dark(#
|
|
35
|
-
--global-text-tertiary: light-dark(#
|
|
36
|
-
--global-text-quaternary: light-dark(#
|
|
34
|
+
--global-text-secondary: light-dark(#232324, #d1d1d3);
|
|
35
|
+
--global-text-tertiary: light-dark(#4e4e4f, #aaaaaa);
|
|
36
|
+
--global-text-quaternary: light-dark(#6a6a6b, #807f7f);
|
|
37
37
|
--global-intense-background: light-dark(#fefefe, #040405);
|
|
38
38
|
--global-medium-background: #252525;
|
|
39
39
|
--global-blur-background: light-dark(#f7f7f7d8, #1f1f1fe7);
|
|
@@ -356,6 +356,7 @@ svg.xxl { width: var(--svg-size-xxl); height: var(--svg-size-xxl); }
|
|
|
356
356
|
align-content: center;
|
|
357
357
|
border-radius: 4px;
|
|
358
358
|
transition: all 0.15s linear;
|
|
359
|
+
place-self: center;
|
|
359
360
|
}
|
|
360
361
|
|
|
361
362
|
.lexicon:hover {
|
|
@@ -655,6 +656,13 @@ a svg, svg path {
|
|
|
655
656
|
color: var(--global-text-secondary);
|
|
656
657
|
}
|
|
657
658
|
|
|
659
|
+
.lexfooter ul li a {
|
|
660
|
+
display: flex;
|
|
661
|
+
gap: 0.4rem;
|
|
662
|
+
align-items: center;
|
|
663
|
+
place-content: center;
|
|
664
|
+
}
|
|
665
|
+
|
|
658
666
|
.lexfooter a {
|
|
659
667
|
text-decoration: none;
|
|
660
668
|
color: var(--global-text-secondary);
|
|
@@ -1360,7 +1368,8 @@ a svg, svg path {
|
|
|
1360
1368
|
font-family: var(--global-font);
|
|
1361
1369
|
padding: 4px;
|
|
1362
1370
|
color: var(--global-text-primary);
|
|
1363
|
-
background-color: var(--global-color-tertiary);
|
|
1371
|
+
--background-color: var(--global-color-tertiary);
|
|
1372
|
+
background-color: var(--background-color);
|
|
1364
1373
|
outline: none;
|
|
1365
1374
|
border-radius: 6px;
|
|
1366
1375
|
border: 1px solid var(--global-color-transparent);
|
|
@@ -1370,7 +1379,7 @@ a svg, svg path {
|
|
|
1370
1379
|
}
|
|
1371
1380
|
|
|
1372
1381
|
.lexwidget input:not(.lexcheckbox, .lextoggle, .lexrangeslider):hover {
|
|
1373
|
-
background-color: color-mix(in srgb, var(--
|
|
1382
|
+
background-color: color-mix(in srgb, var(--background-color), #000 5%);
|
|
1374
1383
|
}
|
|
1375
1384
|
|
|
1376
1385
|
.lexwidget input.colorinput {
|
|
@@ -1483,6 +1492,118 @@ a svg, svg path {
|
|
|
1483
1492
|
border: 1px solid var(--global-text-quaternary);
|
|
1484
1493
|
}
|
|
1485
1494
|
|
|
1495
|
+
/* Input Color Widget */
|
|
1496
|
+
|
|
1497
|
+
.lexcolor {
|
|
1498
|
+
display: flex;
|
|
1499
|
+
align-items: center;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.lexcolor > div:first-child {
|
|
1503
|
+
background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 12px 12px;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.lexcolor .lexcolorsample {
|
|
1507
|
+
width: 9px;
|
|
1508
|
+
height: 18px;
|
|
1509
|
+
cursor: pointer;
|
|
1510
|
+
background-color: currentColor;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.lexcolor .colorinfo {
|
|
1514
|
+
color: var(--global-text-primary);
|
|
1515
|
+
min-width: 56px;
|
|
1516
|
+
margin-left: 8px;
|
|
1517
|
+
font-weight: 600;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
.lexcolor .lexwidget {
|
|
1521
|
+
padding: 0px;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
.lexcolorpicker {
|
|
1525
|
+
background-color: var(--global-color-primary);
|
|
1526
|
+
font-size: var(--global-font-size);
|
|
1527
|
+
position: fixed;
|
|
1528
|
+
left: 0px;
|
|
1529
|
+
top: 0px;
|
|
1530
|
+
width: 256px;
|
|
1531
|
+
z-index: 150;
|
|
1532
|
+
display: flex;
|
|
1533
|
+
flex-direction: column;
|
|
1534
|
+
padding: 0.2rem;
|
|
1535
|
+
border-radius: 0.5rem;
|
|
1536
|
+
border: 1px solid #7a797c4f;
|
|
1537
|
+
padding: 0.5rem;
|
|
1538
|
+
gap: 0.5rem;
|
|
1539
|
+
animation-duration: 400ms;
|
|
1540
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1541
|
+
will-change: transform, opacity;
|
|
1542
|
+
outline: none;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
.lexcolorpicker[data-side="top"] { animation-name: slideDownAndFade }
|
|
1546
|
+
.lexcolorpicker[data-side="right"] { animation-name: slideLeftAndFade }
|
|
1547
|
+
.lexcolorpicker[data-side="bottom"] { animation-name: slideUpAndFade }
|
|
1548
|
+
.lexcolorpicker[data-side="left"] { animation-name: slideRightAndFade }
|
|
1549
|
+
|
|
1550
|
+
.lexcolorpicker input.lextext {
|
|
1551
|
+
padding-inline: 0 !important;
|
|
1552
|
+
color: var(--global-text-secondary) !important;
|
|
1553
|
+
cursor: pointer;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.lexcolormarker {
|
|
1557
|
+
width: 1rem;
|
|
1558
|
+
height: 1rem;
|
|
1559
|
+
border-radius: 0.5rem;
|
|
1560
|
+
background-color: transparent;
|
|
1561
|
+
position: absolute;
|
|
1562
|
+
border: 3px solid #fff;
|
|
1563
|
+
pointer-events: none;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.lexcolorpickerbg {
|
|
1567
|
+
width: 100%;
|
|
1568
|
+
aspect-ratio: 1;
|
|
1569
|
+
border-radius: 0.3rem;
|
|
1570
|
+
background-image: linear-gradient(0deg, #000000 0, transparent), linear-gradient(90deg, #ffffff 0, #fff0);
|
|
1571
|
+
position: relative;
|
|
1572
|
+
cursor: pointer;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.lexhuetracker {
|
|
1576
|
+
width: 100%;
|
|
1577
|
+
height: 1rem;
|
|
1578
|
+
border-radius: 0.5rem;
|
|
1579
|
+
background-image: linear-gradient(-90deg, red, #f0f 17%, #00f 33%, #0ff, #0f0 67%, #ff0 83%, red);
|
|
1580
|
+
position: relative;
|
|
1581
|
+
cursor: pointer;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
.lexalphatracker {
|
|
1585
|
+
width: 100%;
|
|
1586
|
+
height: 1rem;
|
|
1587
|
+
border-radius: 0.5rem;
|
|
1588
|
+
/* color: rgba(0, 0, 0, 1); */
|
|
1589
|
+
background: linear-gradient(90deg, rgba(0, 0, 0, 0), currentColor), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 12px 12px;
|
|
1590
|
+
background-color: white; /* fallback */
|
|
1591
|
+
position: relative;
|
|
1592
|
+
cursor: pointer;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
.lexcolorpicker * {
|
|
1596
|
+
font-size: var(--global-font-size-sm);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
.lexcolorpicker .lextext {
|
|
1600
|
+
letter-spacing: 0.02rem;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
.lexcolorpicker .lexwidget {
|
|
1604
|
+
padding: 2px !important;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1486
1607
|
/* Title Widget */
|
|
1487
1608
|
|
|
1488
1609
|
.lextitle {
|
|
@@ -1532,7 +1653,7 @@ a svg, svg path {
|
|
|
1532
1653
|
}
|
|
1533
1654
|
|
|
1534
1655
|
|
|
1535
|
-
/*
|
|
1656
|
+
/* Button Widget */
|
|
1536
1657
|
|
|
1537
1658
|
.lexbutton {
|
|
1538
1659
|
--button-color: var(--global-color-tertiary);
|
|
@@ -1560,7 +1681,7 @@ a svg, svg path {
|
|
|
1560
1681
|
.lexbutton.accent { --button-color: var(--global-color-accent); --border-color: var(--global-color-quaternary); color: #fefefe; }
|
|
1561
1682
|
.lexbutton.contrast { --button-color: var(--global-text-primary); --border-color: var(--global-color-quaternary); color: var(--global-color-primary); }
|
|
1562
1683
|
.lexbutton.warning { --button-color: var(--global-color-warning); --border-color: #793205; color: var(--border-color); }
|
|
1563
|
-
.lexbutton.error { --button-color: var(--global-color-error); --border-color: #
|
|
1684
|
+
.lexbutton.error { --button-color: var(--global-color-error); --border-color: #310108; color: var(--border-color); }
|
|
1564
1685
|
|
|
1565
1686
|
/* Few Sizes */
|
|
1566
1687
|
.lexbutton.xs { width: 35%; margin: 0 auto; }
|
|
@@ -1579,18 +1700,18 @@ a svg, svg path {
|
|
|
1579
1700
|
background-color: color-mix(in srgb, var(--button-color), #000 9%) !important;
|
|
1580
1701
|
}
|
|
1581
1702
|
:root[data-theme="light"] .lexbutton:hover {
|
|
1582
|
-
background-color: color-mix(in srgb, var(--button-color), #fff
|
|
1703
|
+
background-color: color-mix(in srgb, var(--button-color), #fff 9%) !important;
|
|
1583
1704
|
}
|
|
1584
1705
|
|
|
1585
1706
|
.lexbutton:active:not(.lexbutton.combo) {
|
|
1586
|
-
background-color: color-mix(in srgb, var(--button-color), #fff 4%)
|
|
1707
|
+
background-color: color-mix(in srgb, var(--button-color), #fff 4%);
|
|
1587
1708
|
}
|
|
1588
1709
|
:root[data-theme="light"] .lexbutton:active:not(.lexbutton.combo) {
|
|
1589
|
-
background-color: color-mix(in srgb, var(--button-color), #000 4%)
|
|
1710
|
+
background-color: color-mix(in srgb, var(--button-color), #000 4%);
|
|
1590
1711
|
}
|
|
1591
1712
|
|
|
1592
|
-
.lexbutton:disabled {
|
|
1593
|
-
color: var(--global-text-
|
|
1713
|
+
.lexbutton:disabled, .lexbutton:disabled a {
|
|
1714
|
+
color: var(--global-text-quaternary);
|
|
1594
1715
|
}
|
|
1595
1716
|
|
|
1596
1717
|
.lexbutton.selected {
|
|
@@ -2135,49 +2256,6 @@ dialog .lexselect .lexselectoptions {
|
|
|
2135
2256
|
.lexradiogroup.warning .lexradiogroupitem button.checked span { background-color: var(--global-color-warning); }
|
|
2136
2257
|
.lexradiogroup.error .lexradiogroupitem button.checked span { background-color: var(--global-color-error); }
|
|
2137
2258
|
|
|
2138
|
-
/* Input Color Widget */
|
|
2139
|
-
|
|
2140
|
-
.lexcolor {
|
|
2141
|
-
display: flex;
|
|
2142
|
-
align-items: center;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
.lexcolor input {
|
|
2146
|
-
width: 96px;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
.lexcolor input[type="color"]::-webkit-color-swatch-wrapper {
|
|
2150
|
-
padding: 2px;
|
|
2151
|
-
border-radius: 4px;
|
|
2152
|
-
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
.lexcolor input[type="color"]::-webkit-color-swatch {
|
|
2156
|
-
border-radius: 4px;
|
|
2157
|
-
border: none;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
.lexcolor:has(input:focus) input[type="color"] {
|
|
2161
|
-
outline: 2px solid var(--global-color-accent);
|
|
2162
|
-
border-radius: 4px;
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
.lexcolor .colorinfo {
|
|
2166
|
-
color: var(--global-text-primary);
|
|
2167
|
-
min-width: 56px;
|
|
2168
|
-
margin-left: 8px;
|
|
2169
|
-
font-weight: 600;
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
.lexcolor input[type="color"] {
|
|
2173
|
-
cursor: pointer;
|
|
2174
|
-
background: none;
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
.lexcolor .lexwidget {
|
|
2178
|
-
padding: 0px;
|
|
2179
|
-
}
|
|
2180
|
-
|
|
2181
2259
|
/* Vector Widgets */
|
|
2182
2260
|
|
|
2183
2261
|
.lexvector {
|
|
@@ -2352,8 +2430,7 @@ input[type=number] {
|
|
|
2352
2430
|
height: 12px;
|
|
2353
2431
|
border: 1px solid #c9c7de;
|
|
2354
2432
|
border-radius: 6px;
|
|
2355
|
-
background:
|
|
2356
|
-
box-shadow: 0px 0px 6px #505050;
|
|
2433
|
+
background: var(--global-color-accent);
|
|
2357
2434
|
cursor: pointer;
|
|
2358
2435
|
}
|
|
2359
2436
|
|
|
@@ -2490,6 +2567,18 @@ input[type=number] {
|
|
|
2490
2567
|
user-select: none;
|
|
2491
2568
|
}
|
|
2492
2569
|
|
|
2570
|
+
/* Size Widget */
|
|
2571
|
+
|
|
2572
|
+
.lexotpslot.active {
|
|
2573
|
+
border: 1px solid var(--global-text-primary);
|
|
2574
|
+
transition: border-color 0.1s ease-in;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
.lexotpslot.disabled {
|
|
2578
|
+
color: var(--global-text-tertiary);
|
|
2579
|
+
cursor: not-allowed;
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2493
2582
|
/* Pad Widget */
|
|
2494
2583
|
|
|
2495
2584
|
.lexwidget .lexpad {
|
|
@@ -2840,7 +2929,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
2840
2929
|
|
|
2841
2930
|
.lexbadge {
|
|
2842
2931
|
border-radius: 0.35rem;
|
|
2843
|
-
color:
|
|
2932
|
+
color: #f4f4f5;
|
|
2844
2933
|
border: 1px solid var(--badge-color, #14171a);
|
|
2845
2934
|
width: fit-content;
|
|
2846
2935
|
justify-content: center;
|
|
@@ -2853,12 +2942,12 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
2853
2942
|
}
|
|
2854
2943
|
|
|
2855
2944
|
/* Colors */
|
|
2856
|
-
.lexbadge.primary { --badge-color: var(--global-color-
|
|
2857
|
-
.lexbadge.secondary { --badge-color: var(--global-color-
|
|
2945
|
+
.lexbadge.primary { --badge-color: var(--global-color-primary); color: var(--global-text-primary); }
|
|
2946
|
+
.lexbadge.secondary { --badge-color: var(--global-color-secondary); color: var(--global-text-primary); }
|
|
2858
2947
|
.lexbadge.accent { --badge-color: var(--global-color-accent); }
|
|
2859
2948
|
.lexbadge.contrast { --badge-color: var(--global-text-primary); color: var(--global-color-primary); }
|
|
2860
|
-
.lexbadge.warning { --badge-color: var(--global-color-warning); }
|
|
2861
|
-
.lexbadge.error { --badge-color: var(--global-color-error); }
|
|
2949
|
+
.lexbadge.warning { --badge-color: var(--global-color-warning); color: #793205; }
|
|
2950
|
+
.lexbadge.error { --badge-color: var(--global-color-error); color: #310108; }
|
|
2862
2951
|
/* Styles */
|
|
2863
2952
|
.lexbadge.outline {
|
|
2864
2953
|
color: var(--badge-color, var(--global-text-primary));
|
|
@@ -3082,6 +3171,18 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3082
3171
|
margin-right: 12px;
|
|
3083
3172
|
}
|
|
3084
3173
|
|
|
3174
|
+
.lexmenubar .lexbutton {
|
|
3175
|
+
padding-inline: 0.1rem;
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
.lexmenubar .lexbutton:hover, :root[data-theme="light"] .lexmenubar .lexbutton:hover {
|
|
3179
|
+
background-color: transparent !important;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3182
|
+
.lexmenubar .lexbutton:active, :root[data-theme="light"] .lexmenubar .lexbutton:active {
|
|
3183
|
+
background-color: transparent !important;
|
|
3184
|
+
}
|
|
3185
|
+
|
|
3085
3186
|
.lexmenubar .lexmenubutton {
|
|
3086
3187
|
color: var(--global-text-secondary);
|
|
3087
3188
|
padding-inline: 0.45em;
|
|
@@ -3094,6 +3195,10 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3094
3195
|
user-select: none;
|
|
3095
3196
|
}
|
|
3096
3197
|
|
|
3198
|
+
.lexmenubar .lexmenubutton.main:first-child {
|
|
3199
|
+
margin-left: 8px;
|
|
3200
|
+
}
|
|
3201
|
+
|
|
3097
3202
|
.lexmenubar .lexmenubutton.main:last-child {
|
|
3098
3203
|
margin-right: 8px;
|
|
3099
3204
|
}
|
|
@@ -4328,22 +4433,28 @@ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td
|
|
|
4328
4433
|
/* Icon swap */
|
|
4329
4434
|
|
|
4330
4435
|
.swap {
|
|
4331
|
-
cursor: pointer;
|
|
4332
4436
|
vertical-align: middle;
|
|
4333
4437
|
-webkit-user-select: none;
|
|
4334
4438
|
-moz-user-select: none;
|
|
4335
4439
|
-ms-user-select: none;
|
|
4336
4440
|
user-select: none;
|
|
4337
|
-
place-
|
|
4441
|
+
place-self: center;
|
|
4338
4442
|
display: inline-grid;
|
|
4339
4443
|
position: relative;
|
|
4444
|
+
pointer-events: none;
|
|
4340
4445
|
}
|
|
4341
4446
|
|
|
4342
4447
|
.swap input {
|
|
4448
|
+
pointer-events: auto;
|
|
4449
|
+
cursor: pointer;
|
|
4343
4450
|
-webkit-appearance: none;
|
|
4344
4451
|
-moz-appearance: none;
|
|
4345
4452
|
appearance: none;
|
|
4346
4453
|
border: none;
|
|
4454
|
+
width: 100%;
|
|
4455
|
+
height: 100%;
|
|
4456
|
+
transform: translate(-0.2rem, -0.2rem);
|
|
4457
|
+
background: none !important;
|
|
4347
4458
|
}
|
|
4348
4459
|
|
|
4349
4460
|
.swap > * {
|
|
@@ -4614,7 +4725,7 @@ ul.lexassetscontent {
|
|
|
4614
4725
|
padding: 0;
|
|
4615
4726
|
box-shadow: 0 0 2px rgba(0, 0, 0, .14);
|
|
4616
4727
|
overflow: hidden;
|
|
4617
|
-
background-color:
|
|
4728
|
+
background-color: var(--global-color-quaternary);
|
|
4618
4729
|
cursor: pointer;
|
|
4619
4730
|
text-align: center;
|
|
4620
4731
|
border-top-left-radius: 2px;
|
|
@@ -4668,6 +4779,7 @@ ul.lexassetscontent {
|
|
|
4668
4779
|
font-size: 4rem;
|
|
4669
4780
|
text-anchor: middle;
|
|
4670
4781
|
font-family: 'Ubuntu', sans-serif;
|
|
4782
|
+
color: var(--global-text-tertiary);
|
|
4671
4783
|
}
|
|
4672
4784
|
|
|
4673
4785
|
.lexassetscontent li.image {
|
|
@@ -4771,10 +4883,6 @@ ul.lexassetscontent {
|
|
|
4771
4883
|
top: 3px;
|
|
4772
4884
|
}
|
|
4773
4885
|
|
|
4774
|
-
.lexassetscontent li:hover span {
|
|
4775
|
-
color: #f5f5f5;
|
|
4776
|
-
}
|
|
4777
|
-
|
|
4778
4886
|
.lexassetscontent li.selected .lexassettitle {
|
|
4779
4887
|
color: #f5f5f5;
|
|
4780
4888
|
text-shadow: 0 0 3px black;
|