@birdycom/omniaui 0.12.3 → 0.12.4
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/components.css +15 -9
- package/dist/components.min.css +1 -1
- package/dist/oc-theme.css +1 -1
- package/dist/parts/site-price-card.css +14 -8
- package/package.json +2 -2
package/dist/components.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.12.
|
|
1
|
+
/* File: oc-theme.css — generated from tokens/semantic.json by @birdycom/omniacss 0.12.4. Do not edit. */
|
|
2
2
|
/* Semantic theme tokens: every color is light-dark() of an Omnia palette token (oc-colors.css). */
|
|
3
3
|
/* Same source as the desktop export: npx omniacss tokens --format json|dtcg|python */
|
|
4
4
|
:root {
|
|
@@ -10113,9 +10113,9 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
10113
10113
|
|
|
10114
10114
|
/* parts/site-price-card.css */
|
|
10115
10115
|
/* File: packages/ui/src/parts/site-price-card.css
|
|
10116
|
-
Map: card -> head + discount badge -> period toggle -> monthly / yearly price (:has) -> features -> featured
|
|
10117
|
-
Price card: one plan with a monthly / yearly switch (radio inputs + :has(),
|
|
10118
|
-
The toggle is the segmented component; give every card its own radio name. */
|
|
10116
|
+
Map: card -> head + discount badge -> period toggle -> monthly / yearly / lifetime price (:has) -> features -> featured
|
|
10117
|
+
Price card: one plan with a monthly / yearly switch, optionally a third "lifetime" option (radio inputs + :has(),
|
|
10118
|
+
no JavaScript). The toggle is the segmented component; give every card its own radio name. */
|
|
10119
10119
|
|
|
10120
10120
|
.oc-price-card {
|
|
10121
10121
|
display: flex;
|
|
@@ -10145,9 +10145,12 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
10145
10145
|
}
|
|
10146
10146
|
.oc-price-card:has(.oc-price-card__toggle input[value="monthly"]:checked) .oc-price-card__discount { opacity: 0.55; }
|
|
10147
10147
|
|
|
10148
|
-
.oc-price-card__toggle { align-self: flex-start; }
|
|
10148
|
+
.oc-price-card__toggle { align-self: flex-start; max-inline-size: 100%; }
|
|
10149
|
+
/* Three options (monthly / yearly / lifetime) take the full card width, in equal parts, so they fit a narrow card. */
|
|
10150
|
+
.oc-price-card__toggle:has(> :nth-child(3)) { align-self: stretch; }
|
|
10151
|
+
.oc-price-card__toggle:has(> :nth-child(3)) .oc-segmented-item { flex: 1; min-inline-size: 0; padding-inline: 0.25rem; letter-spacing: 0; text-align: center; }
|
|
10149
10152
|
|
|
10150
|
-
/* Price rows: monthly shows by default, yearly when its radio is checked. */
|
|
10153
|
+
/* Price rows: monthly shows by default, yearly or lifetime when its radio is checked. */
|
|
10151
10154
|
.oc-price-card__price {
|
|
10152
10155
|
display: flex;
|
|
10153
10156
|
flex-wrap: wrap;
|
|
@@ -10155,9 +10158,12 @@ a.oc-message__quote:focus-visible { outline: 2px solid var(--oc-ring); outline-o
|
|
|
10155
10158
|
gap: 0.35rem;
|
|
10156
10159
|
margin: 0;
|
|
10157
10160
|
}
|
|
10158
|
-
.oc-price-card__price--yearly
|
|
10159
|
-
.oc-price-
|
|
10160
|
-
.oc-price-card:has(.oc-price-card__toggle input[value="yearly"]:checked) .oc-price-card__price--
|
|
10161
|
+
.oc-price-card__price--yearly,
|
|
10162
|
+
.oc-price-card__price--lifetime { display: none; }
|
|
10163
|
+
.oc-price-card:has(.oc-price-card__toggle input[value="yearly"]:checked) .oc-price-card__price--yearly,
|
|
10164
|
+
.oc-price-card:has(.oc-price-card__toggle input[value="lifetime"]:checked) .oc-price-card__price--lifetime { display: flex; }
|
|
10165
|
+
.oc-price-card:has(.oc-price-card__toggle input:is([value="yearly"], [value="lifetime"]):checked) .oc-price-card__price--monthly,
|
|
10166
|
+
.oc-price-card:has(.oc-price-card__toggle input[value="lifetime"]:checked) .oc-price-card__price--yearly { display: none; }
|
|
10161
10167
|
|
|
10162
10168
|
.oc-price-card__amount { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
|
|
10163
10169
|
.oc-price-card__period { color: var(--oc-muted-foreground); font-size: 0.9rem; }
|