lexgui 0.5.5 → 0.5.6
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 +166 -69
- package/build/lexgui.js +1076 -190
- package/build/lexgui.min.css +1 -1
- package/build/lexgui.min.js +1 -1
- package/build/lexgui.module.js +1076 -190
- package/build/lexgui.module.min.js +1 -1
- package/build/utilities.css +23 -0
- package/changelog.md +15 -3
- package/demo.js +1 -1
- 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 {
|
|
@@ -1360,7 +1361,8 @@ a svg, svg path {
|
|
|
1360
1361
|
font-family: var(--global-font);
|
|
1361
1362
|
padding: 4px;
|
|
1362
1363
|
color: var(--global-text-primary);
|
|
1363
|
-
background-color: var(--global-color-tertiary);
|
|
1364
|
+
--background-color: var(--global-color-tertiary);
|
|
1365
|
+
background-color: var(--background-color);
|
|
1364
1366
|
outline: none;
|
|
1365
1367
|
border-radius: 6px;
|
|
1366
1368
|
border: 1px solid var(--global-color-transparent);
|
|
@@ -1370,7 +1372,7 @@ a svg, svg path {
|
|
|
1370
1372
|
}
|
|
1371
1373
|
|
|
1372
1374
|
.lexwidget input:not(.lexcheckbox, .lextoggle, .lexrangeslider):hover {
|
|
1373
|
-
background-color: color-mix(in srgb, var(--
|
|
1375
|
+
background-color: color-mix(in srgb, var(--background-color), #000 5%);
|
|
1374
1376
|
}
|
|
1375
1377
|
|
|
1376
1378
|
.lexwidget input.colorinput {
|
|
@@ -1483,6 +1485,118 @@ a svg, svg path {
|
|
|
1483
1485
|
border: 1px solid var(--global-text-quaternary);
|
|
1484
1486
|
}
|
|
1485
1487
|
|
|
1488
|
+
/* Input Color Widget */
|
|
1489
|
+
|
|
1490
|
+
.lexcolor {
|
|
1491
|
+
display: flex;
|
|
1492
|
+
align-items: center;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.lexcolor > div:first-child {
|
|
1496
|
+
background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 12px 12px;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.lexcolor .lexcolorsample {
|
|
1500
|
+
width: 9px;
|
|
1501
|
+
height: 18px;
|
|
1502
|
+
cursor: pointer;
|
|
1503
|
+
background-color: currentColor;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
.lexcolor .colorinfo {
|
|
1507
|
+
color: var(--global-text-primary);
|
|
1508
|
+
min-width: 56px;
|
|
1509
|
+
margin-left: 8px;
|
|
1510
|
+
font-weight: 600;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.lexcolor .lexwidget {
|
|
1514
|
+
padding: 0px;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.lexcolorpicker {
|
|
1518
|
+
background-color: var(--global-color-primary);
|
|
1519
|
+
font-size: var(--global-font-size);
|
|
1520
|
+
position: fixed;
|
|
1521
|
+
left: 0px;
|
|
1522
|
+
top: 0px;
|
|
1523
|
+
width: 256px;
|
|
1524
|
+
z-index: 150;
|
|
1525
|
+
display: flex;
|
|
1526
|
+
flex-direction: column;
|
|
1527
|
+
padding: 0.2rem;
|
|
1528
|
+
border-radius: 0.5rem;
|
|
1529
|
+
border: 1px solid #7a797c4f;
|
|
1530
|
+
padding: 0.5rem;
|
|
1531
|
+
gap: 0.5rem;
|
|
1532
|
+
animation-duration: 400ms;
|
|
1533
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1534
|
+
will-change: transform, opacity;
|
|
1535
|
+
outline: none;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
.lexcolorpicker[data-side="top"] { animation-name: slideDownAndFade }
|
|
1539
|
+
.lexcolorpicker[data-side="right"] { animation-name: slideLeftAndFade }
|
|
1540
|
+
.lexcolorpicker[data-side="bottom"] { animation-name: slideUpAndFade }
|
|
1541
|
+
.lexcolorpicker[data-side="left"] { animation-name: slideRightAndFade }
|
|
1542
|
+
|
|
1543
|
+
.lexcolorpicker input.lextext {
|
|
1544
|
+
padding-inline: 0 !important;
|
|
1545
|
+
color: var(--global-text-secondary) !important;
|
|
1546
|
+
cursor: pointer;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
.lexcolormarker {
|
|
1550
|
+
width: 1rem;
|
|
1551
|
+
height: 1rem;
|
|
1552
|
+
border-radius: 0.5rem;
|
|
1553
|
+
background-color: transparent;
|
|
1554
|
+
position: absolute;
|
|
1555
|
+
border: 3px solid #fff;
|
|
1556
|
+
pointer-events: none;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.lexcolorpickerbg {
|
|
1560
|
+
width: 100%;
|
|
1561
|
+
aspect-ratio: 1;
|
|
1562
|
+
border-radius: 0.3rem;
|
|
1563
|
+
background-image: linear-gradient(0deg, #000000 0, transparent), linear-gradient(90deg, #ffffff 0, #fff0);
|
|
1564
|
+
position: relative;
|
|
1565
|
+
cursor: pointer;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
.lexhuetracker {
|
|
1569
|
+
width: 100%;
|
|
1570
|
+
height: 1rem;
|
|
1571
|
+
border-radius: 0.5rem;
|
|
1572
|
+
background-image: linear-gradient(-90deg, red, #f0f 17%, #00f 33%, #0ff, #0f0 67%, #ff0 83%, red);
|
|
1573
|
+
position: relative;
|
|
1574
|
+
cursor: pointer;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
.lexalphatracker {
|
|
1578
|
+
width: 100%;
|
|
1579
|
+
height: 1rem;
|
|
1580
|
+
border-radius: 0.5rem;
|
|
1581
|
+
/* color: rgba(0, 0, 0, 1); */
|
|
1582
|
+
background: linear-gradient(90deg, rgba(0, 0, 0, 0), currentColor), repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 12px 12px;
|
|
1583
|
+
background-color: white; /* fallback */
|
|
1584
|
+
position: relative;
|
|
1585
|
+
cursor: pointer;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
.lexcolorpicker * {
|
|
1589
|
+
font-size: var(--global-font-size-sm);
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
.lexcolorpicker .lextext {
|
|
1593
|
+
letter-spacing: 0.02rem;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
.lexcolorpicker .lexwidget {
|
|
1597
|
+
padding: 2px !important;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1486
1600
|
/* Title Widget */
|
|
1487
1601
|
|
|
1488
1602
|
.lextitle {
|
|
@@ -1532,7 +1646,7 @@ a svg, svg path {
|
|
|
1532
1646
|
}
|
|
1533
1647
|
|
|
1534
1648
|
|
|
1535
|
-
/*
|
|
1649
|
+
/* Button Widget */
|
|
1536
1650
|
|
|
1537
1651
|
.lexbutton {
|
|
1538
1652
|
--button-color: var(--global-color-tertiary);
|
|
@@ -1560,7 +1674,7 @@ a svg, svg path {
|
|
|
1560
1674
|
.lexbutton.accent { --button-color: var(--global-color-accent); --border-color: var(--global-color-quaternary); color: #fefefe; }
|
|
1561
1675
|
.lexbutton.contrast { --button-color: var(--global-text-primary); --border-color: var(--global-color-quaternary); color: var(--global-color-primary); }
|
|
1562
1676
|
.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: #
|
|
1677
|
+
.lexbutton.error { --button-color: var(--global-color-error); --border-color: #310108; color: var(--border-color); }
|
|
1564
1678
|
|
|
1565
1679
|
/* Few Sizes */
|
|
1566
1680
|
.lexbutton.xs { width: 35%; margin: 0 auto; }
|
|
@@ -1579,18 +1693,18 @@ a svg, svg path {
|
|
|
1579
1693
|
background-color: color-mix(in srgb, var(--button-color), #000 9%) !important;
|
|
1580
1694
|
}
|
|
1581
1695
|
:root[data-theme="light"] .lexbutton:hover {
|
|
1582
|
-
background-color: color-mix(in srgb, var(--button-color), #fff
|
|
1696
|
+
background-color: color-mix(in srgb, var(--button-color), #fff 9%) !important;
|
|
1583
1697
|
}
|
|
1584
1698
|
|
|
1585
1699
|
.lexbutton:active:not(.lexbutton.combo) {
|
|
1586
|
-
background-color: color-mix(in srgb, var(--button-color), #fff 4%)
|
|
1700
|
+
background-color: color-mix(in srgb, var(--button-color), #fff 4%);
|
|
1587
1701
|
}
|
|
1588
1702
|
:root[data-theme="light"] .lexbutton:active:not(.lexbutton.combo) {
|
|
1589
|
-
background-color: color-mix(in srgb, var(--button-color), #000 4%)
|
|
1703
|
+
background-color: color-mix(in srgb, var(--button-color), #000 4%);
|
|
1590
1704
|
}
|
|
1591
1705
|
|
|
1592
|
-
.lexbutton:disabled {
|
|
1593
|
-
color: var(--global-text-
|
|
1706
|
+
.lexbutton:disabled, .lexbutton:disabled a {
|
|
1707
|
+
color: var(--global-text-quaternary);
|
|
1594
1708
|
}
|
|
1595
1709
|
|
|
1596
1710
|
.lexbutton.selected {
|
|
@@ -2135,49 +2249,6 @@ dialog .lexselect .lexselectoptions {
|
|
|
2135
2249
|
.lexradiogroup.warning .lexradiogroupitem button.checked span { background-color: var(--global-color-warning); }
|
|
2136
2250
|
.lexradiogroup.error .lexradiogroupitem button.checked span { background-color: var(--global-color-error); }
|
|
2137
2251
|
|
|
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
2252
|
/* Vector Widgets */
|
|
2182
2253
|
|
|
2183
2254
|
.lexvector {
|
|
@@ -2352,8 +2423,7 @@ input[type=number] {
|
|
|
2352
2423
|
height: 12px;
|
|
2353
2424
|
border: 1px solid #c9c7de;
|
|
2354
2425
|
border-radius: 6px;
|
|
2355
|
-
background:
|
|
2356
|
-
box-shadow: 0px 0px 6px #505050;
|
|
2426
|
+
background: var(--global-color-accent);
|
|
2357
2427
|
cursor: pointer;
|
|
2358
2428
|
}
|
|
2359
2429
|
|
|
@@ -2490,6 +2560,18 @@ input[type=number] {
|
|
|
2490
2560
|
user-select: none;
|
|
2491
2561
|
}
|
|
2492
2562
|
|
|
2563
|
+
/* Size Widget */
|
|
2564
|
+
|
|
2565
|
+
.lexotpslot.active {
|
|
2566
|
+
border: 1px solid var(--global-text-primary);
|
|
2567
|
+
transition: border-color 0.1s ease-in;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
.lexotpslot.disabled {
|
|
2571
|
+
color: var(--global-text-tertiary);
|
|
2572
|
+
cursor: not-allowed;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2493
2575
|
/* Pad Widget */
|
|
2494
2576
|
|
|
2495
2577
|
.lexwidget .lexpad {
|
|
@@ -2840,7 +2922,7 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
2840
2922
|
|
|
2841
2923
|
.lexbadge {
|
|
2842
2924
|
border-radius: 0.35rem;
|
|
2843
|
-
color:
|
|
2925
|
+
color: #f4f4f5;
|
|
2844
2926
|
border: 1px solid var(--badge-color, #14171a);
|
|
2845
2927
|
width: fit-content;
|
|
2846
2928
|
justify-content: center;
|
|
@@ -2853,12 +2935,12 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
2853
2935
|
}
|
|
2854
2936
|
|
|
2855
2937
|
/* Colors */
|
|
2856
|
-
.lexbadge.primary { --badge-color: var(--global-color-
|
|
2857
|
-
.lexbadge.secondary { --badge-color: var(--global-color-
|
|
2938
|
+
.lexbadge.primary { --badge-color: var(--global-color-primary); color: var(--global-text-primary); }
|
|
2939
|
+
.lexbadge.secondary { --badge-color: var(--global-color-secondary); color: var(--global-text-primary); }
|
|
2858
2940
|
.lexbadge.accent { --badge-color: var(--global-color-accent); }
|
|
2859
2941
|
.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); }
|
|
2942
|
+
.lexbadge.warning { --badge-color: var(--global-color-warning); color: #793205; }
|
|
2943
|
+
.lexbadge.error { --badge-color: var(--global-color-error); color: #310108; }
|
|
2862
2944
|
/* Styles */
|
|
2863
2945
|
.lexbadge.outline {
|
|
2864
2946
|
color: var(--badge-color, var(--global-text-primary));
|
|
@@ -3082,6 +3164,18 @@ meter:-moz-meter-sub-sub-optimum::-moz-meter-bar {
|
|
|
3082
3164
|
margin-right: 12px;
|
|
3083
3165
|
}
|
|
3084
3166
|
|
|
3167
|
+
.lexmenubar .lexbutton {
|
|
3168
|
+
padding-inline: 0.15rem;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
.lexmenubar .lexbutton:hover, :root[data-theme="light"] .lexmenubar .lexbutton:hover {
|
|
3172
|
+
background-color: transparent !important;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
.lexmenubar .lexbutton:active, :root[data-theme="light"] .lexmenubar .lexbutton:active {
|
|
3176
|
+
background-color: transparent !important;
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3085
3179
|
.lexmenubar .lexmenubutton {
|
|
3086
3180
|
color: var(--global-text-secondary);
|
|
3087
3181
|
padding-inline: 0.45em;
|
|
@@ -4328,22 +4422,28 @@ thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td
|
|
|
4328
4422
|
/* Icon swap */
|
|
4329
4423
|
|
|
4330
4424
|
.swap {
|
|
4331
|
-
cursor: pointer;
|
|
4332
4425
|
vertical-align: middle;
|
|
4333
4426
|
-webkit-user-select: none;
|
|
4334
4427
|
-moz-user-select: none;
|
|
4335
4428
|
-ms-user-select: none;
|
|
4336
4429
|
user-select: none;
|
|
4337
|
-
place-
|
|
4430
|
+
place-self: center;
|
|
4338
4431
|
display: inline-grid;
|
|
4339
4432
|
position: relative;
|
|
4433
|
+
pointer-events: none;
|
|
4340
4434
|
}
|
|
4341
4435
|
|
|
4342
4436
|
.swap input {
|
|
4437
|
+
pointer-events: auto;
|
|
4438
|
+
cursor: pointer;
|
|
4343
4439
|
-webkit-appearance: none;
|
|
4344
4440
|
-moz-appearance: none;
|
|
4345
4441
|
appearance: none;
|
|
4346
4442
|
border: none;
|
|
4443
|
+
width: 100%;
|
|
4444
|
+
height: 100%;
|
|
4445
|
+
transform: translate(-0.2rem, -0.2rem);
|
|
4446
|
+
background: none !important;
|
|
4347
4447
|
}
|
|
4348
4448
|
|
|
4349
4449
|
.swap > * {
|
|
@@ -4614,7 +4714,7 @@ ul.lexassetscontent {
|
|
|
4614
4714
|
padding: 0;
|
|
4615
4715
|
box-shadow: 0 0 2px rgba(0, 0, 0, .14);
|
|
4616
4716
|
overflow: hidden;
|
|
4617
|
-
background-color:
|
|
4717
|
+
background-color: var(--global-color-quaternary);
|
|
4618
4718
|
cursor: pointer;
|
|
4619
4719
|
text-align: center;
|
|
4620
4720
|
border-top-left-radius: 2px;
|
|
@@ -4668,6 +4768,7 @@ ul.lexassetscontent {
|
|
|
4668
4768
|
font-size: 4rem;
|
|
4669
4769
|
text-anchor: middle;
|
|
4670
4770
|
font-family: 'Ubuntu', sans-serif;
|
|
4771
|
+
color: var(--global-text-tertiary);
|
|
4671
4772
|
}
|
|
4672
4773
|
|
|
4673
4774
|
.lexassetscontent li.image {
|
|
@@ -4771,10 +4872,6 @@ ul.lexassetscontent {
|
|
|
4771
4872
|
top: 3px;
|
|
4772
4873
|
}
|
|
4773
4874
|
|
|
4774
|
-
.lexassetscontent li:hover span {
|
|
4775
|
-
color: #f5f5f5;
|
|
4776
|
-
}
|
|
4777
|
-
|
|
4778
4875
|
.lexassetscontent li.selected .lexassettitle {
|
|
4779
4876
|
color: #f5f5f5;
|
|
4780
4877
|
text-shadow: 0 0 3px black;
|