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.
package/dist/css/ply.css CHANGED
@@ -40,6 +40,7 @@
40
40
  --ply-btn-secondary-bg-hover: color-mix(in oklch, var(--ply-btn-secondary-bg), black 15%);
41
41
  --ply-btn-secondary-bg-active: #2b2b2b;
42
42
  --ply-btn-secondary-bg-active: color-mix(in oklch, var(--ply-btn-secondary-bg), black 25%);
43
+ --ply-border-radius: 0.25rem;
43
44
  --ply-btn-border-radius: 2rem;
44
45
  --ply-nav-bg: #ffffff;
45
46
  --ply-nav-color: #161616;
@@ -141,9 +142,9 @@
141
142
  --ply-color-text-inverse: #161616;
142
143
  --ply-border-color: #393939;
143
144
  --ply-border-strong: #6f6f6f;
144
- --ply-color-link: var(--ply-btn-default-bg);
145
+ --ply-color-link: #4589ff;
145
146
  --ply-color-link-hover: #619bff;
146
- --ply-color-link-hover: color-mix(in oklch, var(--ply-btn-default-bg), white 15%);
147
+ --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
147
148
  --ply-color-focus: #0f62fe;
148
149
  --ply-color-field-bg: #262626;
149
150
  --ply-color-input-border: #6f6f6f;
@@ -257,9 +258,9 @@
257
258
  --ply-color-text-inverse: #161616;
258
259
  --ply-border-color: #393939;
259
260
  --ply-border-strong: #6f6f6f;
260
- --ply-color-link: var(--ply-btn-default-bg);
261
+ --ply-color-link: #4589ff;
261
262
  --ply-color-link-hover: #619bff;
262
- --ply-color-link-hover: color-mix(in oklch, var(--ply-btn-default-bg), white 15%);
263
+ --ply-color-link-hover: color-mix(in oklch, #4589ff, white 15%);
263
264
  --ply-color-focus: #0f62fe;
264
265
  --ply-color-field-bg: #262626;
265
266
  --ply-color-input-border: #6f6f6f;
@@ -710,7 +711,7 @@ img {
710
711
  /* Native <details>/<summary> — Swiss/Modernist accordion */
711
712
  details {
712
713
  border: 1px solid var(--ply-border-color, #e0e0e0);
713
- border-radius: 0.25rem;
714
+ border-radius: var(--ply-border-radius);
714
715
  padding: 0.75rem 1rem;
715
716
  margin-bottom: 1.5rem;
716
717
  }
@@ -745,7 +746,7 @@ details[open] > summary {
745
746
  /* Native <dialog> — modal styling */
746
747
  dialog {
747
748
  border: none;
748
- border-radius: 0.25rem;
749
+ border-radius: var(--ply-border-radius);
749
750
  padding: 1.5rem;
750
751
  max-width: 32rem;
751
752
  width: 90%;
@@ -765,21 +766,21 @@ progress {
765
766
  width: 100%;
766
767
  height: 0.5rem;
767
768
  border: none;
768
- border-radius: 0.25rem;
769
+ border-radius: var(--ply-border-radius);
769
770
  background: var(--ply-bg-muted, #e0e0e0);
770
771
  margin-bottom: 1.5rem;
771
772
  }
772
773
  progress::-webkit-progress-bar {
773
774
  background: var(--ply-bg-muted, #e0e0e0);
774
- border-radius: 0.25rem;
775
+ border-radius: var(--ply-border-radius);
775
776
  }
776
777
  progress::-webkit-progress-value {
777
778
  background: var(--ply-color-link, #0f62fe);
778
- border-radius: 0.25rem;
779
+ border-radius: var(--ply-border-radius);
779
780
  }
780
781
  progress::-moz-progress-bar {
781
782
  background: var(--ply-color-link, #0f62fe);
782
- border-radius: 0.25rem;
783
+ border-radius: var(--ply-border-radius);
783
784
  }
784
785
 
785
786
  meter {
@@ -789,7 +790,7 @@ meter {
789
790
  width: 100%;
790
791
  height: 0.5rem;
791
792
  border: none;
792
- border-radius: 0.25rem;
793
+ border-radius: var(--ply-border-radius);
793
794
  background: var(--ply-bg-muted, #e0e0e0);
794
795
  margin-bottom: 1.5rem;
795
796
  }
@@ -1223,7 +1224,7 @@ meter {
1223
1224
  }
1224
1225
 
1225
1226
  .border-radius {
1226
- border-radius: 0.25rem;
1227
+ border-radius: var(--ply-border-radius);
1227
1228
  }
1228
1229
 
1229
1230
  .req,
@@ -1987,11 +1988,11 @@ meter {
1987
1988
  }
1988
1989
 
1989
1990
  .border-radius-lg {
1990
- border-radius: 0.75rem;
1991
+ border-radius: calc(var(--ply-border-radius) * 3);
1991
1992
  }
1992
1993
 
1993
1994
  .border-radius-xl {
1994
- border-radius: 1.5rem;
1995
+ border-radius: calc(var(--ply-border-radius) * 6);
1995
1996
  }
1996
1997
 
1997
1998
  .text-primary {
@@ -2115,7 +2116,7 @@ meter {
2115
2116
 
2116
2117
  .code {
2117
2118
  border: 1px solid #f0f1f2;
2118
- border-radius: 0.25rem;
2119
+ border-radius: var(--ply-border-radius);
2119
2120
  display: inline-block;
2120
2121
  font-size: 0.8rem;
2121
2122
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
@@ -2543,7 +2544,7 @@ pre {
2543
2544
  color: var(--ply-color-body, #222);
2544
2545
  background: var(--ply-color-code-bg, #f4f4f4);
2545
2546
  border: 1px solid var(--ply-color-code-border, #d4d4d4);
2546
- border-radius: 0.25rem;
2547
+ border-radius: var(--ply-border-radius);
2547
2548
  padding: 1rem;
2548
2549
  overflow: auto;
2549
2550
  }
@@ -2818,7 +2819,7 @@ table tfoot td {
2818
2819
  .units-row.reverse-direction, .units-row.right-to-left {
2819
2820
  flex-direction: row-reverse;
2820
2821
  }
2821
- .units-row.split {
2822
+ .units-row.joined, .units-row.split {
2822
2823
  --units-gap: 0px;
2823
2824
  gap: 0;
2824
2825
  }
@@ -3650,7 +3651,7 @@ table.table-hovered tbody tr:hover td {
3650
3651
  .form input[type=datetime-local],
3651
3652
  .form textarea,
3652
3653
  .form select {
3653
- border-radius: 0.25rem;
3654
+ border-radius: var(--ply-border-radius);
3654
3655
  display: block;
3655
3656
  width: 100%;
3656
3657
  padding: 0.5em 0.75em;
@@ -3753,7 +3754,7 @@ textarea {
3753
3754
  }
3754
3755
 
3755
3756
  fieldset {
3756
- border-radius: 0.25rem;
3757
+ border-radius: var(--ply-border-radius);
3757
3758
  background-color: var(--ply-bg-surface);
3758
3759
  padding: 1.5rem;
3759
3760
  margin-bottom: 1.5rem;
@@ -3886,18 +3887,18 @@ select.input-xs {
3886
3887
  min-width: 0;
3887
3888
  display: block !important;
3888
3889
  margin-bottom: 0;
3889
- border-radius: 0.25rem;
3890
+ border-radius: var(--ply-border-radius);
3890
3891
  }
3891
3892
  .input-groups input:not(:last-child),
3892
3893
  .input-groups textarea:not(:last-child),
3893
3894
  .input-groups select:not(:last-child) {
3894
3895
  border-right: none;
3895
- border-radius: 0.25rem 0 0 0.25rem;
3896
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3896
3897
  }
3897
3898
  .input-groups input:not(:first-child),
3898
3899
  .input-groups textarea:not(:first-child),
3899
3900
  .input-groups select:not(:first-child) {
3900
- border-radius: 0 0.25rem 0.25rem 0;
3901
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3901
3902
  }
3902
3903
  .input-groups input:not(:first-child, :last-child),
3903
3904
  .input-groups textarea:not(:first-child, :last-child),
@@ -3919,11 +3920,11 @@ select.input-xs {
3919
3920
  }
3920
3921
  .input-groups .input-prepend {
3921
3922
  border-right: none;
3922
- border-radius: 0.25rem 0 0 0.25rem;
3923
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
3923
3924
  }
3924
3925
  .input-groups .input-append {
3925
3926
  border-left: none;
3926
- border-radius: 0 0.25rem 0.25rem 0;
3927
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3927
3928
  }
3928
3929
  .input-groups .input-append:has(.btn) {
3929
3930
  padding: 0;
@@ -3932,7 +3933,7 @@ select.input-xs {
3932
3933
  .input-groups .input-append .btn {
3933
3934
  display: flex;
3934
3935
  align-items: center;
3935
- border-radius: 0 0.25rem 0.25rem 0;
3936
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3936
3937
  margin: 0;
3937
3938
  border-left: none;
3938
3939
  white-space: nowrap;
@@ -3949,7 +3950,7 @@ select.input-xs {
3949
3950
  .input-groups .btn-append .btn {
3950
3951
  display: flex;
3951
3952
  align-items: center;
3952
- border-radius: 0 0.25rem 0.25rem 0;
3953
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
3953
3954
  margin: 0;
3954
3955
  white-space: nowrap;
3955
3956
  }
@@ -3994,7 +3995,7 @@ select.select-outlined {
3994
3995
  background-size: 0.75em;
3995
3996
  padding: 0.5em 2.5em 0.5em 0.75em;
3996
3997
  border: 1px solid var(--ply-border-strong, #d4d4d4);
3997
- border-radius: 0.25rem;
3998
+ border-radius: var(--ply-border-radius);
3998
3999
  color: var(--ply-color-body);
3999
4000
  font-size: 1em;
4000
4001
  line-height: 1.5rem;
@@ -4256,7 +4257,7 @@ nav ul {
4256
4257
  display: block;
4257
4258
  padding: 0.25rem 0.75rem;
4258
4259
  font-size: 0.875rem;
4259
- border-radius: var(--ply-nav-stacked-radius, 0.25rem);
4260
+ border-radius: var(--ply-nav-stacked-radius, var(--ply-border-radius));
4260
4261
  }
4261
4262
  .nav-stacked a {
4262
4263
  color: var(--ply-nav-color);
@@ -4441,7 +4442,7 @@ nav ul {
4441
4442
  height: 2.25rem;
4442
4443
  padding: 0.25rem 0.75rem;
4443
4444
  border: 1px solid var(--ply-border-color);
4444
- border-radius: 0.25rem;
4445
+ border-radius: var(--ply-border-radius);
4445
4446
  background: var(--ply-bg-surface, #fff);
4446
4447
  color: var(--ply-color-body);
4447
4448
  text-decoration: none;
@@ -4508,13 +4509,15 @@ input[type=button].btn,
4508
4509
  input[type=reset].btn,
4509
4510
  button.btn {
4510
4511
  transition: all 150ms ease-in-out, transform 50ms ease, background 150ms ease-in-out;
4511
- display: inline-block;
4512
+ display: inline-flex;
4512
4513
  vertical-align: top;
4514
+ align-items: center;
4515
+ justify-content: center;
4516
+ gap: var(--ply-btn-gap, 0.5em);
4513
4517
  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);
4514
- font-size: 1em;
4518
+ font-size: var(--ply-btn-font-size, 1em);
4515
4519
  font-weight: 400;
4516
4520
  line-height: 1.5rem;
4517
- text-align: center;
4518
4521
  text-decoration: none;
4519
4522
  color: var(--ply-btn-secondary-color, var(--ply-color-text-inverse, #fff));
4520
4523
  -webkit-appearance: none;
@@ -5455,23 +5458,27 @@ button.btn-white.btn-outline.btn-active {
5455
5458
  }
5456
5459
  .btn-single .btn:first-child,
5457
5460
  .btn-group .btn:first-child {
5458
- border-radius: 0.125rem 0 0 0.125rem;
5461
+ border-radius: calc(var(--ply-border-radius) * 0.5) 0 0 calc(var(--ply-border-radius) * 0.5);
5459
5462
  }
5460
5463
  .btn-single .btn:last-child,
5461
5464
  .btn-group .btn:last-child {
5462
- border-radius: 0 0.125rem 0.125rem 0;
5465
+ border-radius: 0 calc(var(--ply-border-radius) * 0.5) calc(var(--ply-border-radius) * 0.5) 0;
5466
+ }
5467
+ .btn-single.joined,
5468
+ .btn-group.joined {
5469
+ gap: 0;
5463
5470
  }
5464
5471
  .btn-single.rounded .btn:first-child,
5465
5472
  .btn-single.rounded .input-search:first-child,
5466
5473
  .btn-group.rounded .btn:first-child,
5467
5474
  .btn-group.rounded .input-search:first-child {
5468
- border-radius: 0.5rem 0 0 0.5rem;
5475
+ border-radius: calc(var(--ply-border-radius) * 2) 0 0 calc(var(--ply-border-radius) * 2);
5469
5476
  }
5470
5477
  .btn-single.rounded .btn:last-child,
5471
5478
  .btn-single.rounded .input-search:last-child,
5472
5479
  .btn-group.rounded .btn:last-child,
5473
5480
  .btn-group.rounded .input-search:last-child {
5474
- border-radius: 0 0.5rem 0.5rem 0;
5481
+ border-radius: 0 calc(var(--ply-border-radius) * 2) calc(var(--ply-border-radius) * 2) 0;
5475
5482
  }
5476
5483
 
5477
5484
  /* =Notifications
@@ -5482,7 +5489,7 @@ button.btn-white.btn-outline.btn-active {
5482
5489
  background: var(--ply-bg-surface-alt, #f7f8f8);
5483
5490
  color: var(--ply-color-body, #0f0f0f);
5484
5491
  margin-bottom: 1.5rem;
5485
- border-radius: 0.25rem;
5492
+ border-radius: var(--ply-border-radius);
5486
5493
  border-left: 4px solid #b3b6b7;
5487
5494
  display: flex;
5488
5495
  align-items: flex-start;
@@ -5529,7 +5536,7 @@ button.btn-white.btn-outline.btn-active {
5529
5536
  align-items: center;
5530
5537
  justify-content: center;
5531
5538
  margin: -0.5rem -0.375rem -0.5rem 0;
5532
- border-radius: 0.25rem;
5539
+ border-radius: var(--ply-border-radius);
5533
5540
  }
5534
5541
  .tools-alert .tools-alert-dismiss:hover,
5535
5542
  .tools-alert .alert-dismiss:hover,
@@ -5998,7 +6005,7 @@ ul.dropdown li.divider {
5998
6005
  }
5999
6006
  .typeahead.active input,
6000
6007
  .livesearch-container.active input {
6001
- border-radius: 0.25rem 0.25rem 0 0;
6008
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6002
6009
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6003
6010
  }
6004
6011
 
@@ -6016,7 +6023,7 @@ ul.dropdown li.divider {
6016
6023
  background: var(--ply-bg-surface, #fff);
6017
6024
  border: 1px solid var(--ply-color-input-border, #ccc);
6018
6025
  border-top: none;
6019
- border-radius: 0 0 0.25rem 0.25rem;
6026
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6020
6027
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6021
6028
  max-height: 240px;
6022
6029
  overflow-y: auto;
@@ -6078,7 +6085,7 @@ ul.dropdown li.divider {
6078
6085
  min-height: 2.5rem;
6079
6086
  background: var(--ply-color-input-bg, #fff);
6080
6087
  border: 1px solid var(--ply-color-input-border, #ccc);
6081
- border-radius: 0.25rem;
6088
+ border-radius: var(--ply-border-radius);
6082
6089
  cursor: text;
6083
6090
  transition: border-color 0.15s ease;
6084
6091
  align-items: center;
@@ -6088,7 +6095,7 @@ ul.dropdown li.divider {
6088
6095
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.3);
6089
6096
  }
6090
6097
  .multiselect.active .multiselect-tags {
6091
- border-radius: 0.25rem 0.25rem 0 0;
6098
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6092
6099
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6093
6100
  }
6094
6101
  .multiselect-tags input {
@@ -6117,7 +6124,7 @@ ul.dropdown li.divider {
6117
6124
  padding: 0.125rem 0.375rem;
6118
6125
  background: var(--ply-bg-muted, #e0e3e5);
6119
6126
  color: var(--ply-color-body, #222);
6120
- border-radius: 0.25rem;
6127
+ border-radius: var(--ply-border-radius);
6121
6128
  font-size: 0.875rem;
6122
6129
  line-height: 1.5;
6123
6130
  white-space: nowrap;
@@ -6165,7 +6172,7 @@ ul.dropdown li.divider {
6165
6172
  background: var(--ply-bg-surface, #fff);
6166
6173
  border: 1px solid var(--ply-color-input-border, #ccc);
6167
6174
  border-top: none;
6168
- border-radius: 0 0 0.25rem 0.25rem;
6175
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6169
6176
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6170
6177
  max-height: 240px;
6171
6178
  overflow-y: auto;
@@ -6690,7 +6697,7 @@ dialog .dialog-close {
6690
6697
  color: var(--ply-color-secondary);
6691
6698
  font-size: 1.5rem;
6692
6699
  cursor: pointer;
6693
- border-radius: 0.25rem;
6700
+ border-radius: var(--ply-border-radius);
6694
6701
  transition: background-color 0.15s ease;
6695
6702
  }
6696
6703
  dialog .dialog-close:hover {
@@ -7135,22 +7142,22 @@ dialog[open]::backdrop {
7135
7142
  [dir=rtl] .input-groups select:not(:last-child) {
7136
7143
  border-right: initial;
7137
7144
  border-left: none;
7138
- border-radius: 0 0.25rem 0.25rem 0;
7145
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7139
7146
  }
7140
7147
  [dir=rtl] .input-groups input:not(:first-child),
7141
7148
  [dir=rtl] .input-groups textarea:not(:first-child),
7142
7149
  [dir=rtl] .input-groups select:not(:first-child) {
7143
- border-radius: 0.25rem 0 0 0.25rem;
7150
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7144
7151
  }
7145
7152
  [dir=rtl] .input-groups .input-prepend {
7146
7153
  border-right: initial;
7147
7154
  border-left: none;
7148
- border-radius: 0 0.25rem 0.25rem 0;
7155
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7149
7156
  }
7150
7157
  [dir=rtl] .input-groups .input-append {
7151
7158
  border-left: initial;
7152
7159
  border-right: none;
7153
- border-radius: 0.25rem 0 0 0.25rem;
7160
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7154
7161
  }
7155
7162
  [dir=rtl] th.sortable {
7156
7163
  padding-right: inherit;