ply-css 1.6.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;
@@ -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
  }
@@ -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;
@@ -5457,11 +5458,11 @@ button.btn-white.btn-outline.btn-active {
5457
5458
  }
5458
5459
  .btn-single .btn:first-child,
5459
5460
  .btn-group .btn:first-child {
5460
- 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);
5461
5462
  }
5462
5463
  .btn-single .btn:last-child,
5463
5464
  .btn-group .btn:last-child {
5464
- 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;
5465
5466
  }
5466
5467
  .btn-single.joined,
5467
5468
  .btn-group.joined {
@@ -5471,13 +5472,13 @@ button.btn-white.btn-outline.btn-active {
5471
5472
  .btn-single.rounded .input-search:first-child,
5472
5473
  .btn-group.rounded .btn:first-child,
5473
5474
  .btn-group.rounded .input-search:first-child {
5474
- 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);
5475
5476
  }
5476
5477
  .btn-single.rounded .btn:last-child,
5477
5478
  .btn-single.rounded .input-search:last-child,
5478
5479
  .btn-group.rounded .btn:last-child,
5479
5480
  .btn-group.rounded .input-search:last-child {
5480
- 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;
5481
5482
  }
5482
5483
 
5483
5484
  /* =Notifications
@@ -5488,7 +5489,7 @@ button.btn-white.btn-outline.btn-active {
5488
5489
  background: var(--ply-bg-surface-alt, #f7f8f8);
5489
5490
  color: var(--ply-color-body, #0f0f0f);
5490
5491
  margin-bottom: 1.5rem;
5491
- border-radius: 0.25rem;
5492
+ border-radius: var(--ply-border-radius);
5492
5493
  border-left: 4px solid #b3b6b7;
5493
5494
  display: flex;
5494
5495
  align-items: flex-start;
@@ -5535,7 +5536,7 @@ button.btn-white.btn-outline.btn-active {
5535
5536
  align-items: center;
5536
5537
  justify-content: center;
5537
5538
  margin: -0.5rem -0.375rem -0.5rem 0;
5538
- border-radius: 0.25rem;
5539
+ border-radius: var(--ply-border-radius);
5539
5540
  }
5540
5541
  .tools-alert .tools-alert-dismiss:hover,
5541
5542
  .tools-alert .alert-dismiss:hover,
@@ -6004,7 +6005,7 @@ ul.dropdown li.divider {
6004
6005
  }
6005
6006
  .typeahead.active input,
6006
6007
  .livesearch-container.active input {
6007
- border-radius: 0.25rem 0.25rem 0 0;
6008
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6008
6009
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6009
6010
  }
6010
6011
 
@@ -6022,7 +6023,7 @@ ul.dropdown li.divider {
6022
6023
  background: var(--ply-bg-surface, #fff);
6023
6024
  border: 1px solid var(--ply-color-input-border, #ccc);
6024
6025
  border-top: none;
6025
- border-radius: 0 0 0.25rem 0.25rem;
6026
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6026
6027
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6027
6028
  max-height: 240px;
6028
6029
  overflow-y: auto;
@@ -6084,7 +6085,7 @@ ul.dropdown li.divider {
6084
6085
  min-height: 2.5rem;
6085
6086
  background: var(--ply-color-input-bg, #fff);
6086
6087
  border: 1px solid var(--ply-color-input-border, #ccc);
6087
- border-radius: 0.25rem;
6088
+ border-radius: var(--ply-border-radius);
6088
6089
  cursor: text;
6089
6090
  transition: border-color 0.15s ease;
6090
6091
  align-items: center;
@@ -6094,7 +6095,7 @@ ul.dropdown li.divider {
6094
6095
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.3);
6095
6096
  }
6096
6097
  .multiselect.active .multiselect-tags {
6097
- border-radius: 0.25rem 0.25rem 0 0;
6098
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
6098
6099
  border-bottom-color: var(--ply-border-color, #e0e3e5);
6099
6100
  }
6100
6101
  .multiselect-tags input {
@@ -6123,7 +6124,7 @@ ul.dropdown li.divider {
6123
6124
  padding: 0.125rem 0.375rem;
6124
6125
  background: var(--ply-bg-muted, #e0e3e5);
6125
6126
  color: var(--ply-color-body, #222);
6126
- border-radius: 0.25rem;
6127
+ border-radius: var(--ply-border-radius);
6127
6128
  font-size: 0.875rem;
6128
6129
  line-height: 1.5;
6129
6130
  white-space: nowrap;
@@ -6171,7 +6172,7 @@ ul.dropdown li.divider {
6171
6172
  background: var(--ply-bg-surface, #fff);
6172
6173
  border: 1px solid var(--ply-color-input-border, #ccc);
6173
6174
  border-top: none;
6174
- border-radius: 0 0 0.25rem 0.25rem;
6175
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
6175
6176
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6176
6177
  max-height: 240px;
6177
6178
  overflow-y: auto;
@@ -6696,7 +6697,7 @@ dialog .dialog-close {
6696
6697
  color: var(--ply-color-secondary);
6697
6698
  font-size: 1.5rem;
6698
6699
  cursor: pointer;
6699
- border-radius: 0.25rem;
6700
+ border-radius: var(--ply-border-radius);
6700
6701
  transition: background-color 0.15s ease;
6701
6702
  }
6702
6703
  dialog .dialog-close:hover {
@@ -7141,22 +7142,22 @@ dialog[open]::backdrop {
7141
7142
  [dir=rtl] .input-groups select:not(:last-child) {
7142
7143
  border-right: initial;
7143
7144
  border-left: none;
7144
- border-radius: 0 0.25rem 0.25rem 0;
7145
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7145
7146
  }
7146
7147
  [dir=rtl] .input-groups input:not(:first-child),
7147
7148
  [dir=rtl] .input-groups textarea:not(:first-child),
7148
7149
  [dir=rtl] .input-groups select:not(:first-child) {
7149
- border-radius: 0.25rem 0 0 0.25rem;
7150
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7150
7151
  }
7151
7152
  [dir=rtl] .input-groups .input-prepend {
7152
7153
  border-right: initial;
7153
7154
  border-left: none;
7154
- border-radius: 0 0.25rem 0.25rem 0;
7155
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
7155
7156
  }
7156
7157
  [dir=rtl] .input-groups .input-append {
7157
7158
  border-left: initial;
7158
7159
  border-right: none;
7159
- border-radius: 0.25rem 0 0 0.25rem;
7160
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
7160
7161
  }
7161
7162
  [dir=rtl] th.sortable {
7162
7163
  padding-right: inherit;