@auriel/peppertino 0.5.0 → 0.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/CHANGELOG.txt +249 -224
- package/LICENSE +21 -21
- package/MIGRATION.md +52 -52
- package/README.md +811 -764
- package/agents/peppertino/SKILL.md +84 -0
- package/agents/peppertino/accordion.md +134 -0
- package/agents/peppertino/alert.md +116 -0
- package/agents/peppertino/badge.md +74 -0
- package/agents/peppertino/base.md +252 -0
- package/agents/peppertino/button.md +65 -0
- package/agents/peppertino/card.md +82 -0
- package/agents/peppertino/carousel.md +147 -0
- package/agents/peppertino/catalog.md +83 -0
- package/agents/peppertino/components-ai-search.md +10 -0
- package/agents/peppertino/components-display.md +19 -0
- package/agents/peppertino/components-inputs.md +15 -0
- package/agents/peppertino/components-navigation.md +12 -0
- package/agents/peppertino/dark-mode.md +152 -0
- package/agents/peppertino/footer.md +109 -0
- package/agents/peppertino/forms-fieldset.md +85 -0
- package/agents/peppertino/forms-form-instructions.md +94 -0
- package/agents/peppertino/forms-label.md +110 -0
- package/agents/peppertino/forms-text-field.md +134 -0
- package/agents/peppertino/forms-validation.md +153 -0
- package/agents/peppertino/gradient.md +41 -0
- package/agents/peppertino/header.md +105 -0
- package/agents/peppertino/modal.md +123 -0
- package/agents/peppertino/section.md +56 -0
- package/agents/peppertino/select.md +110 -0
- package/agents/peppertino/switch.md +72 -0
- package/agents/peppertino/table.md +69 -0
- package/agents/peppertino/tabs.md +115 -0
- package/agents/peppertino/toast.md +96 -0
- package/agents/peppertino/tooltip.md +111 -0
- package/agents/peppertino/typography.md +118 -0
- package/agents/peppertino/utilities.md +194 -0
- package/agents/skill.md +65 -0
- package/build.js +53 -53
- package/dist/accordion.js +1 -1
- package/dist/accordion.js.map +2 -2
- package/dist/alert.js.map +1 -1
- package/dist/carousel.js.map +1 -1
- package/dist/header.js.map +1 -1
- package/dist/main.css +2566 -1008
- package/dist/main.css.map +1 -1
- package/dist/main.min.css +1 -0
- package/dist/modal.js.map +1 -1
- package/dist/peppertino.js +1 -1
- package/dist/peppertino.js.map +2 -2
- package/dist/select.js.map +1 -1
- package/dist/switch.js.map +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/theme.js.map +1 -1
- package/dist/toast.js.map +1 -1
- package/dist/validation.js.map +1 -1
- package/icon.svg +4 -0
- package/index.html +2177 -2098
- package/package.json +28 -28
- package/scripts/hex-to-hsl.mjs +75 -75
- package/scripts/lint-bem.mjs +53 -53
- package/scripts/lint-colors.mjs +87 -87
- package/site.webmanifest +18 -0
- package/src/js/accordion.js +105 -103
- package/src/js/alert.js +28 -28
- package/src/js/carousel.js +153 -153
- package/src/js/header.js +85 -85
- package/src/js/modal.js +138 -138
- package/src/js/peppertino.js +15 -15
- package/src/js/select.js +101 -101
- package/src/js/switch.js +28 -28
- package/src/js/tabs.js +104 -104
- package/src/js/theme.js +47 -47
- package/src/js/toast.js +79 -79
- package/src/js/validation.js +132 -132
- package/src/scss/accordion.scss +190 -156
- package/src/scss/activity.scss +17 -0
- package/src/scss/alert.scss +203 -203
- package/src/scss/badge.scss +90 -90
- package/src/scss/base.scss +511 -506
- package/src/scss/button.scss +119 -119
- package/src/scss/card.scss +121 -121
- package/src/scss/carousel.scss +303 -303
- package/src/scss/code-block.scss +22 -0
- package/src/scss/counter.scss +5 -0
- package/src/scss/dark-mode.scss +514 -514
- package/src/scss/duration.scss +26 -0
- package/src/scss/folder.scss +27 -0
- package/src/scss/footer.scss +224 -224
- package/src/scss/forms/fieldset.scss +127 -127
- package/src/scss/forms/form-instructions.scss +133 -133
- package/src/scss/forms/label.scss +115 -115
- package/src/scss/forms/text-field.scss +240 -240
- package/src/scss/forms/validation.scss +215 -215
- package/src/scss/forms.scss +8 -8
- package/src/scss/gradient.scss +11 -11
- package/src/scss/gravity-letters.scss +7 -0
- package/src/scss/header.scss +257 -238
- package/src/scss/helpers/color.scss +9 -0
- package/src/scss/helpers/flex.scss +14 -0
- package/src/scss/helpers/index.scss +6 -0
- package/src/scss/helpers/layout.scss +14 -0
- package/src/scss/helpers/spacing.scss +14 -0
- package/src/scss/helpers/typography.scss +11 -0
- package/src/scss/helpers/visibility.scss +9 -0
- package/src/scss/main.scss +49 -24
- package/src/scss/modal.scss +188 -188
- package/src/scss/model-picker.scss +5 -0
- package/src/scss/notification.scss +5 -0
- package/src/scss/orb.scss +7 -0
- package/src/scss/otp.scss +5 -0
- package/src/scss/pill-nav.scss +10 -0
- package/src/scss/prompt.scss +28 -0
- package/src/scss/rail.scss +7 -0
- package/src/scss/reactions.scss +5 -0
- package/src/scss/reset.scss +84 -84
- package/src/scss/response.scss +11 -0
- package/src/scss/reveal.scss +5 -0
- package/src/scss/scroll-progress.scss +4 -0
- package/src/scss/search-results.scss +13 -0
- package/src/scss/section.scss +87 -79
- package/src/scss/select.scss +210 -210
- package/src/scss/sidebar.scss +8 -0
- package/src/scss/status.scss +5 -0
- package/src/scss/step-list.scss +13 -0
- package/src/scss/switch.scss +121 -121
- package/src/scss/table.scss +89 -89
- package/src/scss/tabs.scss +156 -156
- package/src/scss/task-list.scss +18 -0
- package/src/scss/theme-picker.scss +5 -0
- package/src/scss/toast.scss +170 -170
- package/src/scss/tooltip.scss +126 -126
- package/src/scss/typography.scss +58 -58
- package/src/scss/utilities.scss +243 -243
- package/src/scss/voice-note.scss +5 -0
package/src/scss/switch.scss
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
// PeppertinoCSS — Switch (toggle)
|
|
2
|
-
//
|
|
3
|
-
// CSS-only baseline: uses aria-checked attribute for on/off state.
|
|
4
|
-
// JS shim (switch.js) wires click → aria-checked toggle and keyboard (Space).
|
|
5
|
-
|
|
6
|
-
@use 'sass:map';
|
|
7
|
-
@use 'base' as *;
|
|
8
|
-
|
|
9
|
-
// ─── Track ────────────────────────────────────────────────────────────────────
|
|
10
|
-
.pp-switch {
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
position: relative;
|
|
14
|
-
width: 44px;
|
|
15
|
-
height: 26px;
|
|
16
|
-
border-radius: 980px;
|
|
17
|
-
background: var(--pp-neutral-300);
|
|
18
|
-
border: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
padding: 3px;
|
|
21
|
-
transition:
|
|
22
|
-
background $transition-fast,
|
|
23
|
-
box-shadow $transition-fast;
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
|
|
26
|
-
// ── Thumb ──────────────────────────────────────────────────────────────────
|
|
27
|
-
&::after {
|
|
28
|
-
content: '';
|
|
29
|
-
display: block;
|
|
30
|
-
width: 20px;
|
|
31
|
-
height: 20px;
|
|
32
|
-
border-radius: 50%;
|
|
33
|
-
background: #fff;
|
|
34
|
-
box-shadow: 0 1px 3px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.12);
|
|
35
|
-
transform: translateX(0);
|
|
36
|
-
transition: transform $transition-fast;
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
flex-shrink: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// ── On state ───────────────────────────────────────────────────────────────
|
|
42
|
-
&[aria-checked='true'] {
|
|
43
|
-
background: var(--pp-primary);
|
|
44
|
-
|
|
45
|
-
&::after {
|
|
46
|
-
transform: translateX(18px);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// ── Focus ring ─────────────────────────────────────────────────────────────
|
|
51
|
-
&:focus-visible {
|
|
52
|
-
outline: 2px solid var(--pp-primary);
|
|
53
|
-
outline-offset: 2px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// ── Disabled ───────────────────────────────────────────────────────────────
|
|
57
|
-
&:disabled,
|
|
58
|
-
&[aria-disabled='true'] {
|
|
59
|
-
opacity: 0.4;
|
|
60
|
-
cursor: not-allowed;
|
|
61
|
-
pointer-events: none;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// ─── Sizes ────────────────────────────────────────────────────────────────────
|
|
66
|
-
.pp-switch--sm {
|
|
67
|
-
width: 32px;
|
|
68
|
-
height: 20px;
|
|
69
|
-
padding: 2px;
|
|
70
|
-
|
|
71
|
-
&::after {
|
|
72
|
-
width: 16px;
|
|
73
|
-
height: 16px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&[aria-checked='true']::after {
|
|
77
|
-
transform: translateX(12px);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.pp-switch--lg {
|
|
82
|
-
width: 56px;
|
|
83
|
-
height: 32px;
|
|
84
|
-
padding: 4px;
|
|
85
|
-
|
|
86
|
-
&::after {
|
|
87
|
-
width: 24px;
|
|
88
|
-
height: 24px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&[aria-checked='true']::after {
|
|
92
|
-
transform: translateX(24px);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// ─── With label row ───────────────────────────────────────────────────────────
|
|
97
|
-
.pp-switch-field {
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: space-between;
|
|
101
|
-
gap: spacing(3);
|
|
102
|
-
width: 100%;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.pp-switch-field__label {
|
|
107
|
-
font-family: $font-sans;
|
|
108
|
-
font-size: font-size('sm');
|
|
109
|
-
font-weight: map.get($font-weights, 'medium');
|
|
110
|
-
color: $color-on-surface;
|
|
111
|
-
line-height: 1.4;
|
|
112
|
-
user-select: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.pp-switch-field__description {
|
|
116
|
-
font-family: $font-sans;
|
|
117
|
-
font-size: font-size('xs');
|
|
118
|
-
color: var(--pp-neutral-500);
|
|
119
|
-
margin-top: spacing(1);
|
|
120
|
-
line-height: 1.5;
|
|
121
|
-
}
|
|
1
|
+
// PeppertinoCSS — Switch (toggle)
|
|
2
|
+
//
|
|
3
|
+
// CSS-only baseline: uses aria-checked attribute for on/off state.
|
|
4
|
+
// JS shim (switch.js) wires click → aria-checked toggle and keyboard (Space).
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
@use 'base' as *;
|
|
8
|
+
|
|
9
|
+
// ─── Track ────────────────────────────────────────────────────────────────────
|
|
10
|
+
.pp-switch {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 44px;
|
|
15
|
+
height: 26px;
|
|
16
|
+
border-radius: 980px;
|
|
17
|
+
background: var(--pp-neutral-300);
|
|
18
|
+
border: none;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: 3px;
|
|
21
|
+
transition:
|
|
22
|
+
background $transition-fast,
|
|
23
|
+
box-shadow $transition-fast;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
|
|
26
|
+
// ── Thumb ──────────────────────────────────────────────────────────────────
|
|
27
|
+
&::after {
|
|
28
|
+
content: '';
|
|
29
|
+
display: block;
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 20px;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
background: #fff;
|
|
34
|
+
box-shadow: 0 1px 3px rgb(0 0 0 / 0.2), 0 1px 2px rgb(0 0 0 / 0.12);
|
|
35
|
+
transform: translateX(0);
|
|
36
|
+
transition: transform $transition-fast;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// ── On state ───────────────────────────────────────────────────────────────
|
|
42
|
+
&[aria-checked='true'] {
|
|
43
|
+
background: var(--pp-primary);
|
|
44
|
+
|
|
45
|
+
&::after {
|
|
46
|
+
transform: translateX(18px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ── Focus ring ─────────────────────────────────────────────────────────────
|
|
51
|
+
&:focus-visible {
|
|
52
|
+
outline: 2px solid var(--pp-primary);
|
|
53
|
+
outline-offset: 2px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ── Disabled ───────────────────────────────────────────────────────────────
|
|
57
|
+
&:disabled,
|
|
58
|
+
&[aria-disabled='true'] {
|
|
59
|
+
opacity: 0.4;
|
|
60
|
+
cursor: not-allowed;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// ─── Sizes ────────────────────────────────────────────────────────────────────
|
|
66
|
+
.pp-switch--sm {
|
|
67
|
+
width: 32px;
|
|
68
|
+
height: 20px;
|
|
69
|
+
padding: 2px;
|
|
70
|
+
|
|
71
|
+
&::after {
|
|
72
|
+
width: 16px;
|
|
73
|
+
height: 16px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&[aria-checked='true']::after {
|
|
77
|
+
transform: translateX(12px);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.pp-switch--lg {
|
|
82
|
+
width: 56px;
|
|
83
|
+
height: 32px;
|
|
84
|
+
padding: 4px;
|
|
85
|
+
|
|
86
|
+
&::after {
|
|
87
|
+
width: 24px;
|
|
88
|
+
height: 24px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&[aria-checked='true']::after {
|
|
92
|
+
transform: translateX(24px);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// ─── With label row ───────────────────────────────────────────────────────────
|
|
97
|
+
.pp-switch-field {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: space-between;
|
|
101
|
+
gap: spacing(3);
|
|
102
|
+
width: 100%;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.pp-switch-field__label {
|
|
107
|
+
font-family: $font-sans;
|
|
108
|
+
font-size: font-size('sm');
|
|
109
|
+
font-weight: map.get($font-weights, 'medium');
|
|
110
|
+
color: $color-on-surface;
|
|
111
|
+
line-height: 1.4;
|
|
112
|
+
user-select: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.pp-switch-field__description {
|
|
116
|
+
font-family: $font-sans;
|
|
117
|
+
font-size: font-size('xs');
|
|
118
|
+
color: var(--pp-neutral-500);
|
|
119
|
+
margin-top: spacing(1);
|
|
120
|
+
line-height: 1.5;
|
|
121
|
+
}
|
package/src/scss/table.scss
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
// PeppertinoCSS — Table
|
|
2
|
-
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@use 'base' as *;
|
|
5
|
-
|
|
6
|
-
.pp-table {
|
|
7
|
-
width: 100%;
|
|
8
|
-
border-collapse: collapse;
|
|
9
|
-
font-size: font-size('base');
|
|
10
|
-
font-family: $font-sans;
|
|
11
|
-
background: var(--pp-bg-card);
|
|
12
|
-
color: var(--pp-on-surface);
|
|
13
|
-
|
|
14
|
-
th,
|
|
15
|
-
td {
|
|
16
|
-
padding: spacing(5) spacing(6);
|
|
17
|
-
text-align: left;
|
|
18
|
-
vertical-align: middle;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Row label column (first cell in tbody)
|
|
22
|
-
td:first-child,
|
|
23
|
-
th:first-child {
|
|
24
|
-
font-weight: map.get($font-weights, 'bold');
|
|
25
|
-
font-size: font-size('2xl');
|
|
26
|
-
color: var(--pp-on-surface);
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
padding-left: 0;
|
|
29
|
-
width: 1%;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Header row — no background, just a bottom divider
|
|
33
|
-
thead tr {
|
|
34
|
-
border-bottom: 1px solid var(--pp-border);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
thead th {
|
|
38
|
-
font-weight: map.get($font-weights, 'regular');
|
|
39
|
-
font-size: font-size('base');
|
|
40
|
-
color: $color-neutral-600;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Body rows separated by a light divider
|
|
44
|
-
tbody tr {
|
|
45
|
-
border-bottom: 1px solid var(--pp-border);
|
|
46
|
-
|
|
47
|
-
&:last-child {
|
|
48
|
-
border-bottom: none;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// No hover tint — keep it clean
|
|
53
|
-
tbody tr:hover {
|
|
54
|
-
background: transparent;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
59
|
-
|
|
60
|
-
// Compact
|
|
61
|
-
.pp-table--compact {
|
|
62
|
-
th,
|
|
63
|
-
td {
|
|
64
|
-
padding: spacing(3) spacing(4);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Flush — no outer padding on edges
|
|
69
|
-
.pp-table--flush {
|
|
70
|
-
th,
|
|
71
|
-
td {
|
|
72
|
-
&:last-child { padding-right: 0; }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
td:first-child,
|
|
76
|
-
th:first-child {
|
|
77
|
-
padding-left: 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// ─── Column count helpers (1–4 cols) ─────────────────────────────────────────
|
|
82
|
-
@for $c from 1 through 4 {
|
|
83
|
-
.pp-table--cols-#{$c} {
|
|
84
|
-
th,
|
|
85
|
-
td {
|
|
86
|
-
width: calc(100% / #{$c});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
// PeppertinoCSS — Table
|
|
2
|
+
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use 'base' as *;
|
|
5
|
+
|
|
6
|
+
.pp-table {
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
font-size: font-size('base');
|
|
10
|
+
font-family: $font-sans;
|
|
11
|
+
background: var(--pp-bg-card);
|
|
12
|
+
color: var(--pp-on-surface);
|
|
13
|
+
|
|
14
|
+
th,
|
|
15
|
+
td {
|
|
16
|
+
padding: spacing(5) spacing(6);
|
|
17
|
+
text-align: left;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Row label column (first cell in tbody)
|
|
22
|
+
td:first-child,
|
|
23
|
+
th:first-child {
|
|
24
|
+
font-weight: map.get($font-weights, 'bold');
|
|
25
|
+
font-size: font-size('2xl');
|
|
26
|
+
color: var(--pp-on-surface);
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
padding-left: 0;
|
|
29
|
+
width: 1%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Header row — no background, just a bottom divider
|
|
33
|
+
thead tr {
|
|
34
|
+
border-bottom: 1px solid var(--pp-border);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
thead th {
|
|
38
|
+
font-weight: map.get($font-weights, 'regular');
|
|
39
|
+
font-size: font-size('base');
|
|
40
|
+
color: $color-neutral-600;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Body rows separated by a light divider
|
|
44
|
+
tbody tr {
|
|
45
|
+
border-bottom: 1px solid var(--pp-border);
|
|
46
|
+
|
|
47
|
+
&:last-child {
|
|
48
|
+
border-bottom: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// No hover tint — keep it clean
|
|
53
|
+
tbody tr:hover {
|
|
54
|
+
background: transparent;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// ─── Variants ────────────────────────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
// Compact
|
|
61
|
+
.pp-table--compact {
|
|
62
|
+
th,
|
|
63
|
+
td {
|
|
64
|
+
padding: spacing(3) spacing(4);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Flush — no outer padding on edges
|
|
69
|
+
.pp-table--flush {
|
|
70
|
+
th,
|
|
71
|
+
td {
|
|
72
|
+
&:last-child { padding-right: 0; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
td:first-child,
|
|
76
|
+
th:first-child {
|
|
77
|
+
padding-left: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ─── Column count helpers (1–4 cols) ─────────────────────────────────────────
|
|
82
|
+
@for $c from 1 through 4 {
|
|
83
|
+
.pp-table--cols-#{$c} {
|
|
84
|
+
th,
|
|
85
|
+
td {
|
|
86
|
+
width: calc(100% / #{$c});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|