ply-css 1.5.0 → 1.6.1

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.
@@ -43,6 +43,7 @@
43
43
  --ply-btn-secondary-bg-hover: color-mix(in oklch, var(--ply-btn-secondary-bg), black 15%);
44
44
  --ply-btn-secondary-bg-active: #2b2b2b;
45
45
  --ply-btn-secondary-bg-active: color-mix(in oklch, var(--ply-btn-secondary-bg), black 25%);
46
+ --ply-border-radius: 0.25rem;
46
47
  --ply-btn-border-radius: 2rem;
47
48
  --ply-nav-bg: #ffffff;
48
49
  --ply-nav-color: #161616;
@@ -144,9 +145,9 @@
144
145
  --ply-color-text-inverse: #161616;
145
146
  --ply-border-color: #393939;
146
147
  --ply-border-strong: #6f6f6f;
147
- --ply-color-link: var(--ply-btn-default-bg);
148
+ --ply-color-link: #4589ff;
148
149
  --ply-color-link-hover: #619bff;
149
- --ply-color-link-hover: color-mix(in oklch, var(--ply-btn-default-bg), white 15%);
150
+ --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
150
151
  --ply-color-focus: #0f62fe;
151
152
  --ply-color-field-bg: #262626;
152
153
  --ply-color-input-border: #6f6f6f;
@@ -260,9 +261,9 @@
260
261
  --ply-color-text-inverse: #161616;
261
262
  --ply-border-color: #393939;
262
263
  --ply-border-strong: #6f6f6f;
263
- --ply-color-link: var(--ply-btn-default-bg);
264
+ --ply-color-link: #4589ff;
264
265
  --ply-color-link-hover: #619bff;
265
- --ply-color-link-hover: color-mix(in oklch, var(--ply-btn-default-bg), white 15%);
266
+ --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
266
267
  --ply-color-focus: #0f62fe;
267
268
  --ply-color-field-bg: #262626;
268
269
  --ply-color-input-border: #6f6f6f;
@@ -713,7 +714,7 @@ img {
713
714
  /* Native <details>/<summary> — Swiss/Modernist accordion */
714
715
  details {
715
716
  border: 1px solid var(--ply-border-color, #e0e0e0);
716
- border-radius: 0.25rem;
717
+ border-radius: var(--ply-border-radius);
717
718
  padding: 0.75rem 1rem;
718
719
  margin-bottom: 1.5rem;
719
720
  }
@@ -748,7 +749,7 @@ details[open] > summary {
748
749
  /* Native <dialog> — modal styling */
749
750
  dialog {
750
751
  border: none;
751
- border-radius: 0.25rem;
752
+ border-radius: var(--ply-border-radius);
752
753
  padding: 1.5rem;
753
754
  max-width: 32rem;
754
755
  width: 90%;
@@ -768,21 +769,21 @@ progress {
768
769
  width: 100%;
769
770
  height: 0.5rem;
770
771
  border: none;
771
- border-radius: 0.25rem;
772
+ border-radius: var(--ply-border-radius);
772
773
  background: var(--ply-bg-muted, #e0e0e0);
773
774
  margin-bottom: 1.5rem;
774
775
  }
775
776
  progress::-webkit-progress-bar {
776
777
  background: var(--ply-bg-muted, #e0e0e0);
777
- border-radius: 0.25rem;
778
+ border-radius: var(--ply-border-radius);
778
779
  }
779
780
  progress::-webkit-progress-value {
780
781
  background: var(--ply-color-link, #0f62fe);
781
- border-radius: 0.25rem;
782
+ border-radius: var(--ply-border-radius);
782
783
  }
783
784
  progress::-moz-progress-bar {
784
785
  background: var(--ply-color-link, #0f62fe);
785
- border-radius: 0.25rem;
786
+ border-radius: var(--ply-border-radius);
786
787
  }
787
788
 
788
789
  meter {
@@ -792,7 +793,7 @@ meter {
792
793
  width: 100%;
793
794
  height: 0.5rem;
794
795
  border: none;
795
- border-radius: 0.25rem;
796
+ border-radius: var(--ply-border-radius);
796
797
  background: var(--ply-bg-muted, #e0e0e0);
797
798
  margin-bottom: 1.5rem;
798
799
  }
@@ -1226,7 +1227,7 @@ meter {
1226
1227
  }
1227
1228
 
1228
1229
  .border-radius {
1229
- border-radius: 0.25rem;
1230
+ border-radius: var(--ply-border-radius);
1230
1231
  }
1231
1232
 
1232
1233
  .req,
@@ -1990,11 +1991,11 @@ meter {
1990
1991
  }
1991
1992
 
1992
1993
  .border-radius-lg {
1993
- border-radius: 0.75rem;
1994
+ border-radius: calc(var(--ply-border-radius) * 3);
1994
1995
  }
1995
1996
 
1996
1997
  .border-radius-xl {
1997
- border-radius: 1.5rem;
1998
+ border-radius: calc(var(--ply-border-radius) * 6);
1998
1999
  }
1999
2000
 
2000
2001
  .text-primary {
@@ -2118,7 +2119,7 @@ meter {
2118
2119
 
2119
2120
  .code {
2120
2121
  border: 1px solid #f0f1f2;
2121
- border-radius: 0.25rem;
2122
+ border-radius: var(--ply-border-radius);
2122
2123
  display: inline-block;
2123
2124
  font-size: 0.8rem;
2124
2125
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
@@ -2546,7 +2547,7 @@ pre {
2546
2547
  color: var(--ply-color-body, #222);
2547
2548
  background: var(--ply-color-code-bg, #f4f4f4);
2548
2549
  border: 1px solid var(--ply-color-code-border, #d4d4d4);
2549
- border-radius: 0.25rem;
2550
+ border-radius: var(--ply-border-radius);
2550
2551
  padding: 1rem;
2551
2552
  overflow: auto;
2552
2553
  }
@@ -2821,7 +2822,7 @@ table tfoot td {
2821
2822
  .units-row.reverse-direction, .units-row.right-to-left {
2822
2823
  flex-direction: row-reverse;
2823
2824
  }
2824
- .units-row.split {
2825
+ .units-row.joined, .units-row.split {
2825
2826
  --units-gap: 0px;
2826
2827
  gap: 0;
2827
2828
  }
@@ -3653,7 +3654,7 @@ table.table-hovered tbody tr:hover td {
3653
3654
  .form input[type=datetime-local],
3654
3655
  .form textarea,
3655
3656
  .form select {
3656
- border-radius: 0.25rem;
3657
+ border-radius: var(--ply-border-radius);
3657
3658
  display: block;
3658
3659
  width: 100%;
3659
3660
  padding: 0.5em 0.75em;
@@ -3756,7 +3757,7 @@ textarea {
3756
3757
  }
3757
3758
 
3758
3759
  fieldset {
3759
- border-radius: 0.25rem;
3760
+ border-radius: var(--ply-border-radius);
3760
3761
  background-color: var(--ply-bg-surface);
3761
3762
  padding: 1.5rem;
3762
3763
  margin-bottom: 1.5rem;
@@ -3889,18 +3890,18 @@ select.input-xs {
3889
3890
  min-width: 0;
3890
3891
  display: block !important;
3891
3892
  margin-bottom: 0;
3892
- border-radius: 0.25rem;
3893
+ border-radius: var(--ply-border-radius);
3893
3894
  }
3894
3895
  .input-groups input:not(:last-child),
3895
3896
  .input-groups textarea:not(:last-child),
3896
3897
  .input-groups select:not(:last-child) {
3897
3898
  border-right: none;
3898
- border-radius: 0.25rem 0 0 0.25rem;
3899
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3899
3900
  }
3900
3901
  .input-groups input:not(:first-child),
3901
3902
  .input-groups textarea:not(:first-child),
3902
3903
  .input-groups select:not(:first-child) {
3903
- border-radius: 0 0.25rem 0.25rem 0;
3904
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3904
3905
  }
3905
3906
  .input-groups input:not(:first-child, :last-child),
3906
3907
  .input-groups textarea:not(:first-child, :last-child),
@@ -3922,11 +3923,11 @@ select.input-xs {
3922
3923
  }
3923
3924
  .input-groups .input-prepend {
3924
3925
  border-right: none;
3925
- border-radius: 0.25rem 0 0 0.25rem;
3926
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3926
3927
  }
3927
3928
  .input-groups .input-append {
3928
3929
  border-left: none;
3929
- border-radius: 0 0.25rem 0.25rem 0;
3930
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3930
3931
  }
3931
3932
  .input-groups .input-append:has(.btn) {
3932
3933
  padding: 0;
@@ -3935,7 +3936,7 @@ select.input-xs {
3935
3936
  .input-groups .input-append .btn {
3936
3937
  display: flex;
3937
3938
  align-items: center;
3938
- border-radius: 0 0.25rem 0.25rem 0;
3939
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3939
3940
  margin: 0;
3940
3941
  border-left: none;
3941
3942
  white-space: nowrap;
@@ -3952,7 +3953,7 @@ select.input-xs {
3952
3953
  .input-groups .btn-append .btn {
3953
3954
  display: flex;
3954
3955
  align-items: center;
3955
- border-radius: 0 0.25rem 0.25rem 0;
3956
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3956
3957
  margin: 0;
3957
3958
  white-space: nowrap;
3958
3959
  }
@@ -3997,7 +3998,7 @@ select.select-outlined {
3997
3998
  background-size: 0.75em;
3998
3999
  padding: 0.5em 2.5em 0.5em 0.75em;
3999
4000
  border: 1px solid var(--ply-border-strong, #d4d4d4);
4000
- border-radius: 0.25rem;
4001
+ border-radius: var(--ply-border-radius);
4001
4002
  color: var(--ply-color-body);
4002
4003
  font-size: 1em;
4003
4004
  line-height: 1.5rem;
@@ -4259,7 +4260,7 @@ nav ul {
4259
4260
  display: block;
4260
4261
  padding: 0.25rem 0.75rem;
4261
4262
  font-size: 0.875rem;
4262
- border-radius: var(--ply-nav-stacked-radius, 0.25rem);
4263
+ border-radius: var(--ply-nav-stacked-radius, var(--ply-border-radius));
4263
4264
  }
4264
4265
  .nav-stacked a {
4265
4266
  color: var(--ply-nav-color);
@@ -4444,7 +4445,7 @@ nav ul {
4444
4445
  height: 2.25rem;
4445
4446
  padding: 0.25rem 0.75rem;
4446
4447
  border: 1px solid var(--ply-border-color);
4447
- border-radius: 0.25rem;
4448
+ border-radius: var(--ply-border-radius);
4448
4449
  background: var(--ply-bg-surface, #fff);
4449
4450
  color: var(--ply-color-body);
4450
4451
  text-decoration: none;
@@ -4511,13 +4512,15 @@ input[type=button].btn,
4511
4512
  input[type=reset].btn,
4512
4513
  button.btn {
4513
4514
  transition: all 150ms ease-in-out, transform 50ms ease, background 150ms ease-in-out;
4514
- display: inline-block;
4515
+ display: inline-flex;
4515
4516
  vertical-align: top;
4517
+ align-items: center;
4518
+ justify-content: center;
4519
+ gap: var(--ply-btn-gap, 0.5em);
4516
4520
  font-family: var(--ply-font-body, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji);
4517
- font-size: 1em;
4521
+ font-size: var(--ply-btn-font-size, 1em);
4518
4522
  font-weight: 400;
4519
4523
  line-height: 1.5rem;
4520
- text-align: center;
4521
4524
  text-decoration: none;
4522
4525
  color: var(--ply-btn-secondary-color, var(--ply-color-text-inverse, #fff));
4523
4526
  -webkit-appearance: none;
@@ -5458,23 +5461,27 @@ button.btn-white.btn-outline.btn-active {
5458
5461
  }
5459
5462
  .btn-single .btn:first-child,
5460
5463
  .btn-group .btn:first-child {
5461
- border-radius: 0.125rem 0 0 0.125rem;
5464
+ border-radius: calc(var(--ply-border-radius) * 0.5) 0 0 calc(var(--ply-border-radius) * 0.5);
5462
5465
  }
5463
5466
  .btn-single .btn:last-child,
5464
5467
  .btn-group .btn:last-child {
5465
- border-radius: 0 0.125rem 0.125rem 0;
5468
+ border-radius: 0 calc(var(--ply-border-radius) * 0.5) calc(var(--ply-border-radius) * 0.5) 0;
5469
+ }
5470
+ .btn-single.joined,
5471
+ .btn-group.joined {
5472
+ gap: 0;
5466
5473
  }
5467
5474
  .btn-single.rounded .btn:first-child,
5468
5475
  .btn-single.rounded .input-search:first-child,
5469
5476
  .btn-group.rounded .btn:first-child,
5470
5477
  .btn-group.rounded .input-search:first-child {
5471
- border-radius: 0.5rem 0 0 0.5rem;
5478
+ border-radius: calc(var(--ply-border-radius) * 2) 0 0 calc(var(--ply-border-radius) * 2);
5472
5479
  }
5473
5480
  .btn-single.rounded .btn:last-child,
5474
5481
  .btn-single.rounded .input-search:last-child,
5475
5482
  .btn-group.rounded .btn:last-child,
5476
5483
  .btn-group.rounded .input-search:last-child {
5477
- border-radius: 0 0.5rem 0.5rem 0;
5484
+ border-radius: 0 calc(var(--ply-border-radius) * 2) calc(var(--ply-border-radius) * 2) 0;
5478
5485
  }
5479
5486
 
5480
5487
  /* =Notifications
@@ -5485,7 +5492,7 @@ button.btn-white.btn-outline.btn-active {
5485
5492
  background: var(--ply-bg-surface-alt, #f7f8f8);
5486
5493
  color: var(--ply-color-body, #0f0f0f);
5487
5494
  margin-bottom: 1.5rem;
5488
- border-radius: 0.25rem;
5495
+ border-radius: var(--ply-border-radius);
5489
5496
  border-left: 4px solid #b3b6b7;
5490
5497
  display: flex;
5491
5498
  align-items: flex-start;
@@ -5532,7 +5539,7 @@ button.btn-white.btn-outline.btn-active {
5532
5539
  align-items: center;
5533
5540
  justify-content: center;
5534
5541
  margin: -0.5rem -0.375rem -0.5rem 0;
5535
- border-radius: 0.25rem;
5542
+ border-radius: var(--ply-border-radius);
5536
5543
  }
5537
5544
  .tools-alert .tools-alert-dismiss:hover,
5538
5545
  .tools-alert .alert-dismiss:hover,
@@ -6001,7 +6008,7 @@ ul.dropdown li.divider {
6001
6008
  }
6002
6009
  .typeahead.active input,
6003
6010
  .livesearch-container.active input {
6004
- border-radius: 0.25rem 0.25rem 0 0;
6011
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6005
6012
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6006
6013
  }
6007
6014
 
@@ -6019,7 +6026,7 @@ ul.dropdown li.divider {
6019
6026
  background: var(--ply-bg-surface, #fff);
6020
6027
  border: 1px solid var(--ply-color-input-border, #ccc);
6021
6028
  border-top: none;
6022
- border-radius: 0 0 0.25rem 0.25rem;
6029
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6023
6030
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6024
6031
  max-height: 240px;
6025
6032
  overflow-y: auto;
@@ -6081,7 +6088,7 @@ ul.dropdown li.divider {
6081
6088
  min-height: 2.5rem;
6082
6089
  background: var(--ply-color-input-bg, #fff);
6083
6090
  border: 1px solid var(--ply-color-input-border, #ccc);
6084
- border-radius: 0.25rem;
6091
+ border-radius: var(--ply-border-radius);
6085
6092
  cursor: text;
6086
6093
  transition: border-color 0.15s ease;
6087
6094
  align-items: center;
@@ -6091,7 +6098,7 @@ ul.dropdown li.divider {
6091
6098
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.3);
6092
6099
  }
6093
6100
  .multiselect.active .multiselect-tags {
6094
- border-radius: 0.25rem 0.25rem 0 0;
6101
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6095
6102
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6096
6103
  }
6097
6104
  .multiselect-tags input {
@@ -6120,7 +6127,7 @@ ul.dropdown li.divider {
6120
6127
  padding: 0.125rem 0.375rem;
6121
6128
  background: var(--ply-bg-muted, #e0e3e5);
6122
6129
  color: var(--ply-color-body, #222);
6123
- border-radius: 0.25rem;
6130
+ border-radius: var(--ply-border-radius);
6124
6131
  font-size: 0.875rem;
6125
6132
  line-height: 1.5;
6126
6133
  white-space: nowrap;
@@ -6168,7 +6175,7 @@ ul.dropdown li.divider {
6168
6175
  background: var(--ply-bg-surface, #fff);
6169
6176
  border: 1px solid var(--ply-color-input-border, #ccc);
6170
6177
  border-top: none;
6171
- border-radius: 0 0 0.25rem 0.25rem;
6178
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6172
6179
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6173
6180
  max-height: 240px;
6174
6181
  overflow-y: auto;
@@ -6693,7 +6700,7 @@ dialog .dialog-close {
6693
6700
  color: var(--ply-color-secondary);
6694
6701
  font-size: 1.5rem;
6695
6702
  cursor: pointer;
6696
- border-radius: 0.25rem;
6703
+ border-radius: var(--ply-border-radius);
6697
6704
  transition: background-color 0.15s ease;
6698
6705
  }
6699
6706
  dialog .dialog-close:hover {
@@ -7138,22 +7145,22 @@ dialog[open]::backdrop {
7138
7145
  [dir=rtl] .input-groups select:not(:last-child) {
7139
7146
  border-right: initial;
7140
7147
  border-left: none;
7141
- border-radius: 0 0.25rem 0.25rem 0;
7148
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7142
7149
  }
7143
7150
  [dir=rtl] .input-groups input:not(:first-child),
7144
7151
  [dir=rtl] .input-groups textarea:not(:first-child),
7145
7152
  [dir=rtl] .input-groups select:not(:first-child) {
7146
- border-radius: 0.25rem 0 0 0.25rem;
7153
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7147
7154
  }
7148
7155
  [dir=rtl] .input-groups .input-prepend {
7149
7156
  border-right: initial;
7150
7157
  border-left: none;
7151
- border-radius: 0 0.25rem 0.25rem 0;
7158
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7152
7159
  }
7153
7160
  [dir=rtl] .input-groups .input-append {
7154
7161
  border-left: initial;
7155
7162
  border-right: none;
7156
- border-radius: 0.25rem 0 0 0.25rem;
7163
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7157
7164
  }
7158
7165
  [dir=rtl] th.sortable {
7159
7166
  padding-right: inherit;