ply-css 1.6.0 → 1.7.0

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.
@@ -25,13 +25,16 @@
25
25
  --ply-color-link-hover: #0347c6;
26
26
  --ply-color-link-hover: color-mix(in oklch, var(--ply-btn-default-bg), black 15%);
27
27
  --ply-color-focus: #0f62fe;
28
- --ply-color-field-bg: #f4f4f4;
29
- --ply-color-input-border: #8d8d8d;
30
- --ply-color-input-bg: #f4f4f4;
31
- --ply-color-code-bg: #f4f4f4;
32
- --ply-color-code-border: #e0e0e0;
33
- --ply-color-table-border: #e0e0e0;
34
- --ply-color-table-stripped: #f4f4f4;
28
+ --ply-color-field-bg: var(--ply-bg-surface-alt);
29
+ --ply-color-input-border: var(--ply-border-strong);
30
+ --ply-color-input-bg: var(--ply-bg-surface-alt);
31
+ --ply-color-error: var(--ply-red-1);
32
+ --ply-color-success: var(--ply-green-1);
33
+ --ply-color-code-bg: var(--ply-bg-surface-alt);
34
+ --ply-color-code-border: var(--ply-border-color);
35
+ --ply-color-table-border: var(--ply-border-color);
36
+ --ply-color-table-striped: #f4f4f4;
37
+ --ply-color-table-stripped: var(--ply-color-table-striped);
35
38
  --ply-color-table-hovered: #e8e8e8;
36
39
  --ply-color-accent: #0353e9;
37
40
  --ply-btn-default-bg: #0353e9;
@@ -44,15 +47,16 @@
44
47
  --ply-btn-secondary-bg-hover: color-mix(in oklch, var(--ply-btn-secondary-bg), black 15%);
45
48
  --ply-btn-secondary-bg-active: #2b2b2b;
46
49
  --ply-btn-secondary-bg-active: color-mix(in oklch, var(--ply-btn-secondary-bg), black 25%);
50
+ --ply-border-radius: 0.25rem;
47
51
  --ply-btn-border-radius: 2rem;
48
- --ply-nav-bg: #ffffff;
49
- --ply-nav-color: #161616;
50
- --ply-nav-border: #161616;
52
+ --ply-nav-bg: var(--ply-bg-body);
53
+ --ply-nav-color: var(--ply-color-body);
54
+ --ply-nav-border: var(--ply-color-body);
51
55
  --ply-nav-hover: #e8e8e8;
52
56
  --ply-nav-active-color: #525252;
53
- --ply-layer-0: #ffffff;
54
- --ply-layer-1: #f4f4f4;
55
- --ply-layer-2: #e0e0e0;
57
+ --ply-layer-0: var(--ply-bg-body);
58
+ --ply-layer-1: var(--ply-bg-surface-alt);
59
+ --ply-layer-2: var(--ply-bg-muted);
56
60
  --ply-layer-3: #c6c6c6;
57
61
  --ply-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.08);
58
62
  --ply-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.1);
@@ -149,13 +153,8 @@
149
153
  --ply-color-link-hover: #619bff;
150
154
  --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
151
155
  --ply-color-focus: #0f62fe;
152
- --ply-color-field-bg: #262626;
153
- --ply-color-input-border: #6f6f6f;
154
- --ply-color-input-bg: #262626;
155
- --ply-color-code-bg: #262626;
156
- --ply-color-code-border: #393939;
157
- --ply-color-table-border: #393939;
158
- --ply-color-table-stripped: #1c1c1c;
156
+ --ply-color-table-striped: #1c1c1c;
157
+ --ply-color-table-stripped: var(--ply-color-table-striped);
159
158
  --ply-color-table-hovered: #353535;
160
159
  --ply-color-accent: #4589ff;
161
160
  --ply-btn-default-bg: #0f62fe;
@@ -171,14 +170,8 @@
171
170
  --ply-btn-default-color: #fff;
172
171
  --ply-btn-secondary-color: #161616;
173
172
  --ply-btn-ghost-color: #4589ff;
174
- --ply-nav-bg: #161616;
175
- --ply-nav-color: #f4f4f4;
176
- --ply-nav-border: #f4f4f4;
177
173
  --ply-nav-hover: #353535;
178
174
  --ply-nav-active-color: #a8a8a8;
179
- --ply-layer-0: #161616;
180
- --ply-layer-1: #262626;
181
- --ply-layer-2: #393939;
182
175
  --ply-layer-3: #525252;
183
176
  --ply-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.2);
184
177
  --ply-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.3);
@@ -265,13 +258,8 @@
265
258
  --ply-color-link-hover: #619bff;
266
259
  --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
267
260
  --ply-color-focus: #0f62fe;
268
- --ply-color-field-bg: #262626;
269
- --ply-color-input-border: #6f6f6f;
270
- --ply-color-input-bg: #262626;
271
- --ply-color-code-bg: #262626;
272
- --ply-color-code-border: #393939;
273
- --ply-color-table-border: #393939;
274
- --ply-color-table-stripped: #1c1c1c;
261
+ --ply-color-table-striped: #1c1c1c;
262
+ --ply-color-table-stripped: var(--ply-color-table-striped);
275
263
  --ply-color-table-hovered: #353535;
276
264
  --ply-color-accent: #4589ff;
277
265
  --ply-btn-default-bg: #0f62fe;
@@ -287,14 +275,8 @@
287
275
  --ply-btn-default-color: #fff;
288
276
  --ply-btn-secondary-color: #161616;
289
277
  --ply-btn-ghost-color: #4589ff;
290
- --ply-nav-bg: #161616;
291
- --ply-nav-color: #f4f4f4;
292
- --ply-nav-border: #f4f4f4;
293
278
  --ply-nav-hover: #353535;
294
279
  --ply-nav-active-color: #a8a8a8;
295
- --ply-layer-0: #161616;
296
- --ply-layer-1: #262626;
297
- --ply-layer-2: #393939;
298
280
  --ply-layer-3: #525252;
299
281
  --ply-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.2);
300
282
  --ply-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.3);
@@ -714,7 +696,7 @@ img {
714
696
  /* Native <details>/<summary> — Swiss/Modernist accordion */
715
697
  details {
716
698
  border: 1px solid var(--ply-border-color, #e0e0e0);
717
- border-radius: 0.25rem;
699
+ border-radius: var(--ply-border-radius);
718
700
  padding: 0.75rem 1rem;
719
701
  margin-bottom: 1.5rem;
720
702
  }
@@ -749,7 +731,7 @@ details[open] > summary {
749
731
  /* Native <dialog> — modal styling */
750
732
  dialog {
751
733
  border: none;
752
- border-radius: 0.25rem;
734
+ border-radius: var(--ply-border-radius);
753
735
  padding: 1.5rem;
754
736
  max-width: 32rem;
755
737
  width: 90%;
@@ -769,21 +751,21 @@ progress {
769
751
  width: 100%;
770
752
  height: 0.5rem;
771
753
  border: none;
772
- border-radius: 0.25rem;
754
+ border-radius: var(--ply-border-radius);
773
755
  background: var(--ply-bg-muted, #e0e0e0);
774
756
  margin-bottom: 1.5rem;
775
757
  }
776
758
  progress::-webkit-progress-bar {
777
759
  background: var(--ply-bg-muted, #e0e0e0);
778
- border-radius: 0.25rem;
760
+ border-radius: var(--ply-border-radius);
779
761
  }
780
762
  progress::-webkit-progress-value {
781
763
  background: var(--ply-color-link, #0f62fe);
782
- border-radius: 0.25rem;
764
+ border-radius: var(--ply-border-radius);
783
765
  }
784
766
  progress::-moz-progress-bar {
785
767
  background: var(--ply-color-link, #0f62fe);
786
- border-radius: 0.25rem;
768
+ border-radius: var(--ply-border-radius);
787
769
  }
788
770
 
789
771
  meter {
@@ -793,7 +775,7 @@ meter {
793
775
  width: 100%;
794
776
  height: 0.5rem;
795
777
  border: none;
796
- border-radius: 0.25rem;
778
+ border-radius: var(--ply-border-radius);
797
779
  background: var(--ply-bg-muted, #e0e0e0);
798
780
  margin-bottom: 1.5rem;
799
781
  }
@@ -1227,21 +1209,21 @@ meter {
1227
1209
  }
1228
1210
 
1229
1211
  .border-radius {
1230
- border-radius: 0.25rem;
1212
+ border-radius: var(--ply-border-radius);
1231
1213
  }
1232
1214
 
1233
1215
  .req,
1234
1216
  .required {
1235
1217
  font-weight: normal;
1236
- color: var(--ply-red-1);
1218
+ color: var(--ply-color-error);
1237
1219
  }
1238
1220
 
1239
1221
  .error {
1240
- color: var(--ply-red-1);
1222
+ color: var(--ply-color-error);
1241
1223
  }
1242
1224
 
1243
1225
  .success {
1244
- color: var(--ply-green-1);
1226
+ color: var(--ply-color-success);
1245
1227
  }
1246
1228
 
1247
1229
  .text-xs {
@@ -1638,7 +1620,7 @@ pre {
1638
1620
  color: var(--ply-color-body, #222);
1639
1621
  background: var(--ply-color-code-bg, #f4f4f4);
1640
1622
  border: 1px solid var(--ply-color-code-border, #d4d4d4);
1641
- border-radius: 0.25rem;
1623
+ border-radius: var(--ply-border-radius);
1642
1624
  padding: 1rem;
1643
1625
  overflow: auto;
1644
1626
  }
@@ -2586,8 +2568,9 @@ table.table-stroked th {
2586
2568
  border-bottom: 1px solid var(--ply-color-table-border, #ccc);
2587
2569
  }
2588
2570
 
2571
+ table.table-striped tbody tr:nth-child(odd) td,
2589
2572
  table.table-stripped tbody tr:nth-child(odd) td {
2590
- background: var(--ply-color-table-stripped, #f8f8f8);
2573
+ background: var(--ply-color-table-striped, var(--ply-color-table-stripped, #f8f8f8));
2591
2574
  }
2592
2575
 
2593
2576
  table.table-hovered tbody tr:hover td {
@@ -3225,11 +3208,11 @@ table.table-hovered tbody tr:hover td {
3225
3208
  }
3226
3209
 
3227
3210
  .border-radius-lg {
3228
- border-radius: 0.75rem;
3211
+ border-radius: calc(var(--ply-border-radius) * 3);
3229
3212
  }
3230
3213
 
3231
3214
  .border-radius-xl {
3232
- border-radius: 1.5rem;
3215
+ border-radius: calc(var(--ply-border-radius) * 6);
3233
3216
  }
3234
3217
 
3235
3218
  .text-primary {
@@ -3353,7 +3336,7 @@ table.table-hovered tbody tr:hover td {
3353
3336
 
3354
3337
  .code {
3355
3338
  border: 1px solid #f0f1f2;
3356
- border-radius: 0.25rem;
3339
+ border-radius: var(--ply-border-radius);
3357
3340
  display: inline-block;
3358
3341
  font-size: 0.8rem;
3359
3342
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
@@ -3591,7 +3574,7 @@ table.table-hovered tbody tr:hover td {
3591
3574
  .form input[type=datetime-local],
3592
3575
  .form textarea,
3593
3576
  .form select {
3594
- border-radius: 0.25rem;
3577
+ border-radius: var(--ply-border-radius);
3595
3578
  display: block;
3596
3579
  width: 100%;
3597
3580
  padding: 0.5em 0.75em;
@@ -3694,7 +3677,7 @@ textarea {
3694
3677
  }
3695
3678
 
3696
3679
  fieldset {
3697
- border-radius: 0.25rem;
3680
+ border-radius: var(--ply-border-radius);
3698
3681
  background-color: var(--ply-bg-surface);
3699
3682
  padding: 1.5rem;
3700
3683
  margin-bottom: 1.5rem;
@@ -3715,16 +3698,16 @@ input.input-error,
3715
3698
  textarea.input-error,
3716
3699
  select.input-error,
3717
3700
  .input-error {
3718
- border-color: #de2c3b;
3719
- box-shadow: 0 0 0 2px rgba(222, 44, 59, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
3701
+ border-color: var(--ply-color-error);
3702
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ply-color-error) 30%, transparent), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
3720
3703
  }
3721
3704
 
3722
3705
  input.input-success,
3723
3706
  textarea.input-success,
3724
3707
  select.input-success,
3725
3708
  .input-success {
3726
- border-color: #1a7a32;
3727
- box-shadow: 0 0 0 2px rgba(26, 122, 50, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
3709
+ border-color: var(--ply-color-success);
3710
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ply-color-success) 30%, transparent), 0 1px 2px rgba(0, 0, 0, 0.2) inset;
3728
3711
  }
3729
3712
 
3730
3713
  input.input-gray,
@@ -3827,18 +3810,18 @@ select.input-xs {
3827
3810
  min-width: 0;
3828
3811
  display: block !important;
3829
3812
  margin-bottom: 0;
3830
- border-radius: 0.25rem;
3813
+ border-radius: var(--ply-border-radius);
3831
3814
  }
3832
3815
  .input-groups input:not(:last-child),
3833
3816
  .input-groups textarea:not(:last-child),
3834
3817
  .input-groups select:not(:last-child) {
3835
3818
  border-right: none;
3836
- border-radius: 0.25rem 0 0 0.25rem;
3819
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3837
3820
  }
3838
3821
  .input-groups input:not(:first-child),
3839
3822
  .input-groups textarea:not(:first-child),
3840
3823
  .input-groups select:not(:first-child) {
3841
- border-radius: 0 0.25rem 0.25rem 0;
3824
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3842
3825
  }
3843
3826
  .input-groups input:not(:first-child, :last-child),
3844
3827
  .input-groups textarea:not(:first-child, :last-child),
@@ -3860,11 +3843,11 @@ select.input-xs {
3860
3843
  }
3861
3844
  .input-groups .input-prepend {
3862
3845
  border-right: none;
3863
- border-radius: 0.25rem 0 0 0.25rem;
3846
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3864
3847
  }
3865
3848
  .input-groups .input-append {
3866
3849
  border-left: none;
3867
- border-radius: 0 0.25rem 0.25rem 0;
3850
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3868
3851
  }
3869
3852
  .input-groups .input-append:has(.btn) {
3870
3853
  padding: 0;
@@ -3873,7 +3856,7 @@ select.input-xs {
3873
3856
  .input-groups .input-append .btn {
3874
3857
  display: flex;
3875
3858
  align-items: center;
3876
- border-radius: 0 0.25rem 0.25rem 0;
3859
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3877
3860
  margin: 0;
3878
3861
  border-left: none;
3879
3862
  white-space: nowrap;
@@ -3890,7 +3873,7 @@ select.input-xs {
3890
3873
  .input-groups .btn-append .btn {
3891
3874
  display: flex;
3892
3875
  align-items: center;
3893
- border-radius: 0 0.25rem 0.25rem 0;
3876
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3894
3877
  margin: 0;
3895
3878
  white-space: nowrap;
3896
3879
  }
@@ -3935,7 +3918,7 @@ select.select-outlined {
3935
3918
  background-size: 0.75em;
3936
3919
  padding: 0.5em 2.5em 0.5em 0.75em;
3937
3920
  border: 1px solid var(--ply-border-strong, #d4d4d4);
3938
- border-radius: 0.25rem;
3921
+ border-radius: var(--ply-border-radius);
3939
3922
  color: var(--ply-color-body);
3940
3923
  font-size: 1em;
3941
3924
  line-height: 1.5rem;
@@ -4197,7 +4180,7 @@ nav ul {
4197
4180
  display: block;
4198
4181
  padding: 0.25rem 0.75rem;
4199
4182
  font-size: 0.875rem;
4200
- border-radius: var(--ply-nav-stacked-radius, 0.25rem);
4183
+ border-radius: var(--ply-nav-stacked-radius, var(--ply-border-radius));
4201
4184
  }
4202
4185
  .nav-stacked a {
4203
4186
  color: var(--ply-nav-color);
@@ -4382,7 +4365,7 @@ nav ul {
4382
4365
  height: 2.25rem;
4383
4366
  padding: 0.25rem 0.75rem;
4384
4367
  border: 1px solid var(--ply-border-color);
4385
- border-radius: 0.25rem;
4368
+ border-radius: var(--ply-border-radius);
4386
4369
  background: var(--ply-bg-surface, #fff);
4387
4370
  color: var(--ply-color-body);
4388
4371
  text-decoration: none;
@@ -5398,11 +5381,11 @@ button.btn-white.btn-outline.btn-active {
5398
5381
  }
5399
5382
  .btn-single .btn:first-child,
5400
5383
  .btn-group .btn:first-child {
5401
- border-radius: 0.125rem 0 0 0.125rem;
5384
+ border-radius: calc(var(--ply-border-radius) * 0.5) 0 0 calc(var(--ply-border-radius) * 0.5);
5402
5385
  }
5403
5386
  .btn-single .btn:last-child,
5404
5387
  .btn-group .btn:last-child {
5405
- border-radius: 0 0.125rem 0.125rem 0;
5388
+ border-radius: 0 calc(var(--ply-border-radius) * 0.5) calc(var(--ply-border-radius) * 0.5) 0;
5406
5389
  }
5407
5390
  .btn-single.joined,
5408
5391
  .btn-group.joined {
@@ -5412,13 +5395,13 @@ button.btn-white.btn-outline.btn-active {
5412
5395
  .btn-single.rounded .input-search:first-child,
5413
5396
  .btn-group.rounded .btn:first-child,
5414
5397
  .btn-group.rounded .input-search:first-child {
5415
- border-radius: 0.5rem 0 0 0.5rem;
5398
+ border-radius: calc(var(--ply-border-radius) * 2) 0 0 calc(var(--ply-border-radius) * 2);
5416
5399
  }
5417
5400
  .btn-single.rounded .btn:last-child,
5418
5401
  .btn-single.rounded .input-search:last-child,
5419
5402
  .btn-group.rounded .btn:last-child,
5420
5403
  .btn-group.rounded .input-search:last-child {
5421
- border-radius: 0 0.5rem 0.5rem 0;
5404
+ border-radius: 0 calc(var(--ply-border-radius) * 2) calc(var(--ply-border-radius) * 2) 0;
5422
5405
  }
5423
5406
 
5424
5407
  /* =Notifications
@@ -5429,7 +5412,7 @@ button.btn-white.btn-outline.btn-active {
5429
5412
  background: var(--ply-bg-surface-alt, #f7f8f8);
5430
5413
  color: var(--ply-color-body, #0f0f0f);
5431
5414
  margin-bottom: 1.5rem;
5432
- border-radius: 0.25rem;
5415
+ border-radius: var(--ply-border-radius);
5433
5416
  border-left: 4px solid #b3b6b7;
5434
5417
  display: flex;
5435
5418
  align-items: flex-start;
@@ -5476,7 +5459,7 @@ button.btn-white.btn-outline.btn-active {
5476
5459
  align-items: center;
5477
5460
  justify-content: center;
5478
5461
  margin: -0.5rem -0.375rem -0.5rem 0;
5479
- border-radius: 0.25rem;
5462
+ border-radius: var(--ply-border-radius);
5480
5463
  }
5481
5464
  .tools-alert .tools-alert-dismiss:hover,
5482
5465
  .tools-alert .alert-dismiss:hover,