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.
@@ -71,7 +71,7 @@
71
71
  input[type="datetime-local"],
72
72
  textarea,
73
73
  select {
74
- border-radius: variables.$border-radius;
74
+ border-radius: var(--ply-border-radius);
75
75
  display: block;
76
76
  width: 100%;
77
77
  padding: 0.5em 0.75em;
@@ -161,7 +161,7 @@ textarea {
161
161
 
162
162
  // Fieldset
163
163
  fieldset {
164
- border-radius: variables.$border-radius;
164
+ border-radius: var(--ply-border-radius);
165
165
 
166
166
  background-color: var(--ply-bg-surface);
167
167
  padding: variables.$base-line;
@@ -184,17 +184,16 @@ input.input-error,
184
184
  textarea.input-error,
185
185
  select.input-error,
186
186
  .input-error {
187
- border-color: colors.$color-red;
188
- box-shadow: 0 0 0 2px rgba(color.channel(colors.$color-red, "red", $space: rgb), color.channel(colors.$color-red, "green", $space: rgb), color.channel(colors.$color-red, "blue", $space: rgb), .3),0 1px 2px rgba(0, 0, 0, .2) inset;
187
+ border-color: var(--ply-color-error);
188
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ply-color-error) 30%, transparent), 0 1px 2px rgba(0, 0, 0, .2) inset;
189
189
  }
190
190
 
191
191
  input.input-success,
192
192
  textarea.input-success,
193
193
  select.input-success,
194
- .input-success {
195
- border-color: colors.$color-green;
196
- box-shadow: 0 0 0 2px rgba(color.channel(colors.$color-green, "red", $space: rgb), color.channel(colors.$color-green, "green", $space: rgb), color.channel(colors.$color-green, "blue", $space: rgb), .3),0 1px 2px rgba(0, 0, 0, .2) inset;
197
-
194
+ .input-success {
195
+ border-color: var(--ply-color-success);
196
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--ply-color-success) 30%, transparent), 0 1px 2px rgba(0, 0, 0, .2) inset;
198
197
  }
199
198
 
200
199
  input.input-gray,
@@ -308,7 +307,7 @@ select.input-xs {
308
307
  min-width: 0;
309
308
  display: block !important;
310
309
  margin-bottom: 0;
311
- border-radius: variables.$border-radius;
310
+ border-radius: var(--ply-border-radius);
312
311
  }
313
312
 
314
313
  // Zero out joining edges
@@ -316,13 +315,13 @@ select.input-xs {
316
315
  textarea:not(:last-child),
317
316
  select:not(:last-child) {
318
317
  border-right: none;
319
- border-radius: variables.$border-radius 0 0 variables.$border-radius;
318
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
320
319
  }
321
320
 
322
321
  input:not(:first-child),
323
322
  textarea:not(:first-child),
324
323
  select:not(:first-child) {
325
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
324
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
326
325
  }
327
326
 
328
327
  // Middle element (both prepend and append)
@@ -348,12 +347,12 @@ select.input-xs {
348
347
 
349
348
  .input-prepend {
350
349
  border-right: none;
351
- border-radius: variables.$border-radius 0 0 variables.$border-radius;
350
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
352
351
  }
353
352
 
354
353
  .input-append {
355
354
  border-left: none;
356
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
355
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
357
356
 
358
357
  &:has(.btn) {
359
358
  padding: 0;
@@ -363,7 +362,7 @@ select.input-xs {
363
362
  .btn {
364
363
  display: flex;
365
364
  align-items: center;
366
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
365
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
367
366
  margin: 0;
368
367
  border-left: none;
369
368
  white-space: nowrap;
@@ -383,7 +382,7 @@ select.input-xs {
383
382
  .btn {
384
383
  display: flex;
385
384
  align-items: center;
386
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
385
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
387
386
  margin: 0;
388
387
  white-space: nowrap;
389
388
 
@@ -428,7 +427,7 @@ select.select-outlined {
428
427
  background-size: 0.75em;
429
428
  padding: 0.5em 2.5em 0.5em 0.75em;
430
429
  border: 1px solid var(--ply-border-strong, colors.$color-neutral-300);
431
- border-radius: variables.$border-radius;
430
+ border-radius: var(--ply-border-radius);
432
431
  color: var(--ply-color-body);
433
432
  font-size: 1em;
434
433
  line-height: variables.$base-line;
@@ -211,7 +211,7 @@
211
211
  }
212
212
 
213
213
  .border-radius {
214
- border-radius: variables.$border-radius;
214
+ border-radius: var(--ply-border-radius);
215
215
  }
216
216
 
217
217
  // UX Helpers
@@ -219,15 +219,15 @@
219
219
  .req,
220
220
  .required {
221
221
  font-weight: normal;
222
- color: var(--ply-red-1);
222
+ color: var(--ply-color-error);
223
223
  }
224
224
 
225
225
  .error {
226
- color: var(--ply-red-1);
226
+ color: var(--ply-color-error);
227
227
  }
228
228
 
229
229
  .success {
230
- color: var(--ply-green-1);
230
+ color: var(--ply-color-success);
231
231
  }
232
232
 
233
233
  // Typography — Size Utilities
@@ -276,11 +276,11 @@ $width-breakpoints: (
276
276
  }
277
277
 
278
278
  .border-radius-lg {
279
- border-radius: 0.75rem;
279
+ border-radius: calc(var(--ply-border-radius) * 3);
280
280
  }
281
281
 
282
282
  .border-radius-xl {
283
- border-radius: 1.5rem;
283
+ border-radius: calc(var(--ply-border-radius) * 6);
284
284
  }
285
285
 
286
286
  // Text color helpers (theme-compatible)
@@ -386,7 +386,7 @@ $width-breakpoints: (
386
386
 
387
387
  .code {
388
388
  border: 1px solid colors.$color-gray-light;
389
- border-radius: variables.$border-radius;
389
+ border-radius: var(--ply-border-radius);
390
390
  display: inline-block;
391
391
  font-size: .8rem;
392
392
  font-family: variables.$font-family-code;
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  &.active input {
19
- border-radius: variables.$border-radius variables.$border-radius 0 0;
19
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
20
20
  border-bottom-color: var(--ply-border-color, colors.$color-gray);
21
21
  }
22
22
  }
@@ -35,7 +35,7 @@
35
35
  background: var(--ply-bg-surface, colors.$color-white);
36
36
  border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
37
37
  border-top: none;
38
- border-radius: 0 0 variables.$border-radius variables.$border-radius;
38
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
39
39
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
40
40
  max-height: 240px;
41
41
  overflow-y: auto;
@@ -98,7 +98,7 @@
98
98
  min-height: 2.5rem;
99
99
  background: var(--ply-color-input-bg, colors.$color-white);
100
100
  border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
101
- border-radius: variables.$border-radius;
101
+ border-radius: var(--ply-border-radius);
102
102
  cursor: text;
103
103
  transition: border-color 0.15s ease;
104
104
  align-items: center;
@@ -109,7 +109,7 @@
109
109
  }
110
110
 
111
111
  .multiselect.active & {
112
- border-radius: variables.$border-radius variables.$border-radius 0 0;
112
+ border-radius: var(--ply-border-radius) var(--ply-border-radius) 0 0;
113
113
  border-bottom-color: var(--ply-border-color, colors.$color-gray);
114
114
  }
115
115
 
@@ -138,7 +138,7 @@
138
138
  padding: 0.125rem 0.375rem;
139
139
  background: var(--ply-bg-muted, colors.$color-gray);
140
140
  color: var(--ply-color-body, colors.$color-body);
141
- border-radius: variables.$border-radius;
141
+ border-radius: var(--ply-border-radius);
142
142
  font-size: variables.$font-size-sm;
143
143
  line-height: 1.5;
144
144
  white-space: nowrap;
@@ -191,7 +191,7 @@
191
191
  background: var(--ply-bg-surface, colors.$color-white);
192
192
  border: 1px solid var(--ply-color-input-border, colors.$color-input-border);
193
193
  border-top: none;
194
- border-radius: 0 0 variables.$border-radius variables.$border-radius;
194
+ border-radius: 0 0 var(--ply-border-radius) var(--ply-border-radius);
195
195
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
196
196
  max-height: 240px;
197
197
  overflow-y: auto;
@@ -83,8 +83,8 @@
83
83
  &.completed {
84
84
  &::before {
85
85
  border-color: var(--ply-border-color);
86
- background: color-mix(in srgb, #{colors.$color-green} 13%, var(--ply-bg-surface, #fff));
87
- color: colors.$color-green;
86
+ background: color-mix(in srgb, var(--ply-color-success) 13%, var(--ply-bg-surface, #fff));
87
+ color: var(--ply-color-success);
88
88
  content: "\2713";
89
89
  }
90
90
 
@@ -100,14 +100,14 @@
100
100
  // Error step — red border and exclamation, transparent background
101
101
  &.step-error {
102
102
  &::before {
103
- border-color: colors.$color-red;
103
+ border-color: var(--ply-color-error);
104
104
  background: transparent;
105
- color: colors.$color-red;
105
+ color: var(--ply-color-error);
106
106
  content: "!";
107
107
  }
108
108
 
109
109
  .step-label {
110
- color: colors.$color-red;
110
+ color: var(--ply-color-error);
111
111
  font-weight: variables.$font-weight-semibold;
112
112
  }
113
113
  }
@@ -291,7 +291,7 @@ nav {
291
291
  display: block;
292
292
  padding: 0.25rem 0.75rem;
293
293
  font-size: variables.$font-size-sm;
294
- border-radius: var(--ply-nav-stacked-radius, 0.25rem);
294
+ border-radius: var(--ply-nav-stacked-radius, var(--ply-border-radius));
295
295
  }
296
296
 
297
297
  & a {
@@ -505,7 +505,7 @@ nav {
505
505
  height: variables.$base-line * 1.5;
506
506
  padding: variables.$grid-gutter-width * 0.5 variables.$padding;
507
507
  border: 1px solid var(--ply-border-color);
508
- border-radius: variables.$border-radius;
508
+ border-radius: var(--ply-border-radius);
509
509
  background: var(--ply-bg-surface, #fff);
510
510
  color: var(--ply-color-body);
511
511
  text-decoration: none;
@@ -19,7 +19,7 @@ $alert-colors: (
19
19
  background: var(--ply-bg-surface-alt, colors.$color-gray-pastel);
20
20
  color: var(--ply-color-body, colors.$color-black);
21
21
  margin-bottom: variables.$base-line;
22
- border-radius: variables.$border-radius;
22
+ border-radius: var(--ply-border-radius);
23
23
  border-left: 4px solid colors.$color-gray-dark;
24
24
  display: flex;
25
25
  align-items: flex-start;
@@ -63,7 +63,7 @@ $alert-colors: (
63
63
  align-items: center;
64
64
  justify-content: center;
65
65
  margin: -0.5rem -0.375rem -0.5rem 0;
66
- border-radius: variables.$border-radius;
66
+ border-radius: var(--ply-border-radius);
67
67
 
68
68
  &:hover {
69
69
  opacity: 1;
@@ -265,7 +265,7 @@ img {
265
265
  /* Native <details>/<summary> — Swiss/Modernist accordion */
266
266
  details {
267
267
  border: 1px solid var(--ply-border-color, #e0e0e0);
268
- border-radius: 0.25rem;
268
+ border-radius: var(--ply-border-radius);
269
269
  padding: 0.75rem 1rem;
270
270
  margin-bottom: 1.5rem;
271
271
  }
@@ -303,7 +303,7 @@ details[open] > summary {
303
303
  /* Native <dialog> — modal styling */
304
304
  dialog {
305
305
  border: none;
306
- border-radius: 0.25rem;
306
+ border-radius: var(--ply-border-radius);
307
307
  padding: 1.5rem;
308
308
  max-width: 32rem;
309
309
  width: 90%;
@@ -322,23 +322,23 @@ progress {
322
322
  width: 100%;
323
323
  height: 0.5rem;
324
324
  border: none;
325
- border-radius: 0.25rem;
325
+ border-radius: var(--ply-border-radius);
326
326
  background: var(--ply-bg-muted, #e0e0e0);
327
327
  margin-bottom: 1.5rem;
328
328
 
329
329
  &::-webkit-progress-bar {
330
330
  background: var(--ply-bg-muted, #e0e0e0);
331
- border-radius: 0.25rem;
331
+ border-radius: var(--ply-border-radius);
332
332
  }
333
333
 
334
334
  &::-webkit-progress-value {
335
335
  background: var(--ply-color-link, #0f62fe);
336
- border-radius: 0.25rem;
336
+ border-radius: var(--ply-border-radius);
337
337
  }
338
338
 
339
339
  &::-moz-progress-bar {
340
340
  background: var(--ply-color-link, #0f62fe);
341
- border-radius: 0.25rem;
341
+ border-radius: var(--ply-border-radius);
342
342
  }
343
343
  }
344
344
 
@@ -347,7 +347,7 @@ meter {
347
347
  width: 100%;
348
348
  height: 0.5rem;
349
349
  border: none;
350
- border-radius: 0.25rem;
350
+ border-radius: var(--ply-border-radius);
351
351
  background: var(--ply-bg-muted, #e0e0e0);
352
352
  margin-bottom: 1.5rem;
353
353
  }
@@ -104,25 +104,25 @@
104
104
  select:not(:last-child) {
105
105
  border-right: initial;
106
106
  border-left: none;
107
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
107
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
108
108
  }
109
109
 
110
110
  input:not(:first-child),
111
111
  textarea:not(:first-child),
112
112
  select:not(:first-child) {
113
- border-radius: variables.$border-radius 0 0 variables.$border-radius;
113
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
114
114
  }
115
115
 
116
116
  .input-prepend {
117
117
  border-right: initial;
118
118
  border-left: none;
119
- border-radius: 0 variables.$border-radius variables.$border-radius 0;
119
+ border-radius: 0 var(--ply-border-radius) var(--ply-border-radius) 0;
120
120
  }
121
121
 
122
122
  .input-append {
123
123
  border-left: initial;
124
124
  border-right: none;
125
- border-radius: variables.$border-radius 0 0 variables.$border-radius;
125
+ border-radius: var(--ply-border-radius) 0 0 var(--ply-border-radius);
126
126
  }
127
127
  }
128
128
 
@@ -23,8 +23,9 @@ table.table-stroked td,
23
23
  table.table-stroked th {
24
24
  border-bottom: 1px solid var(--ply-color-table-border, colors.$color-table-border);
25
25
  }
26
+ table.table-striped tbody tr:nth-child(odd) td,
26
27
  table.table-stripped tbody tr:nth-child(odd) td {
27
- background: var(--ply-color-table-stripped, colors.$color-table-stripped);
28
+ background: var(--ply-color-table-striped, var(--ply-color-table-stripped, colors.$color-table-stripped));
28
29
  }
29
30
  table.table-hovered tbody tr:hover td {
30
31
  background-color: var(--ply-color-table-hovered, colors.$color-table-hovered);
@@ -284,7 +284,7 @@ pre {
284
284
  color: var(--ply-color-body, colors.$color-body);
285
285
  background: var(--ply-color-code-bg, colors.$color-code-background);
286
286
  border: 1px solid var(--ply-color-code-border, colors.$color-code-border);
287
- border-radius: variables.$border-radius;
287
+ border-radius: var(--ply-border-radius);
288
288
  padding: 1rem;
289
289
  overflow: auto;
290
290
  }