@podoba/tailwind 0.0.48 → 0.0.50
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/package.json +1 -1
- package/src/theme.css +57 -0
package/package.json
CHANGED
package/src/theme.css
CHANGED
|
@@ -74,6 +74,29 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/* Reserve room at the bottom of a page for BrandPageHeader's docked CTA.
|
|
78
|
+
*
|
|
79
|
+
* Below `sm` the header pins its CTA to the safe bottom edge of the viewport, so the
|
|
80
|
+
* last rows of the page would scroll underneath it. Put this on the scrolling content
|
|
81
|
+
* container (or the page's main element) and it pads exactly the dock's footprint,
|
|
82
|
+
* only at the widths where the CTA is docked. The header marks a docked CTA with
|
|
83
|
+
* `data-mobile-cta-dock`, so a shell that does not know which pages have one can
|
|
84
|
+
* scope it: `.content:has([data-mobile-cta-dock]) { @apply mobile-cta-dock-inset; }`.
|
|
85
|
+
*
|
|
86
|
+
* The room is a spacer after the content, not `padding-bottom`, so it adds to the
|
|
87
|
+
* container's own padding (`p-6`, `pb-8`) instead of replacing it. */
|
|
88
|
+
@utility mobile-cta-dock-inset {
|
|
89
|
+
@variant max-sm {
|
|
90
|
+
&::after {
|
|
91
|
+
content: '';
|
|
92
|
+
display: block;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
grid-column: 1 / -1;
|
|
95
|
+
height: --theme(--spacing-mobile-cta-dock inline);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
77
100
|
@theme inline {
|
|
78
101
|
/* colors */
|
|
79
102
|
--color-brand: var(--color-brand-primary);
|
|
@@ -123,6 +146,27 @@
|
|
|
123
146
|
|
|
124
147
|
--color-ring: var(--color-ring);
|
|
125
148
|
--color-modal-backdrop: var(--color-modal-backdrop);
|
|
149
|
+
--color-modal-backdrop-fallback: var(--color-modal-backdrop-fallback);
|
|
150
|
+
|
|
151
|
+
/* GS dialog actions (solid = fixed brand black, soft = the secondary action). */
|
|
152
|
+
--color-action-solid: var(--color-action-solid);
|
|
153
|
+
--color-action-solid-fg: var(--color-action-solid-fg);
|
|
154
|
+
--color-action-solid-hover: var(--color-action-solid-hover);
|
|
155
|
+
--color-action-solid-pressed: var(--color-action-solid-pressed);
|
|
156
|
+
--color-action-soft: var(--color-action-soft);
|
|
157
|
+
--color-action-soft-hover: var(--color-action-soft-hover);
|
|
158
|
+
--color-action-soft-pressed: var(--color-action-soft-pressed);
|
|
159
|
+
--color-action-soft-border-hover: var(--color-action-soft-border-hover);
|
|
160
|
+
--color-action-compact-muted: var(--color-action-compact-muted);
|
|
161
|
+
|
|
162
|
+
/* GS context action panel: ALWAYS dark, so these do not flip with the theme. */
|
|
163
|
+
--color-context-menu-top: var(--color-context-menu-top);
|
|
164
|
+
--color-context-menu-bottom: var(--color-context-menu-bottom);
|
|
165
|
+
--color-context-menu-hover: var(--color-context-menu-hover);
|
|
166
|
+
--color-context-menu-fg: var(--color-context-menu-fg);
|
|
167
|
+
--color-context-menu-danger: var(--color-context-menu-danger);
|
|
168
|
+
--color-context-menu-badge-bg: var(--color-context-menu-badge-bg);
|
|
169
|
+
--color-context-menu-badge-fg: var(--color-context-menu-badge-fg);
|
|
126
170
|
|
|
127
171
|
/* border radius */
|
|
128
172
|
--radius-sm: var(--radius-sm);
|
|
@@ -131,6 +175,7 @@
|
|
|
131
175
|
--radius-xl: var(--radius-xl);
|
|
132
176
|
--radius-2xl: var(--radius-2xl);
|
|
133
177
|
--radius-panel: var(--radius-panel);
|
|
178
|
+
--radius-context-menu-item: var(--radius-context-menu-item);
|
|
134
179
|
|
|
135
180
|
/* spacing — only the off-grid `nav-x` (13px). We deliberately do NOT map
|
|
136
181
|
* xs/sm/md/lg/xl into --spacing-*: in v4 that namespace also feeds the
|
|
@@ -145,12 +190,19 @@
|
|
|
145
190
|
--spacing-create-hub-partial: var(--control-height-create-hub-partial);
|
|
146
191
|
--spacing-mobile-cta: var(--control-height-mobile-cta);
|
|
147
192
|
--spacing-mobile-cta-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
|
|
193
|
+
/* The whole footprint of BrandPageHeader's docked CTA: the 99px pill plus the
|
|
194
|
+
* safe-bottom inset it sits on. Use it for scroll padding or a spacer; to reserve
|
|
195
|
+
* the room on the page itself, prefer `mobile-cta-dock-inset` (below), which only
|
|
196
|
+
* applies while the CTA is actually docked. */
|
|
197
|
+
--spacing-mobile-cta-dock: calc(var(--control-height-mobile-cta) + var(--space-sm) + env(safe-area-inset-bottom, 0px));
|
|
148
198
|
--spacing-control-tall: var(--control-height-tall);
|
|
149
199
|
|
|
150
200
|
/* effects */
|
|
151
201
|
--blur-modal-backdrop: var(--effect-modal-backdrop-blur);
|
|
152
202
|
--shadow-mobile-cta: var(--shadow-mobile-cta);
|
|
153
203
|
--shadow-modal-surface: var(--shadow-modal-surface);
|
|
204
|
+
--shadow-context-menu: var(--shadow-context-menu);
|
|
205
|
+
--shadow-action-compact-hover: var(--shadow-action-compact-hover);
|
|
154
206
|
|
|
155
207
|
/* font families */
|
|
156
208
|
--font-sans: var(--font-sans);
|
|
@@ -179,6 +231,11 @@
|
|
|
179
231
|
--text-display-large--letter-spacing: var(--tracking-display-large);
|
|
180
232
|
--text-panel-heading: var(--font-size-panel-heading);
|
|
181
233
|
--text-panel-heading--line-height: var(--line-height-panel-heading);
|
|
234
|
+
/* GS Smart Document title (56/60) and lead paragraph (22/32). */
|
|
235
|
+
--text-document-display: var(--font-size-document-display);
|
|
236
|
+
--text-document-display--line-height: var(--line-height-document-display);
|
|
237
|
+
--text-document-lead: var(--font-size-document-lead);
|
|
238
|
+
--text-document-lead--line-height: var(--line-height-document-lead);
|
|
182
239
|
|
|
183
240
|
/* font sizes — heading ramp (size + paired line-height) */
|
|
184
241
|
--text-heading1: var(--font-size-heading1);
|