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/CLAUDE.md +1 -0
- package/PLY.md +2 -1
- package/README.md +1 -0
- package/dist/css/ply-core.css +31 -30
- package/dist/css/ply-core.min.css +1 -1
- package/dist/css/ply-essentials.min.css +1 -1
- package/dist/css/ply-helpers.min.css +1 -1
- package/dist/css/ply.css +42 -41
- package/dist/css/ply.min.css +1 -1
- package/dist/css/styles.css +42 -41
- package/dist/css/styles.min.css +1 -1
- package/llms-full.txt +3 -2
- package/package.json +1 -1
- package/ply-classes.json +9 -6
- package/snippets/custom-theme.html +3 -0
- package/src/scss/components/_buttons.scss +4 -4
- package/src/scss/components/_colors.scss +1 -0
- package/src/scss/components/_dialog-patterns.scss +1 -1
- package/src/scss/components/_forms.scss +10 -10
- package/src/scss/components/_helpers-core.scss +1 -1
- package/src/scss/components/_helpers.scss +3 -3
- package/src/scss/components/_livesearch.scss +6 -6
- package/src/scss/components/_navigation.scss +2 -2
- package/src/scss/components/_notifications.scss +2 -2
- package/src/scss/components/_reset.scss +7 -7
- package/src/scss/components/_rtl.scss +4 -4
- package/src/scss/components/_typography.scss +1 -1
package/CLAUDE.md
CHANGED
|
@@ -44,6 +44,7 @@ Create a custom theme by defining a `data-theme` value and overriding `--ply-*`
|
|
|
44
44
|
--ply-color-body: #1a1a1a;
|
|
45
45
|
--ply-color-headings: #78350f;
|
|
46
46
|
--ply-border-color: #fbbf24;
|
|
47
|
+
--ply-border-radius: 0.375rem;
|
|
47
48
|
--ply-color-accent: #b45309;
|
|
48
49
|
--ply-btn-default-bg: #b45309; /* Controls btn-primary + links */
|
|
49
50
|
--ply-btn-default-bg-hover: #92400e;
|
package/PLY.md
CHANGED
|
@@ -27,6 +27,7 @@ Create a custom theme by defining a `data-theme` value and overriding `--ply-*`
|
|
|
27
27
|
--ply-color-body: #1a1a1a;
|
|
28
28
|
--ply-color-headings: #78350f;
|
|
29
29
|
--ply-border-color: #fbbf24;
|
|
30
|
+
--ply-border-radius: 0.375rem;
|
|
30
31
|
--ply-color-accent: #b45309;
|
|
31
32
|
--ply-btn-default-bg: #b45309;
|
|
32
33
|
--ply-btn-default-bg-hover: #92400e;
|
|
@@ -355,7 +356,7 @@ See `snippets/responsive-header.html` for a full working example.
|
|
|
355
356
|
- **`border-top`**, **`border-right`**, **`border-bottom`**, **`border-left`** — Single-side borders.
|
|
356
357
|
- **`border-thick`** — 3px solid border (all sides). Also `border-top-thick`, `border-right-thick`, `border-bottom-thick`, `border-left-thick`.
|
|
357
358
|
- **`no-border`** — Remove all borders. Also `no-border-top`, `no-border-right`, `no-border-bottom`, `no-border-left`.
|
|
358
|
-
- **`border-radius`** —
|
|
359
|
+
- **`border-radius`** — Uses `var(--ply-border-radius)` (default 0.25rem, themeable). `border-radius-lg`, `border-radius-xl`, `circle` (100%).
|
|
359
360
|
|
|
360
361
|
### Other Common Patterns
|
|
361
362
|
|
package/README.md
CHANGED
|
@@ -99,6 +99,7 @@ Override `--ply-*` CSS custom properties to create any theme:
|
|
|
99
99
|
--ply-color-accent: #92400e; /* Icons, badges, section accents */
|
|
100
100
|
--ply-btn-default-bg: #92400e; /* Primary button + links */
|
|
101
101
|
--ply-btn-secondary-bg: #78350f; /* Secondary button */
|
|
102
|
+
--ply-border-radius: 0.375rem; /* Global border radius */
|
|
102
103
|
--ply-btn-border-radius: 0.5rem; /* Button corner radius */
|
|
103
104
|
--ply-font-body: Palatino, Georgia, serif;
|
|
104
105
|
--ply-font-heading: Palatino, Georgia, serif;
|
package/dist/css/ply-core.css
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
--ply-btn-secondary-bg-hover: color-mix(in oklch, var(--ply-btn-secondary-bg), black 15%);
|
|
45
45
|
--ply-btn-secondary-bg-active: #2b2b2b;
|
|
46
46
|
--ply-btn-secondary-bg-active: color-mix(in oklch, var(--ply-btn-secondary-bg), black 25%);
|
|
47
|
+
--ply-border-radius: 0.25rem;
|
|
47
48
|
--ply-btn-border-radius: 2rem;
|
|
48
49
|
--ply-nav-bg: #ffffff;
|
|
49
50
|
--ply-nav-color: #161616;
|
|
@@ -714,7 +715,7 @@ img {
|
|
|
714
715
|
/* Native <details>/<summary> — Swiss/Modernist accordion */
|
|
715
716
|
details {
|
|
716
717
|
border: 1px solid var(--ply-border-color, #e0e0e0);
|
|
717
|
-
border-radius:
|
|
718
|
+
border-radius: var(--ply-border-radius);
|
|
718
719
|
padding: 0.75rem 1rem;
|
|
719
720
|
margin-bottom: 1.5rem;
|
|
720
721
|
}
|
|
@@ -749,7 +750,7 @@ details[open] > summary {
|
|
|
749
750
|
/* Native <dialog> — modal styling */
|
|
750
751
|
dialog {
|
|
751
752
|
border: none;
|
|
752
|
-
border-radius:
|
|
753
|
+
border-radius: var(--ply-border-radius);
|
|
753
754
|
padding: 1.5rem;
|
|
754
755
|
max-width: 32rem;
|
|
755
756
|
width: 90%;
|
|
@@ -769,21 +770,21 @@ progress {
|
|
|
769
770
|
width: 100%;
|
|
770
771
|
height: 0.5rem;
|
|
771
772
|
border: none;
|
|
772
|
-
border-radius:
|
|
773
|
+
border-radius: var(--ply-border-radius);
|
|
773
774
|
background: var(--ply-bg-muted, #e0e0e0);
|
|
774
775
|
margin-bottom: 1.5rem;
|
|
775
776
|
}
|
|
776
777
|
progress::-webkit-progress-bar {
|
|
777
778
|
background: var(--ply-bg-muted, #e0e0e0);
|
|
778
|
-
border-radius:
|
|
779
|
+
border-radius: var(--ply-border-radius);
|
|
779
780
|
}
|
|
780
781
|
progress::-webkit-progress-value {
|
|
781
782
|
background: var(--ply-color-link, #0f62fe);
|
|
782
|
-
border-radius:
|
|
783
|
+
border-radius: var(--ply-border-radius);
|
|
783
784
|
}
|
|
784
785
|
progress::-moz-progress-bar {
|
|
785
786
|
background: var(--ply-color-link, #0f62fe);
|
|
786
|
-
border-radius:
|
|
787
|
+
border-radius: var(--ply-border-radius);
|
|
787
788
|
}
|
|
788
789
|
|
|
789
790
|
meter {
|
|
@@ -793,7 +794,7 @@ meter {
|
|
|
793
794
|
width: 100%;
|
|
794
795
|
height: 0.5rem;
|
|
795
796
|
border: none;
|
|
796
|
-
border-radius:
|
|
797
|
+
border-radius: var(--ply-border-radius);
|
|
797
798
|
background: var(--ply-bg-muted, #e0e0e0);
|
|
798
799
|
margin-bottom: 1.5rem;
|
|
799
800
|
}
|
|
@@ -1227,7 +1228,7 @@ meter {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
|
|
1229
1230
|
.border-radius {
|
|
1230
|
-
border-radius:
|
|
1231
|
+
border-radius: var(--ply-border-radius);
|
|
1231
1232
|
}
|
|
1232
1233
|
|
|
1233
1234
|
.req,
|
|
@@ -1638,7 +1639,7 @@ pre {
|
|
|
1638
1639
|
color: var(--ply-color-body, #222);
|
|
1639
1640
|
background: var(--ply-color-code-bg, #f4f4f4);
|
|
1640
1641
|
border: 1px solid var(--ply-color-code-border, #d4d4d4);
|
|
1641
|
-
border-radius:
|
|
1642
|
+
border-radius: var(--ply-border-radius);
|
|
1642
1643
|
padding: 1rem;
|
|
1643
1644
|
overflow: auto;
|
|
1644
1645
|
}
|
|
@@ -3225,11 +3226,11 @@ table.table-hovered tbody tr:hover td {
|
|
|
3225
3226
|
}
|
|
3226
3227
|
|
|
3227
3228
|
.border-radius-lg {
|
|
3228
|
-
border-radius:
|
|
3229
|
+
border-radius: calc(var(--ply-border-radius) * 3);
|
|
3229
3230
|
}
|
|
3230
3231
|
|
|
3231
3232
|
.border-radius-xl {
|
|
3232
|
-
border-radius:
|
|
3233
|
+
border-radius: calc(var(--ply-border-radius) * 6);
|
|
3233
3234
|
}
|
|
3234
3235
|
|
|
3235
3236
|
.text-primary {
|
|
@@ -3353,7 +3354,7 @@ table.table-hovered tbody tr:hover td {
|
|
|
3353
3354
|
|
|
3354
3355
|
.code {
|
|
3355
3356
|
border: 1px solid #f0f1f2;
|
|
3356
|
-
border-radius:
|
|
3357
|
+
border-radius: var(--ply-border-radius);
|
|
3357
3358
|
display: inline-block;
|
|
3358
3359
|
font-size: 0.8rem;
|
|
3359
3360
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
@@ -3591,7 +3592,7 @@ table.table-hovered tbody tr:hover td {
|
|
|
3591
3592
|
.form input[type=datetime-local],
|
|
3592
3593
|
.form textarea,
|
|
3593
3594
|
.form select {
|
|
3594
|
-
border-radius:
|
|
3595
|
+
border-radius: var(--ply-border-radius);
|
|
3595
3596
|
display: block;
|
|
3596
3597
|
width: 100%;
|
|
3597
3598
|
padding: 0.5em 0.75em;
|
|
@@ -3694,7 +3695,7 @@ textarea {
|
|
|
3694
3695
|
}
|
|
3695
3696
|
|
|
3696
3697
|
fieldset {
|
|
3697
|
-
border-radius:
|
|
3698
|
+
border-radius: var(--ply-border-radius);
|
|
3698
3699
|
background-color: var(--ply-bg-surface);
|
|
3699
3700
|
padding: 1.5rem;
|
|
3700
3701
|
margin-bottom: 1.5rem;
|
|
@@ -3827,18 +3828,18 @@ select.input-xs {
|
|
|
3827
3828
|
min-width: 0;
|
|
3828
3829
|
display: block !important;
|
|
3829
3830
|
margin-bottom: 0;
|
|
3830
|
-
border-radius:
|
|
3831
|
+
border-radius: var(--ply-border-radius);
|
|
3831
3832
|
}
|
|
3832
3833
|
.input-groups input:not(:last-child),
|
|
3833
3834
|
.input-groups textarea:not(:last-child),
|
|
3834
3835
|
.input-groups select:not(:last-child) {
|
|
3835
3836
|
border-right: none;
|
|
3836
|
-
border-radius:
|
|
3837
|
+
border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
|
|
3837
3838
|
}
|
|
3838
3839
|
.input-groups input:not(:first-child),
|
|
3839
3840
|
.input-groups textarea:not(:first-child),
|
|
3840
3841
|
.input-groups select:not(:first-child) {
|
|
3841
|
-
border-radius: 0
|
|
3842
|
+
border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
|
|
3842
3843
|
}
|
|
3843
3844
|
.input-groups input:not(:first-child, :last-child),
|
|
3844
3845
|
.input-groups textarea:not(:first-child, :last-child),
|
|
@@ -3860,11 +3861,11 @@ select.input-xs {
|
|
|
3860
3861
|
}
|
|
3861
3862
|
.input-groups .input-prepend {
|
|
3862
3863
|
border-right: none;
|
|
3863
|
-
border-radius:
|
|
3864
|
+
border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
|
|
3864
3865
|
}
|
|
3865
3866
|
.input-groups .input-append {
|
|
3866
3867
|
border-left: none;
|
|
3867
|
-
border-radius: 0
|
|
3868
|
+
border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
|
|
3868
3869
|
}
|
|
3869
3870
|
.input-groups .input-append:has(.btn) {
|
|
3870
3871
|
padding: 0;
|
|
@@ -3873,7 +3874,7 @@ select.input-xs {
|
|
|
3873
3874
|
.input-groups .input-append .btn {
|
|
3874
3875
|
display: flex;
|
|
3875
3876
|
align-items: center;
|
|
3876
|
-
border-radius: 0
|
|
3877
|
+
border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
|
|
3877
3878
|
margin: 0;
|
|
3878
3879
|
border-left: none;
|
|
3879
3880
|
white-space: nowrap;
|
|
@@ -3890,7 +3891,7 @@ select.input-xs {
|
|
|
3890
3891
|
.input-groups .btn-append .btn {
|
|
3891
3892
|
display: flex;
|
|
3892
3893
|
align-items: center;
|
|
3893
|
-
border-radius: 0
|
|
3894
|
+
border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
|
|
3894
3895
|
margin: 0;
|
|
3895
3896
|
white-space: nowrap;
|
|
3896
3897
|
}
|
|
@@ -3935,7 +3936,7 @@ select.select-outlined {
|
|
|
3935
3936
|
background-size: 0.75em;
|
|
3936
3937
|
padding: 0.5em 2.5em 0.5em 0.75em;
|
|
3937
3938
|
border: 1px solid var(--ply-border-strong, #d4d4d4);
|
|
3938
|
-
border-radius:
|
|
3939
|
+
border-radius: var(--ply-border-radius);
|
|
3939
3940
|
color: var(--ply-color-body);
|
|
3940
3941
|
font-size: 1em;
|
|
3941
3942
|
line-height: 1.5rem;
|
|
@@ -4197,7 +4198,7 @@ nav ul {
|
|
|
4197
4198
|
display: block;
|
|
4198
4199
|
padding: 0.25rem 0.75rem;
|
|
4199
4200
|
font-size: 0.875rem;
|
|
4200
|
-
border-radius: var(--ply-nav-stacked-radius,
|
|
4201
|
+
border-radius: var(--ply-nav-stacked-radius, var(--ply-border-radius));
|
|
4201
4202
|
}
|
|
4202
4203
|
.nav-stacked a {
|
|
4203
4204
|
color: var(--ply-nav-color);
|
|
@@ -4382,7 +4383,7 @@ nav ul {
|
|
|
4382
4383
|
height: 2.25rem;
|
|
4383
4384
|
padding: 0.25rem 0.75rem;
|
|
4384
4385
|
border: 1px solid var(--ply-border-color);
|
|
4385
|
-
border-radius:
|
|
4386
|
+
border-radius: var(--ply-border-radius);
|
|
4386
4387
|
background: var(--ply-bg-surface, #fff);
|
|
4387
4388
|
color: var(--ply-color-body);
|
|
4388
4389
|
text-decoration: none;
|
|
@@ -5398,11 +5399,11 @@ button.btn-white.btn-outline.btn-active {
|
|
|
5398
5399
|
}
|
|
5399
5400
|
.btn-single .btn:first-child,
|
|
5400
5401
|
.btn-group .btn:first-child {
|
|
5401
|
-
border-radius: 0.
|
|
5402
|
+
border-radius: calc(var(--ply-border-radius) * 0.5) 0 0 calc(var(--ply-border-radius) * 0.5);
|
|
5402
5403
|
}
|
|
5403
5404
|
.btn-single .btn:last-child,
|
|
5404
5405
|
.btn-group .btn:last-child {
|
|
5405
|
-
border-radius: 0 0.
|
|
5406
|
+
border-radius: 0 calc(var(--ply-border-radius) * 0.5) calc(var(--ply-border-radius) * 0.5) 0;
|
|
5406
5407
|
}
|
|
5407
5408
|
.btn-single.joined,
|
|
5408
5409
|
.btn-group.joined {
|
|
@@ -5412,13 +5413,13 @@ button.btn-white.btn-outline.btn-active {
|
|
|
5412
5413
|
.btn-single.rounded .input-search:first-child,
|
|
5413
5414
|
.btn-group.rounded .btn:first-child,
|
|
5414
5415
|
.btn-group.rounded .input-search:first-child {
|
|
5415
|
-
border-radius:
|
|
5416
|
+
border-radius: calc(var(--ply-border-radius) * 2) 0 0 calc(var(--ply-border-radius) * 2);
|
|
5416
5417
|
}
|
|
5417
5418
|
.btn-single.rounded .btn:last-child,
|
|
5418
5419
|
.btn-single.rounded .input-search:last-child,
|
|
5419
5420
|
.btn-group.rounded .btn:last-child,
|
|
5420
5421
|
.btn-group.rounded .input-search:last-child {
|
|
5421
|
-
border-radius: 0
|
|
5422
|
+
border-radius: 0 calc(var(--ply-border-radius) * 2) calc(var(--ply-border-radius) * 2) 0;
|
|
5422
5423
|
}
|
|
5423
5424
|
|
|
5424
5425
|
/* =Notifications
|
|
@@ -5429,7 +5430,7 @@ button.btn-white.btn-outline.btn-active {
|
|
|
5429
5430
|
background: var(--ply-bg-surface-alt, #f7f8f8);
|
|
5430
5431
|
color: var(--ply-color-body, #0f0f0f);
|
|
5431
5432
|
margin-bottom: 1.5rem;
|
|
5432
|
-
border-radius:
|
|
5433
|
+
border-radius: var(--ply-border-radius);
|
|
5433
5434
|
border-left: 4px solid #b3b6b7;
|
|
5434
5435
|
display: flex;
|
|
5435
5436
|
align-items: flex-start;
|
|
@@ -5476,7 +5477,7 @@ button.btn-white.btn-outline.btn-active {
|
|
|
5476
5477
|
align-items: center;
|
|
5477
5478
|
justify-content: center;
|
|
5478
5479
|
margin: -0.5rem -0.375rem -0.5rem 0;
|
|
5479
|
-
border-radius:
|
|
5480
|
+
border-radius: var(--ply-border-radius);
|
|
5480
5481
|
}
|
|
5481
5482
|
.tools-alert .tools-alert-dismiss:hover,
|
|
5482
5483
|
.tools-alert .alert-dismiss:hover,
|