@riverbankcms/sdk 0.164.0 → 0.166.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.
- package/dist/_dts/{BlocksIslandsHydrator-CubPwupc.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
- package/dist/_dts/{Page-CDzsagB2.d.ts → Page-rW0xgQCA.d.ts} +18 -256
- package/dist/_dts/{SdkPreviewMode-CPRQbRCI.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +107 -72
- package/dist/_dts/{client-CbeYTSry.d.ts → client-D4BXQEZc.d.ts} +5 -1
- package/dist/_dts/{content-types--uYRIcIF.d.ts → content-types-MUzta0l9.d.ts} +3 -3
- package/dist/_dts/{contracts-DJQYAOsv.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
- package/dist/_dts/{footerPageOutline-CKkhBwgJ.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata--qd7NCIA.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
- package/dist/_dts/{index-wegfy7lf.d.ts → index--qflsCiy.d.ts} +4 -3
- package/dist/_dts/{index-CjdIn9-_.d.ts → index-BgJ2aU5c.d.ts} +2 -2
- package/dist/_dts/{index-BZE-1azr.d.ts → index-Bmboeb49.d.ts} +2 -2
- package/dist/_dts/{index-BpEbwDM7.d.ts → index-DdcwPqQN.d.ts} +4 -4
- package/dist/_dts/{index-DriYVLfT.d.ts → index-ahxQCUc7.d.ts} +2 -2
- package/dist/_dts/{index-DYQFmf--.d.ts → index-kQ5xkM6X.d.ts} +1 -1
- package/dist/_dts/{index-JS8WYgD3.d.ts → index-mMMvLLAJ.d.ts} +2996 -3079
- package/dist/_dts/{index-D_pQO-AS.d.ts → index-wbBZ0awa.d.ts} +49398 -48202
- package/dist/_dts/{loadContent-DUi94Qfk.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
- package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
- package/dist/_dts/{resolvePageContent-JDE0ry6T.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +9 -6
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
- package/dist/_dts/sdk/src/data/types.d.ts +54 -0
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +9 -8
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
- package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +7 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-DiciZDrk.d.ts → types-BX3Y-EW3.d.ts} +3 -3
- package/dist/_dts/{types-DubJnBnI.d.ts → types-DF54stxv.d.ts} +8 -7
- package/dist/_dts/{types-W40f2olO.d.ts → types-DuiHLiPo.d.ts} +2 -2
- package/dist/_dts/{validation-BF4_zNkR.d.ts → validation-Bxi0f81D.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-64hFxF02.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
- package/dist/client/{BookingMailingListNote-CSQyFm9J.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-Bvkx8Z7Y.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
- package/dist/client/{CheckboxChoice-3PhxDxgR.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-pt2xXBQp.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
- package/dist/client/{DemoPortalSignInLink-Qw780EfW.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
- package/dist/client/{EventCalendar.client-DWoboRW5.mjs → EventCalendar.client-BhADnDCg.mjs} +17 -10
- package/dist/client/{EventCombined.client-C98ucpcP.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DHRlFfkp.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
- package/dist/client/{EventItem-hrSyTApW.mjs → EventItem-CMKrtkT7.mjs} +33 -12
- package/dist/client/{EventListWeekNavigation-C3t7H13W.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
- package/dist/client/{EventListing.client-Cp11sBX_.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
- package/dist/client/{EventListing.view-Dd5QHIAf.mjs → EventListing.view-3BBRdNVa.mjs} +70 -15
- package/dist/client/{EventRegistrationPayment-ByT88VHR.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
- package/dist/client/{LocationMapActions-BsepG5Vv.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-R4JMT4yd.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
- package/dist/client/{Page-Dub71o3c.mjs → Page-DNDZLRlB.mjs} +3388 -11530
- package/dist/client/{ProtectedSubmitButton-DGbgGvdh.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
- package/dist/client/{SpamProtectionWidget-CRsKTQV-.mjs → SpamProtectionWidget-CCF6YLUX.mjs} +5 -3
- package/dist/client/{StepIndicator-Bp7MyutT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
- package/dist/client/{TabBarFragment-C4WJyybx.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
- package/dist/client/{ThemedButton-BGVwNwE-.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
- package/dist/client/{accordion-vCG_JC5t.mjs → accordion-uVqNowRX.mjs} +1 -1
- package/dist/client/{altchaProtection-BWchRM3v.mjs → altchaProtection-DjIV9A5n.mjs} +1 -1
- package/dist/client/{booking-form.client-CHTbcZJM.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
- package/dist/client/{bookingForm-BxbUbzUr.mjs → bookingForm-DNMojb6A.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{carousel-FM1mkkL0.mjs → carousel-C8kxI3Dm.mjs} +2 -2
- package/dist/client/{carousel.client-ChoLiWwD.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
- package/dist/client/{cart-BDFhbh9j.mjs → cart-DCxjE3Is.mjs} +3 -3
- package/dist/client/{cart.client-x3HOke6T.mjs → cart.client-Ceeng8fB.mjs} +1 -1
- package/dist/client/{checkout-BibhwnTd.mjs → checkout-B0EKbeVv.mjs} +3 -3
- package/dist/client/{checkout.client-CE4jUi0G.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
- package/dist/client/client.mjs +9465 -15
- package/dist/client/{context-BNAM7NsW.mjs → context-n6IZigd3.mjs} +8 -6
- package/dist/client/cta-CDeAwYoN.mjs +121 -0
- package/dist/client/{dateFormatting-QwBSo0hK.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-NwKJk6gn.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-D4zqEBDl.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
- package/dist/client/{event-details.client-jFyFjOIC.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
- package/dist/client/{event-registration.client-BK_jVv3R.mjs → event-registration.client-BhygihpQ.mjs} +43 -17
- package/dist/client/{eventCalendar-DSkzejQh.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
- package/dist/client/{eventCombined-BG-BEaYh.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
- package/dist/client/{eventDetails-BhIwXAKe.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
- package/dist/client/{eventListing-DQtyO1Xj.mjs → eventListing-2-xjn2nz.mjs} +4 -4
- package/dist/client/{eventRegistration-DRTz8X0M.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
- package/dist/client/{form-GXqjObPC.mjs → form-BeNQiZ2V.mjs} +3 -3
- package/dist/client/{form.client-CoKNba2e.mjs → form.client-BFdCKlp7.mjs} +7 -7
- package/dist/client/{form.parts-magB_epJ.mjs → form.parts-C7gLK3jh.mjs} +3 -3
- package/dist/client/{formatDate-BiloOyjS.mjs → formatDate-CWfelfMt.mjs} +1 -1
- package/dist/client/gifting/client.mjs +4 -5
- package/dist/client/{headerSection-BMQCPHT3.mjs → headerSection-CalNAShx.mjs} +2 -2
- package/dist/client/{mediaAssets-BX-vWwQc.mjs → mediaAssets-DpPauppt.mjs} +1 -1
- package/dist/client/{mediaContext-CdqGYlWl.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
- package/dist/client/{newsletter-form.client-8orCez1z.mjs → newsletter-form.client-Dq7GHGXU.mjs} +9 -9
- package/dist/client/{newsletter-form.parts-D8NgHY_F.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
- package/dist/client/{newsletterForm-BhBNsS3n.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
- package/dist/client/{noop-C2vZse15.mjs → noop-D-RG9eR3.mjs} +399 -169
- package/dist/client/portal/client.mjs +13 -14
- package/dist/client/{product-detail.client-CQ0k0fbH.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
- package/dist/client/{product-list.client-Xlr1P0x9.mjs → product-list.client-BmH40fNf.mjs} +1 -1
- package/dist/client/{productDetail-BsCao6X4.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
- package/dist/client/{productList-Cc-PmbEe.mjs → productList-DjGrjOwD.mjs} +3 -3
- package/dist/client/{propsDecoder-DikkDJ9x.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
- package/dist/client/{registry.server-BpLZo3bC.mjs → registry.server-CKK_RXZo.mjs} +350 -424
- package/dist/client/rendering/client.mjs +29 -28
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +70 -8
- package/dist/client/{richText-coerce-WuMYrBm3.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DNx6b07x.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
- package/dist/client/{shop-DyXtB5TD.mjs → shop-DLufMauE.mjs} +3 -3
- package/dist/client/{shop-commerce-xjWH7-Ym.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
- package/dist/client/{shop-commerce-store-CbBsS1kD.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
- package/dist/client/{shop.client-QOKqQPgK.mjs → shop.client-CBy9_alG.mjs} +13 -13
- package/dist/client/{shop.interactive-BQdm441g.mjs → shop.interactive-BM0NRsFQ.mjs} +265 -24
- package/dist/client/{shopShared-CyW6MU48.mjs → shopShared-lS23OQE-.mjs} +2 -2
- package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
- package/dist/{preview-next/client/ThemedButton-g7NPrsGp.mjs → client/site-styles-DELkUk9s.mjs} +25654 -17259
- package/dist/client/spam-protection.mjs +2 -2
- package/dist/client/src-DjnxOjXG.mjs +217 -0
- package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
- package/dist/client/{timetableModel-BgdkhRuA.mjs → timetableModel-DzRWikCU.mjs} +157 -139
- package/dist/client/types-sF-IrGQr.mjs +633 -0
- package/dist/client/{useAvailableSlots-wmdo6uZ8.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
- package/dist/client/{useBookingNowIso-CUExAee1.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
- package/dist/client/{useDiscountApply-BRM-OoTN.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
- package/dist/client/{useDiscountCodeUi-BEIvL31G.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
- package/dist/client/{useEventPagination-Dk3g64we.mjs → useEventPagination-Ccr4TZlm.mjs} +12 -159
- package/dist/client/{view-BnaOmrap.mjs → view-8w4GA8rf.mjs} +4 -4
- package/dist/client/{view-vhKGFfC3.mjs → view-DAVEoe8A.mjs} +310 -247
- package/dist/client/{wizardSteps-xqU4q63H.mjs → wizardSteps-DNpajrAH.mjs} +495 -173
- package/dist/preview-next/before-render.mjs +4 -141
- package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-43wIAWr4.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
- package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
- package/dist/preview-next/client/PreviewEditorUI-C7ZmYE33.mjs +1189 -0
- package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
- package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
- package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
- package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
- package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
- package/dist/preview-next/client/previewChromeSurface-D2cREDJ5.mjs +190 -0
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
- package/dist/preview-next/client/useAutosaveStatus--Pw8vnef.mjs +138 -0
- package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
- package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
- package/dist/preview-next/keepAlive.mjs +27 -4
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-D5tHZEz5.mjs → route-contract-Bq7SUX3K.mjs} +143 -126
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Iy7g11iP.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
- package/dist/server/{src-cbbK3Bho.mjs → ThemeScopeCore-BI2mld9R.mjs} +1153 -2523
- package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
- package/dist/server/{bindings-BVJGgUT0.mjs → bindings-DjdUq9FR.mjs} +2 -3
- package/dist/server/{publicProducts-D3Fc5TKk.mjs → client-07UeMDzA.mjs} +2492 -357
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +33 -2
- package/dist/server/data/dataLoaderContext.mjs +2 -0
- package/dist/server/data/resolveBlockData.mjs +2 -0
- package/dist/server/data/types.mjs +1 -0
- package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
- package/dist/server/identity-Bn9OQiT1.mjs +6 -0
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BuintpdO.mjs → loadContent-ClpaSlBb.mjs} +6 -5
- package/dist/server/{loadPage-Dk4wea8M.mjs → loadPage-BwtVqpaA.mjs} +4 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/media-DnlczCMA.mjs +231 -0
- package/dist/server/mode-Cv_TG9gP.mjs +63 -0
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +13 -13
- package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
- package/dist/server/{overrideResolution-BDiQWM7D.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
- package/dist/server/overrides-CD4d-1w7.mjs +177 -0
- package/dist/server/page-converter.mjs +243 -91
- package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
- package/dist/server/{themeAdmission-BdY8lP-K.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
- package/dist/server/{overrides-DVemf-GV.mjs → pageShared-HdKFBpaX.mjs} +3594 -1726
- package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
- package/dist/server/{prebuild-DubLNgRH.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
- package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
- package/dist/server/{registry-zjd1P2Dl.mjs → registry-TFPJdGQi.mjs} +20901 -792
- package/dist/server/rendering/components/pageShared.mjs +2 -0
- package/dist/server/rendering/helpers/loadPage.mjs +2 -0
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering/themeAdmission.mjs +2 -0
- package/dist/server/rendering.mjs +11 -10
- package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
- package/dist/server/{resolveBlockData-CZJ--nH6.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
- package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
- package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/schema-C2PqHrMo.mjs +2523 -0
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +1031 -1
- package/dist/server/theme.mjs +2 -1
- package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
- package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
- package/dist/server/validation-CDd6m8Ry.mjs +140 -0
- package/dist/server/{validation-CGH-Xs4E.mjs → validation-DIBFZeMB.mjs} +419 -3
- package/dist/server/{version-DoOG6F13.mjs → version-DZWZM1H6.mjs} +1 -1
- package/dist/styles/index.css +924 -10
- package/package.json +39 -1
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/cta-ChiN1Vgg.mjs +0 -80
- package/dist/client/purchase-BMsWpx8y.mjs +0 -894
- package/dist/client/schema-DMUkBtIO.mjs +0 -15915
- package/dist/client/site-styles-BLHYJ8S7.mjs +0 -12339
- package/dist/client/src-VIsPY-kw.mjs +0 -62
- package/dist/preview-next/client/PreviewEditorSidebar-C3AQVxQt.mjs +0 -5441
- package/dist/preview-next/client/PreviewEditorUI-C-1zDCR_.mjs +0 -756
- package/dist/preview-next/client/SdkPreviewModeRuntime-B47yHFL0.mjs +0 -9130
- package/dist/preview-next/client/SdkPreviewModeRuntime-C6Rhm2NQ.mjs +0 -3
- package/dist/preview-next/client/previewAuthStore-By_zfrS5.mjs +0 -212195
- package/dist/preview-next/client/previewChromeSurface-Cjwxv90x.mjs +0 -85
- package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
- package/dist/preview-next/client/sdk-runtime-BG2HYvQj.mjs +0 -4
- package/dist/preview-next/client/siteStyleAccess-BiSyYyyr.mjs +0 -14178
- package/dist/preview-next/client/spinner-DnWpeDp2.mjs +0 -67
- package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
- package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
- package/dist/server/client-CiKaE8ms.mjs +0 -2330
- package/dist/server/effectiveNavLinkStyle-EDSdd_oK.mjs +0 -11574
- package/dist/server/loadPage-BwjncpJf.mjs +0 -2
- package/dist/server/prefetchBlockData-Bnbwoe5n.mjs +0 -4156
- package/dist/server/schema-BlTWmTSl.mjs +0 -16142
- package/dist/server/site-styles-yHytcXIB.mjs +0 -768
- package/dist/server/siteChromeOverlayClearance-D0uCNZ7E.mjs +0 -802
|
@@ -1,314 +1,191 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { z } from "zod";
|
|
1
|
+
import { At as parseThemeColorToken, Et as rgbColorValue, Nt as parseColorTokenParts, bt as surfaceInkDeclarations, dt as DEFAULT_SURFACE_TEXT_COLOR, ft as SURFACE_FOREGROUND_CSS_VARS, pt as SURFACE_INK_CSS_VARS, vt as surfaceForegroundValue, wt as cssVarValue, yt as surfaceForegroundValueWithOpacity } from "./resolveButtonColourStates-lry2ORwX.mjs";
|
|
2
|
+
import { C as safeTokenOr, O as resolveOpaqueSurfaceHex, S as resolveSurfaceForeground, T as solveSurfaceInks, i as resolveSurface, l as actionVariableFallback, w as surfaceInkPublication } from "./accessibleSurfaces-CuN8U_iU.mjs";
|
|
3
|
+
import { n as opaqueSurfaceDeclarations } from "./opaqueSurface-3YSDPtDe.mjs";
|
|
5
4
|
import "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
//#region ../theme-core/src/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"data-conv": axes.conversionBias,
|
|
22
|
-
"data-motion": axes.motion,
|
|
23
|
-
"data-theme-scope": themeId
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
/** One projection for the server and client scope's identical CSS channels. */
|
|
27
|
-
function themeRuntimeScopeProps(runtime) {
|
|
28
|
-
return {
|
|
29
|
-
cssVars: runtime.cssVars,
|
|
30
|
-
buttonCss: runtime.buttonCss,
|
|
31
|
-
headerCss: runtime.headerCss,
|
|
32
|
-
footerCss: runtime.footerCss,
|
|
33
|
-
cardCss: runtime.cardCss,
|
|
34
|
-
accordionCss: runtime.accordionCss,
|
|
35
|
-
inputCss: runtime.inputCss,
|
|
36
|
-
layoutCss: runtime.layoutCss,
|
|
37
|
-
statusCss: runtime.statusCss,
|
|
38
|
-
progressCss: runtime.progressCss,
|
|
39
|
-
typographyCss: runtime.typographyCss,
|
|
40
|
-
eventCalendarCss: runtime.eventCalendarCss,
|
|
41
|
-
blockVarsCss: runtime.blockVarsCss,
|
|
42
|
-
blockCustomVarsCss: runtime.blockCustomVarsCss,
|
|
43
|
-
blockCustomCss: runtime.blockCustomCss,
|
|
44
|
-
atRulesCss: runtime.atRulesCss,
|
|
45
|
-
customCss: runtime.customCss
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region ../theme-core/src/accordions/defaults.ts
|
|
6
|
+
//#region ../theme-core/src/cards/decorations.ts
|
|
7
|
+
const CARD_EDGE_RULE_WIDTH_MAP = {
|
|
8
|
+
hairline: "1px",
|
|
9
|
+
thin: "2px",
|
|
10
|
+
medium: "3px",
|
|
11
|
+
thick: "4px",
|
|
12
|
+
heavy: "5px"
|
|
13
|
+
};
|
|
14
|
+
const CARD_EDGE_BORDER_PROPERTY_MAP = {
|
|
15
|
+
left: "border-left",
|
|
16
|
+
top: "border-top",
|
|
17
|
+
right: "border-right",
|
|
18
|
+
bottom: "border-bottom"
|
|
19
|
+
};
|
|
50
20
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* Creates a single accordion style that harmonizes with the theme's
|
|
54
|
-
* visual language (spacing, borders, shadows, colors).
|
|
21
|
+
* The one short-rule length in the corpus (the editorial-rule accent). A fixed
|
|
22
|
+
* constant keeps `length: 'short'` a semantic choice rather than a free number.
|
|
55
23
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const { axes, space } = theme;
|
|
60
|
-
return {
|
|
61
|
-
background: {
|
|
62
|
-
type: "solid",
|
|
63
|
-
colorToken: "surface"
|
|
64
|
-
},
|
|
65
|
-
spacing: space === "comfortable" ? "comfortable" : space === "dense" ? "compact" : "medium",
|
|
66
|
-
corners: null,
|
|
67
|
-
border: defaultAccordionBorder(theme),
|
|
68
|
-
shadow: defaultAccordionShadow(theme),
|
|
69
|
-
icon: {
|
|
70
|
-
style: axes.tone === "bold" ? "plus-minus" : "chevron",
|
|
71
|
-
position: "right",
|
|
72
|
-
size: axes.density === "compact" ? "sm" : "md"
|
|
73
|
-
},
|
|
74
|
-
trigger: {
|
|
75
|
-
textColorToken: "text",
|
|
76
|
-
fontWeight: axes.tone === "bold" ? "bold" : axes.tone === "minimal" ? "medium" : "semibold"
|
|
77
|
-
},
|
|
78
|
-
hover: generateHoverEffects(axes),
|
|
79
|
-
content: { textColorToken: "neutral-700" }
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function defaultAccordionBorder({ axes, border }) {
|
|
83
|
-
return axes.conversionBias === "high" || border.width !== "none" ? {
|
|
84
|
-
widthClass: border.width === "thick" ? "border-2" : "border",
|
|
85
|
-
colorToken: "border"
|
|
86
|
-
} : null;
|
|
24
|
+
const SHORT_CARD_EDGE_RULE_LENGTH = "2.75rem";
|
|
25
|
+
function isFullLength(rule) {
|
|
26
|
+
return (rule.length ?? "full") === "full";
|
|
87
27
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
} : null;
|
|
28
|
+
/** Apply a decoration's optional alpha to its resolved colour. */
|
|
29
|
+
function cardDecorationColor(rule, resolveColor) {
|
|
30
|
+
const color = resolveColor(rule.colorToken);
|
|
31
|
+
if (rule.alpha === void 0 || rule.alpha >= 1) return color;
|
|
32
|
+
return `color-mix(in oklab, ${color}, transparent ${Math.round((1 - rule.alpha) * 100)}%)`;
|
|
94
33
|
}
|
|
95
34
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* - Bold/vibrant themes: background + text color
|
|
101
|
-
* - High conversion themes: background + shadow elevation
|
|
35
|
+
* Container border declarations for a variant's border and its full-length
|
|
36
|
+
* edge rules. The two are independent: a card may be outlined *and* carry an
|
|
37
|
+
* accent edge. A variant with edge rules and no border still zeroes the box so
|
|
38
|
+
* only the decorated sides draw.
|
|
102
39
|
*/
|
|
103
|
-
function
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
textColorToken: "primary"
|
|
113
|
-
};
|
|
114
|
-
return {
|
|
115
|
-
backgroundColorToken: "primary/5",
|
|
116
|
-
textColorToken: "primary"
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../theme-core/src/blockOverrides.ts
|
|
121
|
-
const BLOCK_PREFIX = "block.";
|
|
122
|
-
function isPlainObject(value) {
|
|
123
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
124
|
-
}
|
|
125
|
-
function isUnknownArray(value) {
|
|
126
|
-
return Array.isArray(value);
|
|
127
|
-
}
|
|
128
|
-
function cloneValue(value) {
|
|
129
|
-
if (isUnknownArray(value)) return value.map((item) => cloneValue(item));
|
|
130
|
-
if (isPlainObject(value)) {
|
|
131
|
-
const cloned = {};
|
|
132
|
-
for (const [key, child] of Object.entries(value)) cloned[key] = cloneValue(child);
|
|
133
|
-
return cloned;
|
|
134
|
-
}
|
|
135
|
-
return value;
|
|
136
|
-
}
|
|
137
|
-
function mergeDeep(defaultValue, overrideValue) {
|
|
138
|
-
if (overrideValue === void 0) return cloneValue(defaultValue);
|
|
139
|
-
if (overrideValue === null) return null;
|
|
140
|
-
if (isPlainObject(defaultValue) && isPlainObject(overrideValue)) {
|
|
141
|
-
const merged = {};
|
|
142
|
-
const keys = /* @__PURE__ */ new Set([...Object.keys(defaultValue), ...Object.keys(overrideValue)]);
|
|
143
|
-
for (const key of keys) merged[key] = mergeDeep(defaultValue[key], overrideValue[key]);
|
|
144
|
-
return merged;
|
|
40
|
+
function cardBorderDeclarations(borderDeclaration, decorations, resolveColor) {
|
|
41
|
+
const fullLengthRules = (decorations ?? []).filter(isFullLength);
|
|
42
|
+
const declarations = [];
|
|
43
|
+
if (borderDeclaration) declarations.push(borderDeclaration);
|
|
44
|
+
else if (fullLengthRules.length > 0) declarations.push("border: 0");
|
|
45
|
+
for (const rule of fullLengthRules) {
|
|
46
|
+
const side = CARD_EDGE_BORDER_PROPERTY_MAP[rule.edge];
|
|
47
|
+
const width = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
|
|
48
|
+
declarations.push(`${side}: ${width} solid ${cardDecorationColor(rule, resolveColor)}`);
|
|
145
49
|
}
|
|
146
|
-
return
|
|
147
|
-
}
|
|
148
|
-
function normalizeBlockKind(blockKind) {
|
|
149
|
-
return blockKind.replace(/^block\./, "");
|
|
150
|
-
}
|
|
151
|
-
function buildBlockKindCandidates(blockKind) {
|
|
152
|
-
const normalized = normalizeBlockKind(blockKind);
|
|
153
|
-
const prefixed = `${BLOCK_PREFIX}${normalized}`;
|
|
154
|
-
return Array.from(/* @__PURE__ */ new Set([
|
|
155
|
-
blockKind,
|
|
156
|
-
normalized,
|
|
157
|
-
prefixed
|
|
158
|
-
]));
|
|
159
|
-
}
|
|
160
|
-
function resolveEffectiveHeadingDecoration(themeDecoration, override) {
|
|
161
|
-
if (override === "off" || !themeDecoration || themeDecoration.family === "none") return { kind: "none" };
|
|
162
|
-
return {
|
|
163
|
-
kind: "visible",
|
|
164
|
-
decoration: themeDecoration
|
|
165
|
-
};
|
|
50
|
+
return declarations;
|
|
166
51
|
}
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
52
|
+
function horizontalAlignDeclarations(align) {
|
|
53
|
+
switch (align ?? "start") {
|
|
54
|
+
case "start": return ["left: 0"];
|
|
55
|
+
case "center": return ["left: 50%", "transform: translateX(-50%)"];
|
|
56
|
+
case "end": return ["right: 0"];
|
|
172
57
|
}
|
|
173
58
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
applyStyleOverride(mergedContent, "_containerStyles", styleOverrides.containerStyles);
|
|
180
|
-
applyStyleOverride(mergedContent, "_cardStyles", styleOverrides.cardStyles);
|
|
59
|
+
function verticalAlignDeclarations(align) {
|
|
60
|
+
switch (align ?? "start") {
|
|
61
|
+
case "start": return ["top: 0"];
|
|
62
|
+
case "center": return ["top: 50%", "transform: translateY(-50%)"];
|
|
63
|
+
case "end": return ["bottom: 0"];
|
|
181
64
|
}
|
|
182
|
-
applyHeadingDecorationSignature(mergedContent, theme?.headingDecoration);
|
|
183
|
-
return mergedContent;
|
|
184
65
|
}
|
|
66
|
+
function shortEdgeRuleDeclarations(rule, resolveColor) {
|
|
67
|
+
const thickness = CARD_EDGE_RULE_WIDTH_MAP[rule.width];
|
|
68
|
+
const isHorizontal = rule.edge === "top" || rule.edge === "bottom";
|
|
69
|
+
return [
|
|
70
|
+
"content: \"\"",
|
|
71
|
+
"position: absolute",
|
|
72
|
+
`${rule.edge}: 0`,
|
|
73
|
+
...isHorizontal ? horizontalAlignDeclarations(rule.align) : verticalAlignDeclarations(rule.align),
|
|
74
|
+
`width: ${isHorizontal ? SHORT_CARD_EDGE_RULE_LENGTH : thickness}`,
|
|
75
|
+
`height: ${isHorizontal ? thickness : SHORT_CARD_EDGE_RULE_LENGTH}`,
|
|
76
|
+
`background: ${cardDecorationColor(rule, resolveColor)}`
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The pseudo-elements a card container can lend to short edge rules. A short
|
|
81
|
+
* rule cannot be a border, so it is drawn on `::before` / `::after` against the
|
|
82
|
+
* container (which always sets `position: relative`) — and a card has exactly
|
|
83
|
+
* two of those.
|
|
84
|
+
*/
|
|
85
|
+
const CARD_DECORATION_PSEUDOS = ["::before", "::after"];
|
|
185
86
|
/**
|
|
186
|
-
*
|
|
187
|
-
* `_sectionStyles.headingDecoration`, honouring the per-section override:
|
|
188
|
-
* - `off` strips the decoration (the section opts out).
|
|
189
|
-
* - `site-default` / absent use the theme signature.
|
|
87
|
+
* Complete pseudo-element rules for a variant's short edge rules.
|
|
190
88
|
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
89
|
+
* `cardDecorationsSchema` caps the list at two, which makes the two pseudos
|
|
90
|
+
* sufficient for anything that parsed. The dependency-free core types carry a
|
|
91
|
+
* plain array with no such cap, so short rules past the second are dropped
|
|
92
|
+
* here rather than silently overwriting `::after`.
|
|
194
93
|
*/
|
|
195
|
-
function
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
const next = { ...existingObj };
|
|
203
|
-
delete next["headingDecoration"];
|
|
204
|
-
target["_sectionStyles"] = next;
|
|
205
|
-
}
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
const next = existingObj ? { ...existingObj } : {};
|
|
209
|
-
next["headingDecoration"] = { ...effective.decoration };
|
|
210
|
-
target["_sectionStyles"] = next;
|
|
211
|
-
}
|
|
212
|
-
function applyStyleOverride(target, key, defaults) {
|
|
213
|
-
if (defaults === void 0) return;
|
|
214
|
-
target[key] = mergeStyleOverride(defaults, target[key]);
|
|
215
|
-
}
|
|
216
|
-
function mergeStyleOverride(defaultValue, contentValue) {
|
|
217
|
-
if (!isPlainObject(defaultValue) || !isPlainObject(contentValue)) return mergeDeep(defaultValue, contentValue);
|
|
218
|
-
const merged = mergeDeep(defaultValue, contentValue);
|
|
219
|
-
if (!isPlainObject(merged)) return merged;
|
|
220
|
-
return {
|
|
221
|
-
...merged,
|
|
222
|
-
background: mergeBoxBackground(defaultValue.background, contentValue.background)
|
|
223
|
-
};
|
|
94
|
+
function cardDecorationPseudoRules(containerSelectors, decorations, resolveColor) {
|
|
95
|
+
const shortRules = (decorations ?? []).filter((rule) => !isFullLength(rule));
|
|
96
|
+
return CARD_DECORATION_PSEUDOS.flatMap((pseudo, index) => {
|
|
97
|
+
const rule = shortRules[index];
|
|
98
|
+
if (!rule) return [];
|
|
99
|
+
return [`${containerSelectors.map((containerSelector) => `${containerSelector}${pseudo}`).join(",\n")} {\n ${shortEdgeRuleDeclarations(rule, resolveColor).join(";\n ")};\n}`];
|
|
100
|
+
});
|
|
224
101
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (!content.success) return cloneValue(contentValue);
|
|
231
|
-
if (!defaults.success || defaults.data.type !== content.data.type) return content.data;
|
|
232
|
-
const merged = boxBackgroundSchema.safeParse(mergeDeep(defaults.data, content.data));
|
|
233
|
-
return merged.success ? merged.data : content.data;
|
|
102
|
+
//#endregion
|
|
103
|
+
//#region ../theme-core/src/utils/cssDeclarations.ts
|
|
104
|
+
/** Render CSS declarations whether callers provide terminators or fragments. */
|
|
105
|
+
function renderCssDeclarations(declarations) {
|
|
106
|
+
return declarations.map((declaration) => declaration.endsWith(";") ? declaration : `${declaration};`).join("\n ");
|
|
234
107
|
}
|
|
235
108
|
//#endregion
|
|
236
|
-
//#region ../theme-core/src/
|
|
237
|
-
/**
|
|
238
|
-
* Font Family Formatting Utilities
|
|
239
|
-
*
|
|
240
|
-
* Handles parsing and formatting font family strings for CSS output.
|
|
241
|
-
* Supports font stacks, proper quoting, and generic CSS families.
|
|
242
|
-
*/
|
|
243
|
-
/** CSS generic font families that should never be quoted */
|
|
244
|
-
const GENERIC_CSS_FAMILIES = [
|
|
245
|
-
"serif",
|
|
246
|
-
"sans-serif",
|
|
247
|
-
"monospace",
|
|
248
|
-
"cursive",
|
|
249
|
-
"fantasy",
|
|
250
|
-
"system-ui"
|
|
251
|
-
];
|
|
109
|
+
//#region ../theme-core/src/buttons/resolvedButtonCss.ts
|
|
252
110
|
/**
|
|
253
|
-
*
|
|
111
|
+
* Canonical colour declaration mapping shared by full themes and ThemeBridge.
|
|
112
|
+
* Both background properties are always emitted so transitions cannot retain
|
|
113
|
+
* a stale gradient or solid layer.
|
|
254
114
|
*/
|
|
255
|
-
function
|
|
256
|
-
|
|
115
|
+
function resolvedButtonColourDeclarations(colour, action) {
|
|
116
|
+
const value = (property, fallback) => action ? actionVariableFallback(action.role, action.state, property, fallback) : fallback;
|
|
117
|
+
switch (colour.kind) {
|
|
118
|
+
case "solid":
|
|
119
|
+
case "known-solid": return [
|
|
120
|
+
["background-color", value("background-color", colour.backgroundCss)],
|
|
121
|
+
["background-image", value("background-image", "none")],
|
|
122
|
+
["color", value("color", colour.foregroundCss)]
|
|
123
|
+
];
|
|
124
|
+
case "gradient": return [
|
|
125
|
+
["background-color", value("background-color", "transparent")],
|
|
126
|
+
["background-image", value("background-image", colour.backgroundCss)],
|
|
127
|
+
["color", value("color", colour.foregroundCss)]
|
|
128
|
+
];
|
|
129
|
+
case "surface": return [
|
|
130
|
+
["background-color", value("background-color", colour.backgroundCss)],
|
|
131
|
+
["background-image", value("background-image", "none")],
|
|
132
|
+
["color", value("color", colour.foregroundCss)]
|
|
133
|
+
];
|
|
134
|
+
}
|
|
257
135
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
const font = rawFont.trim().replace(/^["']|["']$/g, "");
|
|
266
|
-
if (!font) return null;
|
|
267
|
-
if (isGenericFamily(font)) return font;
|
|
268
|
-
return /\s/.test(font) ? `"${font}"` : font;
|
|
136
|
+
function resolvedButtonFocusDeclarations(indicator, role) {
|
|
137
|
+
const value = (property, fallback) => role ? actionVariableFallback(role, "focus", property, fallback) : fallback;
|
|
138
|
+
return indicator.kind === "two-tone" ? [
|
|
139
|
+
["outline", value("outline", `2px solid ${indicator.innerCss}`)],
|
|
140
|
+
["outline-offset", value("outline-offset", "2px")],
|
|
141
|
+
["box-shadow", value("box-shadow", `0 0 0 4px ${indicator.outerCss}`)]
|
|
142
|
+
] : [["outline", value("outline", `${indicator.width ?? 3}px solid ${indicator.colorCss}`)], ["outline-offset", value("outline-offset", `${indicator.offset ?? 3}px`)]];
|
|
269
143
|
}
|
|
270
144
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
* - Font stacks (comma-separated, each font quoted individually if needed)
|
|
276
|
-
* - Generic CSS families (never quoted)
|
|
277
|
-
* - Appends fallback if not already present
|
|
278
|
-
*
|
|
279
|
-
* @param family - Font family string (e.g., "Open Sans" or "Open Sans, Helvetica, sans-serif")
|
|
280
|
-
* @param fallback - Fallback font family (default: "sans-serif")
|
|
281
|
-
* @returns CSS-ready font-family value
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* formatFontFamily("Open Sans") // '"Open Sans", sans-serif'
|
|
285
|
-
* formatFontFamily("Inter") // 'Inter, sans-serif'
|
|
286
|
-
* formatFontFamily("Open Sans, Helvetica, sans-serif") // '"Open Sans", Helvetica, sans-serif'
|
|
287
|
-
* formatFontFamily("") // 'sans-serif'
|
|
145
|
+
* Disabled buttons are deliberately muted as unavailable controls. Native
|
|
146
|
+
* disabled controls are exempt from active-control contrast requirements;
|
|
147
|
+
* opacity distinguishes the state without introducing a focus-like outline.
|
|
148
|
+
* Retaining pointer events lets the not-allowed cursor remain observable.
|
|
288
149
|
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
150
|
+
const RESOLVED_BUTTON_DISABLED_DECLARATIONS = [
|
|
151
|
+
["cursor", "not-allowed"],
|
|
152
|
+
["transform", "none"],
|
|
153
|
+
["box-shadow", "none"],
|
|
154
|
+
["opacity", "0.55"]
|
|
155
|
+
];
|
|
296
156
|
//#endregion
|
|
297
|
-
//#region ../theme-core/src/
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
157
|
+
//#region ../theme-core/src/responsiveMode.ts
|
|
158
|
+
const DEFAULT_THEME_RESPONSIVE_MODE = "viewport";
|
|
159
|
+
const THEME_RESPONSIVE_CONTAINER_NAME = "rb-site";
|
|
160
|
+
const THEME_RESPONSIVE_MODE_ATTR = "data-rb-responsive-mode";
|
|
161
|
+
function getResponsiveScopeSpec(mode = DEFAULT_THEME_RESPONSIVE_MODE) {
|
|
162
|
+
if (mode === "container") return {
|
|
163
|
+
kind: "container",
|
|
164
|
+
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="container"]`,
|
|
165
|
+
containerName: THEME_RESPONSIVE_CONTAINER_NAME
|
|
166
|
+
};
|
|
167
|
+
return {
|
|
168
|
+
kind: "viewport",
|
|
169
|
+
selector: `[${THEME_RESPONSIVE_MODE_ATTR}="viewport"]`
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function escapeRegExp(value) {
|
|
173
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
174
|
+
}
|
|
175
|
+
new RegExp(buildResponsiveScopeRulePatternSource(), "g");
|
|
176
|
+
new RegExp(buildResponsiveScopeRulePatternSource(), "y");
|
|
177
|
+
function buildResponsiveScopeRulePatternSource() {
|
|
178
|
+
return [
|
|
179
|
+
"@scope",
|
|
180
|
+
"\\(\\[",
|
|
181
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
182
|
+
"=\"(?:viewport|container)\"\\]\\)",
|
|
183
|
+
"to",
|
|
184
|
+
"\\((?::scope )?\\[",
|
|
185
|
+
escapeRegExp(THEME_RESPONSIVE_MODE_ATTR),
|
|
186
|
+
"\\]\\)",
|
|
187
|
+
"\\{"
|
|
188
|
+
].join("\\s*");
|
|
312
189
|
}
|
|
313
190
|
//#endregion
|
|
314
191
|
//#region ../theme-core/src/styles/shadow.ts
|
|
@@ -404,6 +281,7 @@ function generateShadowCssVars(theme) {
|
|
|
404
281
|
* A `transparent` entry is a treatment that turns a surface-owning class into
|
|
405
282
|
* a boxless row, so it hands the surrounding surface's contract back.
|
|
406
283
|
*/
|
|
284
|
+
const BOOKING_BAR_SELECTOR = ":where([data-block='event-registration']) .er-booking-bar";
|
|
407
285
|
const opaquePanels = [
|
|
408
286
|
{
|
|
409
287
|
selector: ":where([data-block=\"event-registration\"], [data-block=\"appointment-booking\"]) .rb-reg-surface",
|
|
@@ -425,7 +303,7 @@ const opaquePanels = [
|
|
|
425
303
|
}
|
|
426
304
|
},
|
|
427
305
|
{
|
|
428
|
-
selector:
|
|
306
|
+
selector: BOOKING_BAR_SELECTOR,
|
|
429
307
|
paint: {
|
|
430
308
|
kind: "solid",
|
|
431
309
|
token: "surface"
|
|
@@ -553,236 +431,29 @@ const opaquePanels = [
|
|
|
553
431
|
*/
|
|
554
432
|
function generateOpaquePanelCss(input) {
|
|
555
433
|
return opaquePanels.map((panel) => {
|
|
556
|
-
const
|
|
434
|
+
const styledBar = panel.selector === BOOKING_BAR_SELECTOR ? input.bookingBar : void 0;
|
|
435
|
+
const declarations = [...opaqueSurfaceDeclarations(resolveSurface({
|
|
557
436
|
kind: "paint",
|
|
558
|
-
paint:
|
|
559
|
-
|
|
437
|
+
paint: styledBar ? {
|
|
438
|
+
kind: "solid",
|
|
439
|
+
token: styledBar.token
|
|
440
|
+
} : panel.paint
|
|
441
|
+
}, input.surface)).filter((declaration) => !("contract" in panel) || Object.values(SURFACE_INK_CSS_VARS).some((variable) => declaration.startsWith(`${variable}:`))), ...styledBar ? bookingBarDeclarations(styledBar) : []];
|
|
560
442
|
return `:where([data-theme-scope="${input.themeId}"]) ${panel.selector} {\n ${renderCssDeclarations(declarations)}\n}`;
|
|
561
443
|
}).join("\n\n");
|
|
562
444
|
}
|
|
563
|
-
//#endregion
|
|
564
|
-
//#region ../theme-core/src/styles/border.ts
|
|
565
|
-
/**
|
|
566
|
-
* Border width mapping from Tailwind class names to px values
|
|
567
|
-
* Used by CSS generators for cards, accordions, and other components
|
|
568
|
-
*/
|
|
569
|
-
const BORDER_WIDTH_TO_PX = {
|
|
570
|
-
"border-0": "0",
|
|
571
|
-
"border": "1px",
|
|
572
|
-
"border-2": "2px",
|
|
573
|
-
"border-3": "3px",
|
|
574
|
-
"border-4": "4px",
|
|
575
|
-
"border-8": "8px"
|
|
576
|
-
};
|
|
577
|
-
/**
|
|
578
|
-
* Parse a Tailwind border width class to px value
|
|
579
|
-
* Falls back to 1px if class is not recognized
|
|
580
|
-
*/
|
|
581
|
-
function parseBorderWidth(widthClass) {
|
|
582
|
-
return BORDER_WIDTH_TO_PX[widthClass] ?? "1px";
|
|
583
|
-
}
|
|
584
|
-
//#endregion
|
|
585
|
-
//#region ../theme-core/src/accordions/generateAccordionCss.ts
|
|
586
|
-
/**
|
|
587
|
-
* Corner radius map for accordion surfaces. Pill is capped here because FAQ
|
|
588
|
-
* rows contain long text and expanded content; full capsules clip awkwardly.
|
|
589
|
-
*/
|
|
590
|
-
const CORNER_MAP$2 = {
|
|
591
|
-
square: "0",
|
|
592
|
-
soft: "0.5rem",
|
|
593
|
-
rounded: "1rem",
|
|
594
|
-
pill: "1rem"
|
|
595
|
-
};
|
|
596
|
-
const FAQ_QUESTION_COLUMNS_TRIGGER_MIN_HEIGHT = "5rem";
|
|
597
445
|
/**
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
* - .accordion-root: Container styles (background, border, corners, shadow)
|
|
602
|
-
* - .accordion-item: Individual item borders
|
|
603
|
-
* - .accordion-trigger: Question/trigger text styling
|
|
604
|
-
* - .accordion-content: Answer/content text styling
|
|
605
|
-
* - .accordion-icon: Icon sizing and transitions
|
|
446
|
+
* A style's booking bar (issue 1659): its paint together with the contract
|
|
447
|
+
* above, so inks and paint never disagree, and a field's inset and radius.
|
|
448
|
+
* `event-registration.css` reads these with today's bar as the fallback.
|
|
606
449
|
*/
|
|
607
|
-
function
|
|
608
|
-
const rootSelector = `:where([data-theme-scope="${themeId}"]) .accordion-root`;
|
|
609
|
-
const itemSelector = `${rootSelector} .accordion-item`;
|
|
610
|
-
const triggerSelector = `${itemSelector} .accordion-trigger`;
|
|
611
|
-
const triggerTextSelector = `${triggerSelector} .accordion-trigger-text`;
|
|
612
|
-
const contentSelector = `${itemSelector} .accordion-content`;
|
|
613
|
-
const contentInnerSelector = `${contentSelector} > .accordion-content-inner`;
|
|
614
|
-
const iconSelector = `${triggerSelector} .accordion-icon`;
|
|
615
|
-
const questionColumnsItemSelector = `${rootSelector}.rb-faq-question-columns .accordion-item`;
|
|
616
|
-
const questionColumnsLastItemSelector = `${questionColumnsItemSelector}:last-child`;
|
|
617
|
-
const questionColumnsTriggerSelector = `${questionColumnsItemSelector} .accordion-trigger`;
|
|
618
|
-
const rootRules = accordionSurfaceRules(theme, accordionSystem, solvedInks);
|
|
619
|
-
const borderRadius = CORNER_MAP$2[accordionSystem.corners ?? theme.corners];
|
|
620
|
-
rootRules.push(`border-radius: ${borderRadius}`);
|
|
621
|
-
if (accordionSystem.border) {
|
|
622
|
-
const borderPx = parseBorderWidth(accordionSystem.border.widthClass);
|
|
623
|
-
rootRules.push(`border: ${borderPx} solid ${rgbColorValue(accordionSystem.border.colorToken)}`);
|
|
624
|
-
}
|
|
625
|
-
if (accordionSystem.shadow && accordionSystem.shadow.elevation !== "none") {
|
|
626
|
-
const shadowValue = generateShadowValue({
|
|
627
|
-
elevation: accordionSystem.shadow.elevation,
|
|
628
|
-
softness: accordionSystem.shadow.softness ?? "soft",
|
|
629
|
-
position: accordionSystem.shadow.position
|
|
630
|
-
});
|
|
631
|
-
rootRules.push(`box-shadow: ${shadowValue}`);
|
|
632
|
-
}
|
|
633
|
-
rootRules.push("overflow: hidden");
|
|
634
|
-
rootRules.push("width: 100%");
|
|
635
|
-
const itemRules = [];
|
|
636
|
-
const itemBorderBottomRule = accordionSystem.border ? `border-bottom: 1px solid ${rgbColorValue(accordionSystem.border.colorToken)}` : "border-bottom: 1px solid rgb(var(--tb-border))";
|
|
637
|
-
itemRules.push(itemBorderBottomRule);
|
|
638
|
-
const lastItemSelector = `${itemSelector}:last-child`;
|
|
639
|
-
const lastItemRules = ["border-bottom: none"];
|
|
640
|
-
const questionColumnsLastItemRules = [itemBorderBottomRule];
|
|
641
|
-
const triggerRules = [];
|
|
642
|
-
const padding = ACCORDION_SPACING_MAP[accordionSystem.spacing];
|
|
643
|
-
triggerRules.push(`padding: ${padding}`);
|
|
644
|
-
triggerRules.push(`color: ${rgbColorValue(accordionSystem.trigger.textColorToken)}`);
|
|
645
|
-
const triggerTypographyRules = [];
|
|
646
|
-
if (accordionSystem.trigger.fontFamily === "heading") triggerTypographyRules.push("font-family: var(--font-heading)");
|
|
647
|
-
else if (accordionSystem.trigger.fontFamily === "body") triggerTypographyRules.push("font-family: var(--font-body)");
|
|
648
|
-
triggerTypographyRules.push(`font-size: ${ACCORDION_TRIGGER_FONT_SCALE[accordionSystem.trigger.fontScale ?? "body"]}`);
|
|
649
|
-
triggerTypographyRules.push("line-height: 1.4");
|
|
650
|
-
if (accordionSystem.trigger.letterSpacing && accordionSystem.trigger.letterSpacing !== "normal") triggerTypographyRules.push(`letter-spacing: ${ACCORDION_TRIGGER_LETTER_SPACING[accordionSystem.trigger.letterSpacing]}`);
|
|
651
|
-
if (accordionSystem.trigger.textTransform === "uppercase") triggerTypographyRules.push("text-transform: uppercase");
|
|
652
|
-
triggerRules.push(...triggerTypographyRules);
|
|
653
|
-
if (accordionSystem.trigger.fontWeight) triggerRules.push(`font-weight: ${{
|
|
654
|
-
regular: "400",
|
|
655
|
-
medium: "500",
|
|
656
|
-
semibold: "600",
|
|
657
|
-
bold: "700"
|
|
658
|
-
}[accordionSystem.trigger.fontWeight]}`);
|
|
659
|
-
triggerRules.push("cursor: pointer");
|
|
660
|
-
triggerRules.push("display: flex");
|
|
661
|
-
triggerRules.push("flex: 1");
|
|
662
|
-
triggerRules.push("align-items: center");
|
|
663
|
-
triggerRules.push("justify-content: space-between");
|
|
664
|
-
triggerRules.push("width: 100%");
|
|
665
|
-
triggerRules.push("text-align: left");
|
|
666
|
-
triggerRules.push("gap: 1rem");
|
|
667
|
-
triggerRules.push("outline: none");
|
|
668
|
-
const transitionProps = ["color 0.2s ease"];
|
|
669
|
-
if (accordionSystem.hover.backgroundColorToken) transitionProps.push("background-color 0.2s ease");
|
|
670
|
-
if (accordionSystem.hover.borderColorToken) transitionProps.push("border-color 0.2s ease");
|
|
671
|
-
triggerRules.push(`transition: ${transitionProps.join(", ")}`);
|
|
672
|
-
const triggerHoverSelector = `${triggerSelector}:hover`;
|
|
673
|
-
const triggerHoverRules = [];
|
|
674
|
-
if (accordionSystem.hover.backgroundColorToken) {
|
|
675
|
-
triggerHoverRules.push(`background-color: ${rgbColorValue(accordionSystem.hover.backgroundColorToken)}`);
|
|
676
|
-
triggerHoverRules.push(...accordionPaintInks(theme, accordionSystem.hover.backgroundColorToken, solvedInks));
|
|
677
|
-
}
|
|
678
|
-
if (accordionSystem.hover.textColorToken) triggerHoverRules.push(`color: ${rgbColorValue(accordionSystem.hover.textColorToken)}`);
|
|
679
|
-
if (accordionSystem.hover.borderColorToken) triggerHoverRules.push(`border-color: ${rgbColorValue(accordionSystem.hover.borderColorToken)}`);
|
|
680
|
-
const triggerFocusSelector = `${triggerSelector}:focus-visible`;
|
|
681
|
-
const triggerFocusRules = [];
|
|
682
|
-
triggerFocusRules.push("outline: 2px solid rgb(var(--tb-primary))");
|
|
683
|
-
triggerFocusRules.push("outline-offset: 2px");
|
|
684
|
-
const openItemSelector = `${itemSelector}[data-state="open"]`;
|
|
685
|
-
const openTriggerSelector = `${openItemSelector} .accordion-trigger`;
|
|
686
|
-
const openItemRules = [];
|
|
687
|
-
const openTriggerRules = [];
|
|
688
|
-
const openState = accordionSystem.openState;
|
|
689
|
-
if (openState?.backgroundColorToken) {
|
|
690
|
-
openItemRules.push(`background-color: ${rgbColorValue(openState.backgroundColorToken)}`);
|
|
691
|
-
openItemRules.push(...accordionPaintInks(theme, openState.backgroundColorToken, solvedInks));
|
|
692
|
-
}
|
|
693
|
-
if (openState?.accent) {
|
|
694
|
-
const thickness = ACCORDION_OPEN_ACCENT_THICKNESS[openState.accent.thickness];
|
|
695
|
-
const accentColor = rgbColorValue(openState.accent.colorToken);
|
|
696
|
-
const insetByEdge = {
|
|
697
|
-
left: `inset ${thickness} 0 0 0 ${accentColor}`,
|
|
698
|
-
top: `inset 0 ${thickness} 0 0 ${accentColor}`,
|
|
699
|
-
bottom: `inset 0 -${thickness} 0 0 ${accentColor}`
|
|
700
|
-
};
|
|
701
|
-
openItemRules.push(`box-shadow: ${insetByEdge[openState.accent.edge]}`);
|
|
702
|
-
}
|
|
703
|
-
if (openState?.triggerColorToken) openTriggerRules.push(`color: ${rgbColorValue(openState.triggerColorToken)}`);
|
|
704
|
-
const contentRules = [];
|
|
705
|
-
const contentInnerRules = [];
|
|
706
|
-
contentRules.push("overflow: hidden");
|
|
707
|
-
contentRules.push(`color: ${rgbColorValue(accordionSystem.content.textColorToken)}`);
|
|
708
|
-
contentRules.push("max-width: none");
|
|
709
|
-
contentInnerRules.push(`padding: 0 ${padding} ${padding} ${padding}`);
|
|
710
|
-
contentInnerRules.push("display: flow-root");
|
|
711
|
-
const contentFirstPSelector = `${contentInnerSelector} > p:first-child`;
|
|
712
|
-
const iconRules = [];
|
|
713
|
-
const iconSize = ICON_SIZE_PX[accordionSystem.icon.size];
|
|
714
|
-
iconRules.push(`width: ${iconSize}`);
|
|
715
|
-
iconRules.push(`height: ${iconSize}`);
|
|
716
|
-
iconRules.push("flex-shrink: 0");
|
|
717
|
-
iconRules.push("display: inline-flex");
|
|
718
|
-
iconRules.push("align-items: center");
|
|
719
|
-
iconRules.push("justify-content: center");
|
|
720
|
-
if (accordionSystem.icon.colorToken) iconRules.push(`color: ${rgbColorValue(accordionSystem.icon.colorToken)}`);
|
|
721
|
-
const iconConfig = ICON_CONFIG[accordionSystem.icon.style];
|
|
722
|
-
const iconSwapBlocks = [];
|
|
723
|
-
const iconRotateBlock = [];
|
|
724
|
-
if (iconConfig.openIcon) {
|
|
725
|
-
const iconClosedSelector = `${iconSelector} .accordion-icon-closed`;
|
|
726
|
-
const iconOpenHiddenSelector = `${iconSelector} .accordion-icon-open`;
|
|
727
|
-
const itemOpenIconClosedSelector = `[data-state="open"] ${iconSelector} .accordion-icon-closed`;
|
|
728
|
-
const itemOpenIconOpenSelector = `[data-state="open"] ${iconSelector} .accordion-icon-open`;
|
|
729
|
-
iconSwapBlocks.push(`${iconClosedSelector} {\n display: block;\n transition: opacity 0.2s ease;\n}`);
|
|
730
|
-
iconSwapBlocks.push(`${iconOpenHiddenSelector} {\n display: none;\n}`);
|
|
731
|
-
iconSwapBlocks.push(`${itemOpenIconClosedSelector} {\n display: none;\n}`);
|
|
732
|
-
iconSwapBlocks.push(`${itemOpenIconOpenSelector} {\n display: block;\n}`);
|
|
733
|
-
} else {
|
|
734
|
-
iconRules.push("transition: transform 0.2s ease");
|
|
735
|
-
if (iconConfig.rotation > 0) {
|
|
736
|
-
const iconOpenSelector = `[data-state="open"] ${iconSelector}`;
|
|
737
|
-
const iconOpenRules = [];
|
|
738
|
-
iconOpenRules.push(`transform: rotate(${iconConfig.rotation}deg)`);
|
|
739
|
-
iconRotateBlock.push(`${iconOpenSelector} {\n ${iconOpenRules.join(";\n ")};\n}`);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
const cssBlocks = [];
|
|
743
|
-
cssBlocks.push(`${rootSelector} {\n ${renderCssDeclarations(rootRules)}\n}`);
|
|
744
|
-
cssBlocks.push(`${itemSelector} {\n ${itemRules.join(";\n ")};\n}`);
|
|
745
|
-
cssBlocks.push(`${itemSelector}.accordion-item {\n border-radius: ${borderRadius};\n}`);
|
|
746
|
-
cssBlocks.push(`${lastItemSelector} {\n ${lastItemRules.join(";\n ")};\n}`);
|
|
747
|
-
if (questionColumnsLastItemRules.length > 0) cssBlocks.push(`${questionColumnsLastItemSelector} {\n ${questionColumnsLastItemRules.join(";\n ")};\n}`);
|
|
748
|
-
cssBlocks.push(`${triggerSelector} {\n ${triggerRules.join(";\n ")};\n}`);
|
|
749
|
-
cssBlocks.push(`${questionColumnsTriggerSelector} {\n min-height: ${FAQ_QUESTION_COLUMNS_TRIGGER_MIN_HEIGHT};\n}`);
|
|
750
|
-
const triggerTextRules = ["flex: 1", ...triggerTypographyRules];
|
|
751
|
-
cssBlocks.push(`${triggerTextSelector} {\n ${triggerTextRules.join(";\n ")};\n}`);
|
|
752
|
-
if (triggerHoverRules.length > 0) cssBlocks.push(`${triggerHoverSelector} {\n ${triggerHoverRules.join(";\n ")};\n}`);
|
|
753
|
-
if (triggerFocusRules.length > 0) cssBlocks.push(`${triggerFocusSelector} {\n ${triggerFocusRules.join(";\n ")};\n}`);
|
|
754
|
-
if (openItemRules.length > 0) cssBlocks.push(`${openItemSelector} {\n ${openItemRules.join(";\n ")};\n}`);
|
|
755
|
-
if (openTriggerRules.length > 0) cssBlocks.push(`${openTriggerSelector} {\n ${openTriggerRules.join(";\n ")};\n}`);
|
|
756
|
-
cssBlocks.push(`${contentSelector} {\n ${contentRules.join(";\n ")};\n}`);
|
|
757
|
-
cssBlocks.push(`${contentInnerSelector} {\n ${contentInnerRules.join(";\n ")};\n}`);
|
|
758
|
-
cssBlocks.push(`${contentFirstPSelector} {\n margin-top: 0;\n}`);
|
|
759
|
-
cssBlocks.push(`${iconSelector} {\n ${iconRules.join(";\n ")};\n}`);
|
|
760
|
-
if (iconSwapBlocks.length > 0) cssBlocks.push(...iconSwapBlocks);
|
|
761
|
-
if (iconRotateBlock.length > 0) cssBlocks.push(...iconRotateBlock);
|
|
762
|
-
return cssBlocks.join("\n\n");
|
|
763
|
-
}
|
|
764
|
-
function accordionSurfaceRules(theme, system, solvedInks) {
|
|
765
|
-
if (!system.background) return [];
|
|
766
|
-
const foreground = resolveSurfaceForeground({
|
|
767
|
-
type: "color",
|
|
768
|
-
color: system.background.colorToken,
|
|
769
|
-
textColor: system.content.textColorToken,
|
|
770
|
-
headingColor: system.trigger.textColorToken
|
|
771
|
-
}, expandPalette(theme.palette), { linkHover: theme.typography.proseLinkStyle?.hoverColorToken });
|
|
450
|
+
function bookingBarDeclarations(bar) {
|
|
772
451
|
return [
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
...
|
|
452
|
+
`--er-bar-paint: rgb(var(--tb-${bar.token}));`,
|
|
453
|
+
"--er-bar-border: 0 none;",
|
|
454
|
+
...bar.shape === "field" ? ["--er-bar-inset: clamp(12px, 3vw, var(--rb-skin-margin, 20px));", "--er-bar-radius: var(--rb-skin-radius, 0px);"] : []
|
|
776
455
|
];
|
|
777
456
|
}
|
|
778
|
-
function accordionPaintInks(theme, color, policy) {
|
|
779
|
-
const palette = expandPalette(theme.palette);
|
|
780
|
-
if (!resolveConcreteColorHex(color, palette)) return surfaceInkDeclarations({ kind: "reset" }).map((rule) => rule.replace(/;$/, ""));
|
|
781
|
-
return surfaceInkDeclarations(surfaceInkPublication(resolveSurfaceForeground({
|
|
782
|
-
type: "color",
|
|
783
|
-
color
|
|
784
|
-
}, palette), policy ?? "withhold")).map((rule) => rule.replace(/;$/, ""));
|
|
785
|
-
}
|
|
786
457
|
//#endregion
|
|
787
458
|
//#region ../theme-core/src/inputs/checkable.ts
|
|
788
459
|
/**
|
|
@@ -1060,6 +731,12 @@ function generateCheckableCss(input) {
|
|
|
1060
731
|
* generators add it to that selector list, plus focus and error), so it
|
|
1061
732
|
* follows the site's input background, border, corners and shadow. This file
|
|
1062
733
|
* only adds the layout overrides and the borderless inner field.
|
|
734
|
+
*
|
|
735
|
+
* A shell with a solid background is a ground of its own, so each runtime
|
|
736
|
+
* passes in the surface it publishes there, the same way it publishes a card's:
|
|
737
|
+
* the button beside the field then reads from the shell, not from the section
|
|
738
|
+
* around it (a light field in a dark footer would otherwise get a quiet button
|
|
739
|
+
* inked for the footer). A transparent shell passes none.
|
|
1063
740
|
*/
|
|
1064
741
|
const INPUT_GROUP_SELECTOR = ".form-input-group";
|
|
1065
742
|
/** Shell focus ring follows the field only, not the button beside it. */
|
|
@@ -1070,14 +747,19 @@ const GROUP_INSET = "0.25rem";
|
|
|
1070
747
|
* @param root - scoped root selector
|
|
1071
748
|
* @param padding - the theme's input padding shorthand (`block inline`), so the
|
|
1072
749
|
* inner field's text sits where a plain input's text would.
|
|
750
|
+
* @param shellSurface - the declarations that make the shell own its fill's
|
|
751
|
+
* surface, from the runtime's surface owner; empty for a transparent shell.
|
|
1073
752
|
*/
|
|
1074
|
-
function generateInputGroupCss(root, padding) {
|
|
753
|
+
function generateInputGroupCss(root, padding, shellSurface) {
|
|
1075
754
|
const [block = padding, inline = block] = padding.trim().split(/\s+/);
|
|
1076
755
|
return `${root} .form-input-group {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
756
|
+
${[
|
|
757
|
+
"display: flex;",
|
|
758
|
+
"align-items: stretch;",
|
|
759
|
+
`gap: ${GROUP_INSET};`,
|
|
760
|
+
`padding: ${GROUP_INSET};`,
|
|
761
|
+
...shellSurface
|
|
762
|
+
].join("\n ")}
|
|
1081
763
|
}
|
|
1082
764
|
|
|
1083
765
|
${root} .form-input-group-field {
|
|
@@ -1104,462 +786,6 @@ ${root} .form-input-group > :not(.form-input-group-field) {
|
|
|
1104
786
|
}`;
|
|
1105
787
|
}
|
|
1106
788
|
//#endregion
|
|
1107
|
-
//#region ../theme-core/src/inputs/generateInputCss.ts
|
|
1108
|
-
/**
|
|
1109
|
-
* Corner radius map (reused from other systems)
|
|
1110
|
-
*/
|
|
1111
|
-
const CORNER_MAP$1 = {
|
|
1112
|
-
square: "0",
|
|
1113
|
-
soft: "0.5rem",
|
|
1114
|
-
rounded: "1rem",
|
|
1115
|
-
pill: "9999px"
|
|
1116
|
-
};
|
|
1117
|
-
function inputBackgroundValue(background) {
|
|
1118
|
-
return background.type === "transparent" ? "transparent" : rgbColorValue(background.colorToken);
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Generate CSS for form input styling based on theme configuration
|
|
1122
|
-
*
|
|
1123
|
-
* Creates scoped CSS classes that apply theme-aware styling to form inputs:
|
|
1124
|
-
* - .form-label: Label styling
|
|
1125
|
-
* - .form-input: Text inputs (text, email, url, tel, number)
|
|
1126
|
-
* - .form-textarea: Textarea styling
|
|
1127
|
-
* - .form-select: Select dropdown styling
|
|
1128
|
-
* - .form-checkbox: Checkbox styling
|
|
1129
|
-
* - .form-radio: Radio button styling
|
|
1130
|
-
* - Focus states (:focus-visible)
|
|
1131
|
-
* - Error states ([aria-invalid="true"])
|
|
1132
|
-
* - Disabled states (:disabled)
|
|
1133
|
-
*/
|
|
1134
|
-
function generateInputCss({ themeId, theme, inputSystem }) {
|
|
1135
|
-
const rootSelector = `:where([data-theme-scope="${themeId}"])`;
|
|
1136
|
-
const baseInputRules = [];
|
|
1137
|
-
baseInputRules.push(`background-color: ${inputBackgroundValue(inputSystem.base.background)}`);
|
|
1138
|
-
baseInputRules.push(`color: ${rgbColorValue(inputSystem.base.textColorToken)}`);
|
|
1139
|
-
const borderPx = parseBorderWidth(inputSystem.base.border.widthClass);
|
|
1140
|
-
const borderStyle = inputSystem.base.border.style ?? "all";
|
|
1141
|
-
if (borderStyle === "underline") {
|
|
1142
|
-
baseInputRules.push("border: none");
|
|
1143
|
-
baseInputRules.push(`border-bottom: ${borderPx} solid ${rgbColorValue(inputSystem.base.border.colorToken)}`);
|
|
1144
|
-
} else baseInputRules.push(`border: ${borderPx} solid ${rgbColorValue(inputSystem.base.border.colorToken)}`);
|
|
1145
|
-
if (borderStyle === "underline") baseInputRules.push("border-radius: 0");
|
|
1146
|
-
else {
|
|
1147
|
-
const borderRadius = CORNER_MAP$1[inputSystem.base.corners ?? theme.corners];
|
|
1148
|
-
baseInputRules.push(`border-radius: ${borderRadius}`);
|
|
1149
|
-
}
|
|
1150
|
-
if (inputSystem.base.shadow && inputSystem.base.shadow.elevation !== "none") {
|
|
1151
|
-
const shadowValue = generateShadowValue$1(inputSystem.base.shadow.elevation, inputSystem.base.shadow.softness ?? "soft", "bottom");
|
|
1152
|
-
baseInputRules.push(`box-shadow: ${shadowValue}`);
|
|
1153
|
-
}
|
|
1154
|
-
const padding = INPUT_SPACING_MAP[inputSystem.base.spacing];
|
|
1155
|
-
baseInputRules.push(`padding: ${padding}`);
|
|
1156
|
-
const fontSize = INPUT_FONT_SIZE_MAP[inputSystem.base.fontSize];
|
|
1157
|
-
baseInputRules.push(`font-size: ${fontSize}`);
|
|
1158
|
-
baseInputRules.push("width: 100%");
|
|
1159
|
-
baseInputRules.push("outline: none");
|
|
1160
|
-
baseInputRules.push("transition: border-color 0.2s ease, box-shadow 0.2s ease");
|
|
1161
|
-
const labelSelector = `${rootSelector} .form-label`;
|
|
1162
|
-
const labelRules = [];
|
|
1163
|
-
labelRules.push(`color: ${textColorValue(inputSystem.label.textColorToken)}`);
|
|
1164
|
-
labelRules.push(`font-weight: ${FONT_WEIGHT_MAP[inputSystem.label.fontWeight]}`);
|
|
1165
|
-
labelRules.push(`font-size: ${LABEL_FONT_SIZE_MAP[inputSystem.label.fontSize]}`);
|
|
1166
|
-
if (inputSystem.label.textTransform && inputSystem.label.textTransform !== "none") labelRules.push(`text-transform: ${inputSystem.label.textTransform}`);
|
|
1167
|
-
if (inputSystem.label.letterSpacing && inputSystem.label.letterSpacing !== "normal") labelRules.push(`letter-spacing: ${{
|
|
1168
|
-
normal: "0",
|
|
1169
|
-
wide: "0.025em",
|
|
1170
|
-
wider: "0.05em",
|
|
1171
|
-
widest: "0.1em"
|
|
1172
|
-
}[inputSystem.label.letterSpacing]}`);
|
|
1173
|
-
if (typeof inputSystem.label.opacity === "number") labelRules.push(`opacity: ${inputSystem.label.opacity}`);
|
|
1174
|
-
labelRules.push("display: block");
|
|
1175
|
-
labelRules.push("margin-bottom: 0.25rem");
|
|
1176
|
-
const inputSelector = `${rootSelector} .form-input`;
|
|
1177
|
-
const inputRules = [...baseInputRules];
|
|
1178
|
-
const textareaSelector = `${rootSelector} .form-textarea`;
|
|
1179
|
-
const textareaRules = [...baseInputRules];
|
|
1180
|
-
textareaRules.push("resize: vertical");
|
|
1181
|
-
textareaRules.push("min-height: 5rem");
|
|
1182
|
-
const selectSelector = `${rootSelector} .form-select`;
|
|
1183
|
-
const selectRules = [...baseInputRules];
|
|
1184
|
-
selectRules.push("appearance: none");
|
|
1185
|
-
selectRules.push("background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")");
|
|
1186
|
-
selectRules.push("background-position: right 0.5rem center");
|
|
1187
|
-
selectRules.push("background-repeat: no-repeat");
|
|
1188
|
-
selectRules.push("background-size: 1.5em 1.5em");
|
|
1189
|
-
selectRules.push("padding-right: 2.5rem");
|
|
1190
|
-
const focusSelectors = [
|
|
1191
|
-
`${inputSelector}:focus-visible`,
|
|
1192
|
-
`${textareaSelector}:focus-visible`,
|
|
1193
|
-
`${selectSelector}:focus-visible`,
|
|
1194
|
-
`${rootSelector} ${INPUT_GROUP_FOCUS_SELECTOR}`
|
|
1195
|
-
];
|
|
1196
|
-
const focusRules = [];
|
|
1197
|
-
focusRules.push("outline: none");
|
|
1198
|
-
focusRules.push(`box-shadow: 0 0 0 ${inputSystem.focus.ringWidth}px ${rgbColorValue(inputSystem.focus.ringColorToken)}`);
|
|
1199
|
-
if (inputSystem.focus.borderColorToken) focusRules.push(`border-color: ${rgbColorValue(inputSystem.focus.borderColorToken)}`);
|
|
1200
|
-
const errorSelectors = [
|
|
1201
|
-
`${inputSelector}[aria-invalid="true"]`,
|
|
1202
|
-
`${textareaSelector}[aria-invalid="true"]`,
|
|
1203
|
-
`${selectSelector}[aria-invalid="true"]`,
|
|
1204
|
-
`${rootSelector} ${INPUT_GROUP_ERROR_SELECTOR}`
|
|
1205
|
-
];
|
|
1206
|
-
const errorRules = [];
|
|
1207
|
-
errorRules.push(`border-color: ${rgbColorValue(inputSystem.error.borderColorToken)}`);
|
|
1208
|
-
errorRules.push(`color: ${rgbColorValue(inputSystem.error.textColorToken)}`);
|
|
1209
|
-
const disabledSelectors = [
|
|
1210
|
-
`${inputSelector}:disabled`,
|
|
1211
|
-
`${textareaSelector}:disabled`,
|
|
1212
|
-
`${selectSelector}:disabled`
|
|
1213
|
-
];
|
|
1214
|
-
const disabledRules = [];
|
|
1215
|
-
disabledRules.push(`background-color: ${rgbColorValue(inputSystem.disabled.backgroundColorToken)}`);
|
|
1216
|
-
disabledRules.push(`color: ${rgbColorValue(inputSystem.disabled.textColorToken)}`);
|
|
1217
|
-
disabledRules.push(`opacity: ${inputSystem.disabled.opacity}`);
|
|
1218
|
-
disabledRules.push("cursor: not-allowed");
|
|
1219
|
-
const checkableCss = generateCheckableCss({
|
|
1220
|
-
root: rootSelector,
|
|
1221
|
-
borderWidth: borderPx,
|
|
1222
|
-
borderColor: rgbColorValue(inputSystem.base.border.colorToken),
|
|
1223
|
-
background: inputBackgroundValue(inputSystem.base.background),
|
|
1224
|
-
corners: inputSystem.base.corners ?? theme.corners,
|
|
1225
|
-
accentToken: inputSystem.focus.borderColorToken ?? inputSystem.focus.ringColorToken,
|
|
1226
|
-
errorColor: rgbColorValue(inputSystem.error.borderColorToken)
|
|
1227
|
-
});
|
|
1228
|
-
const cssBlocks = [];
|
|
1229
|
-
cssBlocks.push(`${labelSelector} {\n ${labelRules.join(";\n ")};\n}`);
|
|
1230
|
-
cssBlocks.push(`${inputSelector},\n${rootSelector} ${INPUT_GROUP_SELECTOR} {\n ${inputRules.join(";\n ")};\n}`);
|
|
1231
|
-
cssBlocks.push(`${textareaSelector} {\n ${textareaRules.join(";\n ")};\n}`);
|
|
1232
|
-
cssBlocks.push(`${selectSelector} {\n ${selectRules.join(";\n ")};\n}`);
|
|
1233
|
-
cssBlocks.push(`${focusSelectors.join(",\n")} {\n ${focusRules.join(";\n ")};\n}`);
|
|
1234
|
-
cssBlocks.push(`${errorSelectors.join(",\n")} {\n ${errorRules.join(";\n ")};\n}`);
|
|
1235
|
-
cssBlocks.push(`${disabledSelectors.join(",\n")} {\n ${disabledRules.join(";\n ")};\n}`);
|
|
1236
|
-
cssBlocks.push(generateInputGroupCss(rootSelector, padding));
|
|
1237
|
-
cssBlocks.push(checkableCss);
|
|
1238
|
-
return cssBlocks.join("\n\n");
|
|
1239
|
-
}
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#region ../theme-core/src/inputs/defaults.ts
|
|
1242
|
-
/**
|
|
1243
|
-
* Generate default input system based on theme configuration
|
|
1244
|
-
*
|
|
1245
|
-
* Creates input styling that harmonizes with the theme's visual language:
|
|
1246
|
-
* - Spacing adapts to theme density
|
|
1247
|
-
* - Border thickness matches theme border style
|
|
1248
|
-
* - Focus states reflect theme energy level
|
|
1249
|
-
* - Colors coordinate with theme palette
|
|
1250
|
-
*
|
|
1251
|
-
* Accepts either Theme or HydratedTheme (uses only shared properties)
|
|
1252
|
-
*/
|
|
1253
|
-
function generateDefaultInputSystem(theme) {
|
|
1254
|
-
const { axes, space, border, shadow } = theme;
|
|
1255
|
-
const inputStyle = theme.inputStyle;
|
|
1256
|
-
let spacing;
|
|
1257
|
-
if (axes.density === "compact") spacing = "compact";
|
|
1258
|
-
else if (axes.density === "airy") spacing = "comfortable";
|
|
1259
|
-
else if (space === "comfortable") spacing = "comfortable";
|
|
1260
|
-
else if (space === "dense") spacing = "compact";
|
|
1261
|
-
else spacing = "medium";
|
|
1262
|
-
let fontSize;
|
|
1263
|
-
if (axes.density === "compact") fontSize = "sm";
|
|
1264
|
-
else if (axes.density === "airy") fontSize = "lg";
|
|
1265
|
-
else fontSize = "base";
|
|
1266
|
-
let borderWidthClass;
|
|
1267
|
-
let borderStyle;
|
|
1268
|
-
if (inputStyle?.border === "subtle") borderWidthClass = "border";
|
|
1269
|
-
else if (inputStyle?.border === "defined") borderWidthClass = "border-2";
|
|
1270
|
-
else if (inputStyle?.border === "underline") {
|
|
1271
|
-
borderWidthClass = "border-b-2";
|
|
1272
|
-
borderStyle = "underline";
|
|
1273
|
-
} else if (border.width === "thick") borderWidthClass = "border-2";
|
|
1274
|
-
else borderWidthClass = "border";
|
|
1275
|
-
const inputCorners = inputStyle?.shape ?? (axes.tone === "bold" ? "square" : null);
|
|
1276
|
-
const inputShadow = shadow.elevation !== "none" && axes.conversionBias === "high" ? {
|
|
1277
|
-
elevation: "low",
|
|
1278
|
-
softness: shadow.softness
|
|
1279
|
-
} : null;
|
|
1280
|
-
let labelFontWeight;
|
|
1281
|
-
if (axes.tone === "bold") labelFontWeight = "semibold";
|
|
1282
|
-
else if (axes.tone === "minimal") labelFontWeight = "regular";
|
|
1283
|
-
else labelFontWeight = "medium";
|
|
1284
|
-
const labelFontSize = axes.density === "compact" ? "xs" : "sm";
|
|
1285
|
-
let focusRingWidth;
|
|
1286
|
-
if (inputStyle?.focus === "glow") focusRingWidth = "3";
|
|
1287
|
-
else if (inputStyle?.focus === "underline") focusRingWidth = "0";
|
|
1288
|
-
else if (axes.energy === "vibrant" || axes.conversionBias === "high") focusRingWidth = "2";
|
|
1289
|
-
else focusRingWidth = "1";
|
|
1290
|
-
return {
|
|
1291
|
-
base: {
|
|
1292
|
-
background: {
|
|
1293
|
-
type: "solid",
|
|
1294
|
-
colorToken: "surface"
|
|
1295
|
-
},
|
|
1296
|
-
textColorToken: "text",
|
|
1297
|
-
border: {
|
|
1298
|
-
widthClass: borderWidthClass,
|
|
1299
|
-
colorToken: "border",
|
|
1300
|
-
...borderStyle && { style: borderStyle }
|
|
1301
|
-
},
|
|
1302
|
-
corners: inputCorners,
|
|
1303
|
-
shadow: inputShadow,
|
|
1304
|
-
spacing,
|
|
1305
|
-
fontSize
|
|
1306
|
-
},
|
|
1307
|
-
label: {
|
|
1308
|
-
textColorToken: "text",
|
|
1309
|
-
fontWeight: labelFontWeight,
|
|
1310
|
-
fontSize: labelFontSize
|
|
1311
|
-
},
|
|
1312
|
-
focus: {
|
|
1313
|
-
ringColorToken: "primary",
|
|
1314
|
-
ringWidth: focusRingWidth,
|
|
1315
|
-
borderColorToken: "primary"
|
|
1316
|
-
},
|
|
1317
|
-
error: {
|
|
1318
|
-
borderColorToken: "error",
|
|
1319
|
-
textColorToken: "error"
|
|
1320
|
-
},
|
|
1321
|
-
disabled: {
|
|
1322
|
-
backgroundColorToken: "neutral-100",
|
|
1323
|
-
textColorToken: "neutral-400",
|
|
1324
|
-
opacity: .6
|
|
1325
|
-
}
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
//#endregion
|
|
1329
|
-
//#region ../theme-core/src/layout/boundaryCss.ts
|
|
1330
|
-
/**
|
|
1331
|
-
* Section-break CSS, generated from the transition catalogue (issue 1422).
|
|
1332
|
-
*
|
|
1333
|
-
* The renderer emits one element per shown join:
|
|
1334
|
-
*
|
|
1335
|
-
* <div data-block-boundary data-boundary-treatment="wave-edge-gentle"
|
|
1336
|
-
* data-boundary-placement="previous"
|
|
1337
|
-
* style="--boundary-shape-paint: …; --boundary-band-paint: …">
|
|
1338
|
-
*
|
|
1339
|
-
* Every selector matches an exact attribute value, so there is no reliance on
|
|
1340
|
-
* prefix ordering in the cascade and nothing reads colours out of a string.
|
|
1341
|
-
* The shape layer is `::after`; the band layer (paint → paint only) is
|
|
1342
|
-
* `::before`.
|
|
1343
|
-
*/
|
|
1344
|
-
const waveMaskSvgPaths = {
|
|
1345
|
-
classic: "M0 72V46C130 55 260 24 420 30C590 36 690 62 860 42C1035 21 1160 47 1305 36C1365 31 1415 33 1440 38V72H0Z",
|
|
1346
|
-
balanced: "M0 72V42C120 24 240 24 360 42C480 60 600 60 720 42C840 24 960 24 1080 42C1200 60 1320 60 1440 42V72H0Z",
|
|
1347
|
-
gentle: "M0 72V43C180 32 300 32 480 43C660 54 780 54 960 43C1140 32 1260 32 1440 43V72H0Z",
|
|
1348
|
-
bold: "M0 72V44C90 14 270 14 360 44C450 74 630 74 720 44C810 14 990 14 1080 44C1170 74 1350 74 1440 44V72H0Z",
|
|
1349
|
-
drift: "M0 72V39C115 31 205 54 340 48C505 41 610 16 760 33C920 51 1015 64 1160 44C1280 27 1375 35 1440 50V72H0Z"
|
|
1350
|
-
};
|
|
1351
|
-
function waveMaskDataUrl(mask) {
|
|
1352
|
-
return svgDataUrl(`<svg viewBox='0 0 1440 72' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='${waveMaskSvgPaths[mask]}' fill='white'/></svg>`);
|
|
1353
|
-
}
|
|
1354
|
-
/**
|
|
1355
|
-
* How each placement anchors the layers against the zero-height boundary
|
|
1356
|
-
* element that sits exactly on the join.
|
|
1357
|
-
*
|
|
1358
|
-
* - `centred` straddles the join, band under shape.
|
|
1359
|
-
* - `previous` sits above the join, inside the previous section.
|
|
1360
|
-
* - `next` sits below the join, inside the next section, with the shape
|
|
1361
|
-
* flipped so it reads as the mirror of `previous`.
|
|
1362
|
-
*/
|
|
1363
|
-
const placementRules = {
|
|
1364
|
-
centred: {
|
|
1365
|
-
shape: ["top: 0;", "transform: translateY(-50%);"],
|
|
1366
|
-
band: ["top: 0;", "transform: translateY(-50%);"]
|
|
1367
|
-
},
|
|
1368
|
-
previous: {
|
|
1369
|
-
shape: ["bottom: 0;"],
|
|
1370
|
-
band: null
|
|
1371
|
-
},
|
|
1372
|
-
next: {
|
|
1373
|
-
shape: ["top: 0;", "transform: scaleY(-1);"],
|
|
1374
|
-
band: null
|
|
1375
|
-
}
|
|
1376
|
-
};
|
|
1377
|
-
function generateBoundaryCss(selector) {
|
|
1378
|
-
const boundary = `${selector} [data-block-boundary]`;
|
|
1379
|
-
return [
|
|
1380
|
-
rule$1(boundary, [
|
|
1381
|
-
"position: relative;",
|
|
1382
|
-
"z-index: 3;",
|
|
1383
|
-
"height: 0;",
|
|
1384
|
-
"pointer-events: none;"
|
|
1385
|
-
]),
|
|
1386
|
-
rule$1(`${selector} [data-block][data-site-style-boundary-before] > :where([data-slot='section'])`, ["padding-top: calc(var(--rb-section-pad-y, 0rem) + var(--site-style-boundary-before-reserve, 0rem));"]),
|
|
1387
|
-
rule$1(`${selector} [data-block][data-site-style-boundary-after] > :where([data-slot='section'])`, ["padding-bottom: calc(var(--rb-section-pad-y, 0rem) + var(--site-style-boundary-after-reserve, 0rem));"]),
|
|
1388
|
-
rule$1(`${boundary}::before,\n${boundary}::after`, [
|
|
1389
|
-
"content: '';",
|
|
1390
|
-
"position: absolute;",
|
|
1391
|
-
"left: 0;",
|
|
1392
|
-
"right: 0;",
|
|
1393
|
-
"height: var(--boundary-height);",
|
|
1394
|
-
"pointer-events: none;"
|
|
1395
|
-
]),
|
|
1396
|
-
rule$1(`${boundary}::before`, ["z-index: 0;", "background: var(--boundary-band-paint, transparent);"]),
|
|
1397
|
-
rule$1(`${boundary}::after`, ["z-index: 1;"]),
|
|
1398
|
-
...placementCss(boundary),
|
|
1399
|
-
...transitionCatalogueEntries.flatMap((entry) => treatmentCss(boundary, entry))
|
|
1400
|
-
].join("\n\n");
|
|
1401
|
-
}
|
|
1402
|
-
function placementCss(boundary) {
|
|
1403
|
-
return Object.keys(placementRules).flatMap((placement) => {
|
|
1404
|
-
const placed = `${boundary}[data-boundary-placement='${placement}']`;
|
|
1405
|
-
const rules = placementRules[placement];
|
|
1406
|
-
return [rule$1(`${placed}::after`, rules.shape), rules.band ? rule$1(`${placed}::before`, rules.band) : rule$1(`${placed}::before`, ["content: none;"])];
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
function treatmentCss(boundary, entry) {
|
|
1410
|
-
const selected = `${boundary}[data-boundary-treatment='${entry.intent}']`;
|
|
1411
|
-
return [rule$1(selected, [`--boundary-height: ${boundaryRuntimeMetricsForDecorativeTransition(entry.intent).heightCss};`]), rule$1(`${selected}::after`, shapeDeclarations(entry))];
|
|
1412
|
-
}
|
|
1413
|
-
function shapeDeclarations(entry) {
|
|
1414
|
-
switch (entry.shape.kind) {
|
|
1415
|
-
case "fade": return [
|
|
1416
|
-
"/* Fallback for browsers without color-mix(). */",
|
|
1417
|
-
"background: linear-gradient(to bottom, transparent 0%, var(--boundary-shape-paint) 100%);",
|
|
1418
|
-
"background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--boundary-shape-paint) 16%, transparent) 34%, color-mix(in srgb, var(--boundary-shape-paint) 68%, transparent) 78%, var(--boundary-shape-paint) 100%);"
|
|
1419
|
-
];
|
|
1420
|
-
case "wave": {
|
|
1421
|
-
const mask = waveMaskDataUrl(entry.shape.mask);
|
|
1422
|
-
return [
|
|
1423
|
-
"background: var(--boundary-shape-paint);",
|
|
1424
|
-
`mask-image: url("${mask}");`,
|
|
1425
|
-
"mask-repeat: no-repeat;",
|
|
1426
|
-
"mask-size: 100% 100%;",
|
|
1427
|
-
`-webkit-mask-image: url("${mask}");`,
|
|
1428
|
-
"-webkit-mask-repeat: no-repeat;",
|
|
1429
|
-
"-webkit-mask-size: 100% 100%;"
|
|
1430
|
-
];
|
|
1431
|
-
}
|
|
1432
|
-
case "angle": return [
|
|
1433
|
-
"height: calc(var(--boundary-height) + 2px);",
|
|
1434
|
-
"background: var(--boundary-shape-paint);",
|
|
1435
|
-
`clip-path: ${anglePolygonCss(entry.shape.polygon)};`
|
|
1436
|
-
];
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
function rule$1(selector, declarations) {
|
|
1440
|
-
return `${selector} {\n ${declarations.join("\n ")}\n}`;
|
|
1441
|
-
}
|
|
1442
|
-
function svgDataUrl(svg) {
|
|
1443
|
-
return `data:image/svg+xml,${encodeURIComponent(svg)}`;
|
|
1444
|
-
}
|
|
1445
|
-
//#endregion
|
|
1446
|
-
//#region ../theme-core/src/layout/generateLayoutCss.ts
|
|
1447
|
-
/**
|
|
1448
|
-
* Generate layout CSS for theme scope (background, text color)
|
|
1449
|
-
*
|
|
1450
|
-
* This applies base layout styles to the theme-scope container using the
|
|
1451
|
-
* --tb-* CSS variables (not Tailwind color classes, to avoid conflicts with SDK sites).
|
|
1452
|
-
*/
|
|
1453
|
-
function generateLayoutCss(options) {
|
|
1454
|
-
const { themeId, theme } = options;
|
|
1455
|
-
const selector = `:where([data-theme-scope="${themeId}"])`;
|
|
1456
|
-
const rootRules = [];
|
|
1457
|
-
const cssChunks = [];
|
|
1458
|
-
const containerSelector = `${selector} .rb-container,\n${selector} .rb-container-full`;
|
|
1459
|
-
const containerPadding = theme.layout?.containerPadding;
|
|
1460
|
-
rootRules.push(`background-color: rgb(var(--tb-background));`);
|
|
1461
|
-
rootRules.push(`color: rgb(var(--tb-text));`);
|
|
1462
|
-
cssChunks.push(`${selector} {\n ${rootRules.join("\n ")}\n}`);
|
|
1463
|
-
if (containerPadding?.mobile) cssChunks.push(`${containerSelector} {\n padding-left: ${toPaddingValue(containerPadding.mobile)};\n padding-right: ${toPaddingValue(containerPadding.mobile)};\n}`);
|
|
1464
|
-
if (containerPadding?.tablet) cssChunks.push(`@media ${MQ_SM_UP} {\n ${containerSelector} {\n padding-left: ${toPaddingValue(containerPadding.tablet)};\n padding-right: ${toPaddingValue(containerPadding.tablet)};\n }\n}`);
|
|
1465
|
-
if (containerPadding?.desktop) cssChunks.push(`@media ${MQ_LG_UP} {\n ${containerSelector} {\n padding-left: ${toPaddingValue(containerPadding.desktop)};\n padding-right: ${toPaddingValue(containerPadding.desktop)};\n }\n}`);
|
|
1466
|
-
const heroTypographyCss = generateHeroTypographyCss(themeId, theme);
|
|
1467
|
-
if (heroTypographyCss) cssChunks.push(heroTypographyCss);
|
|
1468
|
-
const bodyTextTypographyCss = generateBodyTextTypographyCss(themeId, theme);
|
|
1469
|
-
if (bodyTextTypographyCss) cssChunks.push(bodyTextTypographyCss);
|
|
1470
|
-
cssChunks.push(generateBoundaryCss(selector));
|
|
1471
|
-
return cssChunks.join("\n\n");
|
|
1472
|
-
}
|
|
1473
|
-
function toPaddingValue(preset) {
|
|
1474
|
-
return {
|
|
1475
|
-
tight: "0.5rem",
|
|
1476
|
-
compact: "0.75rem",
|
|
1477
|
-
default: "1rem",
|
|
1478
|
-
relaxed: "1.5rem"
|
|
1479
|
-
}[preset];
|
|
1480
|
-
}
|
|
1481
|
-
function generateHeroTypographyCss(themeId, theme) {
|
|
1482
|
-
const typography = theme.hero?.typography;
|
|
1483
|
-
if (!typography) return "";
|
|
1484
|
-
const rootSelector = `:where([data-theme-scope="${themeId}"]) :where([data-block="hero"])`;
|
|
1485
|
-
const headlineSelector = `${rootSelector} .hero-headline`;
|
|
1486
|
-
const subheadlineSelector = `${rootSelector} .hero-subheadline`;
|
|
1487
|
-
const microSelector = `${rootSelector}[data-block-variant="micro"]`;
|
|
1488
|
-
const microHeadlineSelector = `${microSelector} .hero-headline`;
|
|
1489
|
-
const microSubheadlineSelector = `${microSelector} .hero-subheadline`;
|
|
1490
|
-
const chunks = [];
|
|
1491
|
-
const headlineRules = buildTypographyRules("headline", typography.headlineSize, typography.headlineLineHeight);
|
|
1492
|
-
if (headlineRules.length > 0) chunks.push(`${headlineSelector} {\n ${headlineRules.join("\n ")}\n}`);
|
|
1493
|
-
const subheadlineRules = buildTypographyRules("subheadline", typography.subheadlineSize, typography.subheadlineLineHeight);
|
|
1494
|
-
if (subheadlineRules.length > 0) chunks.push(`${subheadlineSelector} {\n ${subheadlineRules.join("\n ")}\n}`);
|
|
1495
|
-
const microHeadlineRules = buildTypographyRules("headline", typography.microHeadlineSize, typography.microHeadlineLineHeight);
|
|
1496
|
-
if (microHeadlineRules.length > 0) chunks.push(`${microHeadlineSelector} {\n ${microHeadlineRules.join("\n ")}\n}`);
|
|
1497
|
-
const microSubheadlineRules = buildTypographyRules("subheadline", typography.microSubheadlineSize, typography.microSubheadlineLineHeight);
|
|
1498
|
-
if (microSubheadlineRules.length > 0) chunks.push(`${microSubheadlineSelector} {\n ${microSubheadlineRules.join("\n ")}\n}`);
|
|
1499
|
-
const selectors = {
|
|
1500
|
-
headline: headlineSelector,
|
|
1501
|
-
subheadline: subheadlineSelector
|
|
1502
|
-
};
|
|
1503
|
-
const responsiveChunks = [responsiveHeroTypographyCss(MQ_TABLET_ONLY, selectors, typography.responsive?.tablet), responsiveHeroTypographyCss(MQ_SM_DOWN, selectors, typography.responsive?.mobile)];
|
|
1504
|
-
for (const chunk of responsiveChunks) if (chunk) chunks.push(chunk);
|
|
1505
|
-
return chunks.join("\n\n");
|
|
1506
|
-
}
|
|
1507
|
-
function responsiveHeroTypographyCss(media, selectors, overrides) {
|
|
1508
|
-
if (!overrides) return null;
|
|
1509
|
-
const headlineRules = buildTypographyRules("headline", overrides.headlineSize, overrides.headlineLineHeight);
|
|
1510
|
-
const subheadlineRules = buildTypographyRules("subheadline", overrides.subheadlineSize, overrides.subheadlineLineHeight);
|
|
1511
|
-
const mediaChunks = [];
|
|
1512
|
-
if (headlineRules.length > 0) mediaChunks.push(`${selectors.headline} {\n ${headlineRules.join("\n ")}\n }`);
|
|
1513
|
-
if (subheadlineRules.length > 0) mediaChunks.push(`${selectors.subheadline} {\n ${subheadlineRules.join("\n ")}\n }`);
|
|
1514
|
-
return mediaChunks.length > 0 ? `@media ${media} {\n ${mediaChunks.join("\n\n ")}\n}` : null;
|
|
1515
|
-
}
|
|
1516
|
-
function buildTypographyRules(role, size, lineHeight) {
|
|
1517
|
-
const rules = [];
|
|
1518
|
-
if (size) rules.push(`font-size: ${toHeroSize(role, size)};`);
|
|
1519
|
-
if (lineHeight) rules.push(`line-height: ${toHeroLineHeight(lineHeight)};`);
|
|
1520
|
-
return rules;
|
|
1521
|
-
}
|
|
1522
|
-
function generateBodyTextTypographyCss(themeId, theme) {
|
|
1523
|
-
const intro = theme.bodyText?.intro;
|
|
1524
|
-
if (!intro) return "";
|
|
1525
|
-
const rootSelector = `:where([data-theme-scope="${themeId}"]) :where([data-block="body-text"][data-block-variant="intro"])`;
|
|
1526
|
-
const chunks = [];
|
|
1527
|
-
if (intro.headingSize === "editorial") chunks.push(`${rootSelector} .body-copy-heading {
|
|
1528
|
-
font-size: clamp(1.75rem, 1.15rem + 2.2vw, 3rem);
|
|
1529
|
-
line-height: 1.08;
|
|
1530
|
-
}`);
|
|
1531
|
-
if (intro.paragraphSize === "editorial") chunks.push(`${rootSelector} .body-copy-body {
|
|
1532
|
-
--rb-prose-lg-font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem);
|
|
1533
|
-
--rb-prose-lg-line-height: 1.55;
|
|
1534
|
-
--rb-prose-xl-sm-font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem);
|
|
1535
|
-
--rb-prose-xl-sm-line-height: 1.55;
|
|
1536
|
-
}`);
|
|
1537
|
-
return chunks.join("\n\n");
|
|
1538
|
-
}
|
|
1539
|
-
function toHeroSize(role, size) {
|
|
1540
|
-
const baseMap = {
|
|
1541
|
-
sm: "0.875rem",
|
|
1542
|
-
base: "1rem",
|
|
1543
|
-
lg: "1.125rem",
|
|
1544
|
-
xl: "1.25rem",
|
|
1545
|
-
"2xl": "1.5rem",
|
|
1546
|
-
"3xl": "1.875rem",
|
|
1547
|
-
"4xl": "2.25rem",
|
|
1548
|
-
"5xl": "3rem",
|
|
1549
|
-
"6xl": "3.75rem"
|
|
1550
|
-
};
|
|
1551
|
-
if (size !== "editorial") return baseMap[size];
|
|
1552
|
-
return role === "subheadline" ? "clamp(1.0625rem, 1.4vw, 1.375rem)" : "clamp(1.25rem, 3vw, 2.25rem)";
|
|
1553
|
-
}
|
|
1554
|
-
function toHeroLineHeight(lineHeight) {
|
|
1555
|
-
return {
|
|
1556
|
-
tight: "1.1",
|
|
1557
|
-
snug: "1.25",
|
|
1558
|
-
normal: "1.4",
|
|
1559
|
-
relaxed: "1.6"
|
|
1560
|
-
}[lineHeight];
|
|
1561
|
-
}
|
|
1562
|
-
//#endregion
|
|
1563
789
|
//#region ../theme-core/src/status/generateStatusCss.ts
|
|
1564
790
|
/**
|
|
1565
791
|
* Corner radius map - derives alert border-radius from theme.corners
|
|
@@ -1943,20 +1169,6 @@ function smallHeadingCss(root, role) {
|
|
|
1943
1169
|
}`;
|
|
1944
1170
|
}
|
|
1945
1171
|
//#endregion
|
|
1946
|
-
//#region ../theme-core/src/event-calendar/generateEventCalendarCss.ts
|
|
1947
|
-
/**
|
|
1948
|
-
* @deprecated Use blocks-static/index.css with CSS variables instead.
|
|
1949
|
-
*
|
|
1950
|
-
* CSS for event calendar classes is now in:
|
|
1951
|
-
* - packages/blocks/src/theme/blocks-static/index.css (static rule bodies)
|
|
1952
|
-
* - packages/blocks/src/theme/blocks/vars/event-calendar.ts (Tier 3 vars)
|
|
1953
|
-
*
|
|
1954
|
-
* Returns an empty string for backwards compatibility.
|
|
1955
|
-
*/
|
|
1956
|
-
function generateEventCalendarCss(_params) {
|
|
1957
|
-
return "";
|
|
1958
|
-
}
|
|
1959
|
-
//#endregion
|
|
1960
1172
|
//#region ../theme-core/src/blocks/vars/event-registration.ts
|
|
1961
1173
|
/**
|
|
1962
1174
|
* Generate CSS variables for the event-registration block.
|
|
@@ -2636,691 +1848,10 @@ function compileRule(selector, declarations, scopePrefix) {
|
|
|
2636
1848
|
return `${prefixSelector(selector, scopePrefix)} {\n${declarationLines}\n}`;
|
|
2637
1849
|
}
|
|
2638
1850
|
//#endregion
|
|
2639
|
-
//#region ../theme-core/src/
|
|
2640
|
-
/**
|
|
2641
|
-
* Compile an array of CSS at-rules to a CSS string.
|
|
2642
|
-
*
|
|
2643
|
-
* @param atRules - Array of at-rules
|
|
2644
|
-
* @param themeId - Theme scope ID for selector prefixing in @media/@supports
|
|
2645
|
-
* @returns Compiled CSS string
|
|
2646
|
-
*/
|
|
2647
|
-
function compileCustomCssAtRules(atRules, themeId, options) {
|
|
2648
|
-
if (!atRules || atRules.length === 0) return "";
|
|
2649
|
-
const scopePrefix = `:where([data-theme-scope="${themeId}"])`;
|
|
2650
|
-
const responsiveMode = options?.responsiveMode ?? "viewport";
|
|
2651
|
-
const containerName = options?.containerName ?? "rb-site";
|
|
2652
|
-
return atRules.map((atRule) => compileAtRule(atRule, scopePrefix, {
|
|
2653
|
-
responsiveMode,
|
|
2654
|
-
containerName
|
|
2655
|
-
})).filter(Boolean).join("\n\n");
|
|
2656
|
-
}
|
|
2657
|
-
/**
|
|
2658
|
-
* Compile a single at-rule based on its type.
|
|
2659
|
-
*/
|
|
2660
|
-
function compileAtRule(atRule, scopePrefix, options) {
|
|
2661
|
-
switch (atRule.type) {
|
|
2662
|
-
case "keyframes": return compileKeyframes(atRule);
|
|
2663
|
-
case "font-face": return compileFontFace(atRule);
|
|
2664
|
-
case "media": return compileMedia(atRule, scopePrefix, options);
|
|
2665
|
-
case "supports": return compileSupports(atRule, scopePrefix);
|
|
2666
|
-
case "raw": return compileRaw(atRule);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
/**
|
|
2670
|
-
* Compile @keyframes rule.
|
|
2671
|
-
* Output is global (no scoping needed).
|
|
2672
|
-
*
|
|
2673
|
-
* @example
|
|
2674
|
-
* @keyframes fadeIn {
|
|
2675
|
-
* 0% { opacity: 0; }
|
|
2676
|
-
* 100% { opacity: 1; }
|
|
2677
|
-
* }
|
|
2678
|
-
*/
|
|
2679
|
-
function compileKeyframes(atRule) {
|
|
2680
|
-
const framesCss = atRule.frames.map((frame) => {
|
|
2681
|
-
const declarations = compileDeclarations(frame.declarations);
|
|
2682
|
-
return ` ${frame.offset} {\n${indent(declarations, 4)}\n }`;
|
|
2683
|
-
}).join("\n");
|
|
2684
|
-
return `@keyframes ${atRule.name} {\n${framesCss}\n}`;
|
|
2685
|
-
}
|
|
2686
|
-
/**
|
|
2687
|
-
* Compile @font-face rule.
|
|
2688
|
-
* Output is global (no scoping needed).
|
|
2689
|
-
*
|
|
2690
|
-
* @example
|
|
2691
|
-
* @font-face {
|
|
2692
|
-
* font-family: MyFont;
|
|
2693
|
-
* src: url(/fonts/myfont.woff2) format("woff2");
|
|
2694
|
-
* }
|
|
2695
|
-
*/
|
|
2696
|
-
function compileFontFace(atRule) {
|
|
2697
|
-
return `@font-face {\n${indent(compileDeclarations(atRule.declarations), 2)}\n}`;
|
|
2698
|
-
}
|
|
2699
|
-
/**
|
|
2700
|
-
* Compile @media rule with scoped selectors.
|
|
2701
|
-
* Returns empty string if all nested rules filter out.
|
|
2702
|
-
*
|
|
2703
|
-
* @example
|
|
2704
|
-
* @media (max-width: 768px) {
|
|
2705
|
-
* :where([data-theme-scope="..."]) .hero { font-size: 24px; }
|
|
2706
|
-
* }
|
|
2707
|
-
*/
|
|
2708
|
-
function compileMedia(atRule, scopePrefix, options) {
|
|
2709
|
-
const rules = atRule.rules.map((rule) => compileNestedRule(rule.selector, rule.declarations, scopePrefix)).filter(Boolean).join("\n");
|
|
2710
|
-
if (!rules) return "";
|
|
2711
|
-
const containerQuery = options.responsiveMode === "container" ? convertMediaQueryToContainerQuery(atRule.query) : null;
|
|
2712
|
-
if (containerQuery) return `@container ${options.containerName} ${containerQuery} {\n${indent(rules, 2)}\n}`;
|
|
2713
|
-
return `@media ${atRule.query} {\n${indent(rules, 2)}\n}`;
|
|
2714
|
-
}
|
|
2715
|
-
/**
|
|
2716
|
-
* Compile @supports rule with scoped selectors.
|
|
2717
|
-
* Returns empty string if all nested rules filter out.
|
|
2718
|
-
*
|
|
2719
|
-
* @example
|
|
2720
|
-
* @supports (display: grid) {
|
|
2721
|
-
* :where([data-theme-scope="..."]) .container { display: grid; }
|
|
2722
|
-
* }
|
|
2723
|
-
*/
|
|
2724
|
-
function compileSupports(atRule, scopePrefix) {
|
|
2725
|
-
const rules = atRule.rules.map((rule) => compileNestedRule(rule.selector, rule.declarations, scopePrefix)).filter(Boolean).join("\n");
|
|
2726
|
-
if (!rules) return "";
|
|
2727
|
-
return `@supports ${atRule.condition} {\n${indent(rules, 2)}\n}`;
|
|
2728
|
-
}
|
|
2729
|
-
/**
|
|
2730
|
-
* Compile raw at-rule (output as-is with XSS protection).
|
|
2731
|
-
*/
|
|
2732
|
-
function compileRaw(atRule) {
|
|
2733
|
-
return escapeStyleContent(atRule.css.trim());
|
|
2734
|
-
}
|
|
2735
|
-
/**
|
|
2736
|
-
* Compile a nested rule (for @media/@supports) with scoped selector.
|
|
2737
|
-
*/
|
|
2738
|
-
function compileNestedRule(selector, declarations, scopePrefix) {
|
|
2739
|
-
const declarationsStr = compileDeclarations(declarations);
|
|
2740
|
-
if (!declarationsStr) return "";
|
|
2741
|
-
return `${prefixSelector(selector, scopePrefix)} {\n${indent(declarationsStr, 2)}\n}`;
|
|
2742
|
-
}
|
|
2743
|
-
/**
|
|
2744
|
-
* Compile declarations object to CSS string.
|
|
2745
|
-
* Converts camelCase properties to kebab-case.
|
|
2746
|
-
*/
|
|
2747
|
-
function compileDeclarations(declarations) {
|
|
2748
|
-
return Object.entries(declarations).map(([prop, value]) => `${toKebabCase(prop)}: ${value};`).join("\n");
|
|
2749
|
-
}
|
|
2750
|
-
/**
|
|
2751
|
-
* Indent a string by a number of spaces.
|
|
2752
|
-
*/
|
|
2753
|
-
function indent(str, spaces) {
|
|
2754
|
-
const pad = " ".repeat(spaces);
|
|
2755
|
-
return str.split("\n").map((line) => line ? pad + line : line).join("\n");
|
|
2756
|
-
}
|
|
2757
|
-
//#endregion
|
|
2758
|
-
//#region ../theme-core/src/runtime/buildThemeRuntime.ts
|
|
2759
|
-
function buildThemeRuntime(theme, options) {
|
|
2760
|
-
const hydrated = hydrateTheme(theme);
|
|
2761
|
-
const cssVars = buildThemeCssVars(hydrated);
|
|
2762
|
-
const themeId = options?.themeId ?? "theme-default";
|
|
2763
|
-
const responsiveMode = options?.responsiveMode ?? "viewport";
|
|
2764
|
-
const solvedInks = "publish";
|
|
2765
|
-
const buttonOptions = {
|
|
2766
|
-
themeId,
|
|
2767
|
-
theme,
|
|
2768
|
-
buttonSystem: theme.buttons
|
|
2769
|
-
};
|
|
2770
|
-
const buttonCss = `${generateButtonCss(buttonOptions)}\n${generateButtonActionLayoutCss(buttonOptions)}`;
|
|
2771
|
-
const headerCss = generateHeaderCss({
|
|
2772
|
-
themeId,
|
|
2773
|
-
theme,
|
|
2774
|
-
responsiveMode,
|
|
2775
|
-
solvedInks
|
|
2776
|
-
});
|
|
2777
|
-
const footerCss = generateFooterCss({
|
|
2778
|
-
themeId,
|
|
2779
|
-
theme
|
|
2780
|
-
});
|
|
2781
|
-
const cardCss = [generateCardCss({
|
|
2782
|
-
themeId,
|
|
2783
|
-
theme,
|
|
2784
|
-
cardSystem: theme.cards,
|
|
2785
|
-
solvedInks
|
|
2786
|
-
}), generateOpaquePanelCss({
|
|
2787
|
-
themeId,
|
|
2788
|
-
surface: opaqueSurfaceContextFromTheme(theme)
|
|
2789
|
-
})].join("\n\n");
|
|
2790
|
-
const accordionCss = generateAccordionCss({
|
|
2791
|
-
themeId,
|
|
2792
|
-
theme,
|
|
2793
|
-
accordionSystem: theme.accordions ?? generateDefaultAccordionSystem(theme),
|
|
2794
|
-
solvedInks
|
|
2795
|
-
});
|
|
2796
|
-
const inputCss = generateInputCss({
|
|
2797
|
-
themeId,
|
|
2798
|
-
theme,
|
|
2799
|
-
inputSystem: resolveThemeInputSystem(theme)
|
|
2800
|
-
});
|
|
2801
|
-
const layoutCss = generateLayoutCss({
|
|
2802
|
-
themeId,
|
|
2803
|
-
theme
|
|
2804
|
-
});
|
|
2805
|
-
const statusCss = generateStatusCss({
|
|
2806
|
-
themeId,
|
|
2807
|
-
theme,
|
|
2808
|
-
palette: hydrated.palette
|
|
2809
|
-
});
|
|
2810
|
-
const progressCss = generateProgressCss({
|
|
2811
|
-
themeId,
|
|
2812
|
-
theme
|
|
2813
|
-
});
|
|
2814
|
-
const typographyCss = generateTypographyCss({
|
|
2815
|
-
themeId,
|
|
2816
|
-
theme
|
|
2817
|
-
});
|
|
2818
|
-
const eventCalendarCss = generateEventCalendarCss({
|
|
2819
|
-
themeId,
|
|
2820
|
-
theme
|
|
2821
|
-
});
|
|
2822
|
-
const blockVarsCss = [generateThemeBlockVarsCss(theme, themeId), generateBlockOverrideCss(themeId, theme)].filter(Boolean).join("\n");
|
|
2823
|
-
const blockCustomVarsCss = generateBlockCustomVarsCss(themeId, theme.blockCustomVars);
|
|
2824
|
-
const atRulesCss = theme.customCssAtRules ? compileCustomCssAtRules(theme.customCssAtRules, themeId, { responsiveMode }) : void 0;
|
|
2825
|
-
const customCss = theme.customCssRules ? compileCustomCssRules(parseCustomCssRules(theme.customCssRules), themeId) : void 0;
|
|
2826
|
-
const blockCustomCss = theme.blockCustomCssRules ? compileBlockCustomCssRules(parseBlockCustomCssRules(theme.blockCustomCssRules), themeId) : void 0;
|
|
2827
|
-
return {
|
|
2828
|
-
hydrated,
|
|
2829
|
-
cssVars,
|
|
2830
|
-
tokens: {
|
|
2831
|
-
...buildThemeTokens(hydrated.palette),
|
|
2832
|
-
solvedInks
|
|
2833
|
-
},
|
|
2834
|
-
paletteTokens: hydrated.palette,
|
|
2835
|
-
buttonCss,
|
|
2836
|
-
headerCss,
|
|
2837
|
-
footerCss,
|
|
2838
|
-
cardCss,
|
|
2839
|
-
accordionCss,
|
|
2840
|
-
inputCss,
|
|
2841
|
-
layoutCss,
|
|
2842
|
-
statusCss,
|
|
2843
|
-
progressCss,
|
|
2844
|
-
typographyCss,
|
|
2845
|
-
eventCalendarCss,
|
|
2846
|
-
blockVarsCss,
|
|
2847
|
-
blockCustomVarsCss,
|
|
2848
|
-
blockCustomCss,
|
|
2849
|
-
customCss,
|
|
2850
|
-
atRulesCss
|
|
2851
|
-
};
|
|
2852
|
-
}
|
|
2853
|
-
function hydrateTheme(theme) {
|
|
2854
|
-
return {
|
|
2855
|
-
...theme,
|
|
2856
|
-
palette: expandPalette(theme.palette, {
|
|
2857
|
-
arrangement: theme.skin !== void 0,
|
|
2858
|
-
marksFrom: theme.skinMarks
|
|
2859
|
-
})
|
|
2860
|
-
};
|
|
2861
|
-
}
|
|
2862
|
-
function pageSurfaceInks(palette) {
|
|
2863
|
-
return surfaceInkStyle(surfaceInkPublication(resolveSurfaceForeground({
|
|
2864
|
-
type: "color",
|
|
2865
|
-
color: "background",
|
|
2866
|
-
textColor: "text"
|
|
2867
|
-
}, palette), "publish"));
|
|
2868
|
-
}
|
|
2869
|
-
function resolveThemeInputSystem(theme) {
|
|
2870
|
-
return theme.inputs ?? generateDefaultInputSystem(theme);
|
|
2871
|
-
}
|
|
2872
|
-
function buildThemeCssVars(theme) {
|
|
2873
|
-
const { typography, space, shadow, motion, border } = theme;
|
|
2874
|
-
const sized = applyHeadingSizeOverrides(computeTypeScale(typography.scale, typography.body.size), typography);
|
|
2875
|
-
const inputSystem = resolveThemeInputSystem(theme);
|
|
2876
|
-
const blockRadius = mapBlockRadius(theme.corners);
|
|
2877
|
-
const buttonRadius = mapButtonRadius(theme.corners);
|
|
2878
|
-
const panelRadius = mapPanelRadius(theme.corners);
|
|
2879
|
-
const inputRadius = mapInputRadius(inputSystem.base.corners, theme.corners);
|
|
2880
|
-
return {
|
|
2881
|
-
...generateCssVars(theme.palette),
|
|
2882
|
-
...skinTokenCssVars(theme.skinTokens),
|
|
2883
|
-
["--tb-secondaryForeground"]: "var(--tb-onSecondary)",
|
|
2884
|
-
["--tb-accentForeground"]: "var(--tb-onAccent)",
|
|
2885
|
-
["--tb-scrim"]: "0 0 0",
|
|
2886
|
-
["--tb-shadow"]: "0 0 0",
|
|
2887
|
-
...generateShadowCssVars(theme),
|
|
2888
|
-
...pageSurfaceInks(theme.palette),
|
|
2889
|
-
...typographyFontRoleCssVars(typography),
|
|
2890
|
-
["--font-eyebrow"]: typography.eyebrow?.family ? formatFontFamily(typography.eyebrow.family) : "var(--font-body)",
|
|
2891
|
-
...typography.eyebrow?.size ? { ["--fs-eyebrow"]: mapEyebrowSize(typography.eyebrow.size) } : {},
|
|
2892
|
-
...typography.eyebrow?.weight ? { ["--fw-eyebrow"]: mapWeight(typography.eyebrow.weight) } : {},
|
|
2893
|
-
...typography.eyebrow?.letterSpacing ? { ["--ls-eyebrow"]: mapEyebrowLetterSpacing(typography.eyebrow.letterSpacing) } : {},
|
|
2894
|
-
...typography.eyebrow?.case ? { ["--tt-eyebrow"]: mapEyebrowCase(typography.eyebrow.case) } : {},
|
|
2895
|
-
["--font-weight-heading"]: mapWeight(typography.headings.default.weight),
|
|
2896
|
-
["--font-weight-body"]: mapWeight(typography.body.weight),
|
|
2897
|
-
...typography.headings.h1.weight ? { ["--fw-h1"]: mapWeight(typography.headings.h1.weight) } : {},
|
|
2898
|
-
...typography.headings.h2.weight ? { ["--fw-h2"]: mapWeight(typography.headings.h2.weight) } : {},
|
|
2899
|
-
...typography.headings.h3.weight ? { ["--fw-h3"]: mapWeight(typography.headings.h3.weight) } : {},
|
|
2900
|
-
...typography.headings.h4?.weight ? { ["--fw-h4"]: mapWeight(typography.headings.h4.weight) } : {},
|
|
2901
|
-
...typography.headings.h5?.weight ? { ["--fw-h5"]: mapWeight(typography.headings.h5.weight) } : {},
|
|
2902
|
-
...typography.headings.h6?.weight ? { ["--fw-h6"]: mapWeight(typography.headings.h6.weight) } : {},
|
|
2903
|
-
["--ls-heading"]: mapLetterSpacing(typography.headings.default.letterSpacing),
|
|
2904
|
-
["--ls-body"]: mapLetterSpacing(typography.body.letterSpacing),
|
|
2905
|
-
...typography.headings.h1.letterSpacing ? { ["--ls-h1"]: mapLetterSpacing(typography.headings.h1.letterSpacing) } : {},
|
|
2906
|
-
...typography.headings.h2.letterSpacing ? { ["--ls-h2"]: mapLetterSpacing(typography.headings.h2.letterSpacing) } : {},
|
|
2907
|
-
...typography.headings.h3.letterSpacing ? { ["--ls-h3"]: mapLetterSpacing(typography.headings.h3.letterSpacing) } : {},
|
|
2908
|
-
...typography.headings.h4?.letterSpacing ? { ["--ls-h4"]: mapLetterSpacing(typography.headings.h4.letterSpacing) } : {},
|
|
2909
|
-
...typography.headings.h5?.letterSpacing ? { ["--ls-h5"]: mapLetterSpacing(typography.headings.h5.letterSpacing) } : {},
|
|
2910
|
-
...typography.headings.h6?.letterSpacing ? { ["--ls-h6"]: mapLetterSpacing(typography.headings.h6.letterSpacing) } : {},
|
|
2911
|
-
["--lh-heading"]: mapHeadingLineHeight(typography.headings.default.lineHeight),
|
|
2912
|
-
["--lh-body"]: mapLineHeight(typography.body.lineHeight),
|
|
2913
|
-
...typography.headings.h1.lineHeight ? { ["--lh-h1"]: mapHeadingLineHeight(typography.headings.h1.lineHeight) } : {},
|
|
2914
|
-
...typography.headings.h2.lineHeight ? { ["--lh-h2"]: mapHeadingLineHeight(typography.headings.h2.lineHeight) } : {},
|
|
2915
|
-
...typography.headings.h3.lineHeight ? { ["--lh-h3"]: mapHeadingLineHeight(typography.headings.h3.lineHeight) } : {},
|
|
2916
|
-
...typography.headings.h4?.lineHeight ? { ["--lh-h4"]: mapHeadingLineHeight(typography.headings.h4.lineHeight) } : {},
|
|
2917
|
-
...typography.headings.h5?.lineHeight ? { ["--lh-h5"]: mapHeadingLineHeight(typography.headings.h5.lineHeight) } : {},
|
|
2918
|
-
...typography.headings.h6?.lineHeight ? { ["--lh-h6"]: mapHeadingLineHeight(typography.headings.h6.lineHeight) } : {},
|
|
2919
|
-
["--tt-heading"]: mapTextTransform(typography.headings.default.case),
|
|
2920
|
-
["--fv-heading"]: mapFontVariant(typography.headings.default.case),
|
|
2921
|
-
["--fi-heading"]: mapFontStyle(typography.headings.default.italic),
|
|
2922
|
-
...typography.headings.h1.italic != null ? { ["--fi-h1"]: mapFontStyle(typography.headings.h1.italic) } : {},
|
|
2923
|
-
...typography.headings.h2.italic != null ? { ["--fi-h2"]: mapFontStyle(typography.headings.h2.italic) } : {},
|
|
2924
|
-
...typography.headings.h3.italic != null ? { ["--fi-h3"]: mapFontStyle(typography.headings.h3.italic) } : {},
|
|
2925
|
-
...typography.headings.h4?.italic != null ? { ["--fi-h4"]: mapFontStyle(typography.headings.h4.italic) } : {},
|
|
2926
|
-
...typography.headings.h5?.italic != null ? { ["--fi-h5"]: mapFontStyle(typography.headings.h5.italic) } : {},
|
|
2927
|
-
...typography.headings.h6?.italic != null ? { ["--fi-h6"]: mapFontStyle(typography.headings.h6.italic) } : {},
|
|
2928
|
-
...typography.headings.default.colorToken ? { ["--hc-heading"]: rgbColorValue(typography.headings.default.colorToken) } : {},
|
|
2929
|
-
...typography.headings.h1.colorToken ? { ["--hc-h1"]: rgbColorValue(typography.headings.h1.colorToken) } : {},
|
|
2930
|
-
...typography.headings.h2.colorToken ? { ["--hc-h2"]: rgbColorValue(typography.headings.h2.colorToken) } : {},
|
|
2931
|
-
...typography.headings.h3.colorToken ? { ["--hc-h3"]: rgbColorValue(typography.headings.h3.colorToken) } : {},
|
|
2932
|
-
...typography.headings.h4?.colorToken ? { ["--hc-h4"]: rgbColorValue(typography.headings.h4.colorToken) } : {},
|
|
2933
|
-
...typography.headings.h5?.colorToken ? { ["--hc-h5"]: rgbColorValue(typography.headings.h5.colorToken) } : {},
|
|
2934
|
-
...typography.headings.h6?.colorToken ? { ["--hc-h6"]: rgbColorValue(typography.headings.h6.colorToken) } : {},
|
|
2935
|
-
...proseLinkStyleToCssVars(typography.proseLinkStyle),
|
|
2936
|
-
["--fs-body"]: sized.body,
|
|
2937
|
-
["--fs-h3"]: sized.h3,
|
|
2938
|
-
["--fs-h2"]: sized.h2,
|
|
2939
|
-
["--fs-h1"]: sized.h1,
|
|
2940
|
-
["--fs-h1-fluid"]: sized.h1Fluid,
|
|
2941
|
-
["--fs-h2-fluid"]: sized.h2Fluid,
|
|
2942
|
-
["--fs-h3-fluid"]: sized.h3Fluid,
|
|
2943
|
-
["--fs-h1-display"]: sized.h1Display,
|
|
2944
|
-
["--fs-h1-display-fluid"]: sized.h1DisplayFluid,
|
|
2945
|
-
["--shadow-elev"]: mapShadow(shadow.elevation, shadow.softness, shadow.position || "bottom", shadow.colorToken),
|
|
2946
|
-
["--space-mult"]: mapSpaceMult(space),
|
|
2947
|
-
["--motion-duration"]: mapMotionDuration(motion.level),
|
|
2948
|
-
["--motion-ease"]: mapMotionEasing(motion.easing ?? "standard"),
|
|
2949
|
-
["--rt-space-y"]: mapRhythm(space),
|
|
2950
|
-
[THEME_RADIUS_CSS_VARS.block]: blockRadius,
|
|
2951
|
-
[THEME_RADIUS_CSS_VARS.panel]: panelRadius,
|
|
2952
|
-
["--rb-block-transition"]: mapBlockTransition(motion.level),
|
|
2953
|
-
[THEME_RADIUS_CSS_VARS.button]: buttonRadius,
|
|
2954
|
-
["--rb-border-width"]: mapBorderWidth(border.width),
|
|
2955
|
-
["--rb-border-style"]: mapBorderStyle(border.style),
|
|
2956
|
-
[THEME_RADIUS_CSS_VARS.input]: inputRadius,
|
|
2957
|
-
["--rb-input-focus-width"]: `${inputSystem.focus.ringWidth}px`,
|
|
2958
|
-
["--rb-input-focus-color"]: rgbColorValue(inputSystem.focus.ringColorToken),
|
|
2959
|
-
[THEME_RADIUS_CSS_VARS.legacyCard]: blockRadius,
|
|
2960
|
-
[THEME_RADIUS_CSS_VARS.legacyControl]: inputRadius
|
|
2961
|
-
};
|
|
2962
|
-
}
|
|
2963
|
-
/** Font roles use one formatter and weight mapping; absent small headings add no variables. */
|
|
2964
|
-
function typographyFontRoleCssVars(typography) {
|
|
2965
|
-
return {
|
|
2966
|
-
"--font-heading": formatFontFamily(typography.headings.default.family),
|
|
2967
|
-
"--font-body": formatFontFamily(typography.body.family),
|
|
2968
|
-
...typography.smallHeading ? {
|
|
2969
|
-
"--font-small-heading": formatFontFamily(typography.smallHeading.family),
|
|
2970
|
-
"--fw-small-heading": mapWeight(typography.smallHeading.weight)
|
|
2971
|
-
} : {}
|
|
2972
|
-
};
|
|
2973
|
-
}
|
|
2974
|
-
function mapWeight(w) {
|
|
2975
|
-
return {
|
|
2976
|
-
light: 300,
|
|
2977
|
-
regular: 400,
|
|
2978
|
-
medium: 500,
|
|
2979
|
-
semibold: 600,
|
|
2980
|
-
bold: 700
|
|
2981
|
-
}[w];
|
|
2982
|
-
}
|
|
2983
|
-
function mapShadow(level, softness, position = "bottom", colorToken) {
|
|
2984
|
-
if (level === "none") return "none";
|
|
2985
|
-
const tintVar = colorToken ? cssVarValue(colorToken) : null;
|
|
2986
|
-
const shadowColor = (a) => tintVar ? `rgb(${tintVar} / ${a})` : `rgba(0,0,0,${a})`;
|
|
2987
|
-
const offset = {
|
|
2988
|
-
low: 2,
|
|
2989
|
-
medium: 4,
|
|
2990
|
-
high: 6
|
|
2991
|
-
}[level];
|
|
2992
|
-
const xOffset = position === "bottom-right" ? offset : 0;
|
|
2993
|
-
if (softness === "hard") return `${xOffset}px ${offset}px 0 0 ${shadowColor("1")}`;
|
|
2994
|
-
const soft = softness !== "crisp";
|
|
2995
|
-
switch (level) {
|
|
2996
|
-
case "low": return soft ? `${xOffset}px 1px 2px ${shadowColor(".06")}` : `${xOffset}px 1px 1px ${shadowColor(".12")}`;
|
|
2997
|
-
case "medium": return soft ? `${xOffset}px 10px 20px ${shadowColor(".08")}` : `${xOffset}px 6px 12px ${shadowColor(".16")}`;
|
|
2998
|
-
case "high": return soft ? `${xOffset}px 25px 50px ${shadowColor(".18")}` : `${xOffset}px 20px 30px ${shadowColor(".28")}`;
|
|
2999
|
-
}
|
|
3000
|
-
}
|
|
3001
|
-
function mapSpaceMult(space) {
|
|
3002
|
-
return {
|
|
3003
|
-
comfortable: 1.15,
|
|
3004
|
-
standard: 1,
|
|
3005
|
-
dense: .88
|
|
3006
|
-
}[space];
|
|
3007
|
-
}
|
|
3008
|
-
function mapRhythm(space) {
|
|
3009
|
-
switch (space) {
|
|
3010
|
-
case "comfortable": return "1.2rem";
|
|
3011
|
-
case "dense": return "0.75rem";
|
|
3012
|
-
default: return "1rem";
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
function mapMotionDuration(level) {
|
|
3016
|
-
return {
|
|
3017
|
-
off: "0ms",
|
|
3018
|
-
low: "120ms",
|
|
3019
|
-
medium: "180ms",
|
|
3020
|
-
high: "250ms"
|
|
3021
|
-
}[level];
|
|
3022
|
-
}
|
|
3023
|
-
function mapMotionEasing(e) {
|
|
3024
|
-
return {
|
|
3025
|
-
standard: "cubic-bezier(.2,.8,.2,1)",
|
|
3026
|
-
snappy: "cubic-bezier(.2,1,.2,1)",
|
|
3027
|
-
gentle: "cubic-bezier(.15,.85,.15,1)"
|
|
3028
|
-
}[e];
|
|
3029
|
-
}
|
|
3030
|
-
/**
|
|
3031
|
-
* Map corner style to block radius CSS value.
|
|
3032
|
-
* These are Tier 2 vars used consistently across blocks. The pill token is
|
|
3033
|
-
* intentionally capped for block surfaces: buttons can be fully pill-shaped,
|
|
3034
|
-
* but cards/panels with real content should not become capsules.
|
|
3035
|
-
*/
|
|
3036
|
-
function mapBlockRadius(corners) {
|
|
3037
|
-
return {
|
|
3038
|
-
square: "0",
|
|
3039
|
-
soft: "0.5rem",
|
|
3040
|
-
rounded: "0.75rem",
|
|
3041
|
-
pill: "1rem"
|
|
3042
|
-
}[corners];
|
|
3043
|
-
}
|
|
3044
|
-
/**
|
|
3045
|
-
* Map corner style to large-panel radius CSS value (Tier 2 `--rb-panel-radius`).
|
|
3046
|
-
* Derived from the same `corners` enum, one step more generous than the
|
|
3047
|
-
* block/card radius so large surfaces can carry a softer corner without a new
|
|
3048
|
-
* schema field. `rounded` lands on 20px (1.25rem), matching the physio mockup's
|
|
3049
|
-
* large-panel radius.
|
|
3050
|
-
*/
|
|
3051
|
-
function mapPanelRadius(corners) {
|
|
3052
|
-
return {
|
|
3053
|
-
square: "0",
|
|
3054
|
-
soft: "0.75rem",
|
|
3055
|
-
rounded: "1.25rem",
|
|
3056
|
-
pill: "2rem"
|
|
3057
|
-
}[corners];
|
|
3058
|
-
}
|
|
1851
|
+
//#region ../theme-core/src/generated/containerResponsiveThemeCss.ts
|
|
3059
1852
|
/**
|
|
3060
|
-
*
|
|
3061
|
-
*
|
|
3062
|
-
*/
|
|
3063
|
-
function mapBlockTransition(level) {
|
|
3064
|
-
return {
|
|
3065
|
-
off: "0ms",
|
|
3066
|
-
low: "120ms",
|
|
3067
|
-
medium: "150ms",
|
|
3068
|
-
high: "200ms"
|
|
3069
|
-
}[level];
|
|
3070
|
-
}
|
|
3071
|
-
/**
|
|
3072
|
-
* Map corner style to button radius CSS value.
|
|
3073
|
-
* Uses Tailwind-style button radius values that match the button system.
|
|
3074
|
-
* - square/soft → rounded-md (0.375rem) for subtle rounding
|
|
3075
|
-
* - rounded → rounded-lg (0.5rem) for moderate rounding
|
|
3076
|
-
* - pill → rounded-full (9999px) for pill shape
|
|
3077
|
-
*/
|
|
3078
|
-
function mapButtonRadius(corners) {
|
|
3079
|
-
return {
|
|
3080
|
-
square: "0.375rem",
|
|
3081
|
-
soft: "0.375rem",
|
|
3082
|
-
rounded: "0.5rem",
|
|
3083
|
-
pill: "9999px"
|
|
3084
|
-
}[corners];
|
|
3085
|
-
}
|
|
3086
|
-
function mapBorderWidth(width) {
|
|
3087
|
-
switch (width) {
|
|
3088
|
-
case "none": return "0px";
|
|
3089
|
-
case "thick": return "2px";
|
|
3090
|
-
default: return "1px";
|
|
3091
|
-
}
|
|
3092
|
-
}
|
|
3093
|
-
function mapBorderStyle(style) {
|
|
3094
|
-
return style;
|
|
3095
|
-
}
|
|
3096
|
-
function proseLinkStyleToCssVars(style) {
|
|
3097
|
-
if (!style) return {};
|
|
3098
|
-
return {
|
|
3099
|
-
...style.colorToken ? { ["--rb-prose-link-color"]: rgbColorValue(style.colorToken) } : {},
|
|
3100
|
-
...style.hoverColorToken ? { ["--rb-prose-link-hover-color"]: rgbColorValue(style.hoverColorToken) } : {},
|
|
3101
|
-
...style.decorationColorToken ? { ["--rb-prose-link-decoration-color"]: rgbColorValue(style.decorationColorToken) } : {},
|
|
3102
|
-
...style.hoverDecorationColorToken ? { ["--rb-prose-link-hover-decoration-color"]: rgbColorValue(style.hoverDecorationColorToken) } : {},
|
|
3103
|
-
...style.underline != null ? { ["--rb-prose-link-decoration-line"]: style.underline ? "underline" : "none" } : {},
|
|
3104
|
-
...style.underlineStyle ? { ["--rb-prose-link-underline-style"]: style.underlineStyle } : {},
|
|
3105
|
-
...style.underlineThickness ? { ["--rb-prose-link-underline-thickness"]: mapProseLinkUnderlineThickness(style.underlineThickness) } : {},
|
|
3106
|
-
...style.underlineOffset ? { ["--rb-prose-link-underline-offset"]: mapProseLinkUnderlineOffset(style.underlineOffset) } : {}
|
|
3107
|
-
};
|
|
3108
|
-
}
|
|
3109
|
-
/**
|
|
3110
|
-
* Generate structured block override CSS (separate from blockCustomVars).
|
|
3111
|
-
* This handles typed theme overrides, while blockCustomVars remains raw var passthrough.
|
|
3112
|
-
*/
|
|
3113
|
-
function generateBlockOverrideCss(themeId, theme) {
|
|
3114
|
-
const overrides = theme.blockOverrides;
|
|
3115
|
-
if (!overrides) return "";
|
|
3116
|
-
const cssBlocks = [];
|
|
3117
|
-
for (const [blockKind, blockOverride] of Object.entries(overrides)) {
|
|
3118
|
-
const blockSelectorKind = normalizeBlockKind(blockKind);
|
|
3119
|
-
const proseVars = proseLinkStyleToCssVars(blockOverride.typography?.proseLinkStyle);
|
|
3120
|
-
const declarations = Object.entries(proseVars).map(([key, value]) => ` ${key}: ${String(value)};`).join("\n");
|
|
3121
|
-
if (!declarations) continue;
|
|
3122
|
-
cssBlocks.push(`:where([data-theme-scope="${escapeAttrValue(themeId)}"]) :where([data-block="${escapeAttrValue(blockSelectorKind)}"]) {\n${declarations}\n}`);
|
|
3123
|
-
}
|
|
3124
|
-
return cssBlocks.join("\n");
|
|
3125
|
-
}
|
|
3126
|
-
function escapeAttrValue(value) {
|
|
3127
|
-
return value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
|
|
3128
|
-
}
|
|
3129
|
-
function mapProseLinkUnderlineThickness(value) {
|
|
3130
|
-
switch (value) {
|
|
3131
|
-
case "fromFont": return "from-font";
|
|
3132
|
-
case "thin": return "1px";
|
|
3133
|
-
case "medium": return "2px";
|
|
3134
|
-
case "thick": return "3px";
|
|
3135
|
-
default: return "auto";
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
function mapProseLinkUnderlineOffset(value) {
|
|
3139
|
-
switch (value) {
|
|
3140
|
-
case "tight": return "0.08em";
|
|
3141
|
-
case "loose": return "0.2em";
|
|
3142
|
-
case "normal": return "0.14em";
|
|
3143
|
-
default: return "auto";
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
/**
|
|
3147
|
-
* Map input corners to CSS radius value for tier-2 input variables.
|
|
3148
|
-
* Falls back to theme corners if inputCorners is null.
|
|
3149
|
-
*/
|
|
3150
|
-
function mapInputRadius(inputCorners, themeFallback) {
|
|
3151
|
-
switch (inputCorners ?? themeFallback) {
|
|
3152
|
-
case "square": return "0";
|
|
3153
|
-
case "soft": return "0.25rem";
|
|
3154
|
-
case "rounded": return "0.5rem";
|
|
3155
|
-
case "pill": return "9999px";
|
|
3156
|
-
default: return "0.375rem";
|
|
3157
|
-
}
|
|
3158
|
-
}
|
|
3159
|
-
/**
|
|
3160
|
-
* Normalize scale name to handle both old and new naming conventions.
|
|
3161
|
-
* Old names (minorThird, majorThird, perfectFourth) map to new names (compact, balanced, spacious).
|
|
3162
|
-
*/
|
|
3163
|
-
function normalizeScaleName(scale) {
|
|
3164
|
-
return {
|
|
3165
|
-
minorThird: "compact",
|
|
3166
|
-
majorThird: "balanced",
|
|
3167
|
-
perfectFourth: "spacious",
|
|
3168
|
-
compact: "compact",
|
|
3169
|
-
balanced: "balanced",
|
|
3170
|
-
spacious: "spacious"
|
|
3171
|
-
}[scale] ?? "balanced";
|
|
3172
|
-
}
|
|
3173
|
-
/**
|
|
3174
|
-
* Compute base type scale sizes for headings.
|
|
3175
|
-
* Returns both static sizes and min/max for fluid typography.
|
|
3176
|
-
*/
|
|
3177
|
-
function computeTypeScale(scale, bodySize) {
|
|
3178
|
-
const base = {
|
|
3179
|
-
md: 16,
|
|
3180
|
-
lg: 17,
|
|
3181
|
-
xl: 18
|
|
3182
|
-
}[bodySize];
|
|
3183
|
-
const ratio = {
|
|
3184
|
-
compact: 1.2,
|
|
3185
|
-
balanced: 1.25,
|
|
3186
|
-
spacious: 1.333
|
|
3187
|
-
}[normalizeScaleName(scale)];
|
|
3188
|
-
const h3 = Math.round(base * ratio);
|
|
3189
|
-
const h2 = Math.round(h3 * ratio);
|
|
3190
|
-
const h1 = Math.round(h2 * ratio);
|
|
3191
|
-
const fluidMin = .7;
|
|
3192
|
-
const h2FluidMin = .9;
|
|
3193
|
-
const fluidMax = 1.3;
|
|
3194
|
-
return {
|
|
3195
|
-
["--fs-body"]: `${base}px`,
|
|
3196
|
-
["--fs-h3"]: `${h3}px`,
|
|
3197
|
-
["--fs-h2"]: `${h2}px`,
|
|
3198
|
-
["--fs-h1"]: `${h1}px`,
|
|
3199
|
-
["--fs-h1-min"]: `${Math.round(h1 * fluidMin)}px`,
|
|
3200
|
-
["--fs-h1-max"]: `${Math.round(h1 * fluidMax)}px`,
|
|
3201
|
-
["--fs-h2-min"]: `${Math.round(h2 * h2FluidMin)}px`,
|
|
3202
|
-
["--fs-h2-max"]: `${Math.round(h2 * fluidMax)}px`,
|
|
3203
|
-
["--fs-h3-min"]: `${Math.round(h3 * fluidMin)}px`,
|
|
3204
|
-
["--fs-h3-max"]: `${Math.round(h3 * fluidMax)}px`,
|
|
3205
|
-
["--fs-h1-fluid"]: `clamp(${Math.round(h1 * fluidMin)}px, calc(${Math.round(h1 * fluidMin)}px + ${Math.round(h1 * (fluidMax - fluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h1 * fluidMax)}px)`,
|
|
3206
|
-
["--fs-h2-fluid"]: `clamp(${Math.round(h2 * h2FluidMin)}px, calc(${Math.round(h2 * h2FluidMin)}px + ${Math.round(h2 * (fluidMax - h2FluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h2 * fluidMax)}px)`,
|
|
3207
|
-
["--fs-h3-fluid"]: `clamp(${Math.round(h3 * fluidMin)}px, calc(${Math.round(h3 * fluidMin)}px + ${Math.round(h3 * (fluidMax - fluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h3 * fluidMax)}px)`,
|
|
3208
|
-
["--fs-h1-display"]: `${Math.round(h1 * 1.5)}px`,
|
|
3209
|
-
["--fs-h1-display-fluid"]: `clamp(${Math.round(h1 * fluidMin * 1.5)}px, calc(${Math.round(h1 * fluidMin * 1.5)}px + ${Math.round(h1 * (fluidMax - fluidMin) * 1.5)} * ((100vw - 320px) / 880)), ${Math.round(h1 * fluidMax * 1.5)}px)`
|
|
3210
|
-
};
|
|
3211
|
-
}
|
|
3212
|
-
/**
|
|
3213
|
-
* Size scale multipliers for heading size overrides.
|
|
3214
|
-
* Expanded from md/lg/xl to xs through 2xl for finer control.
|
|
3215
|
-
*/
|
|
3216
|
-
const SIZE_SCALE_MAP = {
|
|
3217
|
-
xs: .85,
|
|
3218
|
-
sm: .925,
|
|
3219
|
-
md: 1,
|
|
3220
|
-
lg: 1.1,
|
|
3221
|
-
xl: 1.2,
|
|
3222
|
-
"2xl": 1.35
|
|
3223
|
-
};
|
|
3224
|
-
function applyHeadingSizeOverrides(base, typography) {
|
|
3225
|
-
const body = base["--fs-body"];
|
|
3226
|
-
const h1Base = parseFloat(base["--fs-h1"].replace("px", ""));
|
|
3227
|
-
const h2Base = parseFloat(base["--fs-h2"].replace("px", ""));
|
|
3228
|
-
const h3Base = parseFloat(base["--fs-h3"].replace("px", ""));
|
|
3229
|
-
const h1Scale = typography.headings.h1.size ? SIZE_SCALE_MAP[typography.headings.h1.size] : 1;
|
|
3230
|
-
const h2Scale = typography.headings.h2.size ? SIZE_SCALE_MAP[typography.headings.h2.size] : 1;
|
|
3231
|
-
const h3Scale = typography.headings.h3.size ? SIZE_SCALE_MAP[typography.headings.h3.size] : 1;
|
|
3232
|
-
const h1 = Math.round(h1Base * h1Scale);
|
|
3233
|
-
const h2 = Math.round(h2Base * h2Scale);
|
|
3234
|
-
const h3 = Math.round(h3Base * h3Scale);
|
|
3235
|
-
const fluidMin = .7;
|
|
3236
|
-
const h2FluidMin = .9;
|
|
3237
|
-
const fluidMax = 1.3;
|
|
3238
|
-
return {
|
|
3239
|
-
body,
|
|
3240
|
-
h1: `${h1}px`,
|
|
3241
|
-
h2: `${h2}px`,
|
|
3242
|
-
h3: `${h3}px`,
|
|
3243
|
-
h1Fluid: `clamp(${Math.round(h1 * fluidMin)}px, calc(${Math.round(h1 * fluidMin)}px + ${Math.round(h1 * (fluidMax - fluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h1 * fluidMax)}px)`,
|
|
3244
|
-
h2Fluid: `clamp(${Math.round(h2 * h2FluidMin)}px, calc(${Math.round(h2 * h2FluidMin)}px + ${Math.round(h2 * (fluidMax - h2FluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h2 * fluidMax)}px)`,
|
|
3245
|
-
h3Fluid: `clamp(${Math.round(h3 * fluidMin)}px, calc(${Math.round(h3 * fluidMin)}px + ${Math.round(h3 * (fluidMax - fluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h3 * fluidMax)}px)`,
|
|
3246
|
-
h1Display: `${Math.round(h1 * 1.5)}px`,
|
|
3247
|
-
h1DisplayFluid: `clamp(${Math.round(h1 * 1.5 * fluidMin)}px, calc(${Math.round(h1 * 1.5 * fluidMin)}px + ${Math.round(h1 * 1.5 * (fluidMax - fluidMin))} * ((100vw - 320px) / 880)), ${Math.round(h1 * 1.5 * fluidMax)}px)`
|
|
3248
|
-
};
|
|
3249
|
-
}
|
|
3250
|
-
function mapLetterSpacing(s) {
|
|
3251
|
-
return {
|
|
3252
|
-
tight: "-0.01em",
|
|
3253
|
-
normal: "0em",
|
|
3254
|
-
loose: "0.02em"
|
|
3255
|
-
}[s];
|
|
3256
|
-
}
|
|
3257
|
-
function mapEyebrowSize(s) {
|
|
3258
|
-
return {
|
|
3259
|
-
sm: "0.75rem",
|
|
3260
|
-
md: "0.875rem",
|
|
3261
|
-
lg: "1rem"
|
|
3262
|
-
}[s];
|
|
3263
|
-
}
|
|
3264
|
-
function mapEyebrowLetterSpacing(s) {
|
|
3265
|
-
return {
|
|
3266
|
-
tight: "0em",
|
|
3267
|
-
normal: "0.025em",
|
|
3268
|
-
loose: "0.06em",
|
|
3269
|
-
wide: "0.12em"
|
|
3270
|
-
}[s];
|
|
3271
|
-
}
|
|
3272
|
-
function mapEyebrowCase(c) {
|
|
3273
|
-
return c === "uppercase" ? "uppercase" : "none";
|
|
3274
|
-
}
|
|
3275
|
-
function mapLineHeight(s) {
|
|
3276
|
-
return {
|
|
3277
|
-
normal: "1.5",
|
|
3278
|
-
relaxed: "1.65",
|
|
3279
|
-
loose: "1.8"
|
|
3280
|
-
}[s];
|
|
3281
|
-
}
|
|
3282
|
-
/**
|
|
3283
|
-
* Headings get their own line-height scale, decoupled from body. `mapLineHeight`
|
|
3284
|
-
* is floored at 1.5 (a body leading) which reads as too airy on headings — the
|
|
3285
|
-
* more so as size drops. These values sit well under 1.5 and let presets taper
|
|
3286
|
-
* per level (larger headings tighter). `tight`/`snug` extend the token set for
|
|
3287
|
-
* display headings; body keeps `mapLineHeight`.
|
|
3288
|
-
*/
|
|
3289
|
-
function mapHeadingLineHeight(s) {
|
|
3290
|
-
return {
|
|
3291
|
-
tight: "1.1",
|
|
3292
|
-
snug: "1.15",
|
|
3293
|
-
normal: "1.2",
|
|
3294
|
-
relaxed: "1.3",
|
|
3295
|
-
loose: "1.4"
|
|
3296
|
-
}[s];
|
|
3297
|
-
}
|
|
3298
|
-
function mapTextTransform(c) {
|
|
3299
|
-
if (c === "uppercase") return "uppercase";
|
|
3300
|
-
return "none";
|
|
3301
|
-
}
|
|
3302
|
-
function mapFontVariant(c) {
|
|
3303
|
-
if (c === "smallCaps") return "small-caps";
|
|
3304
|
-
return "normal";
|
|
3305
|
-
}
|
|
3306
|
-
function mapFontStyle(italic) {
|
|
3307
|
-
return italic ? "italic" : "normal";
|
|
3308
|
-
}
|
|
3309
|
-
/** Adapt the canonical default-card decision for the embedded registration. */
|
|
3310
|
-
function generateThemeBlockVarsCss(theme, themeId) {
|
|
3311
|
-
const card = resolveCardRole(theme, theme.cards ?? null, "default");
|
|
3312
|
-
return generateAllBlockVarsCss({
|
|
3313
|
-
theme,
|
|
3314
|
-
themeId,
|
|
3315
|
-
surface: opaqueSurfaceContextFromTheme(theme),
|
|
3316
|
-
embeddedRegistrationPaint: card.kind === "surface" ? cardSurfacePaint(card.variant) : { kind: "transparent" }
|
|
3317
|
-
});
|
|
3318
|
-
}
|
|
3319
|
-
//#endregion
|
|
3320
|
-
//#region ../theme-core/src/generated/containerResponsiveThemeCss.ts
|
|
3321
|
-
/**
|
|
3322
|
-
* Auto-generated by scripts/generate-container-responsive-css.ts
|
|
3323
|
-
* Do not edit by hand.
|
|
1853
|
+
* Auto-generated by scripts/generate-container-responsive-css.ts
|
|
1854
|
+
* Do not edit by hand.
|
|
3324
1855
|
*/
|
|
3325
1856
|
const containerResponsiveThemeCss = `/*
|
|
3326
1857
|
* Blocks Theme CSS
|
|
@@ -9430,15 +7961,17 @@ const containerResponsiveThemeCss = `/*
|
|
|
9430
7961
|
:where([data-block='event-registration'])
|
|
9431
7962
|
.er-booking-bar {
|
|
9432
7963
|
position: fixed;
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
7964
|
+
/* A site style may inset and round the bar and choose its paint (issue 1659): opaquePanels.ts sets these with the matching inks. */
|
|
7965
|
+
left: var(--er-bar-inset, 0);
|
|
7966
|
+
right: var(--er-bar-inset, 0);
|
|
7967
|
+
bottom: var(--er-bar-inset, 0);
|
|
9436
7968
|
z-index: 12000;
|
|
9437
7969
|
padding: 0.625rem max(1rem, env(safe-area-inset-right))
|
|
9438
7970
|
max(0.625rem, env(safe-area-inset-bottom))
|
|
9439
7971
|
max(1rem, env(safe-area-inset-left));
|
|
9440
|
-
|
|
9441
|
-
|
|
7972
|
+
border-radius: var(--er-bar-radius, 0);
|
|
7973
|
+
background: var(--er-bar-paint, rgb(var(--tb-surface)));
|
|
7974
|
+
border-top: var(--er-bar-border, 1px solid var(--er-border));
|
|
9442
7975
|
box-shadow: 0 -8px 28px rgb(var(--tb-shadow) / 0.14);
|
|
9443
7976
|
/* Set per frame on the element while the card pushes the bar off. */
|
|
9444
7977
|
--er-bar-push: 0px;
|
|
@@ -18153,6 +16686,8 @@ const containerResponsiveThemeCss = `/*
|
|
|
18153
16686
|
.theme-scope [data-arrangement] [data-slot="head"] { display: grid; gap: 0.75rem; max-width: 44rem; margin-inline: 0 auto; justify-items: start; text-align: start; }
|
|
18154
16687
|
.theme-scope [data-arrangement] [data-slot="head"] > [data-slot="heading"],
|
|
18155
16688
|
.theme-scope [data-arrangement] [data-slot="head"] > [data-slot="intro"] { text-align: start; }
|
|
16689
|
+
/* A card photo keeps the field's 4:3 unless the skin sets the Look's own crop (issue 1660, D3). */
|
|
16690
|
+
.theme-scope :where([data-arrangement]) .rb-feature-card-media { aspect-ratio: 4 / 3; object-fit: cover; }
|
|
18156
16691
|
/* Items that sit on the section ground carry no box of their own. */
|
|
18157
16692
|
:where(.theme-scope [data-arrangement] [data-slot="item"][data-surface="section"]) { border: 0; background: none; box-shadow: none; border-radius: 0; }
|
|
18158
16693
|
.theme-scope [data-arrangement] [data-slot="item"][data-surface="section"] > [data-slot="item-body"] { padding-inline: 0; }
|
|
@@ -18363,6 +16898,10 @@ const containerResponsiveThemeCss = `/*
|
|
|
18363
16898
|
}
|
|
18364
16899
|
|
|
18365
16900
|
.theme-scope [data-arrangement] .rb-container { max-width: var(--rb-skin-wrap, 1280px); padding-inline: clamp(20px, 4cqi, var(--rb-skin-margin, 40px)); }
|
|
16901
|
+
|
|
16902
|
+
/* Section shapes (issue 1659). A field ground sits in from the page edge and is rounded; the background frame inherits the radius and clips. Two fields in a row share one gap: the second drops its top margin. */
|
|
16903
|
+
.theme-scope [data-block][data-shape="field"] > :is([data-slot="section"], [data-slot="schedule-section"], [data-slot="shop-section"]) { margin: clamp(12px, 3cqi, var(--rb-skin-margin, 20px)); border-radius: var(--rb-skin-radius, 0px); }
|
|
16904
|
+
.theme-scope [data-block][data-shape="field"][data-site-style-field-seam="top"] > :is([data-slot="section"], [data-slot="schedule-section"], [data-slot="shop-section"]) { margin-top: 0; }
|
|
18366
16905
|
.theme-scope [data-arrangement="copy-over-gallery"][data-treat="arch-frame"] [data-slot="frame"] { display: grid; gap: var(--rb-skin-gutter, 1.5rem); }
|
|
18367
16906
|
|
|
18368
16907
|
.theme-scope [data-arrangement="month-grid"] [data-slot="grid"],
|
|
@@ -18557,6 +17096,16 @@ const containerResponsiveThemeCss = `/*
|
|
|
18557
17096
|
.theme-scope:is(*, :scope) [data-arrangement="event-header"] [data-slot="frame"] > :is([data-slot="copy"], [data-slot="figure"]) { grid-column: 1; grid-row: auto; }
|
|
18558
17097
|
}
|
|
18559
17098
|
}
|
|
17099
|
+
/* The event's photo opens the header as a band across both columns. */
|
|
17100
|
+
.theme-scope [data-arrangement="event-header"] [data-slot="frame"] > [data-slot="item-media"] { grid-column: 1 / -1; grid-row: 1; margin: 0; width: 100%; aspect-ratio: 21 / 9; max-height: 26rem; overflow: hidden; border-radius: var(--rb-skin-radius, 0); }
|
|
17101
|
+
.theme-scope [data-arrangement="event-header"] [data-slot="frame"] > [data-slot="item-media"] [data-slot="photo"] { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
17102
|
+
.theme-scope [data-arrangement="event-header"] [data-slot="frame"]:has(> [data-slot="item-media"]) > :is([data-slot="copy"], [data-slot="figure"]) { grid-row: 2; }
|
|
17103
|
+
@container rb-site (max-width: 767px) {
|
|
17104
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
17105
|
+
.theme-scope:is(*, :scope) [data-arrangement="event-header"] [data-slot="frame"] > [data-slot="item-media"] { aspect-ratio: 3 / 2; }
|
|
17106
|
+
.theme-scope:is(*, :scope) [data-arrangement="event-header"] [data-slot="frame"]:has(> [data-slot="item-media"]) > :is([data-slot="copy"], [data-slot="figure"]) { grid-row: auto; }
|
|
17107
|
+
}
|
|
17108
|
+
}
|
|
18560
17109
|
|
|
18561
17110
|
/* Month frames place the grid and chosen day in separate columns. */
|
|
18562
17111
|
.theme-scope [data-arrangement="month-day"][data-slot="frame"] > *,
|
|
@@ -18581,6 +17130,29 @@ const containerResponsiveThemeCss = `/*
|
|
|
18581
17130
|
}
|
|
18582
17131
|
}
|
|
18583
17132
|
|
|
17133
|
+
/* week-columns: the shown week as seven equal day columns, empty days included. Below a laptop
|
|
17134
|
+
* width each day becomes a row, its heading on the left and its session tiles wrapping beside it. */
|
|
17135
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="list"] { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
|
|
17136
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="group"] { display: flex; flex-direction: column; gap: 0.625rem; min-width: 0; }
|
|
17137
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="group-label"] { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0; }
|
|
17138
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="group"] > :not([data-slot]) { display: flex; flex-direction: column; gap: 0.375rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
|
|
17139
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="row"] { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
|
|
17140
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="time"] { order: -1; }
|
|
17141
|
+
.theme-scope [data-arrangement="week-columns"] :is([data-slot="item-title"], [data-slot="item-meta"]) { margin: 0; overflow-wrap: anywhere; }
|
|
17142
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="group-empty"] { margin: 0; }
|
|
17143
|
+
/* Today: a style that paints the date gets a round mark to paint it in. */
|
|
17144
|
+
.theme-scope [data-arrangement="week-columns"] [data-slot="group"][data-today] [data-slot="group-date"]:not([data-surface="section"]) { display: inline-grid; place-items: center; min-width: 2.25em; height: 2.25em; border-radius: 999px; }
|
|
17145
|
+
@container rb-site (max-width: 1023px) {
|
|
17146
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
17147
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="list"] { grid-template-columns: minmax(0, 1fr); }
|
|
17148
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="group"] { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
|
|
17149
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="group-label"] { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0.25rem; }
|
|
17150
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="group"] > :not([data-slot]) { flex-direction: row; flex-wrap: wrap; }
|
|
17151
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="row"] { flex: 1 1 8rem; }
|
|
17152
|
+
.theme-scope:is(*, :scope) [data-arrangement="week-columns"] [data-slot="group-empty"] { align-self: center; }
|
|
17153
|
+
}
|
|
17154
|
+
}
|
|
17155
|
+
|
|
18584
17156
|
/* Calendar numbers and marks have one geometry in both month Looks. */
|
|
18585
17157
|
.theme-scope :is([data-arrangement="month-grid"], [data-arrangement="month-day"]) [data-slot="date"] :is([data-slot="control"], [data-slot="date-label"]) { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0; margin: 0; box-shadow: none; }
|
|
18586
17158
|
.theme-scope :is([data-arrangement="month-grid"], [data-arrangement="month-day"]) [data-slot="date"][data-today="true"] :is([data-slot="control"], [data-slot="date-label"]) { box-shadow: inset 0 0 0 1px var(--rb-surface-text-color); }
|
|
@@ -19117,6 +17689,10 @@ const containerResponsiveThemeCss = `/*
|
|
|
19117
17689
|
}
|
|
19118
17690
|
}
|
|
19119
17691
|
|
|
17692
|
+
/* ===================================================== IMAGE GALLERY */
|
|
17693
|
+
/* The Black and white knob on tile Looks. */
|
|
17694
|
+
.theme-scope [data-arrangement][data-knob-black-and-white="true"] [data-slot="photo"] { filter: grayscale(1); }
|
|
17695
|
+
|
|
19120
17696
|
/* Bounded style skins (issue 1575, D14): one stylesheet per arrangement style, keyed on data-skin. */
|
|
19121
17697
|
|
|
19122
17698
|
/* =============================================================================
|
|
@@ -23224,7 +21800,6 @@ const containerResponsiveThemeCss = `/*
|
|
|
23224
21800
|
/* ---------------------------------------------------------- Feature cards */
|
|
23225
21801
|
/* cards-sewn: three sheets across, no photos and no numerals, a tack over each title, muted text. */
|
|
23226
21802
|
[data-skin="loom"] [data-arrangement][data-treat="cards-sewn"] [data-slot="items"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rb-skin-gutter, 24px); }
|
|
23227
|
-
[data-skin="loom"] [data-arrangement][data-treat="cards-sewn"] [data-slot="item-media"] { display: none; }
|
|
23228
21803
|
[data-skin="loom"] [data-arrangement][data-treat="cards-sewn"] [data-slot="item"] > [data-slot="item-body"] { gap: 0.7rem; padding: 1.75rem; }
|
|
23229
21804
|
[data-skin="loom"] [data-arrangement][data-treat="cards-sewn"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); flex: 1; color: var(--rb-surface-muted-color); line-height: 1.6; }
|
|
23230
21805
|
[data-skin="loom"] [data-arrangement][data-treat="cards-sewn"] [data-slot="item-actions"] { margin-top: 0.4rem; }
|
|
@@ -23250,7 +21825,6 @@ const containerResponsiveThemeCss = `/*
|
|
|
23250
21825
|
* The body is flattened into the row grid so the action can sit beside it, or under a seam on phones. */
|
|
23251
21826
|
[data-skin="loom"] [data-arrangement][data-treat="calendar-session-cards"] [data-slot="list"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
|
|
23252
21827
|
[data-skin="loom"] [data-arrangement][data-treat="calendar-session-cards"] [data-slot="item"] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.3rem 1.5rem; padding: 1.4rem 1.75rem; }
|
|
23253
|
-
[data-skin="loom"] [data-arrangement][data-treat="calendar-session-cards"] [data-slot="item-media"] { display: none; }
|
|
23254
21828
|
[data-skin="loom"] [data-arrangement][data-treat="calendar-session-cards"] [data-slot="item"] > [data-slot="item-body"] { display: contents; }
|
|
23255
21829
|
[data-skin="loom"] [data-arrangement][data-treat="calendar-session-cards"] [data-slot="item"] > [data-slot="date"] { grid-column: 1; grid-row: 1 / span 3; align-items: center; gap: 0.25rem; min-width: 4.6rem; text-align: center; }
|
|
23256
21830
|
[data-skin="loom"] [data-arrangement]:is([data-treat="calendar-session-cards"], [data-treat="calendar-ruled-rows"]) [data-slot="date"] [data-slot="day"] { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--rb-surface-mark-color); }
|
|
@@ -23472,11 +22046,13 @@ const containerResponsiveThemeCss = `/*
|
|
|
23472
22046
|
[data-skin="loom"] [data-arrangement][data-treat="shop-price-cards-featured"] [data-slot="item-actions"] > * { box-sizing: border-box; width: 100%; justify-content: center; }
|
|
23473
22047
|
|
|
23474
22048
|
/* -------------------------------------------------------------- Offerings */
|
|
23475
|
-
/* items-plates: two sheets across with no photo
|
|
23476
|
-
*
|
|
22049
|
+
/* items-plates: two sheets across with no photo (the offer pins Show photos off, so none is rendered).
|
|
22050
|
+
* Title, muted text, the facts in one bold line, then the next dates under a seam and the action at the
|
|
22051
|
+
* bottom. Group titles sit a step under the section title. A single offering keeps the shared one-offering
|
|
22052
|
+
* layout: one sheet across the measure with its dates beside the details. */
|
|
23477
22053
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rb-skin-gutter, 24px); }
|
|
22054
|
+
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-has-one-offering] [data-card-list] { grid-template-columns: minmax(0, 1fr); }
|
|
23478
22055
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] { display: flex; flex-direction: column; align-items: stretch; }
|
|
23479
|
-
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-slot="item-media"] { display: none; }
|
|
23480
22056
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] [data-slot="item-body"] { flex: 1; gap: 0.6rem; padding: 1.75rem; }
|
|
23481
22057
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); margin: 0; color: var(--rb-surface-muted-color); line-height: 1.6; }
|
|
23482
22058
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] [data-slot="facts"] { gap: 0.4rem 1.2rem; margin: 0.3rem 0 0; font-size: 0.95rem; }
|
|
@@ -23484,6 +22060,15 @@ const containerResponsiveThemeCss = `/*
|
|
|
23484
22060
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] [data-slot="facts"] [data-slot="fact-label"] { font-size: inherit; color: var(--rb-surface-muted-color); }
|
|
23485
22061
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] [data-slot="facts"] [data-slot="fact-value"] { margin: 0; font-size: inherit; font-weight: 600; }
|
|
23486
22062
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-slot="dates"] { display: grid; gap: 0.3rem; margin: 0.5rem 0 0; padding: 0.9rem 0 0; border-top: var(--loom-stitch); list-style: none; font-size: 0.95rem; }
|
|
22063
|
+
/* One offering: the shared layout rules its date rows; Loom stitches them, and the beside layout's column rule. Beside the
|
|
22064
|
+
* details the dates need no seam above them, since the column rule already parts them from the details. */
|
|
22065
|
+
[data-skin="loom"] [data-arrangement] [data-has-one-offering] [data-card-list-item] [data-slot="dates"] [data-slot="date"]:not(:first-child) { border-top: var(--loom-stitch); }
|
|
22066
|
+
@container rb-site (min-width: 768px) {
|
|
22067
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22068
|
+
[data-skin="loom"]:is(*, :scope) [data-arrangement][data-treat="items-plates"] [data-has-one-offering] [data-card-list-item]:not(:has(> [data-slot="item-media"])) [data-slot="item-body"] > [data-slot="dates"] { margin: 0; padding: 0; border-top: 0; }
|
|
22069
|
+
[data-skin="loom"]:is(*, :scope) [data-arrangement] [data-has-one-offering] [data-card-list-item]:not(:has(> [data-slot="item-media"])) [data-slot="item-body"] > [data-slot="dates"]::before { border-left: var(--loom-stitch); }
|
|
22070
|
+
}
|
|
22071
|
+
}
|
|
23487
22072
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-slot="dates"] [data-slot="date"] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem; margin: 0; font-weight: 600; }
|
|
23488
22073
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-slot="date-places"] { font-weight: 400; color: var(--rb-surface-muted-color); }
|
|
23489
22074
|
[data-skin="loom"] [data-arrangement][data-treat="items-plates"] [data-card-list-item] [data-slot="item-body"] > [data-slot="item-actions"] { margin-top: auto; padding-top: 0.7rem; }
|
|
@@ -23547,6 +22132,898 @@ const containerResponsiveThemeCss = `/*
|
|
|
23547
22132
|
}
|
|
23548
22133
|
}
|
|
23549
22134
|
|
|
22135
|
+
/* =============================================================================
|
|
22136
|
+
* Poise skin (issue 1659).
|
|
22137
|
+
*
|
|
22138
|
+
* A modern boutique studio: strong, plain grotesque headlines, heavy numerals for
|
|
22139
|
+
* times and prices, rounded panels and pill shapes for anything you can press or
|
|
22140
|
+
* pick. The brand and inverse grounds are drawn as rounded fields set in from the
|
|
22141
|
+
* page edge, but by the shared section-shape CSS, never here.
|
|
22142
|
+
*
|
|
22143
|
+
* Bounded skin: only the shared hooks and slots, colours only from tokens and
|
|
22144
|
+
* resolved-surface variables, measurements from the --rb-skin-* tokens Poise
|
|
22145
|
+
* declares (radius, rule, mark-length, mark-weight, gutter, copy-gap, stack-gap,
|
|
22146
|
+
* margin). One line weight everywhere: the rule token.
|
|
22147
|
+
*
|
|
22148
|
+
* How this file is organised:
|
|
22149
|
+
* 1. Local measurements: the --poise-* properties the rules below share.
|
|
22150
|
+
* 2. Section chrome and type: padding, section heads, headline steps, the eyebrow capsule.
|
|
22151
|
+
* 3. Shared pieces: rounded sheets, photos, pills, fields, links, focus.
|
|
22152
|
+
* 4. Blocks, one banner each: hero, intro and photo and text, feature cards, event
|
|
22153
|
+
* calendar, event details, testimonials, FAQ, call to action, newsletter and form,
|
|
22154
|
+
* body text, gallery, map, team, prices, offerings, month calendar.
|
|
22155
|
+
* Treatments are addressed as [data-skin="poise"] [data-treat="<name>"].
|
|
22156
|
+
* ============================================================================= */
|
|
22157
|
+
|
|
22158
|
+
/* ------------------------------------------------- 1. Local measurements */
|
|
22159
|
+
/* Surface variables live on slots, so the line is defined on slots too. */
|
|
22160
|
+
[data-skin="poise"] [data-arrangement] [data-slot] {
|
|
22161
|
+
--poise-line: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-line-color);
|
|
22162
|
+
--poise-photo-radius: calc(var(--rb-skin-radius, 24px) + 8px);
|
|
22163
|
+
--poise-inner-radius: calc(var(--rb-skin-radius, 24px) - 8px);
|
|
22164
|
+
}
|
|
22165
|
+
|
|
22166
|
+
/* ---------------------------------------------- 2. Section chrome and type */
|
|
22167
|
+
[data-skin="poise"] [data-arrangement] [data-slot="section"],
|
|
22168
|
+
[data-skin="poise"] :is([data-slot="schedule-section"], [data-slot="shop-section"]) { --rb-section-pad-y: clamp(4rem, 8cqi, 7rem); }
|
|
22169
|
+
[data-skin="poise"] [data-arrangement][data-length] [data-slot="section"] { --rb-section-pad-y: clamp(2.5rem, 5.5cqi, 5.5rem); }
|
|
22170
|
+
|
|
22171
|
+
[data-skin="poise"] [data-arrangement] :is([data-slot="headline"], [data-slot="heading"], [data-slot="panel-heading"], [data-slot="numeral"], [data-slot="time-start"], [data-slot="price-amount"], [data-slot="figure-value"]) {
|
|
22172
|
+
font-family: var(--font-heading);
|
|
22173
|
+
font-weight: 800;
|
|
22174
|
+
letter-spacing: -0.03em;
|
|
22175
|
+
font-variant-numeric: lining-nums;
|
|
22176
|
+
}
|
|
22177
|
+
[data-skin="poise"] [data-arrangement] [data-slot="item-title"] { font-family: var(--font-heading); font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.015em; }
|
|
22178
|
+
[data-skin="poise"] [data-arrangement] [data-slot="headline"] { line-height: 0.98; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 12 5 3; text-wrap: balance; }
|
|
22179
|
+
|
|
22180
|
+
/* Section heads: a heavy title with a muted line under it. */
|
|
22181
|
+
[data-skin="poise"] [data-arrangement] [data-slot="head"] { gap: 1.1rem; max-width: 47.5rem; margin-bottom: clamp(2rem, 4cqi, 3.5rem); }
|
|
22182
|
+
[data-skin="poise"] [data-arrangement] [data-slot="heading"] { font-size: clamp(2.25rem, 4.6cqi, 4.25rem); line-height: 1; text-wrap: balance; overflow-wrap: break-word; }
|
|
22183
|
+
[data-skin="poise"] [data-arrangement] [data-slot="head"] [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 36em; font-size: 1.0625rem; line-height: 1.6; color: var(--rb-surface-muted-color); }
|
|
22184
|
+
[data-skin="poise"] [data-arrangement] [data-slot="lede"] { max-width: 34em; font-size: clamp(1.125rem, 1.45cqi, 1.3125rem); line-height: 1.55; }
|
|
22185
|
+
|
|
22186
|
+
/* The eyebrow: small capitals led by one capsule in the mark colour. */
|
|
22187
|
+
[data-skin="poise"] [data-arrangement] [data-slot="eyebrow"] { display: inline-flex; align-items: center; gap: 0.625rem; font: 600 0.8125rem/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-text-color); }
|
|
22188
|
+
[data-skin="poise"] [data-arrangement] [data-slot="eyebrow"]::before { content: ""; flex: none; width: var(--rb-skin-mark-length, 22px); height: var(--rb-skin-mark-weight, 8px); border-radius: 999px; background: var(--rb-surface-mark-color); }
|
|
22189
|
+
|
|
22190
|
+
/* Headline steps: the length class and the knob pick the step, the browser never measures. */
|
|
22191
|
+
[data-skin="poise"] [data-length="short"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(3.25rem, 8.6cqi, 8.5rem); }
|
|
22192
|
+
[data-skin="poise"] [data-length="short"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22193
|
+
[data-skin="poise"] [data-length="medium"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(2.875rem, 7.4cqi, 7.25rem); }
|
|
22194
|
+
[data-skin="poise"] [data-length="short"][data-knob-headline="quiet"] [data-slot="headline"],
|
|
22195
|
+
[data-skin="poise"] [data-length="medium"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22196
|
+
[data-skin="poise"] [data-length="long"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(2.375rem, 5.4cqi, 5.25rem); line-height: 1; }
|
|
22197
|
+
[data-skin="poise"] [data-length="medium"][data-knob-headline="quiet"] [data-slot="headline"],
|
|
22198
|
+
[data-skin="poise"] [data-length="long"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22199
|
+
[data-skin="poise"] [data-length="long"][data-knob-headline="quiet"] [data-slot="headline"] { font-size: clamp(1.875rem, 3.9cqi, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; }
|
|
22200
|
+
|
|
22201
|
+
/* ------------------------------------------------------- 3. Shared pieces */
|
|
22202
|
+
/* Sheets: an item or panel that owns a surface is a rounded panel. */
|
|
22203
|
+
[data-skin="poise"] [data-arrangement] :is([data-slot="item"], [data-slot="lead"], [data-slot="panel"])[data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 24px); overflow: hidden; }
|
|
22204
|
+
[data-skin="poise"] [data-arrangement] [data-card-list-item][data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 24px); overflow: hidden; }
|
|
22205
|
+
|
|
22206
|
+
/* Photos: tall rounded photos, a step rounder than the panels. */
|
|
22207
|
+
[data-skin="poise"] [data-arrangement] [data-slot="media"] { border-radius: var(--poise-photo-radius); overflow: hidden; }
|
|
22208
|
+
[data-skin="poise"] [data-arrangement] [data-slot="media"] [data-slot="photo"] { border-radius: inherit; }
|
|
22209
|
+
[data-skin="poise"] [data-arrangement] [data-slot="item-media"] [data-slot="photo"] { border-radius: var(--poise-inner-radius); }
|
|
22210
|
+
|
|
22211
|
+
/* The sticker and small facts: pills. The sticker takes its paint from the highlight role. */
|
|
22212
|
+
[data-skin="poise"] [data-arrangement] [data-slot="sticker"] { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.75rem 1.25rem; border-radius: 999px; font: 700 0.875rem/1.2 var(--font-body); }
|
|
22213
|
+
[data-skin="poise"] [data-arrangement] [data-slot="sticker"]::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; border: var(--rb-skin-rule, 1.5px) solid currentcolor; border-radius: 50%; }
|
|
22214
|
+
[data-skin="poise"] [data-arrangement] [data-slot="chip"] { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 0.75rem; border: var(--poise-line); border-radius: 999px; background: none; font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--rb-surface-text-color); }
|
|
22215
|
+
[data-skin="poise"] [data-arrangement] [data-event-places] { font-weight: 600; white-space: nowrap; }
|
|
22216
|
+
|
|
22217
|
+
/* Fields: pills for one line. */
|
|
22218
|
+
[data-skin="poise"] [data-arrangement] [data-slot="control"] { border: var(--poise-line); border-radius: 999px; }
|
|
22219
|
+
[data-skin="poise"] [data-arrangement] [data-slot="control"]:focus-visible { outline: 3px solid var(--rb-surface-text-color); outline-offset: 3px; }
|
|
22220
|
+
[data-skin="poise"] [data-arrangement] [data-slot="fact-label"] { font-size: 0.875rem; font-weight: 700; }
|
|
22221
|
+
|
|
22222
|
+
/* Links in running text: a heavy underline in the mark colour. */
|
|
22223
|
+
[data-skin="poise"] [data-arrangement] [data-control="link"] { font-weight: 700; text-decoration-line: underline; text-decoration-color: var(--rb-surface-mark-color); text-decoration-thickness: 2px; text-underline-offset: 6px; }
|
|
22224
|
+
[data-skin="poise"] [data-arrangement] [data-slot="item-title"] > :focus-visible { outline: 3px solid var(--rb-surface-text-color); outline-offset: 3px; border-radius: 6px; }
|
|
22225
|
+
|
|
22226
|
+
/* The large display numeral, used by numbered cards and steps. */
|
|
22227
|
+
[data-skin="poise"] [data-arrangement] [data-slot="numeral"] { font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--rb-surface-mark-color); }
|
|
22228
|
+
|
|
22229
|
+
/* ------------------------------------------------------------------- Hero */
|
|
22230
|
+
/* hero-split: copy in seven columns, a tall rounded photo in five, the sticker on the photo foot. */
|
|
22231
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"] [data-slot="frame"] { column-gap: clamp(2rem, 4cqi, 4rem); }
|
|
22232
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"] [data-slot="copy"] { grid-column: 1 / 8; }
|
|
22233
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"] [data-slot="media"] { grid-column: 8 / 13; aspect-ratio: 4 / 5; max-height: 680px; max-width: none; }
|
|
22234
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="copy"] { grid-column: 6 / 13; }
|
|
22235
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="media"] { grid-column: 1 / 6; }
|
|
22236
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="copy"] { grid-column: 1 / -1; max-width: 62rem; }
|
|
22237
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"]) [data-slot="media"] [data-slot="sticker"] { position: absolute; left: 1.25rem; bottom: 1.25rem; }
|
|
22238
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="hero-page-head"], [data-treat="hero-gallery"]) [data-slot="actions"] { gap: 0.75rem 0.875rem; margin-top: 0.75rem; }
|
|
22239
|
+
|
|
22240
|
+
/* hero-headline-row: the headline gets the full width of the field, then text beside a wide photo. */
|
|
22241
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-headline-row"] [data-slot="media"] { aspect-ratio: 16 / 10; }
|
|
22242
|
+
|
|
22243
|
+
/* hero-behind: the photo fills the field and the words sit on a solid rounded panel. */
|
|
22244
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-behind"] [data-slot="copy"] { max-width: 47.5rem; padding: clamp(1.5rem, 3cqi, 2.75rem); border-radius: var(--poise-photo-radius); }
|
|
22245
|
+
|
|
22246
|
+
/* hero-page-head: the title on its own, with two capsules on the right on wider screens. */
|
|
22247
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before,
|
|
22248
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { content: ""; grid-row: 1; align-self: end; justify-self: end; height: clamp(2.75rem, 5.2cqi, 4.75rem); border-radius: 999px; }
|
|
22249
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before { grid-column: 10 / 13; width: 100%; margin-bottom: calc(clamp(2.75rem, 5.2cqi, 4.75rem) + 0.875rem); background: var(--rb-surface-line-color); }
|
|
22250
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { grid-column: 10 / 13; width: 62%; background: var(--rb-surface-text-color); }
|
|
22251
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-page-head"] [data-slot="caption"] { font-size: 0.875rem; color: var(--rb-surface-muted-color); }
|
|
22252
|
+
|
|
22253
|
+
/* hero-gallery: the title, then the photos in a row of tall rounded panels. */
|
|
22254
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-gallery"] [data-slot="gallery"] { gap: clamp(0.5rem, 1.2cqi, 1rem); }
|
|
22255
|
+
[data-skin="poise"] [data-arrangement][data-treat="hero-gallery"] [data-slot="gallery"] [data-slot="photo"] { border-radius: var(--poise-photo-radius); }
|
|
22256
|
+
@container rb-site (max-width: 767px) {
|
|
22257
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22258
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="frame"] { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
|
|
22259
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="copy"],
|
|
22260
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="media"],
|
|
22261
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="copy"],
|
|
22262
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="media"] { grid-column: 1 / -1; grid-row: auto; }
|
|
22263
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="media"] { order: -1; aspect-ratio: 5 / 4; max-height: none; }
|
|
22264
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before,
|
|
22265
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { display: none; }
|
|
22266
|
+
/* Phone steps fit an 18 character word on the medium step in a 358px column. The :is() matches the
|
|
22267
|
+
knob steps above in specificity, so these win on phones whether or not a headline knob is set. */
|
|
22268
|
+
[data-skin="poise"]:is(*, :scope) [data-length="short"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 2.875rem; }
|
|
22269
|
+
[data-skin="poise"]:is(*, :scope) [data-length="medium"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 2.125rem; }
|
|
22270
|
+
[data-skin="poise"]:is(*, :scope) [data-length="long"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 1.8125rem; }
|
|
22271
|
+
[data-skin="poise"]:is(*, :scope) :is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="hero-page-head"], [data-treat="hero-gallery"]) [data-slot="actions"] > * { box-sizing: border-box; flex: 1 1 100%; justify-content: center; }
|
|
22272
|
+
}
|
|
22273
|
+
}
|
|
22274
|
+
|
|
22275
|
+
/* ------------------------------------------------- Intro, photo and text */
|
|
22276
|
+
/* intro-statement and intro-photo: a large plain statement, the quieter text under it. */
|
|
22277
|
+
/* The statement sits straight in the frame; beside a photo it sits in the copy column. */
|
|
22278
|
+
[data-skin="poise"] [data-arrangement][data-treat="intro-statement"] [data-slot="frame"] > [data-slot="heading"],
|
|
22279
|
+
[data-skin="poise"] [data-arrangement][data-treat="intro-photo"] [data-slot="copy"] [data-slot="heading"] { max-width: 26em; font-family: var(--font-body); font-size: clamp(1.5rem, 2.6cqi, 2.375rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }
|
|
22280
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="intro-statement"], [data-treat="intro-photo"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); color: var(--rb-surface-muted-color); }
|
|
22281
|
+
|
|
22282
|
+
/* media-beside and media-circle: a tall rounded photo beside a heavy title and muted text. */
|
|
22283
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="frame"] { column-gap: clamp(2.5rem, 6cqi, 6.5rem); }
|
|
22284
|
+
[data-skin="poise"] [data-arrangement][data-treat="media-beside"] [data-slot="media"] [data-slot="photo"] { aspect-ratio: 4 / 5; max-height: 700px; }
|
|
22285
|
+
[data-skin="poise"] [data-arrangement][data-treat="media-circle"] [data-slot="media"] { border-radius: 50%; }
|
|
22286
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 32em; color: var(--rb-surface-muted-color); }
|
|
22287
|
+
|
|
22288
|
+
/* ---------------------------------------------------------- Feature cards */
|
|
22289
|
+
/* cards: rounded panels, four across on wide screens, the photo inset in each card. */
|
|
22290
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="cards"], [data-treat="photos-on-top"]) [data-slot="items"] { gap: 1rem; }
|
|
22291
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="photos-on-top"], [data-treat="card-row"]) [data-slot="item-media"] { width: auto; margin: 0.625rem 0.625rem 0; }
|
|
22292
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="photos-on-top"], [data-treat="card-row"]) [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 5; object-fit: cover; }
|
|
22293
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="open-columns"], [data-treat="photos-on-top"], [data-treat="card-row"]) [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.9375rem; line-height: 1.55; color: var(--rb-surface-muted-color); }
|
|
22294
|
+
|
|
22295
|
+
/* cards-lead: the lead takes the statement colour and runs larger; the rest are compact. */
|
|
22296
|
+
[data-skin="poise"] [data-arrangement][data-treat="cards-lead"] [data-slot="lead"] [data-slot="item-title"] { font-size: clamp(1.875rem, 3.4cqi, 3rem); font-weight: 800; line-height: 1; }
|
|
22297
|
+
|
|
22298
|
+
/* steps: big numerals in capsules, joined by the one rule. */
|
|
22299
|
+
[data-skin="poise"] [data-arrangement][data-treat="steps"] [data-slot="items"] { gap: 1.75rem; }
|
|
22300
|
+
[data-skin="poise"] [data-arrangement][data-treat="steps"] [data-slot="item"] { border-top: var(--poise-line); padding-top: 1.25rem; }
|
|
22301
|
+
[data-skin="poise"] [data-arrangement][data-treat="steps"] [data-slot="numeral"] { font-size: 56px; }
|
|
22302
|
+
|
|
22303
|
+
/* open-columns: no panels, the rounded photos carry it. */
|
|
22304
|
+
[data-skin="poise"] [data-arrangement][data-treat="open-columns"] [data-slot="item-media"] { margin-bottom: 1.125rem; }
|
|
22305
|
+
[data-skin="poise"] [data-arrangement][data-treat="open-columns"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 5; border-radius: var(--poise-photo-radius); }
|
|
22306
|
+
|
|
22307
|
+
/* card-row: narrow cards in a row you can scroll. */
|
|
22308
|
+
[data-skin="poise"] [data-arrangement][data-treat="card-row"] [data-slot="items"] { scroll-snap-type: x mandatory; }
|
|
22309
|
+
[data-skin="poise"] [data-arrangement][data-treat="card-row"] [data-slot="item"] { scroll-snap-align: start; }
|
|
22310
|
+
|
|
22311
|
+
/* --------------------------------------------------------- Event calendar */
|
|
22312
|
+
/* Times read big: heavy numerals in the display face. */
|
|
22313
|
+
[data-skin="poise"] [data-mode] [data-slot="time"] { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
|
|
22314
|
+
[data-skin="poise"] [data-mode] :is([data-slot="item-meta"], [data-slot="item-text"]) { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.9375rem; line-height: 1.5; color: var(--rb-surface-muted-color); }
|
|
22315
|
+
[data-skin="poise"] [data-mode] [data-slot="date"] :is([data-slot="weekday"], [data-slot="month"]) { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-muted-color); }
|
|
22316
|
+
[data-skin="poise"] [data-mode] [data-slot="date"] [data-slot="day"] { font-family: var(--font-heading); font-size: 1.875rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
|
|
22317
|
+
|
|
22318
|
+
/* rows and week-list: each session is its own rounded row with one thin edge, the date in a rounded tile. */
|
|
22319
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="list"] { display: grid; gap: 0.625rem; }
|
|
22320
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) :is([data-slot="row"], [data-slot="row-continued"]) { column-gap: 1.75rem; padding: 0.875rem 1.25rem 0.875rem 0.875rem; border: var(--poise-line); border-radius: var(--rb-skin-radius, 24px); }
|
|
22321
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="date"] { align-items: center; justify-content: center; gap: 0.375rem; width: 4.75rem; height: 4.75rem; border: var(--poise-line); border-radius: 18px; text-align: center; }
|
|
22322
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="item-title"] { font-size: 1.25rem; }
|
|
22323
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"], [data-treat="day-groups"]) [data-slot="places"] { font-size: 0.875rem; }
|
|
22324
|
+
|
|
22325
|
+
/* day-groups: the day set big in the rail, a rule over each day. */
|
|
22326
|
+
[data-skin="poise"] [data-arrangement][data-treat="day-groups"] [data-slot="group"] { border-top: var(--poise-line); }
|
|
22327
|
+
[data-skin="poise"] [data-arrangement][data-treat="day-groups"] [data-slot="group-label"] { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
|
|
22328
|
+
[data-skin="poise"] [data-arrangement][data-treat="day-groups"] [data-slot="row"] + [data-slot="row"] { border-top: var(--poise-line); }
|
|
22329
|
+
|
|
22330
|
+
/* week-columns: outlined day panels in the raised tray, each session an outlined tile that turns
|
|
22331
|
+
* dashed when full, and the date of today in a filled circle painted by the today role of the offer. */
|
|
22332
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="list"] { gap: 0.375rem; padding: 0.5rem; border-radius: var(--poise-photo-radius); }
|
|
22333
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group"] { padding: 0.625rem; border: var(--poise-line); border-radius: var(--rb-skin-radius, 24px); }
|
|
22334
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group-label"] { min-height: 3.125rem; padding: 0.25rem 0.25rem 0.625rem; border-bottom: var(--poise-line); }
|
|
22335
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group-day"] { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-muted-color); }
|
|
22336
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group-date"] { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--rb-surface-heading-color); }
|
|
22337
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group"][data-today="true"] [data-slot="group-date"] { width: 2.75rem; height: 2.75rem; border-radius: 50%; }
|
|
22338
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="row"] { padding: 0.625rem 0.75rem; border: var(--poise-line); border-radius: 16px; }
|
|
22339
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="row"][data-availability="full"] { border-style: dashed; }
|
|
22340
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="row"][data-availability="full"] :is([data-slot="time"], [data-slot="item-title"]) { color: var(--rb-surface-muted-color); }
|
|
22341
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="time"] { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; line-height: 1.15; }
|
|
22342
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="item-title"] { font-size: 0.875rem; line-height: 1.25; }
|
|
22343
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] :is([data-slot="item-meta"], [data-slot="places"]) { font-size: 0.75rem; }
|
|
22344
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="item-meta"] { color: var(--rb-surface-muted-color); }
|
|
22345
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="places"] { margin-top: 0.25rem; }
|
|
22346
|
+
[data-skin="poise"] [data-arrangement][data-treat="week-columns"] [data-slot="group-empty"] { font-size: 0.875rem; color: var(--rb-surface-muted-color); }
|
|
22347
|
+
@container rb-site (max-width: 1023px) {
|
|
22348
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22349
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="week-columns"] [data-slot="group-label"] { min-height: 0; padding: 0; border-bottom: 0; }
|
|
22350
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="week-columns"] [data-slot="time"] { font-size: 1.25rem; }
|
|
22351
|
+
}
|
|
22352
|
+
}
|
|
22353
|
+
|
|
22354
|
+
/* times-row: the session cards as a row of rounded tiles you can scroll, for a strip of the next sessions. */
|
|
22355
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="list"] { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 18.75rem); grid-template-columns: none; gap: 0.75rem; padding-bottom: 0.375rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
|
|
22356
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item"] { scroll-snap-align: start; }
|
|
22357
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item-media"] { display: none; }
|
|
22358
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item"] > [data-slot="date"] { flex-direction: row; align-items: baseline; gap: 0.5rem; margin: 0.75rem 0.75rem 0; padding: 0.625rem 0.875rem; border-radius: 16px; }
|
|
22359
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item"] > [data-slot="date"] [data-slot="day"] { font-size: 2.125rem; }
|
|
22360
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item"] > [data-slot="date"] :is([data-slot="weekday"], [data-slot="month"]) { color: inherit; }
|
|
22361
|
+
/* spotlight: the date as a pill inset in the card under the photo, like the session cards, so it never meets the section. */
|
|
22362
|
+
[data-skin="poise"] [data-arrangement][data-treat="spotlight"] [data-slot="item"] > [data-slot="date"] { flex-direction: row; align-items: baseline; gap: 0.5rem; margin: 0.75rem 0.75rem 0; padding: 0.625rem 0.875rem; border-radius: 16px; }
|
|
22363
|
+
[data-skin="poise"] [data-arrangement][data-treat="spotlight"] [data-slot="item"] > [data-slot="date"] :is([data-slot="weekday"], [data-slot="month"]) { color: inherit; }
|
|
22364
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item-body"] { gap: 0.25rem; padding: 0.875rem 1.125rem 1rem; }
|
|
22365
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item-title"] { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
|
|
22366
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item-text"] { display: none; }
|
|
22367
|
+
[data-skin="poise"] [data-arrangement][data-treat="times-row"] [data-slot="item-actions"] { padding-top: 0.875rem; }
|
|
22368
|
+
|
|
22369
|
+
/* Week view controls: outlined pills beside the date range. */
|
|
22370
|
+
[data-skin="poise"] [data-arrangement] [data-slot="navigation"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
|
|
22371
|
+
[data-skin="poise"] [data-arrangement] [data-slot="navigation"] [data-slot="control"] { min-height: 44px; padding: 0.5rem 1rem; border: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-text-color); background: transparent; color: var(--rb-surface-text-color); font: 700 0.9375rem/1.2 var(--font-body); }
|
|
22372
|
+
[data-skin="poise"] [data-arrangement] [data-slot="navigation"] [data-slot="group-label"] { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
|
|
22373
|
+
@container rb-site (max-width: 767px) {
|
|
22374
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22375
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) :is([data-slot="row"], [data-slot="row-continued"]) { padding: 0.875rem; }
|
|
22376
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="date"] { width: 4rem; height: 5rem; }
|
|
22377
|
+
}
|
|
22378
|
+
}
|
|
22379
|
+
|
|
22380
|
+
/* ---------------------------------------------------------- Event details */
|
|
22381
|
+
/* event-header: the booking hero. The ticket panel holds the price, places and the Book button together. */
|
|
22382
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="headline"] { font-size: clamp(2.5rem, 6cqi, 5.5rem); }
|
|
22383
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="copy"] [data-slot="facts"] > * { padding-top: 0.625rem; border-top: var(--poise-line); }
|
|
22384
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="fact-label"] { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-muted-color); }
|
|
22385
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="fact-value"] { margin: 0; font-size: 1.0625rem; font-weight: 600; }
|
|
22386
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="layout"] > [data-slot="panel"] { padding: clamp(1.375rem, 2.5cqi, 1.875rem); border-top: 0; border-radius: var(--poise-photo-radius); }
|
|
22387
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="figure-value"] { font-size: clamp(3.5rem, 6cqi, 5rem); line-height: 0.9; letter-spacing: -0.045em; }
|
|
22388
|
+
[data-skin="poise"] [data-arrangement][data-treat="event-header"] [data-slot="figure-label"] { font-size: 0.875rem; font-weight: 500; color: var(--rb-surface-muted-color); }
|
|
22389
|
+
|
|
22390
|
+
/* details-panel: one rounded panel, facts as ruled rows with the label on the left. */
|
|
22391
|
+
[data-skin="poise"] [data-arrangement][data-treat="details-panel"] [data-slot="panel"] { padding: clamp(1.5rem, 3cqi, 2rem); border: 0; border-radius: var(--poise-photo-radius); }
|
|
22392
|
+
[data-skin="poise"] [data-arrangement][data-treat="details-panel"] [data-slot="panel-heading"] { margin: 0 0 1rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
|
|
22393
|
+
[data-skin="poise"] [data-arrangement][data-treat="details-panel"] [data-slot="facts"] > * { margin: 0; padding: 0.75rem 0; border-top: var(--poise-line); }
|
|
22394
|
+
|
|
22395
|
+
/* ----------------------------------------------------------- Testimonials */
|
|
22396
|
+
/* quote-cards, quote-row and the rest of quote-lead: rounded panels led by a heavy quote mark. */
|
|
22397
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-row"], [data-treat="quote-lead"]) [data-slot="item"] { gap: 0.75rem; padding: 1.75rem 1.625rem 1.625rem; }
|
|
22398
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-row"]) [data-slot="item"] > [data-slot="quote"]::before { content: "\\201C"; display: block; height: 2.25rem; margin-bottom: 0.75rem; font-family: var(--font-heading); font-size: 80px; font-weight: 800; line-height: 0.7; color: var(--rb-surface-mark-color); }
|
|
22399
|
+
[data-skin="poise"] [data-arrangement] [data-slot="quote"] { font-size: 1.125rem; font-weight: 500; line-height: 1.55; }
|
|
22400
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-row"], [data-treat="quote-lead"]) [data-slot="item"] > [data-slot="attribution"] { margin-top: auto; padding-top: 1.125rem; border-top: var(--poise-line); }
|
|
22401
|
+
[data-skin="poise"] [data-arrangement] [data-slot="attribution"] [data-slot="item-title"] { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
|
|
22402
|
+
[data-skin="poise"] [data-arrangement] [data-slot="attribution"] [data-slot="item-meta"] { font-size: 0.875rem; color: var(--rb-surface-muted-color); }
|
|
22403
|
+
|
|
22404
|
+
/* quote-lead and quote-single: the big quote set in the display face on the ground. */
|
|
22405
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="quote-lead"], [data-treat="quote-single"]) :is([data-slot="lead"], [data-slot="items"]) > [data-slot="quote"],
|
|
22406
|
+
[data-skin="poise"] [data-arrangement][data-treat="quote-single"] [data-slot="quote"] { max-width: 61rem; font-family: var(--font-heading); font-size: clamp(1.625rem, 3.2cqi, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: pretty; }
|
|
22407
|
+
[data-skin="poise"] [data-arrangement][data-treat="quote-lead"] [data-slot="lead"] > [data-slot="quote"]::before,
|
|
22408
|
+
[data-skin="poise"] [data-arrangement][data-treat="quote-single"] [data-slot="quote"]::before { content: "\\201C"; display: block; height: 3.5rem; font-family: var(--font-heading); font-size: 120px; font-weight: 800; line-height: 0.7; color: var(--rb-surface-mark-color); }
|
|
22409
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-lead"]) [data-slot="items"] { gap: 1rem; }
|
|
22410
|
+
|
|
22411
|
+
/* The quote arrows: outlined circles. */
|
|
22412
|
+
[data-skin="poise"] [data-arrangement] [data-slot="controls"] [data-slot="control"] { width: 3rem; height: 3rem; border: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-text-color); border-radius: 50%; }
|
|
22413
|
+
|
|
22414
|
+
/* ------------------------------------------------------------------- FAQ */
|
|
22415
|
+
/* faq-beside, faq-under, faq-columns: each question is a rounded panel with a round marker. */
|
|
22416
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="items"] { display: grid; gap: 0.625rem; }
|
|
22417
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="item"] > * { margin: 0; }
|
|
22418
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) :has(> [data-slot="item-title"]) { box-sizing: border-box; min-height: 4.5rem; padding: 1.125rem 1.25rem 1.125rem 1.5rem; gap: 1.25rem; }
|
|
22419
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"], [data-treat="faq-open"]) [data-slot="items"] [data-slot="item-title"] { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
|
|
22420
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="icon"] { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; margin: 0; border: var(--poise-line); border-radius: 50%; color: var(--rb-surface-text-color); }
|
|
22421
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"], [data-treat="faq-open"]) [data-slot="items"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 40em; padding: 0 1.5rem 1.5rem; color: var(--rb-surface-muted-color); line-height: 1.6; }
|
|
22422
|
+
[data-skin="poise"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { padding-block: 1.25rem; border-top: var(--poise-line); }
|
|
22423
|
+
[data-skin="poise"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] [data-slot="item-text"] { padding: 0.5rem 0 0; }
|
|
22424
|
+
|
|
22425
|
+
/* ------------------------------------------------------- Call to action */
|
|
22426
|
+
/* cta-left: the centred Look, set left in Poise. A heavy title, a line of text, the buttons under it. */
|
|
22427
|
+
/* The section has no page container, so the copy takes the page column itself and lines up with the sections around it. */
|
|
22428
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] [data-slot="copy"] { box-sizing: border-box; width: 100%; max-width: var(--rb-skin-wrap, 1280px); margin-inline: auto; padding-inline: clamp(20px, 4cqi, var(--rb-skin-margin, 40px)); justify-items: start; text-align: start; }
|
|
22429
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] [data-slot="head"] { justify-items: start; margin: 0; text-align: start; }
|
|
22430
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] :is([data-slot="heading"], [data-slot="intro"]) { text-align: start; }
|
|
22431
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] [data-slot="heading"] { font-size: clamp(2.5rem, 6cqi, 5.5rem); line-height: 0.98; }
|
|
22432
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] [data-slot="intro"] { max-width: 34em; margin-inline: 0; font-size: clamp(1.125rem, 1.45cqi, 1.3125rem); color: var(--rb-surface-text-color); }
|
|
22433
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-left"] [data-slot="actions"] { justify-content: flex-start; margin-top: 1rem; gap: 0.75rem 0.875rem; }
|
|
22434
|
+
|
|
22435
|
+
/* cta-figure: the Poise numeral at its loudest. */
|
|
22436
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-size: clamp(5rem, 15cqi, 15.5rem); line-height: 0.85; letter-spacing: -0.05em; }
|
|
22437
|
+
[data-skin="poise"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { font-size: 1rem; font-weight: 700; }
|
|
22438
|
+
@container rb-site (max-width: 639px) {
|
|
22439
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22440
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="cta-left"] [data-slot="actions"] > * { box-sizing: border-box; flex: 1 1 100%; justify-content: center; }
|
|
22441
|
+
}
|
|
22442
|
+
}
|
|
22443
|
+
|
|
22444
|
+
/* ---------------------------------------------------- Newsletter and form */
|
|
22445
|
+
/* signup-beside and signup-row: the email field and button share one pill. */
|
|
22446
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="signup-beside"], [data-treat="signup-row"]) [data-slot="layout"] > [data-slot="panel"] { padding: clamp(1.25rem, 2.5cqi, 1.75rem); }
|
|
22447
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="signup-beside"], [data-treat="signup-row"]) [data-slot="caption"] { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--rb-surface-muted-color); }
|
|
22448
|
+
|
|
22449
|
+
/* signup-frame: the signup inside one rounded panel, filled by the frame role of the offer (statement). */
|
|
22450
|
+
[data-skin="poise"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"] { padding: clamp(1.5rem, 4cqi, 3.5rem); border-radius: var(--poise-photo-radius); }
|
|
22451
|
+
|
|
22452
|
+
/* form-beside and form-below: the form on a rounded panel, a step rounder than cards. */
|
|
22453
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="form-beside"], [data-treat="form-below"]) [data-slot="panel"] { box-sizing: border-box; padding: clamp(1.25rem, 3cqi, 2.5rem); border-radius: var(--poise-photo-radius); }
|
|
22454
|
+
[data-skin="poise"] [data-arrangement][data-treat="form-below"] [data-slot="panel"] { max-width: 47.5rem; margin-top: clamp(1.75rem, 4cqi, 2.75rem); }
|
|
22455
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="form-beside"], [data-treat="form-below"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); color: var(--rb-surface-muted-color); }
|
|
22456
|
+
|
|
22457
|
+
/* -------------------------------------------------------------- Body text */
|
|
22458
|
+
/* body-reading, body-beside, body-opening: an even reading measure, heavy subheadings, a quote on its own panel line. */
|
|
22459
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] { font-size: 1.125rem; line-height: 1.7; }
|
|
22460
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="heading"] { margin: 1.8em 0 0.6em; font-size: clamp(1.75rem, 2.8cqi, 2.375rem); line-height: 1.08; letter-spacing: -0.025em; }
|
|
22461
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="quote"] { margin: 1.8em 0; padding: 0 0 0 1.5rem; border-left: var(--rb-skin-mark-weight, 8px) solid var(--rb-surface-mark-color); font-family: var(--font-heading); font-size: clamp(1.375rem, 2.2cqi, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
|
|
22462
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="photo"] { border-radius: var(--poise-photo-radius); }
|
|
22463
|
+
[data-skin="poise"] [data-arrangement][data-treat="body-reading"] [data-slot="copy"] { max-width: 38em; }
|
|
22464
|
+
|
|
22465
|
+
/* ---------------------------------------------------------- Image gallery */
|
|
22466
|
+
/* gallery-lead, gallery-tiles, gallery-captions: rounded photos, captions as small pills. */
|
|
22467
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="gallery-lead"], [data-treat="gallery-tiles"], [data-treat="gallery-captions"]) [data-slot="items"] { gap: clamp(0.625rem, 1.2cqi, 0.875rem); }
|
|
22468
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="gallery-lead"], [data-treat="gallery-tiles"], [data-treat="gallery-captions"]) [data-slot="media"] { border-radius: var(--rb-skin-radius, 24px); }
|
|
22469
|
+
[data-skin="poise"] [data-arrangement][data-treat="gallery-captions"] [data-slot="caption"] { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; font-size: 0.875rem; font-weight: 600; }
|
|
22470
|
+
[data-skin="poise"] [data-arrangement][data-treat="gallery-captions"] [data-slot="caption"]::before { content: ""; flex: none; width: var(--rb-skin-mark-length, 22px); height: var(--rb-skin-mark-weight, 8px); border-radius: 999px; background: var(--rb-surface-mark-color); }
|
|
22471
|
+
|
|
22472
|
+
/* -------------------------------------------------------------------- Map */
|
|
22473
|
+
/* map-beside, map-wide, map-entrance, map-above: the map in a rounded frame, details on rounded panels. */
|
|
22474
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) :has(> [data-slot="panel"]) > :not([data-slot]) { overflow: hidden; border-radius: var(--poise-photo-radius); }
|
|
22475
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) [data-slot="panel"] { box-sizing: border-box; padding: clamp(1.375rem, 2.5cqi, 1.75rem); border-radius: var(--rb-skin-radius, 24px); }
|
|
22476
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) [data-slot="headline"] { font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
|
|
22477
|
+
|
|
22478
|
+
/* ------------------------------------------------------------------- Team */
|
|
22479
|
+
/* team-bio and team-portraits: rounded panels, the portrait inset, a heavy name and the role as a pill. */
|
|
22480
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-card-list] { gap: 1rem; }
|
|
22481
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-card-list-item] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 5; border-radius: var(--poise-inner-radius); object-fit: cover; }
|
|
22482
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-card-list-item] [data-slot="item-title"] { font-size: clamp(1.625rem, 2.6cqi, 2.125rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
|
|
22483
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.9375rem; color: var(--rb-surface-muted-color); }
|
|
22484
|
+
[data-skin="poise"] [data-arrangement][data-treat="team-portraits"] [data-card-list-item][data-surface]:not([data-surface="section"]) { padding: 0.625rem; }
|
|
22485
|
+
|
|
22486
|
+
/* ----------------------------------------------------------------- Prices */
|
|
22487
|
+
/* prices-featured, prices: rounded cards with a big heavy price; capsules before each fact. */
|
|
22488
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-card-list] { gap: 1rem; }
|
|
22489
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) [data-slot="price"] { align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
|
|
22490
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) [data-slot="price-amount"] { font-size: clamp(3.25rem, 5cqi, 4.25rem); line-height: 0.9; letter-spacing: -0.045em; }
|
|
22491
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) :is([data-slot="price-unit"], [data-slot="price-note"]) { font-size: 0.9375rem; font-weight: 600; color: var(--rb-surface-muted-color); }
|
|
22492
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="facts"] { display: grid; gap: 0.625rem; padding-top: 1.125rem; border-top: var(--poise-line); }
|
|
22493
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="facts"] > * { margin: 0; padding: 0; border: 0; }
|
|
22494
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="fact-value"] { position: relative; margin: 0; padding-left: 1.875rem; font-size: 0.9375rem; }
|
|
22495
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="fact-value"]::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 1rem; height: var(--rb-skin-mark-weight, 8px); border-radius: 999px; background: var(--rb-surface-mark-color); }
|
|
22496
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="item-actions"] > * { box-sizing: border-box; width: 100%; justify-content: center; }
|
|
22497
|
+
|
|
22498
|
+
/* -------------------------------------------------------------- Offerings */
|
|
22499
|
+
/* plates: rounded booking cards, no offset plate. The next dates are pills under a rule. */
|
|
22500
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-card-list] { gap: 0.75rem; }
|
|
22501
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="item-media"] { margin: 0.75rem; }
|
|
22502
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 16 / 9; object-fit: cover; }
|
|
22503
|
+
/* The plate sits right behind the photo here (no offset), so it takes the photo corners and only shows when there is no photo. */
|
|
22504
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="item-media"]::before { border-radius: var(--poise-inner-radius); }
|
|
22505
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.9375rem; color: var(--rb-surface-muted-color); }
|
|
22506
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="dates"] { display: grid; gap: 0.375rem; margin: 0.5rem 0 0; padding: 0.875rem 0 0; border-top: var(--poise-line); list-style: none; }
|
|
22507
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="dates"] [data-slot="date"] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.625rem; margin: 0; padding: 0.5rem 0.875rem; border: var(--poise-line); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
|
|
22508
|
+
[data-skin="poise"] [data-arrangement][data-treat="plates"] [data-slot="date-places"] { font-size: 0.75rem; color: var(--rb-surface-muted-color); }
|
|
22509
|
+
|
|
22510
|
+
/* --------------------------------------------------------- Month calendar */
|
|
22511
|
+
/* month-grid and month-day: rounded day cells, heavy day numbers, today ringed in the text colour. */
|
|
22512
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="grid"] { gap: 0.25rem; }
|
|
22513
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="group-label"] { padding: 0.5rem 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rb-surface-muted-color); }
|
|
22514
|
+
[data-skin="poise"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] { min-height: 7rem; padding: 0.5rem; border: var(--poise-line); border-radius: 18px; }
|
|
22515
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"] :is([data-slot="date-label"], [data-slot="control"]) { border-radius: 50%; font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
22516
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"][data-today="true"] :is([data-slot="date-label"], [data-slot="control"]) { box-shadow: inset 0 0 0 var(--rb-skin-rule, 1.5px) var(--rb-surface-text-color); }
|
|
22517
|
+
[data-skin="poise"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"][data-other-month="true"] :is([data-slot="date-label"], [data-slot="control"]) { font-weight: 500; }
|
|
22518
|
+
[data-skin="poise"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="item"] { display: block; margin-bottom: 0.25rem; padding: 0.3125rem 0.5625rem; border: var(--poise-line); border-radius: 10px; overflow: hidden; font-size: 0.75rem; font-weight: 600; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
|
|
22519
|
+
[data-skin="poise"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="time"] { margin-right: 0.25rem; font-size: inherit; letter-spacing: 0; }
|
|
22520
|
+
[data-skin="poise"] [data-arrangement][data-treat="month-grid"] [data-slot="more"] { font-size: 0.75rem; color: var(--rb-surface-muted-color); }
|
|
22521
|
+
@container rb-site (max-width: 767px) {
|
|
22522
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22523
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 0 3px; min-height: 3.5rem; padding: 0.375rem 0.125rem; border-radius: 14px; }
|
|
22524
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] :is([data-slot="date-label"], [data-slot="control"]) { flex: 0 0 100%; }
|
|
22525
|
+
[data-skin="poise"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="item"] { flex: none; width: 0.375rem; height: 0.375rem; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--rb-surface-mark-color); font-size: 0; }
|
|
22526
|
+
}
|
|
22527
|
+
}
|
|
22528
|
+
|
|
22529
|
+
/* =============================================================================
|
|
22530
|
+
* Haven skin (issue 1661).
|
|
22531
|
+
*
|
|
22532
|
+
* Soft and reassuring, for massage, therapy and gentle practices. The one bold
|
|
22533
|
+
* device is the pebble: soft blob shapes behind and around photos, drifting off
|
|
22534
|
+
* the edges of the call to action band, and shrunk to small marks beside eyebrows,
|
|
22535
|
+
* step numbers and calendar dates. Everything else stays plain: rounded cards,
|
|
22536
|
+
* pill shapes, one body size and no rules between sections.
|
|
22537
|
+
*
|
|
22538
|
+
* Bounded skin: only the shared hooks and slots, colours only from tokens and
|
|
22539
|
+
* resolved-surface variables, measurements from the --rb-skin-* tokens Haven
|
|
22540
|
+
* declares (radius, rule, mark-length, mark-weight, plate, gutter, copy-gap,
|
|
22541
|
+
* stack-gap, wrap).
|
|
22542
|
+
*
|
|
22543
|
+
* Pebbles are pseudo-elements on existing slots with blob border-radius values.
|
|
22544
|
+
* They never sit under text: behind photos (the media slots), in the margins of
|
|
22545
|
+
* a band, or beside a mark. Each ground sets its own two pebble colours through
|
|
22546
|
+
* variable blocks keyed on data-surface. Mixed (see-through) colours are used
|
|
22547
|
+
* only on the media slots, where the contract allows them.
|
|
22548
|
+
*
|
|
22549
|
+
* How this file is organised:
|
|
22550
|
+
* 1. Local measurements and pebble colours per ground.
|
|
22551
|
+
* 2. Section chrome and type: padding, section heads, headline steps, the eyebrow mark.
|
|
22552
|
+
* 3. Shared pieces: soft cards, pebble-cut photos, pills, fields, links, numerals.
|
|
22553
|
+
* 4. Blocks, one banner each: hero, intro and photo and text, feature cards, event
|
|
22554
|
+
* calendar, event details, testimonials, FAQ, call to action, newsletter and form,
|
|
22555
|
+
* body text, gallery, map, team, prices, offerings, month calendar.
|
|
22556
|
+
* Treatments are addressed as [data-skin="haven"] [data-treat="<name>"].
|
|
22557
|
+
* ============================================================================= */
|
|
22558
|
+
|
|
22559
|
+
/* ------------------------------------------ 1. Local measurements and pebbles */
|
|
22560
|
+
/* Surface variables live on slots, so the local properties are defined on slots too. */
|
|
22561
|
+
[data-skin="haven"] [data-arrangement] [data-slot] {
|
|
22562
|
+
--haven-line: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-line-color);
|
|
22563
|
+
--haven-small-radius: calc(var(--rb-skin-radius, 30px) - 12px);
|
|
22564
|
+
--haven-lift: 0 10px 30px rgb(var(--tb-shadow) / 9%);
|
|
22565
|
+
/* The photo cut keeps short straight stretches, so a 4:5 or square photo loses mostly its corners. */
|
|
22566
|
+
--haven-photo-shape: 40% 48% 44% 50% / 32% 34% 52% 56%;
|
|
22567
|
+
--haven-mark-shape: 58% 42% 52% 48% / 50% 58% 42% 50%;
|
|
22568
|
+
--haven-pebble-a: 63% 37% 54% 46% / 55% 48% 52% 45%;
|
|
22569
|
+
--haven-pebble-b: 41% 59% 45% 55% / 47% 39% 61% 53%;
|
|
22570
|
+
--haven-pebble-c: 52% 48% 38% 62% / 60% 44% 56% 40%;
|
|
22571
|
+
/* Page and surface grounds: the wash colour and the accent. */
|
|
22572
|
+
--haven-pebble-1: rgb(var(--tb-secondary));
|
|
22573
|
+
--haven-pebble-2: rgb(var(--tb-accent));
|
|
22574
|
+
--haven-pebble-soft: rgb(var(--tb-accent) / 70%);
|
|
22575
|
+
}
|
|
22576
|
+
/* The tint ground: surface and accent pebbles. */
|
|
22577
|
+
[data-skin="haven"] [data-arrangement][data-surface="surfaceAlt"] [data-slot] { --haven-pebble-1: rgb(var(--tb-surface)); }
|
|
22578
|
+
/* The wash ground: the tint colour and accent. */
|
|
22579
|
+
[data-skin="haven"] [data-arrangement][data-surface="secondary"] [data-slot] { --haven-pebble-1: rgb(var(--tb-surfaceAlt)); }
|
|
22580
|
+
/* The brand ground: both pebbles in the line colour of the ground, so they stay quiet. */
|
|
22581
|
+
[data-skin="haven"] [data-arrangement][data-surface="primary"] [data-slot] { --haven-pebble-1: var(--rb-surface-line-color); --haven-pebble-2: var(--rb-surface-line-color); --haven-pebble-soft: var(--rb-surface-line-color); }
|
|
22582
|
+
/* A card on any ground goes back to the page pebbles. */
|
|
22583
|
+
[data-skin="haven"] [data-arrangement] [data-slot]:is([data-surface="surface"], [data-surface="background"]),
|
|
22584
|
+
[data-skin="haven"] [data-arrangement] :is([data-surface="surface"], [data-surface="background"]) [data-slot] { --haven-pebble-1: rgb(var(--tb-secondary)); --haven-pebble-2: rgb(var(--tb-accent)); --haven-pebble-soft: rgb(var(--tb-accent) / 70%); }
|
|
22585
|
+
|
|
22586
|
+
/* ---------------------------------------------- 2. Section chrome and type */
|
|
22587
|
+
/* Bands breathe; pebbles that drift past a band edge are clipped to it. */
|
|
22588
|
+
[data-skin="haven"] [data-arrangement] [data-slot="section"],
|
|
22589
|
+
[data-skin="haven"] :is([data-slot="schedule-section"], [data-slot="shop-section"]) { --rb-section-pad-y: clamp(4rem, 8.5cqi, 8rem); }
|
|
22590
|
+
[data-skin="haven"] [data-arrangement] [data-slot="section"] { position: relative; isolation: isolate; overflow: clip; }
|
|
22591
|
+
[data-skin="haven"] [data-arrangement][data-length] [data-slot="section"] { --rb-section-pad-y: clamp(2rem, 4.5cqi, 4rem); }
|
|
22592
|
+
|
|
22593
|
+
[data-skin="haven"] [data-arrangement] :is([data-slot="headline"], [data-slot="heading"], [data-slot="panel-heading"], [data-slot="item-title"]) {
|
|
22594
|
+
font-family: var(--font-heading);
|
|
22595
|
+
font-weight: 700;
|
|
22596
|
+
letter-spacing: -0.015em;
|
|
22597
|
+
}
|
|
22598
|
+
[data-skin="haven"] [data-arrangement] [data-slot="item-title"] { font-size: 1.3125rem; line-height: 1.2; }
|
|
22599
|
+
[data-skin="haven"] [data-arrangement] [data-slot="headline"] { font-weight: 750; letter-spacing: -0.025em; line-height: 1.05; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 14 6 6; text-wrap: balance; }
|
|
22600
|
+
|
|
22601
|
+
/* Section heads: a soft title with the muted line under it. */
|
|
22602
|
+
[data-skin="haven"] [data-arrangement] [data-slot="head"] { gap: 1rem; max-width: 40rem; margin-bottom: clamp(2.25rem, 4.5cqi, 3.5rem); }
|
|
22603
|
+
[data-skin="haven"] [data-arrangement] [data-slot="heading"] { font-size: clamp(1.9rem, 3.4cqi, 3rem); line-height: 1.12; text-wrap: balance; overflow-wrap: break-word; }
|
|
22604
|
+
[data-skin="haven"] [data-arrangement] [data-slot="head"] [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 36em; line-height: 1.65; color: var(--rb-surface-muted-color); }
|
|
22605
|
+
[data-skin="haven"] [data-arrangement] [data-slot="lede"] { max-width: 34em; font-size: clamp(1.1rem, 1.35cqi, 1.28rem); line-height: 1.6; }
|
|
22606
|
+
|
|
22607
|
+
/* The eyebrow: a short line in the heading face, led by a small pebble mark. */
|
|
22608
|
+
[data-skin="haven"] [data-arrangement] [data-slot="eyebrow"] { display: inline-flex; align-items: center; gap: 0.625rem; font: 700 0.95rem/1.4 var(--font-heading); letter-spacing: 0; text-transform: none; color: var(--rb-surface-muted-color); }
|
|
22609
|
+
[data-skin="haven"] [data-arrangement] [data-slot="eyebrow"]::before { content: ""; flex: none; width: var(--rb-skin-mark-length, 14px); height: var(--rb-skin-mark-weight, 12px); border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22610
|
+
|
|
22611
|
+
/* Headline steps: the length class and the knob pick the step, the browser never measures. */
|
|
22612
|
+
[data-skin="haven"] [data-length="short"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(2.75rem, 6.2cqi, 5.25rem); }
|
|
22613
|
+
[data-skin="haven"] [data-length="short"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22614
|
+
[data-skin="haven"] [data-length="medium"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(2.35rem, 4.9cqi, 4.25rem); }
|
|
22615
|
+
[data-skin="haven"] [data-length="short"][data-knob-headline="quiet"] [data-slot="headline"],
|
|
22616
|
+
[data-skin="haven"] [data-length="medium"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22617
|
+
[data-skin="haven"] [data-length="long"][data-knob-headline="display"] [data-slot="headline"] { font-size: clamp(1.9rem, 3.5cqi, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
|
|
22618
|
+
[data-skin="haven"] [data-length="medium"][data-knob-headline="quiet"] [data-slot="headline"],
|
|
22619
|
+
[data-skin="haven"] [data-length="long"][data-knob-headline="auto"] [data-slot="headline"],
|
|
22620
|
+
[data-skin="haven"] [data-length="long"][data-knob-headline="quiet"] [data-slot="headline"] { font-size: clamp(1.6rem, 2.4cqi, 2.125rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
|
|
22621
|
+
|
|
22622
|
+
/* ------------------------------------------------------- 3. Shared pieces */
|
|
22623
|
+
/* Cards: an item or panel that owns a surface is a soft card with the large radius. */
|
|
22624
|
+
[data-skin="haven"] [data-arrangement] :is([data-slot="item"], [data-slot="lead"], [data-slot="panel"])[data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 30px); overflow: hidden; }
|
|
22625
|
+
[data-skin="haven"] [data-arrangement] [data-card-list-item][data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 30px); overflow: hidden; }
|
|
22626
|
+
[data-skin="haven"] [data-arrangement] :is([data-slot="list"], [data-slot="items"])[data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 30px); }
|
|
22627
|
+
[data-skin="haven"] [data-arrangement] [data-card-list][data-surface]:not([data-surface="section"]) { border-radius: var(--rb-skin-radius, 30px); }
|
|
22628
|
+
|
|
22629
|
+
/* Photos: rounded by default. The media slot holds up to two pebbles behind its photo. */
|
|
22630
|
+
[data-skin="haven"] [data-arrangement] [data-slot="media"] { isolation: isolate; border-radius: var(--rb-skin-radius, 30px); }
|
|
22631
|
+
[data-skin="haven"] [data-arrangement] [data-slot="media"] [data-slot="photo"] { border-radius: var(--rb-skin-radius, 30px); }
|
|
22632
|
+
[data-skin="haven"] [data-arrangement] [data-slot="item-media"] [data-slot="photo"] { border-radius: var(--haven-small-radius); }
|
|
22633
|
+
|
|
22634
|
+
/* The sticker and small facts: pills. The sticker takes its paint from the highlight role and lifts off the photo. */
|
|
22635
|
+
[data-skin="haven"] [data-arrangement] [data-slot="sticker"] { display: inline-flex; align-items: center; gap: 0.75rem; max-width: 17.5rem; padding: 0.625rem 1.375rem 0.625rem 0.75rem; border-radius: 999px; font: 700 0.95rem/1.3 var(--font-heading); box-shadow: var(--haven-lift); }
|
|
22636
|
+
[data-skin="haven"] [data-arrangement] [data-slot="sticker"]::before { content: ""; flex: none; width: 2rem; height: 1.75rem; border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22637
|
+
[data-skin="haven"] [data-arrangement] [data-slot="chip"] { display: inline-flex; align-items: center; min-height: 1.875rem; padding: 0.125rem 0.75rem; border: var(--haven-line); border-radius: 999px; background: none; font-size: 0.85rem; font-weight: 700; line-height: 1.4; white-space: nowrap; color: var(--rb-surface-text-color); }
|
|
22638
|
+
[data-skin="haven"] [data-arrangement] [data-event-places] { font-weight: 700; white-space: nowrap; }
|
|
22639
|
+
|
|
22640
|
+
/* Fields: soft corners with the small radius. */
|
|
22641
|
+
[data-skin="haven"] [data-arrangement] [data-slot="control"] { border: var(--haven-line); border-radius: var(--haven-small-radius); }
|
|
22642
|
+
[data-skin="haven"] [data-arrangement] [data-slot="control"]:focus-visible { outline: 3px solid var(--rb-surface-text-color); outline-offset: 2px; }
|
|
22643
|
+
[data-skin="haven"] [data-arrangement] [data-slot="fact-label"] { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; }
|
|
22644
|
+
|
|
22645
|
+
/* Links in running text: bold, with a thick underline in the accent pebble colour. */
|
|
22646
|
+
[data-skin="haven"] [data-arrangement] [data-control="link"] { font-weight: 700; text-decoration-line: underline; text-decoration-color: var(--haven-pebble-2); text-decoration-thickness: 3px; text-underline-offset: 6px; }
|
|
22647
|
+
[data-skin="haven"] [data-arrangement] [data-slot="item-title"] > :focus-visible { outline: 3px solid var(--rb-surface-text-color); outline-offset: 3px; border-radius: 8px; }
|
|
22648
|
+
|
|
22649
|
+
/* Card numerals: set in the text colour with a small pebble mark beside them, never under them. */
|
|
22650
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="steps"], [data-treat="index"], [data-treat="cards"], [data-treat="cards-lead"], [data-treat="open-columns"]) [data-slot="numeral"] { display: inline-flex; align-items: center; gap: 0.625rem; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 750; line-height: 1; color: var(--rb-surface-text-color); }
|
|
22651
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="steps"], [data-treat="index"], [data-treat="cards"], [data-treat="cards-lead"], [data-treat="open-columns"]) [data-slot="numeral"]::after { content: ""; order: -1; flex: none; width: var(--rb-skin-mark-length, 14px); height: var(--rb-skin-mark-weight, 12px); border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22652
|
+
|
|
22653
|
+
/* ------------------------------------------------------------------- Hero */
|
|
22654
|
+
/* hero-split: copy beside a pebble-cut photo, a big pebble behind it and a small one over the corner. */
|
|
22655
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"] [data-slot="frame"] { column-gap: clamp(2.5rem, 6cqi, 6rem); align-items: center; }
|
|
22656
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"] [data-slot="copy"] { grid-column: 1 / 7; }
|
|
22657
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"] [data-slot="media"] { grid-column: 7 / 13; aspect-ratio: 4 / 4.7; max-height: 680px; max-width: none; margin: 2rem 1.75rem 2rem 2.5rem; border-radius: 0; }
|
|
22658
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="copy"] { grid-column: 7 / 13; }
|
|
22659
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="media"] { grid-column: 1 / 7; }
|
|
22660
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="intro-photo"], [data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"] [data-slot="photo"] { border-radius: var(--haven-photo-shape); }
|
|
22661
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"]:is([data-knob-image-shape="square"], [data-knob-image-shape="rounded"], [data-knob-image-shape="arch"]) [data-slot="media"] [data-slot="photo"] { border-radius: var(--rb-skin-radius, 30px); }
|
|
22662
|
+
|
|
22663
|
+
/* The pebbles behind photos. The media slot is isolated, so they sit under the photo and over the ground. */
|
|
22664
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="intro-photo"], [data-treat="media-beside"], [data-treat="media-circle"], [data-treat="map-entrance"]) [data-slot="media"]::before,
|
|
22665
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"]::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
|
|
22666
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"] [data-slot="media"]::before { inset: 14% 6% -6% -8%; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-1); }
|
|
22667
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"] [data-slot="media"]::after { top: -2rem; right: -1.75rem; width: 32%; aspect-ratio: 1; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-soft); }
|
|
22668
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"]) [data-slot="media"] [data-slot="sticker"] { position: absolute; z-index: 1; left: -1.5rem; bottom: 18%; }
|
|
22669
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="hero-page-head"], [data-treat="hero-framed"]) [data-slot="actions"] { gap: 0.75rem 0.875rem; margin-top: 1rem; }
|
|
22670
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"]) [data-slot="caption"] { font-size: 0.9rem; color: var(--rb-surface-muted-color); }
|
|
22671
|
+
|
|
22672
|
+
/* With no photo: the text centred between two drifting pebbles in the band margins. */
|
|
22673
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="copy"] { grid-column: 1 / -1; justify-self: center; max-width: 52rem; text-align: center; }
|
|
22674
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="lede"] { margin-inline: auto; }
|
|
22675
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="actions"] { justify-content: center; }
|
|
22676
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::before,
|
|
22677
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::after,
|
|
22678
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::before,
|
|
22679
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none; }
|
|
22680
|
+
/* Mostly past the page edge, so only the outer third shows in the side margin and never reaches the centred text. */
|
|
22681
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::before { left: 0; top: 40%; width: clamp(10rem, 22cqi, 24rem); translate: -72% -50%; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-1); }
|
|
22682
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::after { right: 0; top: 70%; width: clamp(8rem, 16cqi, 17rem); translate: 68% -50%; border-radius: var(--haven-pebble-b); background: var(--haven-pebble-2); }
|
|
22683
|
+
|
|
22684
|
+
/* hero-headline-row: the headline across the page, then text beside a rounded photo with pebbles behind. */
|
|
22685
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-headline-row"] [data-slot="media"] { aspect-ratio: 16 / 10; margin: 1.5rem 1.25rem 2rem 0; }
|
|
22686
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-headline-row"] [data-slot="media"]::before { left: -1.5rem; bottom: -2rem; width: 58%; aspect-ratio: 1.3; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-1); }
|
|
22687
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-headline-row"] [data-slot="media"]::after { top: -1.5rem; right: -1.25rem; width: 20%; aspect-ratio: 1; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-soft); }
|
|
22688
|
+
|
|
22689
|
+
/* hero-page-head: the title on its own, with two pebbles on the right on wider screens. */
|
|
22690
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before,
|
|
22691
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { content: ""; grid-row: 1; align-self: center; pointer-events: none; }
|
|
22692
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before { grid-column: 10 / 13; justify-self: start; width: 86%; aspect-ratio: 1.15; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-1); }
|
|
22693
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { grid-column: 12 / 13; justify-self: end; align-self: start; width: 100%; max-width: 6rem; aspect-ratio: 1; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-2); }
|
|
22694
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-page-head"] [data-slot="caption"] { font-size: 0.9rem; color: var(--rb-surface-muted-color); }
|
|
22695
|
+
|
|
22696
|
+
/* hero-framed: the title framed between two photos, each rounded. */
|
|
22697
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-framed"] [data-slot="gallery"] { gap: clamp(0.75rem, 1.5cqi, 1.25rem); }
|
|
22698
|
+
[data-skin="haven"] [data-arrangement][data-treat="hero-framed"] [data-slot="gallery"] [data-slot="photo"] { border-radius: var(--rb-skin-radius, 30px); }
|
|
22699
|
+
@container rb-site (max-width: 767px) {
|
|
22700
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22701
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="frame"] { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
|
|
22702
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="copy"],
|
|
22703
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="media"],
|
|
22704
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="copy"],
|
|
22705
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-knob-image-position="left"] [data-slot="media"] { grid-column: 1 / -1; grid-row: auto; }
|
|
22706
|
+
/* The photo follows the text on phones, so the words come first. */
|
|
22707
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="media"] { order: 1; width: auto; max-width: 30rem; aspect-ratio: 4 / 4.4; max-height: none; margin: 1.25rem 1rem 1rem 1.5rem; }
|
|
22708
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"] [data-slot="media"]::after { top: -1.25rem; right: -1rem; }
|
|
22709
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="hero-split"], [data-treat="hero-headline-row"]) [data-slot="media"] [data-slot="sticker"] { left: -0.75rem; }
|
|
22710
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::before,
|
|
22711
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-split"][data-has-photo="false"] [data-slot="section"]::after { display: none; }
|
|
22712
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::before,
|
|
22713
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="hero-page-head"] [data-slot="frame"]::after { display: none; }
|
|
22714
|
+
/* Phone steps fit an 18 character word on the medium step and a 20 character word on the long step in a 358px column.
|
|
22715
|
+
The :is() matches the knob steps above in specificity, so these win on phones whether or not a headline knob is set. */
|
|
22716
|
+
[data-skin="haven"]:is(*, :scope) [data-length="short"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 2.35rem; }
|
|
22717
|
+
[data-skin="haven"]:is(*, :scope) [data-length="medium"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 2.0625rem; }
|
|
22718
|
+
[data-skin="haven"]:is(*, :scope) [data-length="long"]:is([data-knob-headline], [data-length]) [data-slot="headline"] { font-size: 1.8125rem; }
|
|
22719
|
+
[data-skin="haven"]:is(*, :scope) :is([data-treat="hero-split"], [data-treat="hero-headline-row"], [data-treat="hero-page-head"], [data-treat="hero-framed"]) [data-slot="actions"] > * { box-sizing: border-box; flex: 1 1 100%; justify-content: center; }
|
|
22720
|
+
}
|
|
22721
|
+
}
|
|
22722
|
+
|
|
22723
|
+
/* ------------------------------------------------- Intro, photo and text */
|
|
22724
|
+
/* intro-photo: a small square photo cut to the pebble, one pebble behind it; the statement beside. */
|
|
22725
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"] [data-slot="frame"] { column-gap: clamp(2.25rem, 6cqi, 6rem); align-items: center; }
|
|
22726
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"] [data-slot="media"] { max-width: 20rem; margin: 0.875rem 1.125rem 1.375rem 0.625rem; border-radius: 0; }
|
|
22727
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"] [data-slot="media"] [data-slot="photo"] { aspect-ratio: 1; object-fit: cover; }
|
|
22728
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"] [data-slot="media"]::before { inset: 10% -8% -6% -4%; border-radius: var(--haven-pebble-b); background: var(--haven-pebble-soft); }
|
|
22729
|
+
/* intro-statement and intro-photo: a large soft statement, the quieter text under it. */
|
|
22730
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-statement"] [data-slot="frame"] > [data-slot="heading"],
|
|
22731
|
+
[data-skin="haven"] [data-arrangement][data-treat="intro-photo"] [data-slot="copy"] [data-slot="heading"] { max-width: 28em; font-size: clamp(1.55rem, 2.6cqi, 2.4rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
|
|
22732
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="intro-statement"], [data-treat="intro-photo"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 38rem; color: var(--rb-surface-muted-color); }
|
|
22733
|
+
|
|
22734
|
+
/* media-beside and media-circle: a pebble-cut photo with one pebble above and one below. */
|
|
22735
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="frame"] { column-gap: clamp(2.5rem, 6cqi, 6rem); align-items: center; }
|
|
22736
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"] { margin: 1.5rem; border-radius: 0; }
|
|
22737
|
+
[data-skin="haven"] [data-arrangement][data-treat="media-beside"] [data-slot="media"] [data-slot="photo"] { aspect-ratio: 5 / 4; object-fit: cover; }
|
|
22738
|
+
[data-skin="haven"] [data-arrangement][data-treat="media-circle"] [data-slot="media"] { max-width: 30rem; justify-self: center; }
|
|
22739
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"]::before { top: -1.5rem; right: -1.75rem; width: 44%; aspect-ratio: 1; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-1); }
|
|
22740
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"]::after { bottom: -1.25rem; left: -1.5rem; width: 34%; aspect-ratio: 1; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-soft); }
|
|
22741
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 34em; color: var(--rb-surface-muted-color); }
|
|
22742
|
+
@container rb-site (max-width: 767px) {
|
|
22743
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22744
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="intro-photo"] [data-slot="media"] { max-width: 13.75rem; }
|
|
22745
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"] { margin: 1.25rem 1rem; }
|
|
22746
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"]::before { right: -1rem; }
|
|
22747
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="media-beside"], [data-treat="media-circle"]) [data-slot="media"]::after { left: -1rem; }
|
|
22748
|
+
}
|
|
22749
|
+
}
|
|
22750
|
+
|
|
22751
|
+
/* ---------------------------------------------------------- Feature cards */
|
|
22752
|
+
/* cards, cards-lead, photos-on-top, card-row: soft cards, the photo inset with the small radius. */
|
|
22753
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="photos-on-top"], [data-treat="open-columns"]) [data-slot="items"] { gap: clamp(1rem, 2cqi, 1.5rem); }
|
|
22754
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="photos-on-top"], [data-treat="card-row"], [data-treat="wide-slides"]) [data-slot="item-media"] { width: auto; margin: 0.75rem 0.75rem 0; }
|
|
22755
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="cards"], [data-treat="photos-on-top"], [data-treat="card-row"]) [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 3; object-fit: cover; }
|
|
22756
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="cards"], [data-treat="cards-lead"], [data-treat="open-columns"], [data-treat="photos-on-top"], [data-treat="card-row"], [data-treat="wide-slides"]) [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.95rem; line-height: 1.6; color: var(--rb-surface-muted-color); }
|
|
22757
|
+
|
|
22758
|
+
/* cards-lead: the first card runs across the row with its photo beside the text; it is an ordinary card. */
|
|
22759
|
+
[data-skin="haven"] [data-arrangement][data-treat="cards-lead"] [data-slot="lead"] > [data-slot="item-media"] { margin: 0.75rem 0 0.75rem 0.75rem; }
|
|
22760
|
+
[data-skin="haven"] [data-arrangement][data-treat="cards-lead"] [data-slot="lead"] [data-slot="item-title"] { font-size: clamp(1.6rem, 2.4cqi, 2.125rem); line-height: 1.15; }
|
|
22761
|
+
[data-skin="haven"] [data-arrangement][data-treat="cards-lead"] [data-slot="lead"] [data-slot="item-body"] { padding: clamp(1.5rem, 3cqi, 2.5rem); }
|
|
22762
|
+
@container rb-site (max-width: 767px) {
|
|
22763
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22764
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="cards-lead"] [data-slot="lead"] > [data-slot="item-media"] { margin: 0.75rem 0.75rem 0; }
|
|
22765
|
+
}
|
|
22766
|
+
}
|
|
22767
|
+
|
|
22768
|
+
/* steps: the numbers beside small pebble marks, no rules. */
|
|
22769
|
+
[data-skin="haven"] [data-arrangement][data-treat="steps"] [data-slot="items"] { gap: 2rem; }
|
|
22770
|
+
[data-skin="haven"] [data-arrangement][data-treat="steps"] [data-slot="numeral"] { margin-bottom: 0.75rem; }
|
|
22771
|
+
|
|
22772
|
+
/* index: the ruled list sits in one soft card, with hairlines in the line colour between rows. */
|
|
22773
|
+
[data-skin="haven"] [data-arrangement][data-treat="index"] [data-card-list][data-surface]:not([data-surface="section"]) { padding: 0.5rem clamp(1.25rem, 3cqi, 2.25rem); }
|
|
22774
|
+
[data-skin="haven"] [data-arrangement][data-treat="index"] [data-card-list-item] { border-color: var(--rb-surface-line-color); }
|
|
22775
|
+
|
|
22776
|
+
/* open-columns: no cards, the rounded photos carry it. */
|
|
22777
|
+
[data-skin="haven"] [data-arrangement][data-treat="open-columns"] [data-slot="item-media"] { margin-bottom: 1.125rem; }
|
|
22778
|
+
[data-skin="haven"] [data-arrangement][data-treat="open-columns"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 3; border-radius: var(--rb-skin-radius, 30px); }
|
|
22779
|
+
|
|
22780
|
+
/* card-row: narrow cards in a row you can scroll. */
|
|
22781
|
+
[data-skin="haven"] [data-arrangement][data-treat="card-row"] [data-slot="items"] { scroll-snap-type: x mandatory; }
|
|
22782
|
+
[data-skin="haven"] [data-arrangement][data-treat="card-row"] [data-slot="item"] { scroll-snap-align: start; }
|
|
22783
|
+
|
|
22784
|
+
/* --------------------------------------------------------- Event calendar */
|
|
22785
|
+
[data-skin="haven"] [data-mode] [data-slot="time"] { font-family: var(--font-heading); font-weight: 700; }
|
|
22786
|
+
[data-skin="haven"] [data-mode] :is([data-slot="item-meta"], [data-slot="item-text"]) { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.95rem; line-height: 1.5; color: var(--rb-surface-muted-color); }
|
|
22787
|
+
[data-skin="haven"] [data-mode] [data-slot="date"] :is([data-slot="weekday"], [data-slot="month"]) { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
|
|
22788
|
+
[data-skin="haven"] [data-mode] [data-slot="date"] [data-slot="day"] { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 750; line-height: 1; }
|
|
22789
|
+
|
|
22790
|
+
/* rows and week-list: each session its own soft row card, the date in a small badge painted by the highlight role. */
|
|
22791
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="list"] { display: grid; gap: 0.75rem; }
|
|
22792
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) :is([data-slot="row"], [data-slot="row-continued"]) { column-gap: 1.5rem; padding: 0.875rem 1.25rem 0.875rem 0.875rem; border-radius: var(--haven-small-radius); }
|
|
22793
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="date"] { align-items: center; justify-content: center; gap: 0.25rem; width: 4.25rem; height: 4.25rem; border-radius: var(--haven-small-radius); text-align: center; }
|
|
22794
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="item-title"] { font-size: 1.125rem; }
|
|
22795
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"], [data-treat="day-groups"], [data-treat="compact"]) [data-slot="places"] { font-size: 0.875rem; }
|
|
22796
|
+
|
|
22797
|
+
/* day-groups: the day in the heading face beside a small pebble mark. */
|
|
22798
|
+
[data-skin="haven"] [data-arrangement][data-treat="day-groups"] [data-slot="group"] + [data-slot="group"] { margin-top: 1.5rem; }
|
|
22799
|
+
[data-skin="haven"] [data-arrangement][data-treat="day-groups"] [data-slot="group-label"] { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
|
|
22800
|
+
[data-skin="haven"] [data-arrangement][data-treat="day-groups"] [data-slot="group-label"]::before { content: ""; flex: none; width: var(--rb-skin-mark-length, 14px); height: var(--rb-skin-mark-weight, 12px); border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22801
|
+
|
|
22802
|
+
/* compact: the rows in one soft card. */
|
|
22803
|
+
[data-skin="haven"] [data-arrangement][data-treat="compact"] [data-slot="list"][data-surface]:not([data-surface="section"]) { padding: 0.25rem clamp(1rem, 2.5cqi, 1.75rem); }
|
|
22804
|
+
|
|
22805
|
+
/* week-columns: soft day panels, each session a small rounded tile; the date of today painted by the today role. */
|
|
22806
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="list"] { gap: 0.5rem; padding: 0.625rem; }
|
|
22807
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="group"] { padding: 0.625rem; border-radius: var(--haven-small-radius); }
|
|
22808
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="group-label"] { padding: 0.25rem 0.25rem 0.625rem; }
|
|
22809
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="group-day"] { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rb-surface-muted-color); }
|
|
22810
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="group-date"] { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 750; line-height: 1; }
|
|
22811
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="group"][data-today="true"] [data-slot="group-date"] { width: 2.5rem; height: 2.5rem; border-radius: var(--haven-mark-shape); }
|
|
22812
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="row"] { padding: 0.625rem 0.75rem; border: var(--haven-line); border-radius: 14px; }
|
|
22813
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="row"][data-availability="full"] { border-style: dashed; }
|
|
22814
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="row"][data-availability="full"] :is([data-slot="time"], [data-slot="item-title"]) { color: var(--rb-surface-muted-color); }
|
|
22815
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] [data-slot="item-title"] { font-size: 0.875rem; line-height: 1.25; }
|
|
22816
|
+
[data-skin="haven"] [data-arrangement][data-treat="week-columns"] :is([data-slot="item-meta"], [data-slot="places"], [data-slot="group-empty"]) { font-size: 0.8125rem; color: var(--rb-surface-muted-color); }
|
|
22817
|
+
|
|
22818
|
+
/* session-cards and spotlight: soft cards with the date badge from the highlight role; spotlight leads with its first card. */
|
|
22819
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="session-cards"], [data-treat="spotlight"]) [data-slot="list"] { gap: clamp(1rem, 2cqi, 1.5rem); }
|
|
22820
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="session-cards"], [data-treat="spotlight"]) [data-slot="item-media"] { margin: 0.75rem 0.75rem 0; }
|
|
22821
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="session-cards"], [data-treat="spotlight"]) [data-slot="item"] > [data-slot="date"] { flex-direction: row; align-items: baseline; gap: 0.5rem; margin: 0.75rem 0.75rem 0; padding: 0.5rem 0.875rem; border-radius: var(--haven-small-radius); }
|
|
22822
|
+
[data-skin="haven"] [data-arrangement][data-treat="spotlight"] [data-slot="list"] > [data-slot="item"]:first-child { grid-column: 1 / -1; }
|
|
22823
|
+
[data-skin="haven"] [data-arrangement][data-treat="spotlight"] [data-slot="list"] > [data-slot="item"]:first-child [data-slot="item-title"] { font-size: clamp(1.5rem, 2.4cqi, 2rem); }
|
|
22824
|
+
|
|
22825
|
+
/* Week view controls: outlined pills beside the date range. */
|
|
22826
|
+
[data-skin="haven"] [data-arrangement] [data-slot="navigation"] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
|
|
22827
|
+
[data-skin="haven"] [data-arrangement] [data-slot="navigation"] [data-slot="control"] { min-height: 44px; padding: 0.5rem 1.125rem; border: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-line-color); border-radius: 999px; background: transparent; color: var(--rb-surface-text-color); font: 700 0.95rem/1.2 var(--font-heading); }
|
|
22828
|
+
[data-skin="haven"] [data-arrangement] [data-slot="navigation"] [data-slot="group-label"] { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; }
|
|
22829
|
+
@container rb-site (max-width: 767px) {
|
|
22830
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22831
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) :is([data-slot="row"], [data-slot="row-continued"]) { padding: 0.875rem; }
|
|
22832
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="rows"], [data-treat="week-list"]) [data-slot="date"] { width: 3.75rem; height: 4.25rem; }
|
|
22833
|
+
}
|
|
22834
|
+
}
|
|
22835
|
+
|
|
22836
|
+
/* ---------------------------------------------------------- Event details */
|
|
22837
|
+
/* event-header: the booking hero. The facts card holds the price, places and the Book button together. */
|
|
22838
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="headline"] { font-size: clamp(2.25rem, 4.8cqi, 4rem); }
|
|
22839
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="fact-label"] { font-size: 0.85rem; color: var(--rb-surface-muted-color); }
|
|
22840
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="fact-value"] { margin: 0; font-size: 1.0625rem; font-weight: 600; }
|
|
22841
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="layout"] > [data-slot="panel"] { padding: clamp(1.375rem, 2.75cqi, 2rem); border-top: 0; }
|
|
22842
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="figure-value"] { font-family: var(--font-heading); font-size: clamp(3.25rem, 6cqi, 5rem); font-weight: 750; line-height: 0.95; }
|
|
22843
|
+
[data-skin="haven"] [data-arrangement][data-treat="event-header"] [data-slot="figure-label"] { font-size: 0.9rem; font-weight: 600; color: var(--rb-surface-muted-color); }
|
|
22844
|
+
|
|
22845
|
+
/* details-panel: one soft card, facts as rows with hairlines between. */
|
|
22846
|
+
[data-skin="haven"] [data-arrangement][data-treat="details-panel"] [data-slot="panel"] { padding: clamp(1.5rem, 3cqi, 2.25rem); border: 0; }
|
|
22847
|
+
[data-skin="haven"] [data-arrangement][data-treat="details-panel"] [data-slot="panel-heading"] { margin: 0 0 1rem; font-size: 1.375rem; }
|
|
22848
|
+
[data-skin="haven"] [data-arrangement][data-treat="details-panel"] [data-slot="facts"] > * { margin: 0; padding: 0.75rem 0; border-top: var(--haven-line); }
|
|
22849
|
+
|
|
22850
|
+
/* ----------------------------------------------------------- Testimonials */
|
|
22851
|
+
/* quote-cards and the rest of quote-lead: soft cards led by a large quote mark in the mark colour. */
|
|
22852
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-lead"], [data-treat="quote-columns"]) [data-slot="items"] { gap: clamp(1rem, 2cqi, 1.5rem); }
|
|
22853
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-lead"]) [data-slot="item"] { gap: 0.75rem; padding: 1.75rem 1.625rem 1.625rem; }
|
|
22854
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-lead"], [data-treat="quote-columns"]) [data-slot="item"] > [data-slot="quote"]::before { content: "\\201C"; display: block; height: 1.75rem; font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 0.9; color: var(--rb-surface-mark-color); }
|
|
22855
|
+
[data-skin="haven"] [data-arrangement] [data-slot="quote"] { font-size: 1.0625rem; line-height: 1.65; }
|
|
22856
|
+
[data-skin="haven"] [data-arrangement] [data-slot="attribution"] [data-slot="item-title"] { font-size: 1rem; line-height: 1.4; letter-spacing: 0; }
|
|
22857
|
+
[data-skin="haven"] [data-arrangement] [data-slot="attribution"] [data-slot="item-meta"] { font-size: 0.875rem; color: var(--rb-surface-muted-color); }
|
|
22858
|
+
/* A single quote card stays a readable width. */
|
|
22859
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-cards"], [data-treat="quote-columns"]) [data-slot="items"] > [data-slot="item"]:only-child { max-width: 26.25rem; margin-inline: auto; }
|
|
22860
|
+
|
|
22861
|
+
/* quote-lead: the first quote large on the section, the others in cards underneath. */
|
|
22862
|
+
[data-skin="haven"] [data-arrangement][data-treat="quote-lead"] [data-slot="items"] > [data-slot="lead"] { display: grid; gap: 1rem; max-width: 52rem; padding: 0 0 clamp(1rem, 2cqi, 2rem); }
|
|
22863
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-lead"], [data-treat="quote-single"], [data-treat="quote-slides"]) :is([data-slot="lead"], [data-slot="items"]) > [data-slot="quote"],
|
|
22864
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-single"], [data-treat="quote-slides"]) [data-slot="quote"] { max-width: 52rem; font-family: var(--font-heading); font-size: clamp(1.4rem, 2.4cqi, 2.125rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
|
|
22865
|
+
[data-skin="haven"] [data-arrangement][data-treat="quote-lead"] [data-slot="lead"] > [data-slot="quote"]::before,
|
|
22866
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="quote-single"], [data-treat="quote-slides"]) [data-slot="quote"]::before { content: "\\201C"; display: block; height: 3rem; font-family: var(--font-heading); font-size: 96px; font-weight: 800; line-height: 0.9; color: var(--rb-surface-mark-color); }
|
|
22867
|
+
|
|
22868
|
+
/* The quote arrows: soft circles drawn with the line. */
|
|
22869
|
+
[data-skin="haven"] [data-arrangement] [data-slot="controls"] [data-slot="control"] { width: 3rem; height: 3rem; border: var(--rb-skin-rule, 1.5px) solid var(--rb-surface-line-color); border-radius: 50%; }
|
|
22870
|
+
|
|
22871
|
+
/* ------------------------------------------------------------------- FAQ */
|
|
22872
|
+
/* faq-beside, faq-under, faq-columns: each question a soft card with the small radius and a round toggle. */
|
|
22873
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="items"] { display: grid; gap: 0.625rem; }
|
|
22874
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="items"] > [data-slot="item"][data-surface]:not([data-surface="section"]) { border-radius: var(--haven-small-radius); }
|
|
22875
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="item"] > * { margin: 0; }
|
|
22876
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) :has(> [data-slot="item-title"]) { box-sizing: border-box; min-height: 4rem; padding: 1rem 1.25rem 1rem 1.5rem; gap: 1.25rem; }
|
|
22877
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"], [data-treat="faq-open"]) [data-slot="items"] [data-slot="item-title"] { font-size: 1.0625rem; line-height: 1.35; letter-spacing: 0; }
|
|
22878
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"]) [data-slot="icon"] { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; margin: 0; border: var(--haven-line); border-radius: var(--haven-mark-shape); color: var(--rb-surface-text-color); }
|
|
22879
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="faq-beside"], [data-treat="faq-under"], [data-treat="faq-columns"], [data-treat="faq-open"]) [data-slot="items"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); max-width: 40em; padding: 0 1.5rem 1.375rem; color: var(--rb-surface-muted-color); line-height: 1.65; }
|
|
22880
|
+
[data-skin="haven"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] > [data-slot="item"] { padding-block: 1.25rem; }
|
|
22881
|
+
[data-skin="haven"] [data-arrangement][data-treat="faq-open"] [data-slot="items"] [data-slot="item-text"] { padding: 0.5rem 0 0; }
|
|
22882
|
+
|
|
22883
|
+
/* ------------------------------------------------------- Call to action */
|
|
22884
|
+
/* cta-centred: two pebbles drifting in from the corners of the band. The part that shows sits inside the band
|
|
22885
|
+
* beside the centred copy column, so no edge of the band cuts it; below a laptop width, where the copy fills the
|
|
22886
|
+
* width, they are left out. The side by side Looks fill the width with copy, so they have none. */
|
|
22887
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::before { left: 0; top: 0; width: clamp(9rem, 20cqi, 20rem); translate: -50% 12%; border-radius: var(--haven-pebble-b); background: var(--haven-pebble-1); }
|
|
22888
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::after { right: 0; bottom: 0; width: clamp(7rem, 16cqi, 16rem); translate: 35% -12%; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-2); }
|
|
22889
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="heading"] { font-size: clamp(1.9rem, 3.6cqi, 3rem); }
|
|
22890
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="actions"] { gap: 0.75rem 0.875rem; }
|
|
22891
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="copy"] { justify-content: center; }
|
|
22892
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-centred"] [data-slot="copy"] > [data-slot="head"] { justify-content: center; justify-items: center; text-align: center; }
|
|
22893
|
+
/* cta-figure: the big figure in the heading face. */
|
|
22894
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-value"] { font-family: var(--font-heading); font-size: clamp(4rem, 10cqi, 9rem); font-weight: 750; line-height: 0.9; }
|
|
22895
|
+
[data-skin="haven"] [data-arrangement][data-treat="cta-figure"] [data-slot="figure-label"] { font-size: 1rem; font-weight: 700; }
|
|
22896
|
+
@container rb-site (max-width: 1023px) {
|
|
22897
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22898
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::before,
|
|
22899
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="cta-centred"] [data-slot="section"]::after { display: none; }
|
|
22900
|
+
}
|
|
22901
|
+
}
|
|
22902
|
+
@container rb-site (max-width: 767px) {
|
|
22903
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22904
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement]:is([data-treat="cta-centred"], [data-treat="cta-beside"]) [data-slot="actions"] > * { box-sizing: border-box; flex: 1 1 100%; justify-content: center; }
|
|
22905
|
+
}
|
|
22906
|
+
}
|
|
22907
|
+
|
|
22908
|
+
/* ---------------------------------------------------- Newsletter and form */
|
|
22909
|
+
/* signup-beside and signup-row: the signup on a soft card. */
|
|
22910
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="signup-beside"], [data-treat="signup-row"]) [data-slot="layout"] > [data-slot="panel"] { padding: clamp(1.25rem, 2.5cqi, 1.75rem); }
|
|
22911
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="signup-beside"], [data-treat="signup-row"], [data-treat="signup-frame"]) [data-slot="caption"] { margin-top: 0.75rem; font-size: 0.85rem; color: var(--rb-surface-muted-color); }
|
|
22912
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="signup-beside"], [data-treat="signup-row"], [data-treat="signup-frame"]) [data-slot="control"] { border-radius: 999px; }
|
|
22913
|
+
|
|
22914
|
+
/* signup-frame: the signup in one soft panel filled by the frame role of the offer (card), two pebbles peeking out from behind its corners.
|
|
22915
|
+
* At most 1.5rem of each pebble reaches inside the frame, less than its smallest padding, so they never sit under
|
|
22916
|
+
* the words; on phones, where the frame meets the page margin, they are left out. */
|
|
22917
|
+
[data-skin="haven"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"] { position: relative; isolation: isolate; padding: clamp(1.75rem, 4.5cqi, 3.5rem); border-radius: var(--rb-skin-radius, 30px); }
|
|
22918
|
+
[data-skin="haven"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::before,
|
|
22919
|
+
[data-skin="haven"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::after { content: ""; position: absolute; z-index: -1; aspect-ratio: 1; pointer-events: none; }
|
|
22920
|
+
[data-skin="haven"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::before { top: -7.25rem; right: -7.25rem; width: 8.75rem; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-1); }
|
|
22921
|
+
[data-skin="haven"] [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::after { bottom: -4.5rem; left: -4.5rem; width: 6rem; border-radius: var(--haven-pebble-b); background: var(--haven-pebble-2); }
|
|
22922
|
+
@container rb-site (max-width: 767px) {
|
|
22923
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22924
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::before,
|
|
22925
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="signup-frame"] [data-slot="frame"]::after { display: none; }
|
|
22926
|
+
}
|
|
22927
|
+
}
|
|
22928
|
+
|
|
22929
|
+
/* form-beside and form-below: the form on a soft card. */
|
|
22930
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="form-beside"], [data-treat="form-below"]) [data-slot="panel"] { box-sizing: border-box; padding: clamp(1.25rem, 3cqi, 2.5rem); }
|
|
22931
|
+
[data-skin="haven"] [data-arrangement][data-treat="form-below"] [data-slot="panel"] { max-width: 47.5rem; margin-top: clamp(1.75rem, 4cqi, 2.75rem); }
|
|
22932
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="form-beside"], [data-treat="form-below"]) [data-slot="intro"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); color: var(--rb-surface-muted-color); }
|
|
22933
|
+
|
|
22934
|
+
/* -------------------------------------------------------------- Body text */
|
|
22935
|
+
/* body-reading, body-beside, body-opening: an even reading measure, soft subheadings, a quote beside a pebble edge. */
|
|
22936
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] { font-size: 1.0625rem; line-height: 1.7; }
|
|
22937
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="heading"] { margin: 1.8em 0 0.6em; font-size: clamp(1.45rem, 2.2cqi, 1.95rem); line-height: 1.2; }
|
|
22938
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="quote"] { margin: 1.8em 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--haven-pebble-2); font-family: var(--font-heading); font-size: clamp(1.25rem, 1.9cqi, 1.5rem); font-weight: 700; line-height: 1.4; }
|
|
22939
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="body-reading"], [data-treat="body-beside"], [data-treat="body-opening"]) [data-slot="item-body"] > [data-slot="photo"] { border-radius: var(--rb-skin-radius, 30px); }
|
|
22940
|
+
[data-skin="haven"] [data-arrangement][data-treat="body-reading"] [data-slot="copy"] { max-width: 40em; }
|
|
22941
|
+
|
|
22942
|
+
/* ---------------------------------------------------------- Image gallery */
|
|
22943
|
+
/* gallery-captions, gallery-tiles, gallery-lead: rounded photos, quiet captions led by a pebble mark. */
|
|
22944
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="gallery-lead"], [data-treat="gallery-tiles"], [data-treat="gallery-captions"]) [data-slot="items"] { gap: clamp(0.75rem, 1.5cqi, 1.125rem); }
|
|
22945
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="gallery-lead"], [data-treat="gallery-tiles"], [data-treat="gallery-captions"]) [data-slot="media"] { overflow: hidden; border-radius: var(--haven-small-radius); }
|
|
22946
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="gallery-lead"], [data-treat="gallery-tiles"], [data-treat="gallery-captions"]) [data-slot="media"] [data-slot="photo"] { border-radius: 0; }
|
|
22947
|
+
[data-skin="haven"] [data-arrangement][data-treat="gallery-captions"] [data-slot="caption"] { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.625rem; font-size: 0.9rem; color: var(--rb-surface-muted-color); }
|
|
22948
|
+
[data-skin="haven"] [data-arrangement][data-treat="gallery-captions"] [data-slot="caption"]::before { content: ""; flex: none; width: 10px; height: 9px; border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22949
|
+
|
|
22950
|
+
/* -------------------------------------------------------------------- Map */
|
|
22951
|
+
/* map-beside, map-above, map-wide, map-entrance: the map in a soft frame, details on soft cards. */
|
|
22952
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) :has(> [data-slot="panel"]) > :not([data-slot]) { overflow: hidden; border-radius: var(--rb-skin-radius, 30px); }
|
|
22953
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) [data-slot="panel"] { box-sizing: border-box; padding: clamp(1.375rem, 2.5cqi, 1.875rem); border-radius: var(--rb-skin-radius, 30px); }
|
|
22954
|
+
[data-skin="haven"] [data-arrangement][data-treat="map-wide"] [data-slot="panel"] { box-shadow: var(--haven-lift); }
|
|
22955
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="map-beside"], [data-treat="map-wide"], [data-treat="map-entrance"], [data-treat="map-above"]) [data-slot="headline"] { font-size: 1.375rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
|
|
22956
|
+
/* map-entrance: the entrance photo rounded, one pebble behind it. */
|
|
22957
|
+
[data-skin="haven"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"] { margin: 0 1.25rem 1.25rem 0; }
|
|
22958
|
+
[data-skin="haven"] [data-arrangement][data-treat="map-entrance"] [data-slot="media"]::before { right: -1.25rem; bottom: -1.25rem; width: 52%; aspect-ratio: 1; border-radius: var(--haven-pebble-c); background: var(--haven-pebble-soft); }
|
|
22959
|
+
|
|
22960
|
+
/* ------------------------------------------------------------------- Team */
|
|
22961
|
+
/* team-bio: a pebble-cut portrait with one pebble behind it, beside the name, role and bio. */
|
|
22962
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-card-list] { gap: clamp(1.25rem, 3cqi, 2.5rem); }
|
|
22963
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-bio"] [data-slot="item-media"] { position: relative; isolation: isolate; margin: 0.75rem 1.25rem 1.25rem 0.5rem; }
|
|
22964
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-bio"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 5; border-radius: var(--haven-photo-shape); object-fit: cover; }
|
|
22965
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-bio"] [data-slot="item-media"]::before { content: ""; position: absolute; z-index: -1; right: -1.25rem; bottom: -1.25rem; width: 70%; aspect-ratio: 1; border-radius: var(--haven-pebble-b); background: var(--haven-pebble-soft); pointer-events: none; }
|
|
22966
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"]) [data-card-list-item] [data-slot="item-title"] { font-size: clamp(1.4rem, 2.2cqi, 1.75rem); line-height: 1.15; }
|
|
22967
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="team-bio"], [data-treat="team-portraits"], [data-treat="team-names"]) [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.95rem; color: var(--rb-surface-muted-color); }
|
|
22968
|
+
/* team-portraits: soft cards, the portrait inset with the small radius. */
|
|
22969
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-portraits"] [data-card-list-item][data-surface]:not([data-surface="section"]) { padding: 0.75rem; }
|
|
22970
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-portraits"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 5; object-fit: cover; }
|
|
22971
|
+
/* team-names: the ruled list in one soft card. */
|
|
22972
|
+
[data-skin="haven"] [data-arrangement][data-treat="team-names"] [data-card-list][data-surface]:not([data-surface="section"]) { padding: 0.5rem clamp(1.25rem, 3cqi, 2.25rem); }
|
|
22973
|
+
@container rb-site (max-width: 767px) {
|
|
22974
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
22975
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="team-bio"] [data-slot="item-media"] { max-width: 16rem; }
|
|
22976
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="team-bio"] [data-slot="item-media"]::before { right: -0.75rem; }
|
|
22977
|
+
}
|
|
22978
|
+
}
|
|
22979
|
+
|
|
22980
|
+
/* ----------------------------------------------------------------- Prices */
|
|
22981
|
+
/* prices-featured and prices: soft cards with a big price; the featured card is the brand colour from the statement role. */
|
|
22982
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-card-list] { gap: clamp(1rem, 2cqi, 1.5rem); }
|
|
22983
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) [data-slot="price"] { align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
|
|
22984
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) [data-slot="price-amount"] { font-family: var(--font-heading); font-size: clamp(2.5rem, 4cqi, 3.25rem); font-weight: 750; line-height: 1; }
|
|
22985
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"], [data-treat="price-rows"]) :is([data-slot="price-unit"], [data-slot="price-note"]) { font-size: 0.95rem; font-weight: 600; color: var(--rb-surface-muted-color); }
|
|
22986
|
+
[data-skin="haven"] [data-arrangement][data-treat="prices-featured"] [data-card-list-item][data-surface="primary"] { box-shadow: var(--haven-lift); }
|
|
22987
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="facts"] { display: grid; gap: 0.5rem; }
|
|
22988
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="facts"] > * { margin: 0; padding: 0; border: 0; }
|
|
22989
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="fact-value"] { position: relative; margin: 0; padding-left: 1.625rem; font-size: 0.95rem; }
|
|
22990
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="fact-value"]::before { content: ""; position: absolute; left: 0; top: 0.4em; width: var(--rb-skin-mark-length, 14px); height: var(--rb-skin-mark-weight, 12px); border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); }
|
|
22991
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="prices-featured"], [data-treat="prices"]) [data-slot="item-actions"] > * { box-sizing: border-box; width: 100%; justify-content: center; }
|
|
22992
|
+
/* price-rows: the ruled list in one soft card. */
|
|
22993
|
+
[data-skin="haven"] [data-arrangement][data-treat="price-rows"] [data-card-list][data-surface]:not([data-surface="section"]) { padding: 0.5rem clamp(1.25rem, 3cqi, 2.25rem); }
|
|
22994
|
+
|
|
22995
|
+
/* -------------------------------------------------------------- Offerings */
|
|
22996
|
+
/* plates: soft booking cards. The plate behind each photo becomes a pebble peeking out from its lower corner. */
|
|
22997
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-card-list] { gap: clamp(1rem, 2cqi, 1.5rem); }
|
|
22998
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="item-media"] { margin: 0.875rem 1.25rem 1.25rem 0.875rem; }
|
|
22999
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="item-media"] [data-slot="photo"] { aspect-ratio: 4 / 3; border-radius: var(--haven-small-radius); object-fit: cover; }
|
|
23000
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="item-media"]::before { inset: auto calc(-1 * var(--rb-skin-plate, 1.25rem)) calc(-1 * var(--rb-skin-plate, 1.25rem)) auto; width: 44%; aspect-ratio: 1; translate: none; border-radius: var(--haven-pebble-a); background: var(--haven-pebble-soft); }
|
|
23001
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="item-text"] { --rb-surface-supporting-color: var(--rb-surface-muted-color); font-size: 0.95rem; color: var(--rb-surface-muted-color); }
|
|
23002
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="dates"] { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
|
|
23003
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="dates"] [data-slot="date"] { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0; padding: 0.375rem 0.875rem; border: var(--haven-line); border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
|
|
23004
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="date-places"] { font-size: 0.8125rem; color: var(--rb-surface-muted-color); }
|
|
23005
|
+
[data-skin="haven"] [data-arrangement][data-treat="plates"] [data-slot="date-places"][data-availability="full"] { text-decoration: line-through; }
|
|
23006
|
+
|
|
23007
|
+
/* --------------------------------------------------------- Month calendar */
|
|
23008
|
+
/* month-grid and month-day: soft day cells, pebble date marks, today ringed in the text colour. */
|
|
23009
|
+
[data-skin="haven"] [data-arrangement][data-treat="month-grid"] [data-slot="list"][data-surface]:not([data-surface="section"]) { padding: clamp(0.75rem, 2cqi, 1.5rem); }
|
|
23010
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="grid"] { gap: 0.375rem; }
|
|
23011
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="group-label"] { padding: 0.5rem 0.25rem 0.625rem; font-size: 0.8125rem; font-weight: 700; color: var(--rb-surface-muted-color); }
|
|
23012
|
+
[data-skin="haven"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] { min-height: 6.5rem; padding: 0.5rem; border: var(--haven-line); border-radius: 14px; }
|
|
23013
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"] :is([data-slot="date-label"], [data-slot="control"]) { border-radius: var(--haven-mark-shape); font-family: var(--font-heading); font-weight: 700; font-variant-numeric: tabular-nums; }
|
|
23014
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"][data-today="true"] :is([data-slot="date-label"], [data-slot="control"]) { box-shadow: inset 0 0 0 var(--rb-skin-rule, 1.5px) var(--rb-surface-text-color); }
|
|
23015
|
+
[data-skin="haven"] [data-arrangement]:is([data-treat="month-grid"], [data-treat="month-day"]) [data-slot="date"][data-other-month="true"] :is([data-slot="date-label"], [data-slot="control"]) { font-weight: 500; }
|
|
23016
|
+
[data-skin="haven"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="item"] { display: block; margin-bottom: 0.25rem; padding: 0.3125rem 0.5rem 0.3125rem 0.625rem; border: var(--haven-line); border-left: 4px solid var(--haven-pebble-2); border-radius: 8px; overflow: hidden; font-size: 0.75rem; font-weight: 600; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
|
|
23017
|
+
[data-skin="haven"] [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="time"] { margin-right: 0.25rem; font-size: inherit; }
|
|
23018
|
+
[data-skin="haven"] [data-arrangement][data-treat="month-grid"] [data-slot="more"] { font-size: 0.75rem; color: var(--rb-surface-muted-color); }
|
|
23019
|
+
@container rb-site (max-width: 767px) {
|
|
23020
|
+
@scope ([data-rb-responsive-mode="container"]) to (:scope [data-rb-responsive-mode]) {
|
|
23021
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 0 3px; min-height: 3.5rem; padding: 0.375rem 0.125rem; border-radius: 12px; }
|
|
23022
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] :is([data-slot="date-label"], [data-slot="control"]) { flex: 0 0 100%; }
|
|
23023
|
+
[data-skin="haven"]:is(*, :scope) [data-arrangement][data-treat="month-grid"] [data-slot="date"] [data-slot="item"] { flex: none; width: 0.4375rem; height: 0.375rem; margin: 0; padding: 0; border: 0; border-radius: var(--haven-mark-shape); background: var(--haven-pebble-2); font-size: 0; }
|
|
23024
|
+
}
|
|
23025
|
+
}
|
|
23026
|
+
|
|
23550
23027
|
/* Geometry display contract (issue 1611). Theme-core's map token contract
|
|
23551
23028
|
* (surfaces/mapDrawingTokens.ts) supplies every --map-* value from the section
|
|
23552
23029
|
* ground and site style. Fallbacks use existing opaque section theme roles,
|
|
@@ -23705,851 +23182,4 @@ function ThemeScopeCore({ cssVars, buttonCss, headerCss, footerCss, cardCss, acc
|
|
|
23705
23182
|
});
|
|
23706
23183
|
}
|
|
23707
23184
|
//#endregion
|
|
23708
|
-
|
|
23709
|
-
/**
|
|
23710
|
-
* Server Component that injects theme CSS.
|
|
23711
|
-
*
|
|
23712
|
-
* This component:
|
|
23713
|
-
* 1. Generates CSS from theme config via buildThemeRuntime
|
|
23714
|
-
* 2. Passes all CSS to ThemeScopeCore for injection
|
|
23715
|
-
* 3. Sets data attributes for theme axes
|
|
23716
|
-
*
|
|
23717
|
-
* Note: All CSS injection is handled by ThemeScopeCore to prevent drift
|
|
23718
|
-
* between this server component and ClientThemeScope.
|
|
23719
|
-
*/
|
|
23720
|
-
function ThemeScope({ theme, children, themeId = "theme-default", responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE, className }) {
|
|
23721
|
-
const runtime = buildThemeRuntime(theme, {
|
|
23722
|
-
themeId,
|
|
23723
|
-
responsiveMode
|
|
23724
|
-
});
|
|
23725
|
-
const dataAttrs = buildThemeDataAttrs(theme.axes, themeId, theme.skin);
|
|
23726
|
-
return /* @__PURE__ */ jsx(ThemeScopeCore, {
|
|
23727
|
-
...themeRuntimeScopeProps(runtime),
|
|
23728
|
-
dataAttrs,
|
|
23729
|
-
responsiveMode,
|
|
23730
|
-
suppressHydrationWarning: true,
|
|
23731
|
-
className,
|
|
23732
|
-
children
|
|
23733
|
-
});
|
|
23734
|
-
}
|
|
23735
|
-
//#endregion
|
|
23736
|
-
//#region ../theme-core/src/ResponsiveScope.tsx
|
|
23737
|
-
/**
|
|
23738
|
-
* Structural responsive root for SDK/runtime chrome that opts out of CMS theme
|
|
23739
|
-
* styling but still depends on scoped rb-* responsive utility classes.
|
|
23740
|
-
*/
|
|
23741
|
-
function ResponsiveScope({ children, responsiveMode = DEFAULT_THEME_RESPONSIVE_MODE, className }) {
|
|
23742
|
-
const responsiveScope = getResponsiveScopeSpec(responsiveMode);
|
|
23743
|
-
const isContainerResponsive = responsiveScope.kind === "container";
|
|
23744
|
-
const wrapperStyle = isContainerResponsive ? {
|
|
23745
|
-
containerType: "inline-size",
|
|
23746
|
-
containerName: responsiveScope.containerName
|
|
23747
|
-
} : {};
|
|
23748
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
23749
|
-
className: className ? `theme-scope ${className}` : "theme-scope",
|
|
23750
|
-
style: wrapperStyle,
|
|
23751
|
-
"data-rb-responsive-mode": responsiveScope.kind,
|
|
23752
|
-
children: [isContainerResponsive && /* @__PURE__ */ jsx("style", {
|
|
23753
|
-
"data-container-responsive-overrides": true,
|
|
23754
|
-
dangerouslySetInnerHTML: { __html: escapeStyleContent(containerResponsiveThemeCss) }
|
|
23755
|
-
}), children]
|
|
23756
|
-
});
|
|
23757
|
-
}
|
|
23758
|
-
//#endregion
|
|
23759
|
-
//#region ../theme-core/src/runtime/bridgeColourTokens.ts
|
|
23760
|
-
/**
|
|
23761
|
-
* The SDK theme bridge's colour tokens: RGB channel triplets as CSS vars, the
|
|
23762
|
-
* on-colours derived for them, and the same tokens as an opaque hex palette
|
|
23763
|
-
* for the contrast-checked generators (buttons, block panels).
|
|
23764
|
-
*/
|
|
23765
|
-
const RGB_CHANNELS_PATTERN = /^(\d{1,3})\s+(\d{1,3})\s+(\d{1,3})(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?$/;
|
|
23766
|
-
function hexToRgbChannels(hex) {
|
|
23767
|
-
try {
|
|
23768
|
-
const { r, g, b } = hexToRgb(hex);
|
|
23769
|
-
return `${r} ${g} ${b}`;
|
|
23770
|
-
} catch {
|
|
23771
|
-
throw new Error(`[ThemeBridge] Invalid token value "${hex}": expected a valid hex colour, CSS var(), or RGB channel value.`);
|
|
23772
|
-
}
|
|
23773
|
-
}
|
|
23774
|
-
function deriveConcreteBridgeOnTokens(tokens) {
|
|
23775
|
-
return Object.fromEntries(Object.entries(tokens).flatMap(([name, value]) => {
|
|
23776
|
-
if (!isOnColorBackgroundCandidateToken(name)) return [];
|
|
23777
|
-
const hex = rgbChannelsToOpaqueHex(value);
|
|
23778
|
-
const onToken = onColorTokenName(name);
|
|
23779
|
-
return hex === null || tokens[onToken] !== void 0 ? [] : [[onToken, hexToRgbChannels(getTextColorForBackground(hex))]];
|
|
23780
|
-
}));
|
|
23781
|
-
}
|
|
23782
|
-
function buildBridgeButtonPalette(tokens) {
|
|
23783
|
-
return {
|
|
23784
|
-
...Object.fromEntries(Object.entries({
|
|
23785
|
-
...tokens,
|
|
23786
|
-
...deriveConcreteBridgeOnTokens(tokens)
|
|
23787
|
-
}).flatMap(([name, value]) => {
|
|
23788
|
-
const hex = rgbChannelsToOpaqueHex(value);
|
|
23789
|
-
return hex === null ? [] : [[name, hex]];
|
|
23790
|
-
})),
|
|
23791
|
-
meta: { mode: "light" }
|
|
23792
|
-
};
|
|
23793
|
-
}
|
|
23794
|
-
function rgbChannelsToOpaqueHex(value) {
|
|
23795
|
-
const match = value.match(RGB_CHANNELS_PATTERN);
|
|
23796
|
-
if (!match || match[4] !== void 0) return null;
|
|
23797
|
-
return `#${[
|
|
23798
|
-
Number(match[1]),
|
|
23799
|
-
Number(match[2]),
|
|
23800
|
-
Number(match[3])
|
|
23801
|
-
].map((channel) => channel.toString(16).padStart(2, "0")).join("")}`;
|
|
23802
|
-
}
|
|
23803
|
-
//#endregion
|
|
23804
|
-
//#region ../theme-core/src/buttons/core.ts
|
|
23805
|
-
const CORNER_RADIUS_MAP$1 = {
|
|
23806
|
-
square: "0",
|
|
23807
|
-
soft: "0.375rem",
|
|
23808
|
-
rounded: "0.5rem",
|
|
23809
|
-
pill: "9999px"
|
|
23810
|
-
};
|
|
23811
|
-
const BORDER_WIDTH_MAP$1 = {
|
|
23812
|
-
none: "0",
|
|
23813
|
-
thin: "1px",
|
|
23814
|
-
medium: "2px",
|
|
23815
|
-
thick: "4px"
|
|
23816
|
-
};
|
|
23817
|
-
const SHADOW_VALUES$1 = {
|
|
23818
|
-
none: "none",
|
|
23819
|
-
low: "0 1px 2px rgba(0,0,0,0.06)",
|
|
23820
|
-
medium: "0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",
|
|
23821
|
-
high: "0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)"
|
|
23822
|
-
};
|
|
23823
|
-
const RESOLVER_GLOBAL = {
|
|
23824
|
-
cornerStyle: "rounded",
|
|
23825
|
-
textTransform: "none",
|
|
23826
|
-
fontWeight: 500,
|
|
23827
|
-
hoverTransform: "none",
|
|
23828
|
-
hoverColor: "none"
|
|
23829
|
-
};
|
|
23830
|
-
function generateButtonCoreCss(scopeId, variants, settings, palette) {
|
|
23831
|
-
const seenIds = /* @__PURE__ */ new Set();
|
|
23832
|
-
for (const variant of variants) {
|
|
23833
|
-
if (!buttonVariantIdSchema.safeParse(variant.id).success) throw new Error(`[ThemeBridge] Invalid button variant ID: ${variant.id}`);
|
|
23834
|
-
if (seenIds.has(variant.id)) throw new Error(`[ThemeBridge] Duplicate button variant ID: ${variant.id}`);
|
|
23835
|
-
seenIds.add(variant.id);
|
|
23836
|
-
}
|
|
23837
|
-
return variants.map((variant) => generateVariantCss(scopeId, variant, settings, palette)).join("\n\n");
|
|
23838
|
-
}
|
|
23839
|
-
function generateVariantCss(scopeId, variant, settings, palette) {
|
|
23840
|
-
const borderWidth = BORDER_WIDTH_MAP$1[variant.borderWidth ?? "none"];
|
|
23841
|
-
const result = compileButtonColourStates({
|
|
23842
|
-
variant: {
|
|
23843
|
-
id: variant.id,
|
|
23844
|
-
name: variant.id,
|
|
23845
|
-
enabled: true,
|
|
23846
|
-
priority: 1,
|
|
23847
|
-
background: variant.treatment,
|
|
23848
|
-
...borderWidth === "0" ? {} : { border: { widthClass: borderWidth } }
|
|
23849
|
-
},
|
|
23850
|
-
global: RESOLVER_GLOBAL,
|
|
23851
|
-
palette
|
|
23852
|
-
});
|
|
23853
|
-
if (!result.ok) throw new Error(`[ThemeBridge] ${formatButtonColourContractError(result.error)}`);
|
|
23854
|
-
const selector = `:where([data-theme-scope="${scopeId}"]) .button-${variant.id}`;
|
|
23855
|
-
return [
|
|
23856
|
-
rule(selector, [
|
|
23857
|
-
...borderWidth === "0" ? ["padding: 0.5rem 1rem;"] : [
|
|
23858
|
-
`padding-top: calc(0.5rem - ${borderWidth});`,
|
|
23859
|
-
`padding-bottom: calc(0.5rem - ${borderWidth});`,
|
|
23860
|
-
`padding-left: calc(1rem - ${borderWidth});`,
|
|
23861
|
-
`padding-right: calc(1rem - ${borderWidth});`
|
|
23862
|
-
],
|
|
23863
|
-
`font-weight: ${settings.fontWeight ?? 500};`,
|
|
23864
|
-
...settings.textTransform && settings.textTransform !== "none" ? [`text-transform: ${settings.textTransform};`] : [],
|
|
23865
|
-
"cursor: pointer;",
|
|
23866
|
-
"transition: all 200ms ease-in-out;",
|
|
23867
|
-
"display: inline-flex;",
|
|
23868
|
-
"align-items: center;",
|
|
23869
|
-
"justify-content: center;",
|
|
23870
|
-
`border-radius: ${CORNER_RADIUS_MAP$1[settings.corners]};`,
|
|
23871
|
-
`box-shadow: ${SHADOW_VALUES$1[settings.shadow]};`,
|
|
23872
|
-
...declarationStrings(resolvedButtonColourDeclarations(result.states.base, {
|
|
23873
|
-
role: variant.id,
|
|
23874
|
-
state: "base"
|
|
23875
|
-
})),
|
|
23876
|
-
borderWidth === "0" ? "border: none;" : `border: ${borderWidth} solid currentColor;`
|
|
23877
|
-
]),
|
|
23878
|
-
rule(`${selector}:hover`, declarationStrings(resolvedButtonColourDeclarations(result.states.hover, {
|
|
23879
|
-
role: variant.id,
|
|
23880
|
-
state: "hover"
|
|
23881
|
-
}))),
|
|
23882
|
-
rule(`${selector}:active`, [...declarationStrings(resolvedButtonColourDeclarations(result.states.active, {
|
|
23883
|
-
role: variant.id,
|
|
23884
|
-
state: "active"
|
|
23885
|
-
})), "transform: scale(0.98);"]),
|
|
23886
|
-
rule(`${selector}:focus-visible`, declarationStrings(resolvedButtonFocusDeclarations(result.focusIndicator, variant.id))),
|
|
23887
|
-
rule(`${selector}:disabled,\n${selector}:disabled:hover,\n${selector}:disabled:active`, [...declarationStrings(resolvedButtonColourDeclarations(result.states.disabled, {
|
|
23888
|
-
role: variant.id,
|
|
23889
|
-
state: "disabled"
|
|
23890
|
-
})), ...declarationStrings(RESOLVED_BUTTON_DISABLED_DECLARATIONS)])
|
|
23891
|
-
].join("\n\n");
|
|
23892
|
-
}
|
|
23893
|
-
function declarationStrings(declarations) {
|
|
23894
|
-
return declarations.map(([property, value]) => `${property}: ${value};`);
|
|
23895
|
-
}
|
|
23896
|
-
function rule(selector, declarations) {
|
|
23897
|
-
return `${selector} {\n ${declarations.join("\n ")}\n}`;
|
|
23898
|
-
}
|
|
23899
|
-
function getDefaultButtonVariants() {
|
|
23900
|
-
return [
|
|
23901
|
-
{
|
|
23902
|
-
id: "primary",
|
|
23903
|
-
treatment: {
|
|
23904
|
-
type: "solid",
|
|
23905
|
-
colorToken: unsafeAsOpaqueButtonColourToken("primary")
|
|
23906
|
-
}
|
|
23907
|
-
},
|
|
23908
|
-
{
|
|
23909
|
-
id: "secondary",
|
|
23910
|
-
treatment: {
|
|
23911
|
-
type: "solid",
|
|
23912
|
-
colorToken: unsafeAsOpaqueButtonColourToken("secondary")
|
|
23913
|
-
}
|
|
23914
|
-
},
|
|
23915
|
-
{
|
|
23916
|
-
id: "outline",
|
|
23917
|
-
treatment: {
|
|
23918
|
-
type: "surface",
|
|
23919
|
-
role: "link"
|
|
23920
|
-
},
|
|
23921
|
-
borderWidth: "thin"
|
|
23922
|
-
},
|
|
23923
|
-
{
|
|
23924
|
-
id: "ghost",
|
|
23925
|
-
treatment: {
|
|
23926
|
-
type: "surface",
|
|
23927
|
-
role: "link"
|
|
23928
|
-
}
|
|
23929
|
-
}
|
|
23930
|
-
];
|
|
23931
|
-
}
|
|
23932
|
-
//#endregion
|
|
23933
|
-
//#region ../theme-core/src/inputs/core.ts
|
|
23934
|
-
/**
|
|
23935
|
-
* Core Input CSS Generator
|
|
23936
|
-
*
|
|
23937
|
-
* Pure functions for generating form input CSS without requiring the full Theme type.
|
|
23938
|
-
* Used by both the full CMS theme system and the SDK theme bridge.
|
|
23939
|
-
*/
|
|
23940
|
-
const CORNER_RADIUS_MAP = {
|
|
23941
|
-
square: "0",
|
|
23942
|
-
soft: "0.25rem",
|
|
23943
|
-
rounded: "0.5rem",
|
|
23944
|
-
pill: "9999px"
|
|
23945
|
-
};
|
|
23946
|
-
const BORDER_WIDTH_MAP = {
|
|
23947
|
-
none: "0",
|
|
23948
|
-
thin: "1px",
|
|
23949
|
-
medium: "2px",
|
|
23950
|
-
thick: "4px"
|
|
23951
|
-
};
|
|
23952
|
-
const INPUT_PADDING = "0.5rem 0.75rem";
|
|
23953
|
-
const SHADOW_VALUES = {
|
|
23954
|
-
none: "none",
|
|
23955
|
-
low: "0 1px 2px rgba(0,0,0,0.04)",
|
|
23956
|
-
medium: "0 1px 3px rgba(0,0,0,0.08)",
|
|
23957
|
-
high: "0 2px 6px rgba(0,0,0,0.12)"
|
|
23958
|
-
};
|
|
23959
|
-
/**
|
|
23960
|
-
* Generate input CSS from core settings.
|
|
23961
|
-
*
|
|
23962
|
-
* This is a pure function with no dependencies on Theme type.
|
|
23963
|
-
* Selectors use :where() for zero specificity, allowing site styles to override easily.
|
|
23964
|
-
*
|
|
23965
|
-
* @param scopeId - Theme scope ID for selector
|
|
23966
|
-
* @param settings - Input style settings
|
|
23967
|
-
* @returns CSS string
|
|
23968
|
-
*/
|
|
23969
|
-
function generateInputCoreCss(scopeId, settings) {
|
|
23970
|
-
const root = `:where([data-theme-scope="${scopeId}"])`;
|
|
23971
|
-
const borderWidth = BORDER_WIDTH_MAP[settings.borderWidth];
|
|
23972
|
-
const borderRadius = CORNER_RADIUS_MAP[settings.corners];
|
|
23973
|
-
const cssBlocks = [];
|
|
23974
|
-
cssBlocks.push(`${root} .form-label {
|
|
23975
|
-
color: ${textColorValue(settings.labelToken)};
|
|
23976
|
-
font-weight: 600;
|
|
23977
|
-
font-size: 0.875rem;
|
|
23978
|
-
display: block;
|
|
23979
|
-
margin-bottom: 0.25rem;
|
|
23980
|
-
}`);
|
|
23981
|
-
const sharedInputRules = `
|
|
23982
|
-
background-color: rgb(var(--tb-${settings.backgroundToken}));
|
|
23983
|
-
color: rgb(var(--tb-${settings.textToken}));
|
|
23984
|
-
border: ${borderWidth} solid rgb(var(--tb-${settings.borderToken}));
|
|
23985
|
-
border-radius: ${borderRadius};
|
|
23986
|
-
padding: ${INPUT_PADDING};
|
|
23987
|
-
font-size: 1rem;
|
|
23988
|
-
width: 100%;
|
|
23989
|
-
outline: none;
|
|
23990
|
-
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
23991
|
-
${settings.shadow !== "none" ? `box-shadow: ${SHADOW_VALUES[settings.shadow]};` : ""}
|
|
23992
|
-
`.trim();
|
|
23993
|
-
cssBlocks.push(`${root} .form-input,
|
|
23994
|
-
${root} ${INPUT_GROUP_SELECTOR} {
|
|
23995
|
-
${sharedInputRules}
|
|
23996
|
-
}`);
|
|
23997
|
-
cssBlocks.push(generateInputGroupCss(root, INPUT_PADDING));
|
|
23998
|
-
cssBlocks.push(`${root} .form-textarea {
|
|
23999
|
-
${sharedInputRules}
|
|
24000
|
-
resize: vertical;
|
|
24001
|
-
min-height: 5rem;
|
|
24002
|
-
}`);
|
|
24003
|
-
cssBlocks.push(`${root} .form-select {
|
|
24004
|
-
${sharedInputRules}
|
|
24005
|
-
appearance: none;
|
|
24006
|
-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
24007
|
-
background-position: right 0.5rem center;
|
|
24008
|
-
background-repeat: no-repeat;
|
|
24009
|
-
background-size: 1.5em 1.5em;
|
|
24010
|
-
padding-right: 2.5rem;
|
|
24011
|
-
}`);
|
|
24012
|
-
cssBlocks.push(`${root} .form-input:focus-visible,
|
|
24013
|
-
${root} .form-textarea:focus-visible,
|
|
24014
|
-
${root} .form-select:focus-visible,
|
|
24015
|
-
${root} ${INPUT_GROUP_FOCUS_SELECTOR} {
|
|
24016
|
-
outline: none;
|
|
24017
|
-
box-shadow: 0 0 0 ${settings.focusRingWidth}px rgb(var(--tb-${settings.focusRingToken}));
|
|
24018
|
-
border-color: rgb(var(--tb-${settings.focusRingToken}));
|
|
24019
|
-
}`);
|
|
24020
|
-
cssBlocks.push(`${root} .form-input[aria-invalid="true"],
|
|
24021
|
-
${root} .form-textarea[aria-invalid="true"],
|
|
24022
|
-
${root} .form-select[aria-invalid="true"],
|
|
24023
|
-
${root} ${INPUT_GROUP_ERROR_SELECTOR} {
|
|
24024
|
-
border-color: rgb(var(--tb-${settings.errorBorderToken}));
|
|
24025
|
-
color: rgb(var(--tb-${settings.errorTextToken}));
|
|
24026
|
-
}`);
|
|
24027
|
-
cssBlocks.push(`${root} .form-input:disabled,
|
|
24028
|
-
${root} .form-textarea:disabled,
|
|
24029
|
-
${root} .form-select:disabled {
|
|
24030
|
-
background-color: rgb(var(--tb-${settings.disabledBackgroundToken}));
|
|
24031
|
-
color: rgb(var(--tb-${settings.disabledTextToken}));
|
|
24032
|
-
opacity: 0.6;
|
|
24033
|
-
cursor: not-allowed;
|
|
24034
|
-
}`);
|
|
24035
|
-
cssBlocks.push(generateCheckableCss({
|
|
24036
|
-
root,
|
|
24037
|
-
borderWidth,
|
|
24038
|
-
borderColor: `rgb(var(--tb-${settings.borderToken}))`,
|
|
24039
|
-
background: `rgb(var(--tb-${settings.backgroundToken}))`,
|
|
24040
|
-
corners: settings.corners,
|
|
24041
|
-
accentToken: settings.focusRingToken,
|
|
24042
|
-
errorColor: `rgb(var(--tb-${settings.errorBorderToken}))`
|
|
24043
|
-
}));
|
|
24044
|
-
return cssBlocks.join("\n\n");
|
|
24045
|
-
}
|
|
24046
|
-
/**
|
|
24047
|
-
* Get default input settings for SDK usage.
|
|
24048
|
-
*/
|
|
24049
|
-
function getDefaultInputSettings() {
|
|
24050
|
-
return {
|
|
24051
|
-
corners: "rounded",
|
|
24052
|
-
shadow: "none",
|
|
24053
|
-
borderWidth: "thin",
|
|
24054
|
-
focusRingToken: "primary",
|
|
24055
|
-
focusRingWidth: 3,
|
|
24056
|
-
backgroundToken: "surface",
|
|
24057
|
-
textToken: "text",
|
|
24058
|
-
borderToken: "border",
|
|
24059
|
-
labelToken: "text",
|
|
24060
|
-
errorBorderToken: "destructive",
|
|
24061
|
-
errorTextToken: "destructive",
|
|
24062
|
-
disabledBackgroundToken: "neutral-100",
|
|
24063
|
-
disabledTextToken: "neutral-400"
|
|
24064
|
-
};
|
|
24065
|
-
}
|
|
24066
|
-
const SYSTEM_FONT_STACK = "ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"";
|
|
24067
|
-
const SPACING_CONFIG = {
|
|
24068
|
-
comfortable: {
|
|
24069
|
-
mult: 1.15,
|
|
24070
|
-
rhythm: "1.2rem"
|
|
24071
|
-
},
|
|
24072
|
-
standard: {
|
|
24073
|
-
mult: 1,
|
|
24074
|
-
rhythm: "1rem"
|
|
24075
|
-
},
|
|
24076
|
-
dense: {
|
|
24077
|
-
mult: .88,
|
|
24078
|
-
rhythm: "0.75rem"
|
|
24079
|
-
}
|
|
24080
|
-
};
|
|
24081
|
-
const CORNERS_CONFIG = {
|
|
24082
|
-
square: {
|
|
24083
|
-
control: "0px",
|
|
24084
|
-
card: "0px",
|
|
24085
|
-
block: "0",
|
|
24086
|
-
button: "0.375rem"
|
|
24087
|
-
},
|
|
24088
|
-
soft: {
|
|
24089
|
-
control: "4px",
|
|
24090
|
-
card: "8px",
|
|
24091
|
-
block: "0.5rem",
|
|
24092
|
-
button: "0.375rem"
|
|
24093
|
-
},
|
|
24094
|
-
rounded: {
|
|
24095
|
-
control: "8px",
|
|
24096
|
-
card: "12px",
|
|
24097
|
-
block: "0.75rem",
|
|
24098
|
-
button: "0.5rem"
|
|
24099
|
-
},
|
|
24100
|
-
pill: {
|
|
24101
|
-
control: "9999px",
|
|
24102
|
-
card: "16px",
|
|
24103
|
-
block: "1rem",
|
|
24104
|
-
button: "9999px"
|
|
24105
|
-
}
|
|
24106
|
-
};
|
|
24107
|
-
const SHADOWS_CONFIG = {
|
|
24108
|
-
none: "none",
|
|
24109
|
-
low: "0 1px 2px rgba(0,0,0,.06)",
|
|
24110
|
-
medium: "0 10px 20px rgba(0,0,0,.08)",
|
|
24111
|
-
high: "0 25px 50px rgba(0,0,0,.18)"
|
|
24112
|
-
};
|
|
24113
|
-
const BRIDGE_DEFAULT_TOKENS = {
|
|
24114
|
-
background: "255 255 255",
|
|
24115
|
-
surface: "248 250 252",
|
|
24116
|
-
foreground: "15 23 42",
|
|
24117
|
-
text: "15 23 42",
|
|
24118
|
-
muted: "241 245 249",
|
|
24119
|
-
mutedForeground: "100 116 139",
|
|
24120
|
-
mutedText: "100 116 139",
|
|
24121
|
-
border: "226 232 240",
|
|
24122
|
-
primary: "17 24 39",
|
|
24123
|
-
primaryForeground: "255 255 255",
|
|
24124
|
-
secondary: "71 85 105",
|
|
24125
|
-
secondaryForeground: "255 255 255",
|
|
24126
|
-
white: "255 255 255",
|
|
24127
|
-
success: "22 163 74",
|
|
24128
|
-
destructive: "220 38 38",
|
|
24129
|
-
danger: "220 38 38",
|
|
24130
|
-
error: "220 38 38",
|
|
24131
|
-
warning: "245 158 11",
|
|
24132
|
-
info: "14 165 233",
|
|
24133
|
-
"neutral-100": "241 245 249",
|
|
24134
|
-
"neutral-400": "148 163 184"
|
|
24135
|
-
};
|
|
24136
|
-
const TOKEN_NAME_PATTERN = /^[a-zA-Z][a-zA-Z0-9-]*$/;
|
|
24137
|
-
const CSS_VARIABLE_REFERENCE_PATTERN = /^var\(\s*--[a-zA-Z][a-zA-Z0-9-]*(?:\s*,\s*[^{};<>]+)?\s*\)$/;
|
|
24138
|
-
const CSS_DECLARATION_PROPERTY_PATTERN = /^(?:-[a-zA-Z][a-zA-Z0-9-]*|[a-zA-Z][a-zA-Z0-9-]*|--[a-zA-Z][a-zA-Z0-9-]*)$/;
|
|
24139
|
-
const UNSAFE_CSS_MARKUP_PATTERN = /[{}<>]|<\/|<script/i;
|
|
24140
|
-
const EXTERNAL_URL_PATTERN = /url\s*\(\s*['"]?(?:https?:|\/\/)/i;
|
|
24141
|
-
const JAVASCRIPT_URL_PATTERN = /javascript\s*:/i;
|
|
24142
|
-
const themeBridgeConfigSchema = z.object({
|
|
24143
|
-
tokens: z.record(z.string(), z.string()),
|
|
24144
|
-
typography: z.object({
|
|
24145
|
-
headingFamily: z.string().optional(),
|
|
24146
|
-
bodyFamily: z.string().optional(),
|
|
24147
|
-
headingWeight: z.number().optional(),
|
|
24148
|
-
bodyWeight: z.number().optional()
|
|
24149
|
-
}).optional(),
|
|
24150
|
-
spacing: z.enum([
|
|
24151
|
-
"comfortable",
|
|
24152
|
-
"standard",
|
|
24153
|
-
"dense"
|
|
24154
|
-
]).optional(),
|
|
24155
|
-
corners: z.enum([
|
|
24156
|
-
"square",
|
|
24157
|
-
"soft",
|
|
24158
|
-
"rounded",
|
|
24159
|
-
"pill"
|
|
24160
|
-
]).optional(),
|
|
24161
|
-
shadows: z.enum([
|
|
24162
|
-
"none",
|
|
24163
|
-
"low",
|
|
24164
|
-
"medium",
|
|
24165
|
-
"high"
|
|
24166
|
-
]).optional(),
|
|
24167
|
-
components: z.object({
|
|
24168
|
-
buttons: z.union([z.boolean(), z.object({ variants: z.array(z.enum([
|
|
24169
|
-
"primary",
|
|
24170
|
-
"secondary",
|
|
24171
|
-
"outline",
|
|
24172
|
-
"ghost"
|
|
24173
|
-
])).optional() })]).optional(),
|
|
24174
|
-
cards: z.union([z.boolean(), z.object({ variants: z.array(z.enum([
|
|
24175
|
-
"default",
|
|
24176
|
-
"alternative",
|
|
24177
|
-
"open",
|
|
24178
|
-
"elevated",
|
|
24179
|
-
"outlined"
|
|
24180
|
-
])).optional() })]).optional(),
|
|
24181
|
-
inputs: z.boolean().optional()
|
|
24182
|
-
}).optional(),
|
|
24183
|
-
overrides: z.record(z.string(), z.string()).optional()
|
|
24184
|
-
}).passthrough();
|
|
24185
|
-
const TOKEN_ALIASES = [
|
|
24186
|
-
{
|
|
24187
|
-
source: "text",
|
|
24188
|
-
target: "foreground"
|
|
24189
|
-
},
|
|
24190
|
-
{
|
|
24191
|
-
source: "foreground",
|
|
24192
|
-
target: "text"
|
|
24193
|
-
},
|
|
24194
|
-
{
|
|
24195
|
-
source: "mutedText",
|
|
24196
|
-
target: "mutedForeground"
|
|
24197
|
-
},
|
|
24198
|
-
{
|
|
24199
|
-
source: "mutedForeground",
|
|
24200
|
-
target: "mutedText"
|
|
24201
|
-
},
|
|
24202
|
-
{
|
|
24203
|
-
source: "white",
|
|
24204
|
-
target: "primaryForeground"
|
|
24205
|
-
},
|
|
24206
|
-
{
|
|
24207
|
-
source: "danger",
|
|
24208
|
-
target: "destructive"
|
|
24209
|
-
},
|
|
24210
|
-
{
|
|
24211
|
-
source: "destructive",
|
|
24212
|
-
target: "danger"
|
|
24213
|
-
},
|
|
24214
|
-
{
|
|
24215
|
-
source: "destructive",
|
|
24216
|
-
target: "error"
|
|
24217
|
-
},
|
|
24218
|
-
{
|
|
24219
|
-
source: "accent",
|
|
24220
|
-
target: "info"
|
|
24221
|
-
}
|
|
24222
|
-
];
|
|
24223
|
-
function normalizeTokenValue(value) {
|
|
24224
|
-
const trimmedValue = value.trim();
|
|
24225
|
-
if (!isSafeBridgeTokenValue(trimmedValue)) throw new Error(`[ThemeBridge] Invalid token value "${value}": expected a hex colour, CSS var(), or RGB channel value.`);
|
|
24226
|
-
if (trimmedValue.startsWith("var(")) return trimmedValue;
|
|
24227
|
-
if (trimmedValue.startsWith("#")) return hexToRgbChannels(trimmedValue);
|
|
24228
|
-
return trimmedValue;
|
|
24229
|
-
}
|
|
24230
|
-
function buildThemeBridgeRuntime(config) {
|
|
24231
|
-
const validatedConfig = validateThemeBridgeConfig(config);
|
|
24232
|
-
const cssVars = buildBridgeCssVars(validatedConfig);
|
|
24233
|
-
const themeId = "sdk";
|
|
24234
|
-
const corners = validatedConfig.corners ?? "rounded";
|
|
24235
|
-
const generatorTheme = buildBridgeGeneratorTheme(corners);
|
|
24236
|
-
return {
|
|
24237
|
-
themeId,
|
|
24238
|
-
cssVars,
|
|
24239
|
-
buttonCss: shouldGenerateComponent(config.components?.buttons) ? generateButtonsCss(config, corners, config.shadows ?? "medium") : void 0,
|
|
24240
|
-
cardCss: `${generateCardsCss(config, corners, config.shadows ?? "medium")}\n\n${generateOpaquePanelCss({
|
|
24241
|
-
themeId,
|
|
24242
|
-
surface: {
|
|
24243
|
-
palette: buildBridgeButtonPalette(resolveBridgeTokens(validatedConfig.tokens)),
|
|
24244
|
-
buttonSystem: void 0,
|
|
24245
|
-
solvedInks: "withhold"
|
|
24246
|
-
}
|
|
24247
|
-
})}`,
|
|
24248
|
-
inputCss: shouldGenerateComponent(config.components?.inputs) ? generateInputsCss(corners, config.shadows ?? "medium") : void 0,
|
|
24249
|
-
statusCss: generateStatusCss({
|
|
24250
|
-
themeId,
|
|
24251
|
-
theme: generatorTheme,
|
|
24252
|
-
palette: buildBridgeButtonPalette(resolveBridgeTokens(validatedConfig.tokens))
|
|
24253
|
-
}),
|
|
24254
|
-
progressCss: generateProgressCss({
|
|
24255
|
-
themeId,
|
|
24256
|
-
theme: generatorTheme
|
|
24257
|
-
}),
|
|
24258
|
-
typographyCss: generateTypographyCss({ themeId }),
|
|
24259
|
-
blockVarsCss: generateAllBlockVarsCss({
|
|
24260
|
-
themeId,
|
|
24261
|
-
theme: generatorTheme
|
|
24262
|
-
}),
|
|
24263
|
-
customCss: hasBridgeOverrides(config.overrides) ? generateOverrideCss(config.overrides) : void 0
|
|
24264
|
-
};
|
|
24265
|
-
}
|
|
24266
|
-
function buildBridgeCssVars(config) {
|
|
24267
|
-
const tokens = resolveBridgeTokens(config.tokens);
|
|
24268
|
-
return {
|
|
24269
|
-
...buildColorCssVars({
|
|
24270
|
-
...tokens,
|
|
24271
|
-
...deriveConcreteBridgeOnTokens(tokens)
|
|
24272
|
-
}),
|
|
24273
|
-
...buildTypographyCssVars(config.typography),
|
|
24274
|
-
...buildFontSizeCssVars(),
|
|
24275
|
-
...buildTextRhythmCssVars(),
|
|
24276
|
-
...buildSpacingCssVars(config.spacing),
|
|
24277
|
-
...buildCornerCssVars(config.corners),
|
|
24278
|
-
...buildShadowCssVars(config.shadows),
|
|
24279
|
-
...buildMotionCssVars()
|
|
24280
|
-
};
|
|
24281
|
-
}
|
|
24282
|
-
function buildColorCssVars(tokens) {
|
|
24283
|
-
const cssVars = {};
|
|
24284
|
-
for (const [name, value] of Object.entries(tokens)) cssVars[`--tb-${name}`] = value;
|
|
24285
|
-
return cssVars;
|
|
24286
|
-
}
|
|
24287
|
-
function buildTypographyCssVars(typography) {
|
|
24288
|
-
const cssVars = {};
|
|
24289
|
-
const typographyConfig = typography ?? {};
|
|
24290
|
-
const headingFamily = typographyConfig.headingFamily ?? SYSTEM_FONT_STACK;
|
|
24291
|
-
const bodyFamily = typographyConfig.bodyFamily ?? SYSTEM_FONT_STACK;
|
|
24292
|
-
const headingWeight = typographyConfig.headingWeight ?? 600;
|
|
24293
|
-
const bodyWeight = typographyConfig.bodyWeight ?? 400;
|
|
24294
|
-
cssVars["--font-heading"] = headingFamily;
|
|
24295
|
-
cssVars["--font-body"] = bodyFamily;
|
|
24296
|
-
cssVars["--font-weight-heading"] = headingWeight;
|
|
24297
|
-
cssVars["--font-weight-body"] = bodyWeight;
|
|
24298
|
-
cssVars["--tb-font-heading"] = headingFamily;
|
|
24299
|
-
cssVars["--tb-font-body"] = bodyFamily;
|
|
24300
|
-
cssVars["--tb-font-weight-heading"] = String(headingWeight);
|
|
24301
|
-
cssVars["--tb-font-weight-body"] = String(bodyWeight);
|
|
24302
|
-
return cssVars;
|
|
24303
|
-
}
|
|
24304
|
-
function buildFontSizeCssVars() {
|
|
24305
|
-
return {
|
|
24306
|
-
"--fs-h1": "2.5rem",
|
|
24307
|
-
"--fs-h2": "2rem",
|
|
24308
|
-
"--fs-h3": "1.5rem",
|
|
24309
|
-
"--fs-body": "1rem",
|
|
24310
|
-
"--fs-h1-fluid": "clamp(2rem, 1.5rem + 2.5vw, 2.5rem)",
|
|
24311
|
-
"--fs-h2-fluid": "clamp(1.5rem, 1.25rem + 1.5vw, 2rem)",
|
|
24312
|
-
"--fs-h3-fluid": "clamp(1.25rem, 1rem + 1vw, 1.5rem)",
|
|
24313
|
-
"--fs-h1-display": "3.75rem",
|
|
24314
|
-
"--fs-h1-display-fluid": "clamp(2.5rem, 2rem + 4vw, 3.75rem)",
|
|
24315
|
-
"--tb-fs-h1": "2.5rem",
|
|
24316
|
-
"--tb-fs-h2": "2rem",
|
|
24317
|
-
"--tb-fs-h3": "1.5rem",
|
|
24318
|
-
"--tb-fs-body": "1rem"
|
|
24319
|
-
};
|
|
24320
|
-
}
|
|
24321
|
-
function buildTextRhythmCssVars() {
|
|
24322
|
-
return {
|
|
24323
|
-
"--ls-heading": "-0.02em",
|
|
24324
|
-
"--ls-body": "0em",
|
|
24325
|
-
"--lh-heading": "1.2",
|
|
24326
|
-
"--lh-body": "1.5",
|
|
24327
|
-
"--tt-heading": "none",
|
|
24328
|
-
"--fv-heading": "normal",
|
|
24329
|
-
"--fi-heading": "normal",
|
|
24330
|
-
"--tb-ls-heading": "-0.02em",
|
|
24331
|
-
"--tb-ls-body": "0em",
|
|
24332
|
-
"--tb-lh-heading": "1.2",
|
|
24333
|
-
"--tb-lh-body": "1.5",
|
|
24334
|
-
"--tb-tt-heading": "none",
|
|
24335
|
-
"--tb-fv-heading": "normal"
|
|
24336
|
-
};
|
|
24337
|
-
}
|
|
24338
|
-
function buildSpacingCssVars(spacing) {
|
|
24339
|
-
const spacingPreset = SPACING_CONFIG[spacing ?? "standard"];
|
|
24340
|
-
return {
|
|
24341
|
-
"--space-mult": spacingPreset.mult,
|
|
24342
|
-
"--rt-space-y": spacingPreset.rhythm,
|
|
24343
|
-
"--tb-space-mult": String(spacingPreset.mult),
|
|
24344
|
-
"--tb-rt-space-y": spacingPreset.rhythm
|
|
24345
|
-
};
|
|
24346
|
-
}
|
|
24347
|
-
function buildCornerCssVars(corners) {
|
|
24348
|
-
const cornersPreset = CORNERS_CONFIG[corners ?? "rounded"];
|
|
24349
|
-
return {
|
|
24350
|
-
[THEME_RADIUS_CSS_VARS.block]: cornersPreset.block,
|
|
24351
|
-
[THEME_RADIUS_CSS_VARS.button]: cornersPreset.button,
|
|
24352
|
-
[THEME_RADIUS_CSS_VARS.input]: cornersPreset.control,
|
|
24353
|
-
[THEME_RADIUS_CSS_VARS.legacyControl]: cornersPreset.control,
|
|
24354
|
-
[THEME_RADIUS_CSS_VARS.legacyCard]: cornersPreset.block,
|
|
24355
|
-
"--tb-radius-control": cornersPreset.control,
|
|
24356
|
-
"--tb-radius-card": cornersPreset.card
|
|
24357
|
-
};
|
|
24358
|
-
}
|
|
24359
|
-
function buildShadowCssVars(shadows) {
|
|
24360
|
-
const shadowPreset = shadows ?? "medium";
|
|
24361
|
-
const shadowElev = SHADOWS_CONFIG[shadowPreset];
|
|
24362
|
-
const cssVars = { "--shadow-elev": shadowElev };
|
|
24363
|
-
cssVars["--tb-shadow-elev"] = shadowElev;
|
|
24364
|
-
if (shadows === "none") {
|
|
24365
|
-
cssVars["--shadow-sm"] = "none";
|
|
24366
|
-
cssVars["--shadow-md"] = "none";
|
|
24367
|
-
cssVars["--shadow-lg"] = "none";
|
|
24368
|
-
cssVars["--shadow-xl"] = "none";
|
|
24369
|
-
cssVars["--shadow-2xl"] = "none";
|
|
24370
|
-
} else Object.assign(cssVars, generateShadowCssVars({ shadow: {
|
|
24371
|
-
elevation: shadowPreset,
|
|
24372
|
-
softness: "crisp",
|
|
24373
|
-
position: "bottom"
|
|
24374
|
-
} }));
|
|
24375
|
-
cssVars["--tb-shadow-sm"] = cssVars["--shadow-sm"] ?? shadowElev;
|
|
24376
|
-
cssVars["--tb-shadow-md"] = cssVars["--shadow-md"] ?? shadowElev;
|
|
24377
|
-
cssVars["--tb-shadow-lg"] = cssVars["--shadow-lg"] ?? shadowElev;
|
|
24378
|
-
cssVars["--tb-shadow-xl"] = cssVars["--shadow-xl"] ?? shadowElev;
|
|
24379
|
-
cssVars["--tb-shadow-2xl"] = cssVars["--shadow-2xl"] ?? shadowElev;
|
|
24380
|
-
return cssVars;
|
|
24381
|
-
}
|
|
24382
|
-
function buildMotionCssVars() {
|
|
24383
|
-
return {
|
|
24384
|
-
"--motion-duration": "180ms",
|
|
24385
|
-
"--motion-ease": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
24386
|
-
"--rb-block-transition": "150ms",
|
|
24387
|
-
"--tb-motion-duration": "180ms",
|
|
24388
|
-
"--tb-motion-ease": "cubic-bezier(0.2, 0.8, 0.2, 1)"
|
|
24389
|
-
};
|
|
24390
|
-
}
|
|
24391
|
-
function validateThemeBridgeConfig(config) {
|
|
24392
|
-
if (!config || typeof config !== "object") throw new Error("[ThemeBridge] Invalid config: expected an object with a \"tokens\" property.");
|
|
24393
|
-
if (!config.tokens || typeof config.tokens !== "object" || Array.isArray(config.tokens)) throw new Error("[ThemeBridge] Missing \"tokens\" property in config. ThemeBridgeConfig requires a \"tokens\" object with color definitions. Example: { tokens: { primary: \"#6d28d9\", background: \"#ffffff\" } }");
|
|
24394
|
-
const parsedConfig = themeBridgeConfigSchema.safeParse(config);
|
|
24395
|
-
if (!parsedConfig.success) {
|
|
24396
|
-
const firstIssue = parsedConfig.error.issues[0];
|
|
24397
|
-
throw new Error(`[ThemeBridge] Invalid config: ${firstIssue?.message ?? "failed validation"}.`);
|
|
24398
|
-
}
|
|
24399
|
-
validateBridgeTokens(config.tokens);
|
|
24400
|
-
if (config.overrides !== void 0) parseBridgeOverrideRules(config.overrides);
|
|
24401
|
-
return config;
|
|
24402
|
-
}
|
|
24403
|
-
function resolveBridgeTokens(tokens) {
|
|
24404
|
-
const resolved = {};
|
|
24405
|
-
for (const [name, rawValue] of Object.entries(tokens)) if (isPresentTokenValue(rawValue)) resolved[name] = normalizeTokenValue(rawValue);
|
|
24406
|
-
for (const { source, target } of TOKEN_ALIASES) if (!isPresentTokenValue(resolved[target]) && isPresentTokenValue(resolved[source])) resolved[target] = resolved[source];
|
|
24407
|
-
for (const [name, value] of Object.entries(BRIDGE_DEFAULT_TOKENS)) if (!isPresentTokenValue(resolved[name])) resolved[name] = value;
|
|
24408
|
-
return resolved;
|
|
24409
|
-
}
|
|
24410
|
-
function isPresentTokenValue(value) {
|
|
24411
|
-
return typeof value === "string" && value.trim().length > 0;
|
|
24412
|
-
}
|
|
24413
|
-
function isSafeBridgeTokenName(name) {
|
|
24414
|
-
return TOKEN_NAME_PATTERN.test(name);
|
|
24415
|
-
}
|
|
24416
|
-
function isSafeBridgeTokenValue(value) {
|
|
24417
|
-
const trimmedValue = value.trim();
|
|
24418
|
-
if (trimmedValue.length === 0) return true;
|
|
24419
|
-
if (trimmedValue.startsWith("#")) return true;
|
|
24420
|
-
if (trimmedValue.startsWith("var(")) return CSS_VARIABLE_REFERENCE_PATTERN.test(trimmedValue);
|
|
24421
|
-
return isRgbChannelValue(trimmedValue);
|
|
24422
|
-
}
|
|
24423
|
-
function isRgbChannelValue(value) {
|
|
24424
|
-
const match = value.match(RGB_CHANNELS_PATTERN);
|
|
24425
|
-
if (!match) return false;
|
|
24426
|
-
const [, red, green, blue, alpha] = match;
|
|
24427
|
-
if (![
|
|
24428
|
-
red,
|
|
24429
|
-
green,
|
|
24430
|
-
blue
|
|
24431
|
-
].map((channel) => Number(channel)).every((channel) => Number.isInteger(channel) && channel >= 0 && channel <= 255)) return false;
|
|
24432
|
-
if (alpha === void 0) return true;
|
|
24433
|
-
if (alpha.endsWith("%")) {
|
|
24434
|
-
const percent = Number(alpha.slice(0, -1));
|
|
24435
|
-
return Number.isFinite(percent) && percent >= 0 && percent <= 100;
|
|
24436
|
-
}
|
|
24437
|
-
const alphaNumber = Number(alpha);
|
|
24438
|
-
return Number.isFinite(alphaNumber) && alphaNumber >= 0 && alphaNumber <= 1;
|
|
24439
|
-
}
|
|
24440
|
-
function validateBridgeTokens(tokens) {
|
|
24441
|
-
for (const [name, value] of Object.entries(tokens)) {
|
|
24442
|
-
if (!isSafeBridgeTokenName(name)) throw new Error(`[ThemeBridge] Invalid token name "${name}": token names must match ${String(TOKEN_NAME_PATTERN)}.`);
|
|
24443
|
-
if (typeof value !== "string" || !isSafeBridgeTokenValue(value)) throw new Error(`[ThemeBridge] Invalid token value for "${name}": expected a hex colour, CSS var(), or RGB channel value.`);
|
|
24444
|
-
}
|
|
24445
|
-
}
|
|
24446
|
-
function parseBridgeOverrideRules(overrides) {
|
|
24447
|
-
if (!overrides || typeof overrides !== "object" || Array.isArray(overrides)) throw new Error("[ThemeBridge] Invalid overrides: expected a selector-to-rules object.");
|
|
24448
|
-
return Object.entries(overrides).map(([selector, rules], index) => {
|
|
24449
|
-
if (hasUnsafeCssFragment(selector)) throw new Error(`[ThemeBridge] Invalid override selector "${selector}": selectors contain unsafe CSS markup or external URLs.`);
|
|
24450
|
-
return {
|
|
24451
|
-
id: `theme-bridge-override-${index + 1}`,
|
|
24452
|
-
selector,
|
|
24453
|
-
declarations: parseBridgeOverrideDeclarations(selector, rules)
|
|
24454
|
-
};
|
|
24455
|
-
});
|
|
24456
|
-
}
|
|
24457
|
-
function parseBridgeOverrideDeclarations(selector, rules) {
|
|
24458
|
-
if (typeof rules !== "string") throw new Error(`[ThemeBridge] Invalid override for "${selector}": expected a CSS declaration string.`);
|
|
24459
|
-
if (hasUnsafeCssFragment(rules)) throw new Error(`[ThemeBridge] Invalid override for "${selector}": rules contain unsafe CSS markup or external URLs.`);
|
|
24460
|
-
const declarations = {};
|
|
24461
|
-
for (const declaration of rules.split(";")) {
|
|
24462
|
-
const trimmedDeclaration = declaration.trim();
|
|
24463
|
-
if (trimmedDeclaration.length === 0) continue;
|
|
24464
|
-
const colonIndex = trimmedDeclaration.indexOf(":");
|
|
24465
|
-
if (colonIndex <= 0) throw new Error(`[ThemeBridge] Invalid override for "${selector}": expected "property: value" declarations.`);
|
|
24466
|
-
const property = trimmedDeclaration.slice(0, colonIndex).trim();
|
|
24467
|
-
const value = trimmedDeclaration.slice(colonIndex + 1).trim();
|
|
24468
|
-
if (!CSS_DECLARATION_PROPERTY_PATTERN.test(property) || value.length === 0) throw new Error(`[ThemeBridge] Invalid override for "${selector}": expected safe CSS declaration names and values.`);
|
|
24469
|
-
if (hasUnsafeCssFragment(value)) throw new Error(`[ThemeBridge] Invalid override for "${selector}": declaration value contains unsafe CSS.`);
|
|
24470
|
-
declarations[property] = value;
|
|
24471
|
-
}
|
|
24472
|
-
return declarations;
|
|
24473
|
-
}
|
|
24474
|
-
function hasUnsafeCssFragment(value) {
|
|
24475
|
-
return UNSAFE_CSS_MARKUP_PATTERN.test(value) || /@import/i.test(value) || EXTERNAL_URL_PATTERN.test(value) || JAVASCRIPT_URL_PATTERN.test(value);
|
|
24476
|
-
}
|
|
24477
|
-
function shouldGenerateComponent(value) {
|
|
24478
|
-
return value !== void 0 && value !== false;
|
|
24479
|
-
}
|
|
24480
|
-
function generateButtonsCss(config, corners, shadows) {
|
|
24481
|
-
let variants = getDefaultButtonVariants();
|
|
24482
|
-
const buttonConfig = config.components?.buttons;
|
|
24483
|
-
if (typeof buttonConfig === "object" && buttonConfig.variants) {
|
|
24484
|
-
const requestedIds = new Set(buttonConfig.variants);
|
|
24485
|
-
variants = variants.filter((variant) => requestedIds.has(variant.id));
|
|
24486
|
-
}
|
|
24487
|
-
const settings = {
|
|
24488
|
-
corners,
|
|
24489
|
-
shadow: shadows,
|
|
24490
|
-
fontWeight: 500,
|
|
24491
|
-
textTransform: "none"
|
|
24492
|
-
};
|
|
24493
|
-
const tokens = resolveBridgeTokens(config.tokens);
|
|
24494
|
-
return generateButtonCoreCss("sdk", variants, settings, buildBridgeButtonPalette(tokens));
|
|
24495
|
-
}
|
|
24496
|
-
/**
|
|
24497
|
-
* Bridge card CSS, in two halves with different opt-in rules.
|
|
24498
|
-
*
|
|
24499
|
-
* The `.card-role-*` aliases always emit, from the full default variant set:
|
|
24500
|
-
* they are the card contract compiled content renders against, so a consumer
|
|
24501
|
-
* who never mentions `components.cards` still gets a working card surface.
|
|
24502
|
-
* The named `.card-{id}` classes (and the legacy ids beside them) are a
|
|
24503
|
-
* catalogue an SDK site addresses by hand, so they stay opt-in and keep
|
|
24504
|
-
* honouring a `variants` allow-list.
|
|
24505
|
-
*/
|
|
24506
|
-
function generateCardsCss(config, corners, shadows) {
|
|
24507
|
-
const allVariants = getDefaultCardVariants();
|
|
24508
|
-
const cardConfig = config.components?.cards;
|
|
24509
|
-
const settings = {
|
|
24510
|
-
corners,
|
|
24511
|
-
shadow: shadows,
|
|
24512
|
-
borderWidth: "thin"
|
|
24513
|
-
};
|
|
24514
|
-
const roleAliasCss = generateCardCoreCss("sdk", allVariants, settings, "role-aliases");
|
|
24515
|
-
if (cardConfig === void 0 || cardConfig === false) return roleAliasCss;
|
|
24516
|
-
let namedVariants = allVariants;
|
|
24517
|
-
if (cardConfig !== true && cardConfig.variants) {
|
|
24518
|
-
const requested = new Set(cardConfig.variants);
|
|
24519
|
-
namedVariants = allVariants.filter((variant) => requested.has(variant.id) || variant.role !== void 0 && requested.has(variant.role) || (variant.legacyIds ?? []).some((legacyId) => requested.has(legacyId)));
|
|
24520
|
-
}
|
|
24521
|
-
return [roleAliasCss, generateCardCoreCss("sdk", namedVariants, settings, "named")].filter(Boolean).join("\n\n");
|
|
24522
|
-
}
|
|
24523
|
-
function generateInputsCss(corners, shadows) {
|
|
24524
|
-
return generateInputCoreCss("sdk", {
|
|
24525
|
-
...getDefaultInputSettings(),
|
|
24526
|
-
corners,
|
|
24527
|
-
shadow: shadows === "none" ? "none" : "low"
|
|
24528
|
-
});
|
|
24529
|
-
}
|
|
24530
|
-
function hasBridgeOverrides(overrides) {
|
|
24531
|
-
return overrides !== void 0 && Object.keys(overrides).length > 0;
|
|
24532
|
-
}
|
|
24533
|
-
function generateOverrideCss(overrides) {
|
|
24534
|
-
return compileCustomCssRules(parseCustomCssRules(parseBridgeOverrideRules(overrides)), "sdk");
|
|
24535
|
-
}
|
|
24536
|
-
function buildBridgeGeneratorTheme(corners) {
|
|
24537
|
-
return {
|
|
24538
|
-
corners,
|
|
24539
|
-
motion: {
|
|
24540
|
-
level: "medium",
|
|
24541
|
-
easing: "standard"
|
|
24542
|
-
}
|
|
24543
|
-
};
|
|
24544
|
-
}
|
|
24545
|
-
z.object({
|
|
24546
|
-
palette: paletteColorsSchema,
|
|
24547
|
-
paletteMode: paletteModeSchema,
|
|
24548
|
-
typography: z.object({
|
|
24549
|
-
headingFamily: z.string().trim().min(1),
|
|
24550
|
-
bodyFamily: z.string().trim().min(1)
|
|
24551
|
-
}).strict(),
|
|
24552
|
-
corners
|
|
24553
|
-
}).strict();
|
|
24554
|
-
//#endregion
|
|
24555
|
-
export { buildThemeRuntime as a, ThemeScopeCore as i, ResponsiveScope as n, mergeContentWithBlockStyleOverrides as o, ThemeScope as r, generateDefaultAccordionSystem as s, buildThemeBridgeRuntime as t };
|
|
23185
|
+
export { getResponsiveScopeSpec as C, renderCssDeclarations as D, resolvedButtonFocusDeclarations as E, cardBorderDeclarations as O, THEME_RESPONSIVE_CONTAINER_NAME as S, resolvedButtonColourDeclarations as T, generateInputGroupCss as _, escapeStyleContent as a, generateShadowCssVars as b, generateAllBlockVarsCss as c, generateTypographyCss as d, generateProgressCss as f, INPUT_GROUP_SELECTOR as g, INPUT_GROUP_FOCUS_SELECTOR as h, compileCustomCssRules as i, cardDecorationPseudoRules as k, generateBlockCustomVarsCss as l, INPUT_GROUP_ERROR_SELECTOR as m, containerResponsiveThemeCss as n, prefixSelector as o, generateStatusCss as p, compileBlockCustomCssRules as r, toKebabCase as s, ThemeScopeCore as t, THEME_RADIUS_CSS_VARS as u, generateCheckableCss as v, RESOLVED_BUTTON_DISABLED_DECLARATIONS as w, DEFAULT_THEME_RESPONSIVE_MODE as x, generateOpaquePanelCss as y };
|