@mountaya/studio-react 0.0.0-stage → 0.2.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/CHANGELOG.md +98 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1087 -2
- package/THIRD-PARTY-NOTICES.txt +149 -0
- package/dist/chunk--VSQcEs_.cjs +26 -0
- package/dist/chunk--VSQcEs_.cjs.map +1 -0
- package/dist/chunk-0qoALFfx.cjs +454 -0
- package/dist/chunk-0qoALFfx.cjs.map +1 -0
- package/dist/chunk-0sHgX8We.cjs +97 -0
- package/dist/chunk-0sHgX8We.cjs.map +1 -0
- package/dist/chunk-4D4as_tP.js +16 -0
- package/dist/chunk-4D4as_tP.js.map +1 -0
- package/dist/chunk-6LM6wuIg.cjs +13 -0
- package/dist/chunk-6LM6wuIg.cjs.map +1 -0
- package/dist/chunk-6VpwF-77.js +7 -0
- package/dist/chunk-6VpwF-77.js.map +1 -0
- package/dist/chunk-6v2fJIDh.cjs +28 -0
- package/dist/chunk-6v2fJIDh.cjs.map +1 -0
- package/dist/chunk-Af0f-OjN.js +71 -0
- package/dist/chunk-Af0f-OjN.js.map +1 -0
- package/dist/chunk-B-QQkaWk.js +91 -0
- package/dist/chunk-B-QQkaWk.js.map +1 -0
- package/dist/chunk-B1lX5w6I.cjs +181 -0
- package/dist/chunk-B1lX5w6I.cjs.map +1 -0
- package/dist/chunk-B2gsz9OJ.js +19 -0
- package/dist/chunk-B2gsz9OJ.js.map +1 -0
- package/dist/chunk-B38srE2R.d.cts +3976 -0
- package/dist/chunk-B3HdxIq7.js +69 -0
- package/dist/chunk-B3HdxIq7.js.map +1 -0
- package/dist/chunk-B3UCX3Wd.js +30 -0
- package/dist/chunk-B3UCX3Wd.js.map +1 -0
- package/dist/chunk-B3mMYMtz.cjs +88 -0
- package/dist/chunk-B3mMYMtz.cjs.map +1 -0
- package/dist/chunk-B7D0neNQ.cjs +47 -0
- package/dist/chunk-B7D0neNQ.cjs.map +1 -0
- package/dist/chunk-B7UzNwmm.cjs +115 -0
- package/dist/chunk-B7UzNwmm.cjs.map +1 -0
- package/dist/chunk-B7d3NIaH.js +55 -0
- package/dist/chunk-B7d3NIaH.js.map +1 -0
- package/dist/chunk-B8ONCPFQ.cjs +70 -0
- package/dist/chunk-B8ONCPFQ.cjs.map +1 -0
- package/dist/chunk-B8QgG-RT.js +2232 -0
- package/dist/chunk-B8QgG-RT.js.map +1 -0
- package/dist/chunk-B8ZpXH0_.cjs +64 -0
- package/dist/chunk-B8ZpXH0_.cjs.map +1 -0
- package/dist/chunk-B8mS5bGc.cjs +112 -0
- package/dist/chunk-B8mS5bGc.cjs.map +1 -0
- package/dist/chunk-B9EkHHSU.js +40 -0
- package/dist/chunk-B9EkHHSU.js.map +1 -0
- package/dist/chunk-BA0PWNyn.js +234 -0
- package/dist/chunk-BA0PWNyn.js.map +1 -0
- package/dist/chunk-BAWE1gqe.js +60 -0
- package/dist/chunk-BAWE1gqe.js.map +1 -0
- package/dist/chunk-BAe9m2Yp.d.cts +963 -0
- package/dist/chunk-BDJCk6ml.js +19 -0
- package/dist/chunk-BDJCk6ml.js.map +1 -0
- package/dist/chunk-BFI2CR6j.cjs +381 -0
- package/dist/chunk-BFI2CR6j.cjs.map +1 -0
- package/dist/chunk-BIIJXiiS.js +40 -0
- package/dist/chunk-BIIJXiiS.js.map +1 -0
- package/dist/chunk-BJAn10wR.js +54 -0
- package/dist/chunk-BJAn10wR.js.map +1 -0
- package/dist/chunk-BLxPxx5p.js +1641 -0
- package/dist/chunk-BLxPxx5p.js.map +1 -0
- package/dist/chunk-BNSJoNwO.cjs +377 -0
- package/dist/chunk-BNSJoNwO.cjs.map +1 -0
- package/dist/chunk-BNTshA5u.js +304 -0
- package/dist/chunk-BNTshA5u.js.map +1 -0
- package/dist/chunk-BO_yHMn2.js +7 -0
- package/dist/chunk-BO_yHMn2.js.map +1 -0
- package/dist/chunk-BOpIVklq.cjs +23 -0
- package/dist/chunk-BOpIVklq.cjs.map +1 -0
- package/dist/chunk-BP8bHGiE.cjs +12 -0
- package/dist/chunk-BP8bHGiE.cjs.map +1 -0
- package/dist/chunk-BPsgx3c7.js +56 -0
- package/dist/chunk-BPsgx3c7.js.map +1 -0
- package/dist/chunk-BQkKY_kf.js +44 -0
- package/dist/chunk-BQkKY_kf.js.map +1 -0
- package/dist/chunk-BQoAEKyJ.js +193 -0
- package/dist/chunk-BQoAEKyJ.js.map +1 -0
- package/dist/chunk-BRuLc45I.cjs +21 -0
- package/dist/chunk-BRuLc45I.cjs.map +1 -0
- package/dist/chunk-BSnrqsA8.cjs +56 -0
- package/dist/chunk-BSnrqsA8.cjs.map +1 -0
- package/dist/chunk-BTDBomKm.cjs +80 -0
- package/dist/chunk-BTDBomKm.cjs.map +1 -0
- package/dist/chunk-BVogYy0R.js +375 -0
- package/dist/chunk-BVogYy0R.js.map +1 -0
- package/dist/chunk-BWITLmlf.js +6 -0
- package/dist/chunk-BWITLmlf.js.map +1 -0
- package/dist/chunk-BXUrvYqd.d.cts +112 -0
- package/dist/chunk-BXUrvYqd.d.ts +112 -0
- package/dist/chunk-BYzQfFFV.js +54 -0
- package/dist/chunk-BYzQfFFV.js.map +1 -0
- package/dist/chunk-BZCKMlN8.js +35 -0
- package/dist/chunk-BZCKMlN8.js.map +1 -0
- package/dist/chunk-BalPERFX.js +13 -0
- package/dist/chunk-BalPERFX.js.map +1 -0
- package/dist/chunk-Bb5SAw6T.cjs +72 -0
- package/dist/chunk-Bb5SAw6T.cjs.map +1 -0
- package/dist/chunk-BbQyoetL.cjs +269 -0
- package/dist/chunk-BbQyoetL.cjs.map +1 -0
- package/dist/chunk-BdepwGey.js +600 -0
- package/dist/chunk-BdepwGey.js.map +1 -0
- package/dist/chunk-BeB57TnZ.js +29 -0
- package/dist/chunk-BeB57TnZ.js.map +1 -0
- package/dist/chunk-BecxET4U.cjs +26 -0
- package/dist/chunk-BecxET4U.cjs.map +1 -0
- package/dist/chunk-Bfuu_B7M.js +16 -0
- package/dist/chunk-Bfuu_B7M.js.map +1 -0
- package/dist/chunk-Bh4xSiDO.js +93 -0
- package/dist/chunk-Bh4xSiDO.js.map +1 -0
- package/dist/chunk-BhLItb06.js +10 -0
- package/dist/chunk-BhLItb06.js.map +1 -0
- package/dist/chunk-BhelUZ4P.js +30 -0
- package/dist/chunk-BhelUZ4P.js.map +1 -0
- package/dist/chunk-BiMRpOwB.cjs +342 -0
- package/dist/chunk-BiMRpOwB.cjs.map +1 -0
- package/dist/chunk-Bj3ium6N.cjs +22 -0
- package/dist/chunk-Bj3ium6N.cjs.map +1 -0
- package/dist/chunk-BjQzK3c3.cjs +59 -0
- package/dist/chunk-BjQzK3c3.cjs.map +1 -0
- package/dist/chunk-BkvNTXo7.cjs +15 -0
- package/dist/chunk-BkvNTXo7.cjs.map +1 -0
- package/dist/chunk-BmJDHIlZ.cjs +50 -0
- package/dist/chunk-BmJDHIlZ.cjs.map +1 -0
- package/dist/chunk-BmztanwN.cjs +13 -0
- package/dist/chunk-BmztanwN.cjs.map +1 -0
- package/dist/chunk-Bnci-ej8.cjs +262 -0
- package/dist/chunk-Bnci-ej8.cjs.map +1 -0
- package/dist/chunk-BoOw05B0.js +24 -0
- package/dist/chunk-BoOw05B0.js.map +1 -0
- package/dist/chunk-BqPxk-8w.cjs +95 -0
- package/dist/chunk-BqPxk-8w.cjs.map +1 -0
- package/dist/chunk-Br_1h4WD.cjs +15 -0
- package/dist/chunk-Br_1h4WD.cjs.map +1 -0
- package/dist/chunk-BtmcBZXU.js +13 -0
- package/dist/chunk-BtmcBZXU.js.map +1 -0
- package/dist/chunk-BvaNI_86.js +11 -0
- package/dist/chunk-BvaNI_86.js.map +1 -0
- package/dist/chunk-BvoYNlF5.js +145 -0
- package/dist/chunk-BvoYNlF5.js.map +1 -0
- package/dist/chunk-BwnCGe7J.js +268 -0
- package/dist/chunk-BwnCGe7J.js.map +1 -0
- package/dist/chunk-BxpaOkyq.cjs +310 -0
- package/dist/chunk-BxpaOkyq.cjs.map +1 -0
- package/dist/chunk-BybRyFen.cjs +65 -0
- package/dist/chunk-BybRyFen.cjs.map +1 -0
- package/dist/chunk-C-9wXKm5.cjs +83 -0
- package/dist/chunk-C-9wXKm5.cjs.map +1 -0
- package/dist/chunk-C-hV-Usi.js +7 -0
- package/dist/chunk-C-hV-Usi.js.map +1 -0
- package/dist/chunk-C06UWdDq.js +100 -0
- package/dist/chunk-C06UWdDq.js.map +1 -0
- package/dist/chunk-C1NzDn7y.cjs +35 -0
- package/dist/chunk-C1NzDn7y.cjs.map +1 -0
- package/dist/chunk-C2zEVNM1.js +20 -0
- package/dist/chunk-C2zEVNM1.js.map +1 -0
- package/dist/chunk-C3ftwoOp.js +6 -0
- package/dist/chunk-C3ftwoOp.js.map +1 -0
- package/dist/chunk-C5ZETobm.js +17 -0
- package/dist/chunk-C5ZETobm.js.map +1 -0
- package/dist/chunk-C5oCIViv.js +98 -0
- package/dist/chunk-C5oCIViv.js.map +1 -0
- package/dist/chunk-C60kC4oZ.cjs +114 -0
- package/dist/chunk-C60kC4oZ.cjs.map +1 -0
- package/dist/chunk-C6Mr3Z8L.js +59 -0
- package/dist/chunk-C6Mr3Z8L.js.map +1 -0
- package/dist/chunk-C6cBmVch.js +119 -0
- package/dist/chunk-C6cBmVch.js.map +1 -0
- package/dist/chunk-C6vKd7KP.cjs +519 -0
- package/dist/chunk-C6vKd7KP.cjs.map +1 -0
- package/dist/chunk-C7NizUxN.js +21 -0
- package/dist/chunk-C7NizUxN.js.map +1 -0
- package/dist/chunk-C93yeTAD.js +91 -0
- package/dist/chunk-C93yeTAD.js.map +1 -0
- package/dist/chunk-CByZU6Hx.cjs +90 -0
- package/dist/chunk-CByZU6Hx.cjs.map +1 -0
- package/dist/chunk-CCNIPIJB.cjs +25 -0
- package/dist/chunk-CCNIPIJB.cjs.map +1 -0
- package/dist/chunk-CEDKBew2.js +15 -0
- package/dist/chunk-CEDKBew2.js.map +1 -0
- package/dist/chunk-CI2PEZIK.js +147 -0
- package/dist/chunk-CI2PEZIK.js.map +1 -0
- package/dist/chunk-CIjPAYuo.cjs +268 -0
- package/dist/chunk-CIjPAYuo.cjs.map +1 -0
- package/dist/chunk-CJyqD6Ib.js +518 -0
- package/dist/chunk-CJyqD6Ib.js.map +1 -0
- package/dist/chunk-CNFF8fiL.js +38 -0
- package/dist/chunk-CNFF8fiL.js.map +1 -0
- package/dist/chunk-CNFoFzhK.cjs +50 -0
- package/dist/chunk-CNFoFzhK.cjs.map +1 -0
- package/dist/chunk-CQAuAPOE.cjs +63 -0
- package/dist/chunk-CQAuAPOE.cjs.map +1 -0
- package/dist/chunk-CR46E73M.js +50 -0
- package/dist/chunk-CR46E73M.js.map +1 -0
- package/dist/chunk-CSq4CbT1.js +86 -0
- package/dist/chunk-CSq4CbT1.js.map +1 -0
- package/dist/chunk-CT6i9_8G.cjs +31 -0
- package/dist/chunk-CT6i9_8G.cjs.map +1 -0
- package/dist/chunk-CUKEOil1.cjs +108 -0
- package/dist/chunk-CUKEOil1.cjs.map +1 -0
- package/dist/chunk-CWxPV2vI.js +111 -0
- package/dist/chunk-CWxPV2vI.js.map +1 -0
- package/dist/chunk-CXap-mFu.js +50 -0
- package/dist/chunk-CXap-mFu.js.map +1 -0
- package/dist/chunk-CYx1vTOG.d.ts +69 -0
- package/dist/chunk-CZOXtOQp.js +261 -0
- package/dist/chunk-CZOXtOQp.js.map +1 -0
- package/dist/chunk-CZSBVyE9.js +68 -0
- package/dist/chunk-CZSBVyE9.js.map +1 -0
- package/dist/chunk-C_NZdnA3.cjs +57 -0
- package/dist/chunk-C_NZdnA3.cjs.map +1 -0
- package/dist/chunk-C_k4SxhD.js +245 -0
- package/dist/chunk-C_k4SxhD.js.map +1 -0
- package/dist/chunk-CaTeIppS.cjs +115 -0
- package/dist/chunk-CaTeIppS.cjs.map +1 -0
- package/dist/chunk-CaUCI-WV.cjs +69 -0
- package/dist/chunk-CaUCI-WV.cjs.map +1 -0
- package/dist/chunk-CblkEI9o.js +19 -0
- package/dist/chunk-CblkEI9o.js.map +1 -0
- package/dist/chunk-CcXeCiEQ.js +70 -0
- package/dist/chunk-CcXeCiEQ.js.map +1 -0
- package/dist/chunk-Ce4D2B8W.cjs +49 -0
- package/dist/chunk-Ce4D2B8W.cjs.map +1 -0
- package/dist/chunk-CetxbYL1.js +66 -0
- package/dist/chunk-CetxbYL1.js.map +1 -0
- package/dist/chunk-ClfU9elo.js +68 -0
- package/dist/chunk-ClfU9elo.js.map +1 -0
- package/dist/chunk-CmNHE_Un.cjs +4 -0
- package/dist/chunk-Cmb_XLfd.js +82 -0
- package/dist/chunk-Cmb_XLfd.js.map +1 -0
- package/dist/chunk-Cp26IdF1.js +72 -0
- package/dist/chunk-Cp26IdF1.js.map +1 -0
- package/dist/chunk-CsBkSCbR.cjs +92 -0
- package/dist/chunk-CsBkSCbR.cjs.map +1 -0
- package/dist/chunk-CsnIpELM.js +31 -0
- package/dist/chunk-CsnIpELM.js.map +1 -0
- package/dist/chunk-CsnJv55G.cjs +36 -0
- package/dist/chunk-CsnJv55G.cjs.map +1 -0
- package/dist/chunk-CsxHDVHF.cjs +68 -0
- package/dist/chunk-CsxHDVHF.cjs.map +1 -0
- package/dist/chunk-Cv1FyWmK.js +670 -0
- package/dist/chunk-Cv1FyWmK.js.map +1 -0
- package/dist/chunk-CwXRQ-3X.cjs +2238 -0
- package/dist/chunk-CwXRQ-3X.cjs.map +1 -0
- package/dist/chunk-CxC9GaSV.js +6 -0
- package/dist/chunk-CxC9GaSV.js.map +1 -0
- package/dist/chunk-CyDQK1JF.js +22 -0
- package/dist/chunk-CyDQK1JF.js.map +1 -0
- package/dist/chunk-CyFo-C-X.js +341 -0
- package/dist/chunk-CyFo-C-X.js.map +1 -0
- package/dist/chunk-CzGWcm8C.cjs +109 -0
- package/dist/chunk-CzGWcm8C.cjs.map +1 -0
- package/dist/chunk-D0Cmheqq.cjs +25 -0
- package/dist/chunk-D0Cmheqq.cjs.map +1 -0
- package/dist/chunk-D0VevtWq.cjs +13 -0
- package/dist/chunk-D0VevtWq.cjs.map +1 -0
- package/dist/chunk-D1HIZ09h.d.cts +22 -0
- package/dist/chunk-D1HIZ09h.d.ts +22 -0
- package/dist/chunk-D1PwxEEq.cjs +281 -0
- package/dist/chunk-D1PwxEEq.cjs.map +1 -0
- package/dist/chunk-D2BipKyx.d.cts +69 -0
- package/dist/chunk-D4g36nrI.d.ts +963 -0
- package/dist/chunk-D5vZKs5k.js +85 -0
- package/dist/chunk-D5vZKs5k.js.map +1 -0
- package/dist/chunk-D7XBi__G.js +17 -0
- package/dist/chunk-D7XBi__G.js.map +1 -0
- package/dist/chunk-D8TsKfym.cjs +35 -0
- package/dist/chunk-D8TsKfym.cjs.map +1 -0
- package/dist/chunk-D8r50zRF.cjs +4 -0
- package/dist/chunk-DAAlHzRS.js +2 -0
- package/dist/chunk-DBY6OSNP.js +13 -0
- package/dist/chunk-DBY6OSNP.js.map +1 -0
- package/dist/chunk-DBfZJAh3.js +146 -0
- package/dist/chunk-DBfZJAh3.js.map +1 -0
- package/dist/chunk-DBpF1Eur.cjs +69 -0
- package/dist/chunk-DBpF1Eur.cjs.map +1 -0
- package/dist/chunk-DCvhBL80.js +9 -0
- package/dist/chunk-DCvhBL80.js.map +1 -0
- package/dist/chunk-DDNoqMiU.cjs +12 -0
- package/dist/chunk-DDNoqMiU.cjs.map +1 -0
- package/dist/chunk-DEpLX45Z.cjs +25 -0
- package/dist/chunk-DEpLX45Z.cjs.map +1 -0
- package/dist/chunk-DFw3I0U0.cjs +19 -0
- package/dist/chunk-DFw3I0U0.cjs.map +1 -0
- package/dist/chunk-DJOkmY4u.cjs +36 -0
- package/dist/chunk-DJOkmY4u.cjs.map +1 -0
- package/dist/chunk-DJQsem2x.js +1128 -0
- package/dist/chunk-DJQsem2x.js.map +1 -0
- package/dist/chunk-DKNcYR4L.cjs +71 -0
- package/dist/chunk-DKNcYR4L.cjs.map +1 -0
- package/dist/chunk-DL4Q5WpP.cjs +19 -0
- package/dist/chunk-DL4Q5WpP.cjs.map +1 -0
- package/dist/chunk-DLt13wEh.js +279 -0
- package/dist/chunk-DLt13wEh.js.map +1 -0
- package/dist/chunk-DPvFDS5n.cjs +31 -0
- package/dist/chunk-DPvFDS5n.cjs.map +1 -0
- package/dist/chunk-DQ4l6EDZ.js +1728 -0
- package/dist/chunk-DQ4l6EDZ.js.map +1 -0
- package/dist/chunk-DQ_X9yhT.cjs +21 -0
- package/dist/chunk-DQ_X9yhT.cjs.map +1 -0
- package/dist/chunk-DQbbL87b.cjs +57 -0
- package/dist/chunk-DQbbL87b.cjs.map +1 -0
- package/dist/chunk-DRphChLx.js +15 -0
- package/dist/chunk-DRphChLx.js.map +1 -0
- package/dist/chunk-DSsTHBp4.js +62 -0
- package/dist/chunk-DSsTHBp4.js.map +1 -0
- package/dist/chunk-DVI59otQ.js +20 -0
- package/dist/chunk-DVI59otQ.js.map +1 -0
- package/dist/chunk-DVN4tYVL.cjs +235 -0
- package/dist/chunk-DVN4tYVL.cjs.map +1 -0
- package/dist/chunk-DWxCDSxn.cjs +36 -0
- package/dist/chunk-DWxCDSxn.cjs.map +1 -0
- package/dist/chunk-DXMaeZs_.cjs +135 -0
- package/dist/chunk-DXMaeZs_.cjs.map +1 -0
- package/dist/chunk-D_dPThBm.js +44 -0
- package/dist/chunk-D_dPThBm.js.map +1 -0
- package/dist/chunk-DbW3lF5Y.cjs +55 -0
- package/dist/chunk-DbW3lF5Y.cjs.map +1 -0
- package/dist/chunk-Dc0Robe4.cjs +254 -0
- package/dist/chunk-Dc0Robe4.cjs.map +1 -0
- package/dist/chunk-DcLLI7B1.cjs +16 -0
- package/dist/chunk-DcLLI7B1.cjs.map +1 -0
- package/dist/chunk-Dd9K8OSs.js +73 -0
- package/dist/chunk-Dd9K8OSs.js.map +1 -0
- package/dist/chunk-DeFJnC-Q.js +52 -0
- package/dist/chunk-DeFJnC-Q.js.map +1 -0
- package/dist/chunk-DeggaLXL.cjs +109 -0
- package/dist/chunk-DeggaLXL.cjs.map +1 -0
- package/dist/chunk-DetGuqR8.cjs +12 -0
- package/dist/chunk-DetGuqR8.cjs.map +1 -0
- package/dist/chunk-Df761BAX.cjs +4 -0
- package/dist/chunk-DfQZch7H.cjs +60 -0
- package/dist/chunk-DfQZch7H.cjs.map +1 -0
- package/dist/chunk-DhwoAmi8.cjs +77 -0
- package/dist/chunk-DhwoAmi8.cjs.map +1 -0
- package/dist/chunk-DkH1DKxi.cjs +66 -0
- package/dist/chunk-DkH1DKxi.cjs.map +1 -0
- package/dist/chunk-DkjkI8F5.cjs +150 -0
- package/dist/chunk-DkjkI8F5.cjs.map +1 -0
- package/dist/chunk-DlaVYkP2.cjs +23 -0
- package/dist/chunk-DlaVYkP2.cjs.map +1 -0
- package/dist/chunk-DlcsA1GQ.js +6 -0
- package/dist/chunk-DlcsA1GQ.js.map +1 -0
- package/dist/chunk-DmBkJhi_.js +8 -0
- package/dist/chunk-DmBkJhi_.js.map +1 -0
- package/dist/chunk-DnXjnOQ1.cjs +42 -0
- package/dist/chunk-DnXjnOQ1.cjs.map +1 -0
- package/dist/chunk-DrG9yz7c.js +509 -0
- package/dist/chunk-DrG9yz7c.js.map +1 -0
- package/dist/chunk-DsTU_5Be.js +96 -0
- package/dist/chunk-DsTU_5Be.js.map +1 -0
- package/dist/chunk-DsXj9iLu.cjs +1827 -0
- package/dist/chunk-DsXj9iLu.cjs.map +1 -0
- package/dist/chunk-DteUy52S.js +45 -0
- package/dist/chunk-DteUy52S.js.map +1 -0
- package/dist/chunk-DtvsE56k.cjs +12 -0
- package/dist/chunk-DtvsE56k.cjs.map +1 -0
- package/dist/chunk-DuD5YqoE.cjs +99 -0
- package/dist/chunk-DuD5YqoE.cjs.map +1 -0
- package/dist/chunk-DvrtQ0Y0.js +51 -0
- package/dist/chunk-DvrtQ0Y0.js.map +1 -0
- package/dist/chunk-DwUFwDV2.js +144 -0
- package/dist/chunk-DwUFwDV2.js.map +1 -0
- package/dist/chunk-Dy59Tdfm.cjs +67 -0
- package/dist/chunk-Dy59Tdfm.cjs.map +1 -0
- package/dist/chunk-DyJupG9U.cjs +74 -0
- package/dist/chunk-DyJupG9U.cjs.map +1 -0
- package/dist/chunk-DzCbinPo.js +9 -0
- package/dist/chunk-DzCbinPo.js.map +1 -0
- package/dist/chunk-GgcOmaXu.cjs +137 -0
- package/dist/chunk-GgcOmaXu.cjs.map +1 -0
- package/dist/chunk-GnVcZTQv.cjs +50 -0
- package/dist/chunk-GnVcZTQv.cjs.map +1 -0
- package/dist/chunk-JDLVWYk5.cjs +22 -0
- package/dist/chunk-JDLVWYk5.cjs.map +1 -0
- package/dist/chunk-NA04sFmY.js +2 -0
- package/dist/chunk-NqIZvB2L.js +44 -0
- package/dist/chunk-NqIZvB2L.js.map +1 -0
- package/dist/chunk-OGNas_Mn.cjs +654 -0
- package/dist/chunk-OGNas_Mn.cjs.map +1 -0
- package/dist/chunk-PeexRooj.cjs +12 -0
- package/dist/chunk-PeexRooj.cjs.map +1 -0
- package/dist/chunk-QUjeQKsz.js +26 -0
- package/dist/chunk-QUjeQKsz.js.map +1 -0
- package/dist/chunk-S0jc_E9W.cjs +62 -0
- package/dist/chunk-S0jc_E9W.cjs.map +1 -0
- package/dist/chunk-TLRG-UaM.js +453 -0
- package/dist/chunk-TLRG-UaM.js.map +1 -0
- package/dist/chunk-TYmd7TzW.cjs +68 -0
- package/dist/chunk-TYmd7TzW.cjs.map +1 -0
- package/dist/chunk-TlHnQSY_.js +250 -0
- package/dist/chunk-TlHnQSY_.js.map +1 -0
- package/dist/chunk-Vba_029j.js +36 -0
- package/dist/chunk-Vba_029j.js.map +1 -0
- package/dist/chunk-Vp0uJb7O.cjs +92 -0
- package/dist/chunk-Vp0uJb7O.cjs.map +1 -0
- package/dist/chunk-WPGdcwtf.cjs +15 -0
- package/dist/chunk-WPGdcwtf.cjs.map +1 -0
- package/dist/chunk-WUipjqNN.cjs +158 -0
- package/dist/chunk-WUipjqNN.cjs.map +1 -0
- package/dist/chunk-Y-zyJ0-m.js +6 -0
- package/dist/chunk-Y-zyJ0-m.js.map +1 -0
- package/dist/chunk-ZIIlDASG.js +94 -0
- package/dist/chunk-ZIIlDASG.js.map +1 -0
- package/dist/chunk-ZLDg2I1Z.js +6 -0
- package/dist/chunk-ZLDg2I1Z.js.map +1 -0
- package/dist/chunk-_jSTl9gW.cjs +1129 -0
- package/dist/chunk-_jSTl9gW.cjs.map +1 -0
- package/dist/chunk-b5CqEoo1.cjs +599 -0
- package/dist/chunk-b5CqEoo1.cjs.map +1 -0
- package/dist/chunk-bA-2OGXv.d.ts +3977 -0
- package/dist/chunk-bvwC3n0z.cjs +12 -0
- package/dist/chunk-bvwC3n0z.cjs.map +1 -0
- package/dist/chunk-cMQzXXQq.js +67 -0
- package/dist/chunk-cMQzXXQq.js.map +1 -0
- package/dist/chunk-cTRnGhbF.cjs +177 -0
- package/dist/chunk-cTRnGhbF.cjs.map +1 -0
- package/dist/chunk-dHKPMJ4D.js +85 -0
- package/dist/chunk-dHKPMJ4D.js.map +1 -0
- package/dist/chunk-d_BOXcT5.js +9 -0
- package/dist/chunk-d_BOXcT5.js.map +1 -0
- package/dist/chunk-ea1IbBcA.js +66 -0
- package/dist/chunk-ea1IbBcA.js.map +1 -0
- package/dist/chunk-f-dHVrF3.js +293 -0
- package/dist/chunk-f-dHVrF3.js.map +1 -0
- package/dist/chunk-h7Z5mAV_.cjs +41 -0
- package/dist/chunk-h7Z5mAV_.cjs.map +1 -0
- package/dist/chunk-jSgMzVr1.js +35 -0
- package/dist/chunk-jSgMzVr1.js.map +1 -0
- package/dist/chunk-kYE5SZgs.cjs +252 -0
- package/dist/chunk-kYE5SZgs.cjs.map +1 -0
- package/dist/chunk-lEnNKG6x.cjs +285 -0
- package/dist/chunk-lEnNKG6x.cjs.map +1 -0
- package/dist/chunk-lcml1N1G.js +11 -0
- package/dist/chunk-lcml1N1G.js.map +1 -0
- package/dist/chunk-nBK0qBXt.js +68 -0
- package/dist/chunk-nBK0qBXt.js.map +1 -0
- package/dist/chunk-njoANlUr.cjs +41 -0
- package/dist/chunk-njoANlUr.cjs.map +1 -0
- package/dist/chunk-nwutfrnH.cjs +430 -0
- package/dist/chunk-nwutfrnH.cjs.map +1 -0
- package/dist/chunk-o1EKuTLo.js +56 -0
- package/dist/chunk-o1EKuTLo.js.map +1 -0
- package/dist/chunk-oMFOZSQM.cjs +52 -0
- package/dist/chunk-oMFOZSQM.cjs.map +1 -0
- package/dist/chunk-pb64dLGD.cjs +682 -0
- package/dist/chunk-pb64dLGD.cjs.map +1 -0
- package/dist/chunk-s7kBzSlt.js +2 -0
- package/dist/chunk-uhXxE8xV.cjs +32 -0
- package/dist/chunk-uhXxE8xV.cjs.map +1 -0
- package/dist/chunk-vGzpsUSM.cjs +110 -0
- package/dist/chunk-vGzpsUSM.cjs.map +1 -0
- package/dist/chunk-vN_Di8Af.cjs +1890 -0
- package/dist/chunk-vN_Di8Af.cjs.map +1 -0
- package/dist/chunk-veLShVmw.js +41 -0
- package/dist/chunk-veLShVmw.js.map +1 -0
- package/dist/chunk-wTf5jOFv.js +253 -0
- package/dist/chunk-wTf5jOFv.js.map +1 -0
- package/dist/chunk-yO-Ek9RH.cjs +17 -0
- package/dist/chunk-yO-Ek9RH.cjs.map +1 -0
- package/dist/chunk-ye5UUSFw.js +280 -0
- package/dist/chunk-ye5UUSFw.js.map +1 -0
- package/dist/copilot/index.cjs +10 -0
- package/dist/copilot/index.d.cts +62 -0
- package/dist/copilot/index.d.ts +62 -0
- package/dist/copilot/index.js +4 -0
- package/dist/embed/index.cjs +1653 -0
- package/dist/embed/index.cjs.map +1 -0
- package/dist/embed/index.d.cts +291 -0
- package/dist/embed/index.d.ts +291 -0
- package/dist/embed/index.js +1643 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/headless/index.cjs +126 -0
- package/dist/headless/index.d.cts +4 -0
- package/dist/headless/index.d.ts +4 -0
- package/dist/headless/index.js +29 -0
- package/dist/import/index.cjs +403 -0
- package/dist/import/index.cjs.map +1 -0
- package/dist/import/index.d.cts +160 -0
- package/dist/import/index.d.ts +160 -0
- package/dist/import/index.js +393 -0
- package/dist/import/index.js.map +1 -0
- package/dist/index.cjs +8991 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4847 -0
- package/dist/index.d.ts +4847 -0
- package/dist/index.js +8768 -0
- package/dist/index.js.map +1 -0
- package/dist/map/index.cjs +36 -0
- package/dist/map/index.d.cts +2 -0
- package/dist/map/index.d.ts +2 -0
- package/dist/map/index.js +2 -0
- package/dist/styles.css +14684 -0
- package/dist/testing/index.cjs +398 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +302 -0
- package/dist/testing/index.d.ts +302 -0
- package/dist/testing/index.js +382 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/video/index.cjs +8 -0
- package/dist/video/index.d.cts +122 -0
- package/dist/video/index.d.ts +122 -0
- package/dist/video/index.js +2 -0
- package/package.json +226 -4
- package/src/agent/components/ActivityRow.tsx +226 -0
- package/src/agent/components/AgentEntityIndicator.tsx +67 -0
- package/src/agent/components/AgentMarkdown.tsx +530 -0
- package/src/agent/components/ChatComposer.tsx +161 -0
- package/src/agent/components/ChatTranscript.tsx +1358 -0
- package/src/agent/components/CopilotPanel.tsx +415 -0
- package/src/agent/components/CopilotStates.tsx +238 -0
- package/src/agent/components/CopilotTranscript.tsx +191 -0
- package/src/agent/components/MessageFeedback.tsx +100 -0
- package/src/agent/hooks/useAgentChatTransport.ts +61 -0
- package/src/agent/hooks/useAgentErrorCopy.ts +27 -0
- package/src/agent/hooks/useCopilotOpen.ts +68 -0
- package/src/agent/providers/AgentThreadsProvider.tsx +360 -0
- package/src/agent/providers/PromptPanelConversation.tsx +135 -0
- package/src/agent/rules/drawnNode.ts +24 -0
- package/src/alerts/components/MapAlerts.tsx +127 -0
- package/src/cache/hooks/useStudioCache.ts +40 -0
- package/src/cache/rules/studioCache.ts +145 -0
- package/src/collab/components/PeerEntityIndicator.tsx +150 -0
- package/src/collab/components/PresenceRoster.tsx +113 -0
- package/src/collab/components/peerLock.tsx +59 -0
- package/src/collab/hooks/useCollabOrganizationId.ts +24 -0
- package/src/collab/hooks/usePeerLockLabel.ts +41 -0
- package/src/collections/components/CollectionFormModal.tsx +280 -0
- package/src/collections/components/CollectionMultiSelect.tsx +640 -0
- package/src/collections/components/EditCollectionModal.tsx +114 -0
- package/src/collections/components/ManageCollectionsModal.tsx +692 -0
- package/src/collections/components/NewCollectionModal.tsx +87 -0
- package/src/collections/components/ShareCollectionModal.tsx +150 -0
- package/src/collections/hooks/useEntityCollections.ts +126 -0
- package/src/collections/hooks/useEveryPage.ts +33 -0
- package/src/controls/components/MapControlTooltip.tsx +84 -0
- package/src/controls/components/PoiOverlayMenu.tsx +342 -0
- package/src/controls/components/StudioControls.tsx +278 -0
- package/src/controls/rules/constants.ts +34 -0
- package/src/copilot/hooks/useStudioCopilotInset.ts +39 -0
- package/src/copilot/index.ts +29 -0
- package/src/directions/components/DirectionsModal.tsx +447 -0
- package/src/directions/components/directionsPdf.tsx +549 -0
- package/src/embed/components/DefaultViewControl.tsx +159 -0
- package/src/embed/components/EmbedBaseMapPicker.tsx +107 -0
- package/src/embed/components/EmbedCodeSection.tsx +329 -0
- package/src/embed/components/EmbedColumnsSection.tsx +167 -0
- package/src/embed/components/EmbedConfigForm.tsx +239 -0
- package/src/embed/components/EmbedElementSwitcher.tsx +85 -0
- package/src/embed/components/EmbedFieldControl.tsx +488 -0
- package/src/embed/components/EmbedGeneralSection.tsx +279 -0
- package/src/embed/components/EmbedKeyPanel.tsx +138 -0
- package/src/embed/components/EmbedSnippetCode.tsx +154 -0
- package/src/embed/components/EmbedStage.tsx +505 -0
- package/src/embed/components/EmbedTablePreview.tsx +134 -0
- package/src/embed/components/EmbedThemePicker.tsx +74 -0
- package/src/embed/components/EmbedTintPicker.tsx +76 -0
- package/src/embed/components/EmbedWizard.tsx +1031 -0
- package/src/embed/hooks/useEmbedCode.ts +170 -0
- package/src/embed/hooks/useEmbedCollectionItineraries.ts +42 -0
- package/src/embed/hooks/useEmbedLayerOptions.ts +75 -0
- package/src/embed/hooks/useEmbedPreviewCamera.ts +169 -0
- package/src/embed/index.ts +42 -0
- package/src/fullscreen/components/FullscreenHeader.tsx +77 -0
- package/src/fullscreen/components/FullscreenModal.tsx +80 -0
- package/src/fullscreen/components/WizardLayout.tsx +129 -0
- package/src/guards/components/AgentDrivingGuard.tsx +59 -0
- package/src/guards/components/UnsavedEditsGuard.tsx +210 -0
- package/src/guards/hooks/useReportUnsavedForm.ts +34 -0
- package/src/guards/hooks/useUnsavedEditsGuard.ts +44 -0
- package/src/headless/hooks/useAgentDriving.ts +21 -0
- package/src/headless/hooks/useBeginSegmentEdit.ts +89 -0
- package/src/headless/hooks/useBeginWaypointEdit.ts +74 -0
- package/src/headless/hooks/useCapabilitySet.ts +65 -0
- package/src/headless/hooks/useCollabResources.ts +148 -0
- package/src/headless/hooks/useCollectionScope.ts +37 -0
- package/src/headless/hooks/useEditActions.ts +250 -0
- package/src/headless/hooks/useEscapeKey.ts +43 -0
- package/src/headless/hooks/useInlineRename.ts +276 -0
- package/src/headless/hooks/useLiveAwareSegments.ts +88 -0
- package/src/headless/hooks/useLiveAwareWaypoints.ts +39 -0
- package/src/headless/hooks/useMapHoveredRow.ts +76 -0
- package/src/headless/hooks/usePlatformViewer.ts +452 -0
- package/src/headless/hooks/usePluginSlot.ts +235 -0
- package/src/headless/hooks/useRowEmphasis.ts +66 -0
- package/src/headless/hooks/useSegmentList.ts +428 -0
- package/src/headless/hooks/useSegmentRow.ts +370 -0
- package/src/headless/hooks/useSegmentRowActions.ts +267 -0
- package/src/headless/hooks/useShallowSelector.ts +145 -0
- package/src/headless/hooks/useStableMembers.ts +74 -0
- package/src/headless/hooks/useStoreSlice.ts +52 -0
- package/src/headless/hooks/useStreetViewCorridor.ts +120 -0
- package/src/headless/hooks/useStudioApi.ts +18 -0
- package/src/headless/hooks/useStudioDispatch.ts +180 -0
- package/src/headless/hooks/useStudioDispatchCount.ts +147 -0
- package/src/headless/hooks/useStudioDispatchUnsafe.ts +111 -0
- package/src/headless/hooks/useStudioEntitlement.ts +29 -0
- package/src/headless/hooks/useStudioFailureAlert.ts +67 -0
- package/src/headless/hooks/useStudioObserve.ts +38 -0
- package/src/headless/hooks/useStudioPreferences.ts +8 -0
- package/src/headless/hooks/useStudioSignedIn.ts +12 -0
- package/src/headless/hooks/useStudioStore.ts +72 -0
- package/src/headless/hooks/useStudioUnits.ts +23 -0
- package/src/headless/hooks/useStudioUrl.ts +24 -0
- package/src/headless/hooks/useStudioUserId.ts +5 -0
- package/src/headless/hooks/useStudioVerbHeld.ts +43 -0
- package/src/headless/hooks/useStudioViewer.ts +19 -0
- package/src/headless/hooks/useStudioViewerEntitlement.ts +40 -0
- package/src/headless/hooks/useStudioViewerItineraryLimit.ts +34 -0
- package/src/headless/hooks/useStudioViewerPreferences.ts +44 -0
- package/src/headless/hooks/useStudioViewerUnits.ts +50 -0
- package/src/headless/hooks/useStudioViewerUserId.ts +23 -0
- package/src/headless/hooks/useUiStore.ts +91 -0
- package/src/headless/hooks/useUiStoreShallow.ts +43 -0
- package/src/headless/hooks/useWaypointDetailsDialog.ts +52 -0
- package/src/headless/hooks/useWaypointList.ts +89 -0
- package/src/headless/hooks/useWaypointRow.ts +229 -0
- package/src/headless/hooks/useWaypointRowActions.ts +166 -0
- package/src/headless/index.ts +287 -0
- package/src/headless/providers/billingGate.tsx +129 -0
- package/src/headless/providers/copilot.tsx +155 -0
- package/src/headless/providers/mountayaStudio.tsx +127 -0
- package/src/headless/providers/navigationBlocker.tsx +91 -0
- package/src/headless/providers/notify.tsx +36 -0
- package/src/headless/providers/organizations.tsx +267 -0
- package/src/headless/providers/plugins.tsx +173 -0
- package/src/headless/providers/studio.tsx +1296 -0
- package/src/headless/providers/studioStrings.tsx +243 -0
- package/src/headless/rules/inputMethod.ts +19 -0
- package/src/hooks/useAgreementLimits.ts +165 -0
- package/src/hooks/useLayerCatalogOptions.ts +106 -0
- package/src/host/components/MountayaStudioHost.tsx +1018 -0
- package/src/host/hooks/useEmbeddedStudio.ts +24 -0
- package/src/host/hooks/useItineraryActivation.ts +126 -0
- package/src/host/hooks/useMemberGrants.ts +51 -0
- package/src/host/hooks/useStudioHostSurfaces.ts +100 -0
- package/src/host/hooks/useStudioPluginBinding.ts +133 -0
- package/src/host/hooks/useStudioSessionHeld.ts +111 -0
- package/src/host/hooks/useStudioToolBus.ts +127 -0
- package/src/host/hooks/useStudioToolContext.ts +175 -0
- package/src/host/providers/hostRegistry.tsx +144 -0
- package/src/host/providers/hostSurface.tsx +47 -0
- package/src/host/providers/hostVideo.tsx +73 -0
- package/src/import/components/DraftEntityList.tsx +298 -0
- package/src/import/components/FileDropInput.tsx +261 -0
- package/src/import/components/FileDropzone.tsx +97 -0
- package/src/import/components/ImportItineraryContent.tsx +133 -0
- package/src/import/components/ImportPreviewLegend.tsx +50 -0
- package/src/import/components/ImportPrimer.tsx +113 -0
- package/src/import/index.ts +32 -0
- package/src/import/providers/ImportRoutingGuideProvider.tsx +319 -0
- package/src/import/rules/routingGuidePictures.ts +20 -0
- package/src/index.ts +594 -0
- package/src/internal/components/Glyph.tsx +34 -0
- package/src/internal/components/MarkerGlyph.tsx +23 -0
- package/src/internal/components/MountayaMark.tsx +142 -0
- package/src/internal/hooks/useTextOverflow.ts +90 -0
- package/src/internal/providers/studioEditorRoot.tsx +42 -0
- package/src/internal/rules/editorRoot.ts +9 -0
- package/src/internal/rules/missingSeam.ts +32 -0
- package/src/itinerary/components/ActivityGuideModal.tsx +345 -0
- package/src/itinerary/components/ActivitySelect.tsx +204 -0
- package/src/itinerary/components/AddWaypointButton.tsx +151 -0
- package/src/itinerary/components/AscentInput.tsx +65 -0
- package/src/itinerary/components/Characteristics.tsx +129 -0
- package/src/itinerary/components/CursorReadout.tsx +66 -0
- package/src/itinerary/components/DistanceInput.tsx +67 -0
- package/src/itinerary/components/DraftProvenanceBanner.tsx +79 -0
- package/src/itinerary/components/DuplicateItineraryModal.tsx +341 -0
- package/src/itinerary/components/EditorSaveFooter.tsx +424 -0
- package/src/itinerary/components/ItineraryActionsMenu.tsx +655 -0
- package/src/itinerary/components/ItineraryForm.tsx +887 -0
- package/src/itinerary/components/ItineraryHeaderIdentity.tsx +121 -0
- package/src/itinerary/components/ItineraryHeaderMeta.tsx +68 -0
- package/src/itinerary/components/ItineraryHeaderTitle.tsx +88 -0
- package/src/itinerary/components/ItineraryIdentityFields.tsx +153 -0
- package/src/itinerary/components/ItineraryProfilePanel.tsx +619 -0
- package/src/itinerary/components/ItineraryProfileSheet.tsx +219 -0
- package/src/itinerary/components/ItinerarySubHeader.tsx +236 -0
- package/src/itinerary/components/PendingProfile.tsx +142 -0
- package/src/itinerary/components/PlaceCard.tsx +35 -0
- package/src/itinerary/components/PlaceMark.tsx +76 -0
- package/src/itinerary/components/ProfileAnalysisBars.tsx +84 -0
- package/src/itinerary/components/ProfileBar.tsx +215 -0
- package/src/itinerary/components/ProfileHeaderControls.tsx +116 -0
- package/src/itinerary/components/ProfileHeaderFigures.tsx +119 -0
- package/src/itinerary/components/ProfilePaceControl.tsx +97 -0
- package/src/itinerary/components/ProfileStat.tsx +76 -0
- package/src/itinerary/components/ProfileStatStrip.tsx +38 -0
- package/src/itinerary/components/RoadAccessModal.tsx +76 -0
- package/src/itinerary/components/RouteTypeControl.tsx +73 -0
- package/src/itinerary/components/SegmentGroupModal.tsx +312 -0
- package/src/itinerary/components/SegmentGroupRangePicker.tsx +228 -0
- package/src/itinerary/components/StagingCreateFooter.tsx +185 -0
- package/src/itinerary/components/StudioItineraryProfile.tsx +620 -0
- package/src/itinerary/components/SuggestForm.tsx +256 -0
- package/src/itinerary/components/SuggestFormActions.tsx +124 -0
- package/src/itinerary/components/SuggestionResultRow.tsx +98 -0
- package/src/itinerary/components/SuggestionResultsList.tsx +85 -0
- package/src/itinerary/components/WaypointAmenityPicker.tsx +105 -0
- package/src/itinerary/components/WaypointDetailFields.tsx +604 -0
- package/src/itinerary/components/WaypointDetailsModal.tsx +134 -0
- package/src/itinerary/components/WaypointDetailsRows.tsx +707 -0
- package/src/itinerary/components/WaypointDetailsView.tsx +389 -0
- package/src/itinerary/components/WaypointIconCircle.tsx +211 -0
- package/src/itinerary/components/WaypointIconPicker.tsx +82 -0
- package/src/itinerary/components/WaypointMarkers.tsx +293 -0
- package/src/itinerary/components/WaypointPreviewCard.tsx +56 -0
- package/src/itinerary/components/WaypointSectionNav.tsx +151 -0
- package/src/itinerary/components/WaypointSwitcher.tsx +143 -0
- package/src/itinerary/components/WaypointWorkbench.tsx +263 -0
- package/src/itinerary/hooks/useDuplicateDraft.ts +205 -0
- package/src/itinerary/hooks/useDuplicateSource.ts +69 -0
- package/src/itinerary/hooks/useFriendlyNameBanks.ts +26 -0
- package/src/itinerary/hooks/useItineraryEditable.ts +89 -0
- package/src/itinerary/hooks/useItineraryPace.ts +104 -0
- package/src/itinerary/hooks/useItinerarySubject.ts +117 -0
- package/src/itinerary/hooks/useOpenItineraryEditable.ts +39 -0
- package/src/itinerary/hooks/useProfileOverlay.tsx +61 -0
- package/src/itinerary/hooks/useProfileSeries.ts +95 -0
- package/src/itinerary/hooks/useProfileVisibility.ts +149 -0
- package/src/itinerary/hooks/useSeedDraftOrganization.ts +85 -0
- package/src/itinerary/hooks/useSegmentGroupSave.ts +143 -0
- package/src/itinerary/hooks/useStartFromSuggestion.ts +63 -0
- package/src/itinerary/hooks/useStudioItinerary.ts +35 -0
- package/src/itinerary/hooks/useSuggestionPin.ts +36 -0
- package/src/itinerary/hooks/useWaypointCardWords.ts +51 -0
- package/src/itinerary/hooks/useWaypointCreateFollowUp.ts +158 -0
- package/src/itinerary/hooks/useWaypointDetailsEditor.ts +280 -0
- package/src/itinerary/hooks/useWaypointSectionEntries.ts +114 -0
- package/src/itinerary/providers/ActivityGuideProvider.tsx +113 -0
- package/src/itinerary/providers/ItineraryViewProvider.tsx +146 -0
- package/src/itinerary/rules/amenityGlyphs.ts +25 -0
- package/src/itinerary/rules/cursorReadoutData.ts +34 -0
- package/src/itinerary/rules/profileCursor.ts +11 -0
- package/src/itinerary/rules/profileModel.ts +98 -0
- package/src/itinerary/rules/shownFocus.ts +11 -0
- package/src/itinerary/rules/waypointGlyphs.ts +42 -0
- package/src/itinerary/stores/profileHover.ts +54 -0
- package/src/lists/components/AddSegmentButton.tsx +240 -0
- package/src/lists/components/EditActions.tsx +153 -0
- package/src/lists/components/EditorListSection.tsx +117 -0
- package/src/lists/components/EditorSegmentRow.tsx +458 -0
- package/src/lists/components/ItineraryAddSegmentButton.tsx +66 -0
- package/src/lists/components/ItinerarySegmentList.tsx +301 -0
- package/src/lists/components/ItineraryWaypointList.tsx +257 -0
- package/src/lists/components/SegmentList.tsx +549 -0
- package/src/lists/components/SegmentSeam.tsx +292 -0
- package/src/lists/components/WaypointList.tsx +233 -0
- package/src/map/components/ContextMenuPopup.tsx +913 -0
- package/src/map/components/MapAnchoredPopup.tsx +285 -0
- package/src/map/components/SegmentViaPopup.tsx +133 -0
- package/src/map/hooks/useAccessRestrictions.ts +25 -0
- package/src/map/hooks/useEmbedConstraints.ts +359 -0
- package/src/map/hooks/useEmbedDisplaySeed.ts +61 -0
- package/src/map/hooks/useEmbedReady.ts +137 -0
- package/src/map/hooks/useHeldTileSources.ts +65 -0
- package/src/map/hooks/useSegmentColor.ts +24 -0
- package/src/map/hooks/useSpecificationLayers.ts +25 -0
- package/src/map/hooks/useStudioConstraints.ts +135 -0
- package/src/map/hooks/useStudioContextMenu.ts +34 -0
- package/src/map/hooks/useStudioContextMenuWaypoint.ts +119 -0
- package/src/map/hooks/useStudioEditCommitReporter.ts +56 -0
- package/src/map/hooks/useStudioEditEngine.ts +271 -0
- package/src/map/hooks/useStudioEnrichment.ts +117 -0
- package/src/map/hooks/useStudioItinerarySelection.ts +484 -0
- package/src/map/hooks/useStudioLayersScope.ts +34 -0
- package/src/map/hooks/useStudioMapBindings.ts +178 -0
- package/src/map/hooks/useStudioMapEditSeams.ts +161 -0
- package/src/map/hooks/useStudioMapSync.ts +127 -0
- package/src/map/hooks/useStudioOverlay.ts +75 -0
- package/src/map/hooks/useStudioOverlayWithdrawal.ts +52 -0
- package/src/map/hooks/useStudioOverlaysEntitled.ts +12 -0
- package/src/map/hooks/useStudioPeerDrafts.ts +126 -0
- package/src/map/hooks/useStudioPoiLayers.ts +110 -0
- package/src/map/hooks/useStudioPreviewSync.ts +205 -0
- package/src/map/hooks/useStudioSegmentEditing.ts +239 -0
- package/src/map/hooks/useStudioSegmentViaPrompt.ts +38 -0
- package/src/map/hooks/useStudioSplitPicking.ts +411 -0
- package/src/map/hooks/useStudioSuggestionPicking.ts +178 -0
- package/src/map/hooks/useStudioTimestamp.ts +226 -0
- package/src/map/hooks/useStudioUrlState.ts +340 -0
- package/src/map/hooks/useStudioWaypointEditing.ts +251 -0
- package/src/map/hooks/useStudioZoneEditing.ts +260 -0
- package/src/map/hooks/useStudioZoneOriginPicking.ts +129 -0
- package/src/map/hooks/useStudioZoneSelection.ts +240 -0
- package/src/map/hooks/useTileLayers.ts +33 -0
- package/src/map/index.ts +67 -0
- package/src/map/rules/editKeyboard.ts +216 -0
- package/src/map/rules/editTooltip.ts +222 -0
- package/src/map/rules/nearerEscape.ts +107 -0
- package/src/map/rules/poiGlyphs.ts +40 -0
- package/src/modals/components/AppModal.tsx +280 -0
- package/src/modals/components/ConfirmModal.tsx +223 -0
- package/src/modals/components/ExportModal.tsx +538 -0
- package/src/modals/components/LocationPermissionModal.tsx +129 -0
- package/src/modals/components/ModalFooter.tsx +187 -0
- package/src/modals/hooks/useConfirmGate.tsx +209 -0
- package/src/modals/hooks/useDiscardGuard.tsx +168 -0
- package/src/panels/components/EditShortcutHint.tsx +115 -0
- package/src/panels/components/FloatingOverlay.tsx +243 -0
- package/src/panels/components/GlyphPickerGrid.tsx +84 -0
- package/src/panels/components/PanelRouter.tsx +133 -0
- package/src/panels/components/PickerCard.tsx +108 -0
- package/src/panels/components/RadioOptionCard.tsx +116 -0
- package/src/panels/components/SidenavContentBody.tsx +56 -0
- package/src/panels/components/SidenavContentFooter.tsx +27 -0
- package/src/panels/components/SidenavContentHeader.tsx +172 -0
- package/src/panels/components/SidenavFormActions.tsx +96 -0
- package/src/panels/components/StudioFormStack.tsx +44 -0
- package/src/panels/components/StudioHeader.tsx +117 -0
- package/src/panels/components/StudioLayersPanel.tsx +909 -0
- package/src/panels/components/StudioPreferencesPanel.tsx +199 -0
- package/src/panels/rules/studioHeader.ts +68 -0
- package/src/plugins/components/PluginBoundary.tsx +62 -0
- package/src/plugins/components/PluginContextMenuActions.tsx +73 -0
- package/src/plugins/components/PluginControls.tsx +101 -0
- package/src/plugins/components/PluginHeldView.tsx +77 -0
- package/src/plugins/components/PluginMenuItems.tsx +63 -0
- package/src/plugins/components/PluginProfileHeader.tsx +71 -0
- package/src/plugins/components/PluginProfilePlot.tsx +134 -0
- package/src/plugins/components/PluginSlotItems.tsx +55 -0
- package/src/primitives/components/ActivityIcon.tsx +106 -0
- package/src/primitives/components/AllowlistField.tsx +508 -0
- package/src/primitives/components/CopyIconButton.tsx +80 -0
- package/src/primitives/components/DateTimeInput.tsx +133 -0
- package/src/primitives/components/DateTimePickerField.tsx +110 -0
- package/src/primitives/components/DescriptiveMenuItem.tsx +80 -0
- package/src/primitives/components/DialogSubject.tsx +102 -0
- package/src/primitives/components/DisabledMenuItem.tsx +45 -0
- package/src/primitives/components/DisabledReason.tsx +34 -0
- package/src/primitives/components/EmptyState.tsx +186 -0
- package/src/primitives/components/ErrorAlert.tsx +35 -0
- package/src/primitives/components/ErrorBoundary.tsx +55 -0
- package/src/primitives/components/FieldLabel.tsx +34 -0
- package/src/primitives/components/FormErrorAlert.tsx +33 -0
- package/src/primitives/components/GroupLabelledBy.tsx +31 -0
- package/src/primitives/components/LanguageSelect.tsx +139 -0
- package/src/primitives/components/ListSkeleton.tsx +64 -0
- package/src/primitives/components/MarqueeText.tsx +61 -0
- package/src/primitives/components/OrganizationScopeItem.tsx +146 -0
- package/src/primitives/components/OrganizationSelect.tsx +149 -0
- package/src/primitives/components/PointField.tsx +75 -0
- package/src/primitives/components/PrivacyControl.tsx +127 -0
- package/src/primitives/components/RenameInput.tsx +159 -0
- package/src/primitives/components/RequiredLabelWithHelp.tsx +76 -0
- package/src/primitives/components/SegmentIcon.tsx +43 -0
- package/src/primitives/components/SegmentIconLabel.tsx +37 -0
- package/src/primitives/components/SpeedInput.tsx +222 -0
- package/src/primitives/components/StudioSectionBoundary.tsx +56 -0
- package/src/primitives/components/StudioSegmentedControl.tsx +23 -0
- package/src/primitives/components/UnitPickerField.tsx +62 -0
- package/src/primitives/components/UnitPickerGrid.tsx +71 -0
- package/src/primitives/components/WarningAlert.tsx +34 -0
- package/src/primitives/hooks/useCompactLayout.ts +30 -0
- package/src/primitives/hooks/useSpeedControlLabel.ts +28 -0
- package/src/primitives/rules/activityBadge.ts +87 -0
- package/src/publication/components/PublicationBadge.tsx +42 -0
- package/src/publication/components/PublicationDot.tsx +31 -0
- package/src/publication/components/PublicationNotice.tsx +115 -0
- package/src/publication/components/PublicationSettledPill.tsx +43 -0
- package/src/publication/components/PublicationStatus.tsx +52 -0
- package/src/publication/components/UnpublishedPanel.tsx +133 -0
- package/src/publication/hooks/usePublicationHint.ts +235 -0
- package/src/publication/hooks/usePublishAct.ts +101 -0
- package/src/publication/hooks/usePublishItinerary.ts +27 -0
- package/src/publication/hooks/usePublishZone.ts +27 -0
- package/src/publication/hooks/usePublishableScope.ts +23 -0
- package/src/publication/hooks/usePublishedItinerary.ts +83 -0
- package/src/rows/components/ReadOnlySegmentRow.tsx +155 -0
- package/src/rows/components/RouteMetricLine.tsx +90 -0
- package/src/rows/components/RowMetadata.tsx +92 -0
- package/src/rows/components/SegmentRow.tsx +381 -0
- package/src/rows/components/SegmentRowActions.tsx +187 -0
- package/src/rows/components/SegmentRowBody.tsx +197 -0
- package/src/rows/components/StudioToggleRow.tsx +71 -0
- package/src/rows/components/SuggestionList.tsx +100 -0
- package/src/rows/components/SuggestionRowLayout.tsx +164 -0
- package/src/rows/components/WaypointRow.tsx +176 -0
- package/src/rows/components/WaypointRowLayout.tsx +279 -0
- package/src/rows/components/lockChrome.tsx +106 -0
- package/src/rules/menuActions.ts +149 -0
- package/src/rules/sizing.ts +127 -0
- package/src/rules/studioConfig.ts +719 -0
- package/src/search/components/CategoryTabs.tsx +136 -0
- package/src/search/components/ResultRow.tsx +242 -0
- package/src/search/components/ResultsList.tsx +182 -0
- package/src/search/components/SearchInput.tsx +100 -0
- package/src/search/components/SearchTab.tsx +614 -0
- package/src/sections/components/RailSwitcher.tsx +179 -0
- package/src/sections/components/SectionCard.tsx +48 -0
- package/src/sections/components/SectionHead.tsx +42 -0
- package/src/sections/components/SectionTabs.tsx +231 -0
- package/src/segments/components/SegmentColorCircle.tsx +118 -0
- package/src/segments/components/SegmentColorPicker.tsx +134 -0
- package/src/segments/components/SegmentModeControl.tsx +118 -0
- package/src/segments/components/SegmentRowMenu.tsx +449 -0
- package/src/segments/components/SegmentRowPopover.tsx +163 -0
- package/src/segments/components/SegmentSelect.tsx +116 -0
- package/src/segments/components/SegmentSpeedControl.tsx +299 -0
- package/src/share/components/ShareLinkManage.tsx +699 -0
- package/src/share/components/ShareModal.tsx +182 -0
- package/src/share/components/ShareSheet.tsx +178 -0
- package/src/share/components/ShareViewModal.tsx +131 -0
- package/src/share/hooks/useCanManageShareLink.ts +51 -0
- package/src/studio/components/MountayaStudio.tsx +1170 -0
- package/src/studio/components/MountayaStudioViewer.tsx +775 -0
- package/src/studio/hooks/useEmbeddedStudioConfig.ts +60 -0
- package/src/studio/hooks/useViewerActivation.ts +47 -0
- package/src/studio/hooks/useViewerCollectionSpecification.ts +58 -0
- package/src/studio/hooks/useViewerEmbedConfig.ts +74 -0
- package/src/studio/hooks/useViewerFraming.ts +211 -0
- package/src/studio/hooks/useViewerMapBindings.ts +109 -0
- package/src/styles.css +3994 -0
- package/src/testing/collections.ts +40 -0
- package/src/testing/hostRegistry.tsx +109 -0
- package/src/testing/index.ts +65 -0
- package/src/testing/itinerary.ts +297 -0
- package/src/testing/mountayaClient.tsx +218 -0
- package/src/testing/viewer.tsx +171 -0
- package/src/theme/components/StudioPortalScope.tsx +130 -0
- package/src/theme/hooks/useResolvedStudioTheme.ts +37 -0
- package/src/theme/rules/density.ts +157 -0
- package/src/theme/rules/mountayaStudioTheme.ts +114 -0
- package/src/theme/rules/passwordManager.ts +20 -0
- package/src/theme/rules/tokenStyle.ts +18 -0
- package/src/theme/rules/tokens.ts +71 -0
- package/src/theme/rules/tone.ts +34 -0
- package/src/theme/rules/zIndex.ts +40 -0
- package/src/video/components/CameraStep.tsx +82 -0
- package/src/video/components/DirectingScrim.tsx +28 -0
- package/src/video/components/DirectorChat.tsx +79 -0
- package/src/video/components/FormatStep.tsx +487 -0
- package/src/video/components/ModeCards.tsx +141 -0
- package/src/video/components/PlanNumberField.tsx +54 -0
- package/src/video/components/PreviewControls.tsx +212 -0
- package/src/video/components/PreviewStage.tsx +319 -0
- package/src/video/components/PreviewSurface.tsx +247 -0
- package/src/video/components/PreviewWatermark.tsx +77 -0
- package/src/video/components/ProfileOverlayCanvas.tsx +195 -0
- package/src/video/components/ProfileStep.tsx +254 -0
- package/src/video/components/RecordProgress.tsx +117 -0
- package/src/video/components/ReviewStep.tsx +244 -0
- package/src/video/components/ShotList.tsx +452 -0
- package/src/video/components/VideoExportWizard.tsx +827 -0
- package/src/video/components/WizardDirectingIndicator.tsx +57 -0
- package/src/video/components/WizardFooter.tsx +112 -0
- package/src/video/hooks/usePreviewPlanRefresh.ts +91 -0
- package/src/video/hooks/useVideoItinerarySubject.ts +18 -0
- package/src/video/hooks/useVideoOrganizationId.ts +30 -0
- package/src/video/hooks/useVideoPreviewSeed.ts +203 -0
- package/src/video/hooks/useVideoProfileSeed.ts +53 -0
- package/src/video/hooks/useVideoPublication.ts +29 -0
- package/src/video/hooks/useVideoRouteReady.ts +52 -0
- package/src/video/hooks/useVideoRouteSync.ts +100 -0
- package/src/video/hooks/useVideoTileTransform.ts +88 -0
- package/src/video/index.ts +24 -0
- package/src/video/providers/DirectorChatProvider.tsx +293 -0
- package/src/video/rules/changeTo.ts +20 -0
- package/src/zone/components/ZoneActionsMenu.tsx +305 -0
- package/src/zone/components/ZoneAvailabilityFields.tsx +98 -0
- package/src/zone/components/ZoneForm.tsx +622 -0
- package/src/zone/components/ZoneInheritedContext.tsx +70 -0
- package/src/zone/components/ZoneLevelSelect.tsx +86 -0
- package/src/zone/components/ZoneMetadataFields.tsx +89 -0
- package/src/zone/components/ZoneMethodSelect.tsx +90 -0
- package/src/zone/components/ZoneModeSelect.tsx +98 -0
- package/src/zone/components/ZoneRangeInput.tsx +129 -0
- package/src/zone/components/ZoneReachabilityFields.tsx +120 -0
- package/src/zone/components/ZoneSubHeader.tsx +188 -0
- package/src/zone/components/ZoneVisibility.tsx +94 -0
- package/src/zone/hooks/useStudioReachabilityStart.ts +79 -0
- package/src/zone/hooks/useStudioZonesBrowsed.ts +32 -0
package/src/styles.css
ADDED
|
@@ -0,0 +1,3994 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @mountaya/studio-react: the studio surface.
|
|
3
|
+
*
|
|
4
|
+
* Kept apart from `@mountaya/elements-react`'s sheet because the two serve different consumers.
|
|
5
|
+
* That one paints the map controls and the elevation profile, and every application mounting a
|
|
6
|
+
* zoom button loads it. This one paints the studio, which is opted into by installing this
|
|
7
|
+
* package: the same split the built-graph gate holds for the JavaScript, applied to the CSS so
|
|
8
|
+
* an application that never renders a studio never downloads its rules. The sheet this package
|
|
9
|
+
* publishes composes Mantine's, then that one, then this one (`scripts/compose-styles.mjs`), so
|
|
10
|
+
* a studio's application imports `@mountaya/studio-react/styles.css` and nothing else.
|
|
11
|
+
*
|
|
12
|
+
* The theming seam is the same one: every dimension and colour reads a `--mtya-*` custom
|
|
13
|
+
* property with a default, so an application restyles by setting a handful of variables on any
|
|
14
|
+
* ancestor rather than by out-specifying these selectors.
|
|
15
|
+
*
|
|
16
|
+
* **Two token systems meet here, and they are not fought.** These components are Mantine's, so
|
|
17
|
+
* they also read `--mantine-*`, but the SCHEME is read off this package's own attribute on the
|
|
18
|
+
* studio root rather than Mantine's on the html root (see `.mtya-studio`). The rule is that
|
|
19
|
+
* `--mtya-*` names what MOUNTAYA decided (a row's rhythm, a seam's affordance) and Mantine's
|
|
20
|
+
* own props and tokens carry everything a Mantine consumer already knows how to change. A
|
|
21
|
+
* variable that merely restates a Mantine token would be a second name for one decision.
|
|
22
|
+
*
|
|
23
|
+
* No `light-dark()`. LightningCSS lowers it into a polyfill that collapses to `transparent` in
|
|
24
|
+
* production, the same reason `@mountaya/elements-react`'s sheet avoids it.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/* ------------------------------------------------------------------------------------------
|
|
28
|
+
* The one spacing step Mantine's scale does not carry
|
|
29
|
+
* ---------------------------------------------------------------------------------------- */
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* `xxs` is the step below `xs`, and these components space by it: the gap between a row's
|
|
33
|
+
* label and its caption, the inset inside a rename field, the rhythm of a panel's second line.
|
|
34
|
+
*
|
|
35
|
+
* Mantine resolves `gap="xxs"` to `var(--mantine-spacing-xxs)` whether or not a theme declares
|
|
36
|
+
* one: `getSize` builds the variable reference from the key without consulting the scale. So a
|
|
37
|
+
* key nobody declared produces a reference to nothing, the declaration is invalid at computed
|
|
38
|
+
* value time, and the browser drops it: every one of those gaps collapses to zero, in silence,
|
|
39
|
+
* in a consumer's application while reading correctly under a theme that declares it. Nothing
|
|
40
|
+
* throws and nothing looks wrong in review; the rows are simply tighter than they are designed
|
|
41
|
+
* to be.
|
|
42
|
+
*
|
|
43
|
+
* It is a DEFAULT rather than a decision taken away from the consumer, and the precedence is
|
|
44
|
+
* the same one every `--mtya-*` default below relies on: Mantine writes its variables from a
|
|
45
|
+
* `<style>` element the provider renders inside the React tree, which resolves after a sheet
|
|
46
|
+
* loaded in the head, so a theme declaring its own `xxs` overrides this and a theme that does
|
|
47
|
+
* not gets a working step.
|
|
48
|
+
*
|
|
49
|
+
* `boundary.test.ts` fails any spacing key this package names that is neither on Mantine's own
|
|
50
|
+
* scale nor declared here.
|
|
51
|
+
*
|
|
52
|
+
* The font size of the same name is declared beside it, for the rules of this sheet that read
|
|
53
|
+
* `var(--mantine-font-size-xxs)`: with nothing declared the reference is to nothing, `font-size`
|
|
54
|
+
* inherits and the text is drawn at its parent's size. `styles.test.ts` fails a font size this
|
|
55
|
+
* sheet reads that is neither on Mantine's own scale nor declared here.
|
|
56
|
+
*
|
|
57
|
+
* It answers nothing for a component's `fz="xxs"`. Mantine resolves a spacing key without
|
|
58
|
+
* consulting the scale and a font-size key by it: the reference is built only for a key the
|
|
59
|
+
* theme's `fontSizes` declares, and any other key is written as it stands, which is no font
|
|
60
|
+
* size. So a component that passes the key is drawn at this size only under a theme that
|
|
61
|
+
* declares `fontSizes.xxs`, which `mountayaStudioTheme` does.
|
|
62
|
+
*/
|
|
63
|
+
:root {
|
|
64
|
+
--mantine-font-size-xxs: 0.625rem;
|
|
65
|
+
--mantine-spacing-xxs: 0.25rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ------------------------------------------------------------------------------------------
|
|
69
|
+
* The studio root
|
|
70
|
+
* ---------------------------------------------------------------------------------------- */
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
* `.mtya-studio` is the element `MountayaStudioHost` renders around everything, and several
|
|
74
|
+
* separate things hang off it.
|
|
75
|
+
*
|
|
76
|
+
* **The tokens.** Every `--mtya-*` this sheet and `@mountaya/elements-react`'s read is declared
|
|
77
|
+
* here once, at its default. That sheet ALSO assigns its own block on each element root (see
|
|
78
|
+
* its `.mtya-profile` for why a published package must not write to `:root`), so an element
|
|
79
|
+
* mounted inside a studio shadows what is declared here and takes its values from the host's
|
|
80
|
+
* `tokens` prop instead, which lands inline on the element and outranks both. The two are not
|
|
81
|
+
* in conflict: this block is what every studio surface reads, and the inline style is what
|
|
82
|
+
* reaches an element.
|
|
83
|
+
*
|
|
84
|
+
* **The colour scheme.** `data-mtya-color-scheme` is written here and read by both sheets, so a
|
|
85
|
+
* studio and the map chrome inside it can never disagree. Mantine's own
|
|
86
|
+
* `[data-mantine-color-scheme]` is a different attribute on a different element (the html
|
|
87
|
+
* root), so an embed reading it would draw light map controls under dark panels when it renders
|
|
88
|
+
* a dark studio inside a light page.
|
|
89
|
+
*
|
|
90
|
+
* **The container.** `container-type: inline-size` is what makes the queries below measure the
|
|
91
|
+
* STUDIO rather than the viewport. A studio is a region of somebody's page (beside a sidenav,
|
|
92
|
+
* inside a split view, in a modal), and a `@media (max-width: 36em)` asks about a window that
|
|
93
|
+
* may be three times the width of the panel it is deciding for.
|
|
94
|
+
*
|
|
95
|
+
* **The base.** Mantine's sheet states the text colour, the font and `color-scheme` on `body` and
|
|
96
|
+
* `:root`, from variables a provided design system writes on this root instead, so nothing above
|
|
97
|
+
* the root reads them. The root restates that base, so an unstyled node inside a dark studio
|
|
98
|
+
* inherits the studio's text colour rather than the page's. Under a design system the host
|
|
99
|
+
* provides above the studio the same variables resolve to that provider's base, which is the
|
|
100
|
+
* page's already, and a variable no sheet declares leaves the property inherited.
|
|
101
|
+
*/
|
|
102
|
+
.mtya-studio {
|
|
103
|
+
--mtya-accent: #1c7ed6;
|
|
104
|
+
--mtya-activity-badge-bg: rgba(0, 0, 0, 0.04);
|
|
105
|
+
--mtya-activity-badge-size: 1.75rem;
|
|
106
|
+
--mtya-activity-glyph-color: rgb(100, 116, 139);
|
|
107
|
+
--mtya-activity-glyph-size: 1rem;
|
|
108
|
+
--mtya-brand-font: inherit;
|
|
109
|
+
--mtya-control-bg: #ffffff;
|
|
110
|
+
--mtya-control-bg-hover: #f1f3f5;
|
|
111
|
+
--mtya-control-fg: #212529;
|
|
112
|
+
--mtya-control-fg-disabled: #adb5bd;
|
|
113
|
+
--mtya-control-gap: 4px;
|
|
114
|
+
--mtya-control-radius: 8px;
|
|
115
|
+
--mtya-control-shadow: 0 1px 3px rgb(0 0 0 / 5%), 0 1px 2px rgb(0 0 0 / 10%);
|
|
116
|
+
--mtya-control-size: 36px;
|
|
117
|
+
--mtya-dimmed: #868e96;
|
|
118
|
+
--mtya-edge-inset: 16px;
|
|
119
|
+
--mtya-focus-ring: #1c7ed6;
|
|
120
|
+
--mtya-focus-ring-color: #339af0;
|
|
121
|
+
--mtya-focus-ring-offset: 2px;
|
|
122
|
+
--mtya-focus-ring-width: 2px;
|
|
123
|
+
--mtya-font: system-ui, -apple-system, "Segoe UI", roboto, sans-serif;
|
|
124
|
+
--mtya-layer-thumb-height: 52px;
|
|
125
|
+
--mtya-layer-thumb-height-sm: 40px;
|
|
126
|
+
--mtya-panel-bg: #ffffff;
|
|
127
|
+
--mtya-panel-border: #dee2e6;
|
|
128
|
+
--mtya-panel-fg: #212529;
|
|
129
|
+
--mtya-panel-radius: 12px;
|
|
130
|
+
--mtya-panel-width: 280px;
|
|
131
|
+
--mtya-profile-axis-font-size: 11px;
|
|
132
|
+
--mtya-profile-axis-size: 68px;
|
|
133
|
+
--mtya-profile-band-size: 8px;
|
|
134
|
+
--mtya-profile-chart-size: 120px;
|
|
135
|
+
--mtya-profile-cursor: #212529;
|
|
136
|
+
--mtya-profile-cursor-dash: 3 3;
|
|
137
|
+
--mtya-profile-grid-color: #dee2e6;
|
|
138
|
+
--mtya-profile-lit-fill: rgb(233 80 30 / 12%);
|
|
139
|
+
--mtya-profile-navigator-handle: #212529;
|
|
140
|
+
--mtya-profile-navigator-size: 36px;
|
|
141
|
+
--mtya-profile-navigator-veil: rgb(255 255 255 / 62%);
|
|
142
|
+
--mtya-profile-padding: 12px 16px;
|
|
143
|
+
--mtya-profile-section-gap: 4px;
|
|
144
|
+
--mtya-profile-tooltip-bg: #ffffff;
|
|
145
|
+
--mtya-profile-tooltip-fg: #212529;
|
|
146
|
+
--mtya-profile-tooltip-shadow: 0 2px 8px rgb(0 0 0 / 12%);
|
|
147
|
+
--mtya-profile-waypoint-color: #868e96;
|
|
148
|
+
--mtya-profile-waypoint-line: 1px dashed #adb5bd;
|
|
149
|
+
--mtya-profile-waypoint-open-size: 24px;
|
|
150
|
+
--mtya-profile-waypoint-size: 8px;
|
|
151
|
+
--mtya-profile-xaxis-size: 34px;
|
|
152
|
+
--mtya-place-mark-color: #3b82f6;
|
|
153
|
+
--mtya-place-mark-size: 28px;
|
|
154
|
+
--mtya-search-input-color: #404040;
|
|
155
|
+
--mtya-search-input-color-dark: var(--mantine-color-dark-0);
|
|
156
|
+
--mtya-search-input-held-bg: var(--mantine-color-gray-1);
|
|
157
|
+
--mtya-search-input-held-bg-dark: var(--mantine-color-dark-5);
|
|
158
|
+
--mtya-search-row-hover-bg: var(--mantine-color-gray-1);
|
|
159
|
+
--mtya-search-row-selected-bg: var(--mantine-color-blue-light);
|
|
160
|
+
--mtya-segment-swatch-radius: 50%;
|
|
161
|
+
--mtya-table-border: #dee2e6;
|
|
162
|
+
--mtya-table-card-gap: 8px;
|
|
163
|
+
--mtya-table-cell-padding: 8px 12px;
|
|
164
|
+
--mtya-table-font-size: 13px;
|
|
165
|
+
--mtya-table-header-font-size: 11px;
|
|
166
|
+
--mtya-table-padding: 12px 16px;
|
|
167
|
+
--mtya-table-row-hover: #f1f3f5;
|
|
168
|
+
--mtya-table-spark-base: #dee2e6;
|
|
169
|
+
--mtya-table-spark-inline-size: 140px;
|
|
170
|
+
--mtya-table-spark-size: 28px;
|
|
171
|
+
--mtya-tooltip-bg: #212529;
|
|
172
|
+
--mtya-tooltip-fg: #ffffff;
|
|
173
|
+
--mtya-waypoint-card-gap: 16px;
|
|
174
|
+
--mtya-waypoint-card-mark-color: #3b82f6;
|
|
175
|
+
--mtya-waypoint-card-mark-fg: #fff;
|
|
176
|
+
--mtya-waypoint-card-mark-size: 36px;
|
|
177
|
+
container-name: mtya-studio;
|
|
178
|
+
container-type: inline-size;
|
|
179
|
+
font-family: var(--mantine-font-family);
|
|
180
|
+
font-size: var(--mantine-font-size-md);
|
|
181
|
+
-webkit-font-smoothing: var(--mantine-webkit-font-smoothing);
|
|
182
|
+
-moz-osx-font-smoothing: var(--mantine-moz-font-smoothing);
|
|
183
|
+
line-height: var(--mantine-line-height);
|
|
184
|
+
color: var(--mantine-color-text);
|
|
185
|
+
color-scheme: var(--mantine-color-scheme);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/*
|
|
189
|
+
* The dark scheme, as the handful of tokens that actually differ.
|
|
190
|
+
*
|
|
191
|
+
* A second full copy of the block above would be two lists to keep in step, and the drift is
|
|
192
|
+
* invisible: a token that stayed light in the dark block simply paints the light value.
|
|
193
|
+
*
|
|
194
|
+
* Two selectors, since the scheme is stated in two places. `MountayaStudioHost` writes the
|
|
195
|
+
* attribute on the studio root itself, the element that carries `.mtya-studio`, which a
|
|
196
|
+
* descendant selector never matches; a page that states the scheme around a studio matches the
|
|
197
|
+
* second.
|
|
198
|
+
*/
|
|
199
|
+
.mtya-studio[data-mtya-color-scheme="dark"],
|
|
200
|
+
[data-mtya-color-scheme="dark"] .mtya-studio {
|
|
201
|
+
--mtya-control-bg: #25262b;
|
|
202
|
+
--mtya-control-bg-hover: #373a40;
|
|
203
|
+
--mtya-control-fg: #c1c2c5;
|
|
204
|
+
--mtya-control-fg-disabled: #5c5f66;
|
|
205
|
+
--mtya-panel-bg: #25262b;
|
|
206
|
+
--mtya-panel-fg: #c1c2c5;
|
|
207
|
+
--mtya-panel-border: #373a40;
|
|
208
|
+
--mtya-tooltip-bg: #f1f3f5;
|
|
209
|
+
--mtya-tooltip-fg: #141517;
|
|
210
|
+
--mtya-activity-badge-bg: rgb(255 255 255 / 6%);
|
|
211
|
+
--mtya-activity-glyph-color: #909296;
|
|
212
|
+
--mtya-search-row-hover-bg: var(--mantine-color-dark-6);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/*
|
|
216
|
+
* The node every portalled surface lands in.
|
|
217
|
+
*
|
|
218
|
+
* It renders nothing of its own (Mantine appends into it), and it is INSIDE the studio root on
|
|
219
|
+
* purpose: a `Menu.Dropdown` portalled to `document.body` sits outside the token block and the
|
|
220
|
+
* scheme attribute above, so it paints with whatever the page says. `StudioPortalScope` points
|
|
221
|
+
* every portalled surface beneath it here, which is what keeps a dropdown, a tooltip and a modal
|
|
222
|
+
* inside the studio's own cascade.
|
|
223
|
+
*
|
|
224
|
+
* Zero-sized rather than absent: it has to be a real element for a portal to find it, and a
|
|
225
|
+
* zero-sized one occupies no space in whatever layout the studio root is running.
|
|
226
|
+
*/
|
|
227
|
+
.mtya-studio-portal {
|
|
228
|
+
display: contents;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/*
|
|
232
|
+
* A dialog fills the studio, not the window.
|
|
233
|
+
*
|
|
234
|
+
* Mantine bounds a dialog by the window: its inner box and its overlay are `position: fixed` and
|
|
235
|
+
* a full-screen dialog is `100dvh` tall. A studio is often one region of a page, and a dialog it
|
|
236
|
+
* opens belongs to that region, so the rules below bound the parts the studio's theme names
|
|
237
|
+
* (`mtya-modal`, `mtya-modal-overlay`, `mtya-modal-inner`, `mtya-modal-content`) by the studio's
|
|
238
|
+
* root instead. Each is scoped under `.mtya-studio`, so a dialog drawn with the theme outside a
|
|
239
|
+
* studio keeps Mantine's own bounds.
|
|
240
|
+
*
|
|
241
|
+
* The root is the containing block, under `:where()` so the rule weighs nothing: a host that
|
|
242
|
+
* positions the root with a class of its own (`absolute`, `fixed`) keeps its position.
|
|
243
|
+
*
|
|
244
|
+
* The inner box is sticky and at most a window tall, because a root can be taller than the
|
|
245
|
+
* window: an application that mounts its whole page inside one host scrolls inside the root. A
|
|
246
|
+
* dialog opened there keeps to the part of the root on screen rather than centring itself on the
|
|
247
|
+
* whole page. A root that fits in the window is exactly the box the dialog fills.
|
|
248
|
+
*
|
|
249
|
+
* The side gutter of a centred dialog is a share of the studio's width (`cqw` against the
|
|
250
|
+
* `mtya-studio` container) rather than of the window's, so a narrow studio on a wide screen does
|
|
251
|
+
* not squeeze its dialogs. A dialog that states an `xOffset` of its own writes it inline and
|
|
252
|
+
* keeps it.
|
|
253
|
+
*
|
|
254
|
+
* Mantine's full-screen height sits on a three-class selector, which the last rule outweighs, so
|
|
255
|
+
* the bound holds whichever copy of Mantine's sheet is in charge and in whatever order. It also
|
|
256
|
+
* lifts the height cap the rule before it gives a centred dialog: Mantine lifts it for a
|
|
257
|
+
* full-screen dialog in a layered rule, which an unlayered one outranks whatever its weight.
|
|
258
|
+
*/
|
|
259
|
+
:where(.mtya-studio) {
|
|
260
|
+
position: relative;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.mtya-studio .mtya-modal {
|
|
264
|
+
--modal-x-offset: 5cqw;
|
|
265
|
+
position: absolute;
|
|
266
|
+
inset: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.mtya-studio .mtya-modal-overlay {
|
|
270
|
+
position: absolute;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.mtya-studio .mtya-modal-inner {
|
|
274
|
+
position: sticky;
|
|
275
|
+
top: 0;
|
|
276
|
+
bottom: auto;
|
|
277
|
+
height: min(100%, 100dvh);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.mtya-studio .mtya-modal-content {
|
|
281
|
+
--modal-content-max-height: calc(100% - var(--modal-y-offset) * 2);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.mtya-studio .mtya-modal[data-full-screen] .mtya-modal-content {
|
|
285
|
+
--modal-content-height: 100%;
|
|
286
|
+
--modal-content-max-height: none;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/*
|
|
290
|
+
* A part shown by the STUDIO's width, the container-query mirror of Mantine's `visibleFrom`.
|
|
291
|
+
*
|
|
292
|
+
* Mantine's prop asks the window, and a dialog fills the studio, which a page that embeds one
|
|
293
|
+
* makes narrower than the window: a surface laid out by the window's width would show the
|
|
294
|
+
* columns of a wide screen in a narrow frame. These ask the `mtya-studio` container at
|
|
295
|
+
* Mantine's own breakpoints, written out because a container condition reads no variable. In a
|
|
296
|
+
* studio that fills the window the two answer the same.
|
|
297
|
+
*
|
|
298
|
+
* `visible-from-<size>` hides the part in a studio narrower than the breakpoint. The rules
|
|
299
|
+
* weigh two classes, so a component's own `display` does not bring the part back.
|
|
300
|
+
*/
|
|
301
|
+
@container mtya-studio (width < 36em) {
|
|
302
|
+
.mtya-studio .mtya-studio-visible-from-xs {
|
|
303
|
+
display: none;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@container mtya-studio (width < 48em) {
|
|
308
|
+
.mtya-studio .mtya-studio-visible-from-sm {
|
|
309
|
+
display: none;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@container mtya-studio (width < 62em) {
|
|
314
|
+
.mtya-studio .mtya-studio-visible-from-md {
|
|
315
|
+
display: none;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
@container mtya-studio (width < 75em) {
|
|
320
|
+
.mtya-studio .mtya-studio-visible-from-lg {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* ------------------------------------------------------------------------------------------
|
|
326
|
+
* A labelled field's control
|
|
327
|
+
* ---------------------------------------------------------------------------------------- */
|
|
328
|
+
|
|
329
|
+
/*
|
|
330
|
+
* The body a picker field lays under its Input.Wrapper (the unit, theme, tint and base map
|
|
331
|
+
* pickers, the allowlist): an `xs` gap under the field's description, none under a bare label,
|
|
332
|
+
* whose own margin spaces it. Mantine offsets only an input of the wrapper's own, so a body of
|
|
333
|
+
* cards or of two controls takes its gap here.
|
|
334
|
+
*
|
|
335
|
+
* Under `:where()`, so the rule weighs nothing: a host whose theme lays its fields out on an
|
|
336
|
+
* anatomy of its own (one gap from a field's text to its control, whatever the control) keeps
|
|
337
|
+
* it, which an inline margin would outrank.
|
|
338
|
+
*/
|
|
339
|
+
:where(.mtya-field-control[data-described]) {
|
|
340
|
+
margin-top: var(--mantine-spacing-xs);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* ------------------------------------------------------------------------------------------
|
|
344
|
+
* Segment rows
|
|
345
|
+
* ---------------------------------------------------------------------------------------- */
|
|
346
|
+
|
|
347
|
+
/*
|
|
348
|
+
* The colour swatch that opens a segment's recolour popover.
|
|
349
|
+
*
|
|
350
|
+
* A pointer cursor and a focus ring are the whole affordance: the swatch IS the control, so it
|
|
351
|
+
* carries no border of its own, since a ring around a colour reads as part of the colour.
|
|
352
|
+
*/
|
|
353
|
+
.mtya-segment-swatch {
|
|
354
|
+
cursor: pointer;
|
|
355
|
+
border-radius: var(--mtya-segment-swatch-radius, 50%);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.mtya-segment-swatch:focus-visible {
|
|
359
|
+
outline: var(--mtya-focus-ring-width, 2px) solid var(--mtya-focus-ring-color, #339af0);
|
|
360
|
+
outline-offset: var(--mtya-focus-ring-offset, 2px);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* ------------------------------------------------------------------------------------------
|
|
364
|
+
* The inline rename field
|
|
365
|
+
*
|
|
366
|
+
* A global sheet rather than a CSS module, so the isolation is the `mtya-` prefix plus the
|
|
367
|
+
* class gate, which fails any class this entry renders and does not paint. The doubled
|
|
368
|
+
* selector below (`.mtya-rename-input.mtya-rename-input`) is not a typo: see its own comment.
|
|
369
|
+
* ---------------------------------------------------------------------------------------- */
|
|
370
|
+
/*
|
|
371
|
+
* `.mtya-rename-column` is the editable name column: the field stacked over its error/details
|
|
372
|
+
* line. It is the flex child of the row's nowrap group (flex:1 + min-width:0), the
|
|
373
|
+
* same footprint the static name text occupies. It also publishes the resting name's
|
|
374
|
+
* typography as custom properties (the component sets them from the caller's tokens),
|
|
375
|
+
* which both this column and the field below read, so the two boxes are identical
|
|
376
|
+
* by construction rather than by two declarations agreeing.
|
|
377
|
+
*/
|
|
378
|
+
.mtya-rename-column {
|
|
379
|
+
flex: 1;
|
|
380
|
+
min-width: 0;
|
|
381
|
+
font-size: var(--mtya-rename-fz);
|
|
382
|
+
font-weight: var(--mtya-rename-fw);
|
|
383
|
+
line-height: var(--mtya-rename-lh);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/*
|
|
387
|
+
* `.mtya-rename-root` lets the input shrink within the column so a long name truncates rather
|
|
388
|
+
* than pushing the row's menu out.
|
|
389
|
+
*/
|
|
390
|
+
.mtya-rename-root {
|
|
391
|
+
min-width: 0;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/*
|
|
395
|
+
* `.mtya-rename-input` is the inline rename field shared by the itinerary and collection rows.
|
|
396
|
+
* Paired with variant="unstyled" it strips Mantine's bordered control, so the
|
|
397
|
+
* field reads as the resting name turned editable: the same font and line height
|
|
398
|
+
* with no vertical padding and no min-height, so it is exactly as tall as the name
|
|
399
|
+
* line and the row never grows. The edit boundary is a box-shadow ring, painted
|
|
400
|
+
* outside the box model, so unlike a 1px border it adds no height and never shifts
|
|
401
|
+
* the row. A negative inline margin offsets the field's own horizontal padding so
|
|
402
|
+
* the text keeps the name's exact position while the ring sits a few pixels around
|
|
403
|
+
* it: the feel of slowly double-clicking a file name in macOS Finder. A consumer may
|
|
404
|
+
* load Mantine's unlayered sheet (`@mantine/core/styles.css`) beside this one, where a
|
|
405
|
+
* single-class rule only ties Mantine's and loses the source-order tie; the sizing
|
|
406
|
+
* resets below double their class to outrank Mantine's single-class input rules
|
|
407
|
+
* without inline-style overrides.
|
|
408
|
+
*/
|
|
409
|
+
.mtya-rename-input {
|
|
410
|
+
padding-inline: var(--mantine-spacing-xxs);
|
|
411
|
+
/* A negative inline margin offsets the field's own horizontal padding so the text
|
|
412
|
+
keeps the name's exact position while the ring sits a few pixels around it. */
|
|
413
|
+
margin-inline: calc(var(--mantine-spacing-xxs) * -1);
|
|
414
|
+
background-color: var(--mantine-color-body);
|
|
415
|
+
border-radius: var(--mantine-radius-sm);
|
|
416
|
+
box-shadow: 0 0 0 1px var(--mantine-color-gray-4);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/*
|
|
420
|
+
* The sizing resets collapse the field onto the resting name's text line exactly.
|
|
421
|
+
*
|
|
422
|
+
* The type is the load-bearing part. A form control does not inherit type from its
|
|
423
|
+
* container by default, and Mantine then gives the input a size of its own
|
|
424
|
+
* (`--input-fz` and a line height driven off `--input-height`, 36px at the theme's
|
|
425
|
+
* `sm`), neither of which knows anything about the text the field is standing in for.
|
|
426
|
+
* Spelling the field's own font size and line height here would make it agree with the
|
|
427
|
+
* `xs` list rows and disagree with every other caller, nudging the row a pixel or two
|
|
428
|
+
* taller the moment a rename opens. Reading the caller's own tokens instead is what
|
|
429
|
+
* makes the two boxes the same box.
|
|
430
|
+
*
|
|
431
|
+
* They are custom properties and not `inherit`: the field is nested inside Mantine's
|
|
432
|
+
* input wrapper, which carries a line height of its own, so an inherited one reaches
|
|
433
|
+
* the field as the WRAPPER's value, and the row would grow by exactly that difference.
|
|
434
|
+
* A custom property passes through any number of wrappers untouched.
|
|
435
|
+
*
|
|
436
|
+
* The remaining resets zero the vertical margin, padding, and border, so the field's
|
|
437
|
+
* box IS its line box. Doubling the class (`.mtya-rename-input.mtya-rename-input`) raises the
|
|
438
|
+
* specificity above Mantine's single-class input rules so these win without `!important`.
|
|
439
|
+
*/
|
|
440
|
+
.mtya-rename-input.mtya-rename-input {
|
|
441
|
+
height: auto;
|
|
442
|
+
min-height: 0;
|
|
443
|
+
padding-block: 0;
|
|
444
|
+
margin-block: 0;
|
|
445
|
+
font-family: inherit;
|
|
446
|
+
font-size: var(--mtya-rename-fz);
|
|
447
|
+
font-weight: var(--mtya-rename-fw);
|
|
448
|
+
line-height: var(--mtya-rename-lh);
|
|
449
|
+
border: 0;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/*
|
|
453
|
+
* The field is auto-focused the instant a rename starts, so the focus ring is the
|
|
454
|
+
* live edit affordance: a 2px ring in the primary color reads clearly as "this is
|
|
455
|
+
* being edited" and is unmistakably distinct from a static input border.
|
|
456
|
+
*/
|
|
457
|
+
.mtya-rename-input:focus,
|
|
458
|
+
.mtya-rename-input:focus-visible {
|
|
459
|
+
outline: none;
|
|
460
|
+
box-shadow: 0 0 0 2px var(--mantine-primary-color-filled);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/*
|
|
464
|
+
* An invalid draft (a name `displayNameSchema` of `@mountaya/studio` refuses) outlines the
|
|
465
|
+
* field in red, at rest and while focused, to match the red error text shown below it.
|
|
466
|
+
*/
|
|
467
|
+
.mtya-rename-input[aria-invalid="true"],
|
|
468
|
+
.mtya-rename-input[aria-invalid="true"]:focus {
|
|
469
|
+
box-shadow: 0 0 0 2px var(--mantine-color-red-6);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/* ------------------------------------------------------------------------------------------
|
|
473
|
+
* A plugin's own view, held while an agent run drives
|
|
474
|
+
* ---------------------------------------------------------------------------------------- */
|
|
475
|
+
|
|
476
|
+
/*
|
|
477
|
+
* The studio holds a contribution's `view` inert for the length of a run and dims it the way a
|
|
478
|
+
* disabled control is dimmed, so it reads as coming back. The outer element keeps the pointer:
|
|
479
|
+
* what is inert takes no hover, and the tooltip that names the lock needs one.
|
|
480
|
+
*/
|
|
481
|
+
.mtya-plugin-held {
|
|
482
|
+
cursor: not-allowed;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.mtya-plugin-held-view {
|
|
486
|
+
opacity: 0.6;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/* ------------------------------------------------------------------------------------------
|
|
490
|
+
* The three-dots menu trigger
|
|
491
|
+
* ---------------------------------------------------------------------------------------- */
|
|
492
|
+
|
|
493
|
+
/*
|
|
494
|
+
* Keeps a `…` trigger showing its hover background for as long as its dropdown stays open, so
|
|
495
|
+
* the trigger reads as active while the user scans the menu. Mantine sets `data-expanded` on
|
|
496
|
+
* the trigger child when the dropdown opens, so this reproduces ActionIcon's own `:hover`
|
|
497
|
+
* treatment keyed on that attribute: same variables, same loading/disabled guard.
|
|
498
|
+
*
|
|
499
|
+
* Unlayered, so it wins over the layered Mantine hover rule on the frames where both apply.
|
|
500
|
+
*/
|
|
501
|
+
.mtya-menu-trigger[data-expanded]:where(:not([data-loading], :disabled, [data-disabled])) {
|
|
502
|
+
color: var(--ai-hover-color, var(--ai-color));
|
|
503
|
+
background-color: var(--ai-hover, var(--mantine-primary-color-filled-hover));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/* ------------------------------------------------------------------------------------------
|
|
507
|
+
* The editor list, its gutter, and the group chip
|
|
508
|
+
* ---------------------------------------------------------------------------------------- */
|
|
509
|
+
|
|
510
|
+
/*
|
|
511
|
+
* mtya-editor-list is the bordered container the editor rows sit in. Its 1px border and small
|
|
512
|
+
* radius match the form inputs above the list so the section reads as one family
|
|
513
|
+
* with them. Each direct child is one row, padded on all sides; a 1px divider sits
|
|
514
|
+
* between adjacent rows (never above the first or below the last), so the rows read
|
|
515
|
+
* as a continuous list inside one frame. An empty mtya-editor-list keeps its border so the
|
|
516
|
+
* section's footprint is stable before the first row lands.
|
|
517
|
+
*/
|
|
518
|
+
.mtya-editor-list {
|
|
519
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
520
|
+
border-radius: var(--mantine-radius-sm);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/*
|
|
524
|
+
* An editor's list of segments or waypoints can grow long (an itinerary's chain has no
|
|
525
|
+
* bound of its own), so each row skips its layout and paint while scrolled out of view
|
|
526
|
+
* and reserves its height instead, letting the mtya-editor-list paint only the rows on screen with
|
|
527
|
+
* no virtualization machinery. The reserved size is the height the row last rendered
|
|
528
|
+
* at, falling back to a two-line row (the icon disk beside a name over its dimmed
|
|
529
|
+
* subtitle, inside the xs padding) before it has ever been measured, so a row that
|
|
530
|
+
* expands into an inline edit keeps its real height once it has been seen.
|
|
531
|
+
*/
|
|
532
|
+
.mtya-editor-list > * {
|
|
533
|
+
contain-intrinsic-size: auto 60px;
|
|
534
|
+
padding: var(--mantine-spacing-xs);
|
|
535
|
+
content-visibility: auto;
|
|
536
|
+
cursor: pointer;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/*
|
|
540
|
+
* Each row highlights on hover (and stays held while its action menu is open, via
|
|
541
|
+
* the data-menu-open the row sets) with the same neutral gray the itinerary list
|
|
542
|
+
* rows and the map controls use. The background lives on the padded row element so
|
|
543
|
+
* the highlight (and the pointer cursor) covers the ENTIRE row including its
|
|
544
|
+
* padding, matching the itinerary list's whole-row hover affordance.
|
|
545
|
+
*
|
|
546
|
+
* data-map-hovered takes the SAME highlight from the other direction: the pointer is
|
|
547
|
+
* over this row's geometry on the map rather than over the row. One treatment for one
|
|
548
|
+
* meaning ("this is the one you are pointing at"), so the two surfaces answer each
|
|
549
|
+
* other in the same visual language rather than inventing a second highlight.
|
|
550
|
+
*/
|
|
551
|
+
.mtya-editor-list > *:hover,
|
|
552
|
+
.mtya-editor-list > *[data-menu-open],
|
|
553
|
+
.mtya-editor-list > *[data-map-hovered] {
|
|
554
|
+
background-color: var(--mantine-color-gray-1);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/*
|
|
558
|
+
* Mantine's palette shades hold one value in both schemes, so the grey above is near-white
|
|
559
|
+
* under the dark scheme's light text. The dark scheme paints the same three states in the dark
|
|
560
|
+
* shade the place editor's rows use.
|
|
561
|
+
*
|
|
562
|
+
* The scheme sits in `:where()`, which adds nothing to the specificity: the dark rule weighs
|
|
563
|
+
* what the light one weighs and wins by coming after it, so every rule that paints over a
|
|
564
|
+
* hovered row in the light scheme paints over it in the dark one too.
|
|
565
|
+
*/
|
|
566
|
+
:where([data-mtya-color-scheme="dark"]) .mtya-editor-list > *:hover,
|
|
567
|
+
:where([data-mtya-color-scheme="dark"]) .mtya-editor-list > *[data-menu-open],
|
|
568
|
+
:where([data-mtya-color-scheme="dark"]) .mtya-editor-list > *[data-map-hovered] {
|
|
569
|
+
background-color: var(--mantine-color-dark-6);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/*
|
|
573
|
+
* While a row is renaming the inline input owns the pointer, so the row is no
|
|
574
|
+
* longer a single click target: drop the pointer cursor to the default arrow, the
|
|
575
|
+
* same posture the itinerary list row takes while editing.
|
|
576
|
+
*/
|
|
577
|
+
.mtya-editor-list > *[data-editing] {
|
|
578
|
+
cursor: default;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/*
|
|
582
|
+
* A read-only row (a surface that grants no editor capability, such as the public share view)
|
|
583
|
+
* is not a click target at all: it neither selects nor edits, so it drops the pointer
|
|
584
|
+
* cursor for good. It KEEPS the hover background: hovering still emphasizes the row's
|
|
585
|
+
* entity on the map, so the highlight reads as "this is the one you are looking at".
|
|
586
|
+
*/
|
|
587
|
+
.mtya-editor-list > *[data-readonly] {
|
|
588
|
+
cursor: default;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/*
|
|
592
|
+
* mtya-editor-list-empty wraps the empty-state explainer that fills the mtya-editor-list
|
|
593
|
+
* before the first row lands. It is not a click target, so it opts out of the row hover
|
|
594
|
+
* background and the pointer cursor the rules above give every direct child (its higher
|
|
595
|
+
* specificity, `.mtya-editor-list > .mtya-editor-list-empty`, overrides them), leaving the
|
|
596
|
+
* explainer reading as static copy rather than a selectable row.
|
|
597
|
+
*
|
|
598
|
+
* It also gives back the BLOCK half of that padding, keeping only the inline half.
|
|
599
|
+
* The explainer inside is the shared empty state at its inline size, which already
|
|
600
|
+
* insets itself vertically by xs; the row's own xs padding stacked on top of it would
|
|
601
|
+
* make an empty list stand half a row taller than the single-height rows that replace it.
|
|
602
|
+
* Zeroing it HERE rather than in the shared empty state is deliberate (that block
|
|
603
|
+
* has other consumers whose spacing is its own), and the inline padding stays, so the
|
|
604
|
+
* explainer starts on the same inline edge every row does.
|
|
605
|
+
*/
|
|
606
|
+
.mtya-editor-list > .mtya-editor-list-empty {
|
|
607
|
+
padding-block: 0;
|
|
608
|
+
cursor: default;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.mtya-editor-list > .mtya-editor-list-empty:hover {
|
|
612
|
+
background-color: transparent;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.mtya-editor-list > * + * {
|
|
616
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/*
|
|
620
|
+
* mtya-segment-seam is the gutter above a row: a zero-height sibling of the rows rather than
|
|
621
|
+
* anything rendered inside one. It has to be a sibling, because every direct child
|
|
622
|
+
* of the mtya-editor-list carries `content-visibility: auto`, which implies paint containment:
|
|
623
|
+
* an affordance drawn inside a row and offset above it would simply be clipped away.
|
|
624
|
+
* It takes back the row treatment the rules above give every direct child: no
|
|
625
|
+
* padding and no height (so the list is exactly as tall as it would be without seams), no
|
|
626
|
+
* pointer cursor, no hover background, and content-visibility reset to visible with
|
|
627
|
+
* no reserved intrinsic size, or every mtya-segment-seam would hold back a row's worth of space
|
|
628
|
+
* for content that is one absolutely-positioned pill.
|
|
629
|
+
*
|
|
630
|
+
* It KEEPS the border-top `.mtya-editor-list > * + *` gives it, which is the point: the
|
|
631
|
+
* mtya-segment-seam IS the divider between two rows rather than an extra line beside one.
|
|
632
|
+
* Its z-index lifts the overflowing pill above the neighbouring rows' backgrounds.
|
|
633
|
+
*/
|
|
634
|
+
.mtya-editor-list > .mtya-segment-seam {
|
|
635
|
+
position: relative;
|
|
636
|
+
z-index: 2;
|
|
637
|
+
block-size: 0;
|
|
638
|
+
contain-intrinsic-size: none;
|
|
639
|
+
padding: 0;
|
|
640
|
+
content-visibility: visible;
|
|
641
|
+
cursor: default;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.mtya-editor-list > .mtya-segment-seam:hover,
|
|
645
|
+
.mtya-editor-list > .mtya-segment-seam[data-menu-open] {
|
|
646
|
+
background-color: transparent;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/*
|
|
650
|
+
* The mtya-segment-seam already drew the divider, so the row directly beneath it must not
|
|
651
|
+
* draw a second one. This is also what keeps the FIRST row free of a divider above it: it
|
|
652
|
+
* follows the leading mtya-segment-seam, so without this the leading mtya-segment-seam would
|
|
653
|
+
* introduce a line the list never had.
|
|
654
|
+
*/
|
|
655
|
+
.mtya-editor-list > .mtya-segment-seam + * {
|
|
656
|
+
border-top: 0;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/*
|
|
660
|
+
* The pill straddles the divider, overflowing symmetrically out of the zero-height
|
|
661
|
+
* mtya-segment-seam, and sits at the row's inline end so it never covers a segment name. It is
|
|
662
|
+
* transparent AND pointer-transparent at rest, so an invisible control can never
|
|
663
|
+
* swallow a click meant for the row padding underneath it.
|
|
664
|
+
*/
|
|
665
|
+
.mtya-segment-seam-controls {
|
|
666
|
+
position: absolute;
|
|
667
|
+
inset-block-start: 0;
|
|
668
|
+
inset-inline-end: var(--mantine-spacing-xs);
|
|
669
|
+
display: flex;
|
|
670
|
+
gap: var(--mantine-spacing-xxs);
|
|
671
|
+
pointer-events: none;
|
|
672
|
+
opacity: 0;
|
|
673
|
+
transform: translateY(-50%);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
677
|
+
.mtya-segment-seam-controls {
|
|
678
|
+
transition: opacity 100ms ease;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/*
|
|
683
|
+
* The reveal is pure CSS: hovering either of the two rows the mtya-segment-seam sits between,
|
|
684
|
+
* or the pill itself, so it survives the pointer travelling onto it, fades it in.
|
|
685
|
+
* No React state and no re-render on pointer move, which matters on a long chain
|
|
686
|
+
* where every row is memoized.
|
|
687
|
+
*
|
|
688
|
+
* The one exception is an OPEN engine picker: its dropdown is portalled out of the
|
|
689
|
+
* mtya-segment-seam, so the pointer moving into it leaves every hover selector above and the pill
|
|
690
|
+
* would fade out from under the menu it just opened. The mtya-segment-seam sets data-menu-open
|
|
691
|
+
* for exactly that span, which is the same trick a row uses to hold its highlight
|
|
692
|
+
* under its own kebab.
|
|
693
|
+
*/
|
|
694
|
+
.mtya-editor-list > *:hover + .mtya-segment-seam .mtya-segment-seam-controls,
|
|
695
|
+
.mtya-editor-list > .mtya-segment-seam:has(+ *:hover) .mtya-segment-seam-controls,
|
|
696
|
+
.mtya-editor-list > .mtya-segment-seam:hover .mtya-segment-seam-controls,
|
|
697
|
+
.mtya-editor-list > .mtya-segment-seam[data-menu-open] .mtya-segment-seam-controls {
|
|
698
|
+
pointer-events: auto;
|
|
699
|
+
opacity: 1;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/*
|
|
703
|
+
* Reaching for a gutter's merge names its two operands: the row ABOVE the mtya-segment-seam and the
|
|
704
|
+
* row BELOW it take the same hover background they would take on their own, so the
|
|
705
|
+
* verb reads as "these two, into one" before it is clicked rather than after. The pair
|
|
706
|
+
* is expressed the only way CSS can reach backwards (the row is selected by what
|
|
707
|
+
* FOLLOWS it), which is also why this is one rule and not a React hover state: the
|
|
708
|
+
* reveal above drives the gutter without re-rendering a chain of memoized rows, and a
|
|
709
|
+
* merge preview must not be the thing that reintroduces it.
|
|
710
|
+
*
|
|
711
|
+
* The map half of the same preview is dispatched from the pill, since no stylesheet
|
|
712
|
+
* can light a line in a tile.
|
|
713
|
+
*/
|
|
714
|
+
.mtya-editor-list > *:has(+ .mtya-segment-seam [data-merge]:hover),
|
|
715
|
+
.mtya-editor-list > .mtya-segment-seam:has([data-merge]:hover) + * {
|
|
716
|
+
background-color: var(--mantine-color-gray-1);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/* The merge pair in the dark scheme, in the shade a hovered row takes there. */
|
|
720
|
+
:where([data-mtya-color-scheme="dark"])
|
|
721
|
+
.mtya-editor-list
|
|
722
|
+
> *:has(+ .mtya-segment-seam [data-merge]:hover),
|
|
723
|
+
:where([data-mtya-color-scheme="dark"])
|
|
724
|
+
.mtya-editor-list
|
|
725
|
+
> .mtya-segment-seam:has([data-merge]:hover)
|
|
726
|
+
+ * {
|
|
727
|
+
background-color: var(--mantine-color-dark-6);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/*
|
|
731
|
+
* A mtya-segment-seam that introduces a group grows from zero to its content: it carries the run's
|
|
732
|
+
* chip, which is the group's header. Every other mtya-segment-seam stays exactly zero-height, so
|
|
733
|
+
* the list gains height only where a group actually starts.
|
|
734
|
+
*
|
|
735
|
+
* The pill stays anchored to the seam's TOP edge (the divider it replaces), which is
|
|
736
|
+
* where its absolute positioning already puts it, so growing the mtya-editor-list moves the chip
|
|
737
|
+
* down without moving the accelerator.
|
|
738
|
+
*/
|
|
739
|
+
.mtya-editor-list > .mtya-segment-seam[data-group-start] {
|
|
740
|
+
block-size: auto;
|
|
741
|
+
padding-block: var(--mantine-spacing-xxs);
|
|
742
|
+
padding-inline: var(--mantine-spacing-xs);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/*
|
|
746
|
+
* mtya-group-chip is the run's header: the one control the whole group shares, and the way
|
|
747
|
+
* into its editor. The mtya-segment-seam it sits in drops the pointer cursor every other row gets,
|
|
748
|
+
* so the chip takes it back: it IS a click target, and nothing else in the gutter is
|
|
749
|
+
* at rest. Its Pencil is the affordance that says so, revealed on hover and on
|
|
750
|
+
* keyboard focus with the same opacity fade the accelerator pill uses, so the chip
|
|
751
|
+
* reads as a label until it is reached for. A chip held inert while the co-pilot
|
|
752
|
+
* drives keeps the default cursor rather than promising a click it will not take,
|
|
753
|
+
* keyed on aria-disabled, because the chip stays a real, focusable button while it is
|
|
754
|
+
* inert so its tooltip can still say why.
|
|
755
|
+
*/
|
|
756
|
+
.mtya-group-chip {
|
|
757
|
+
display: inline-flex;
|
|
758
|
+
gap: var(--mantine-spacing-xxs);
|
|
759
|
+
align-items: center;
|
|
760
|
+
cursor: pointer;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.mtya-group-chip[aria-disabled="true"] {
|
|
764
|
+
cursor: default;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.mtya-group-chip-glyph {
|
|
768
|
+
opacity: 0;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.mtya-group-chip:hover .mtya-group-chip-glyph,
|
|
772
|
+
.mtya-group-chip:focus-visible .mtya-group-chip-glyph {
|
|
773
|
+
opacity: 1;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
777
|
+
.mtya-group-chip-glyph {
|
|
778
|
+
transition: opacity 100ms ease;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/*
|
|
783
|
+
* A grouped row carries a rail in its group's colour along its inline start, painted
|
|
784
|
+
* INSIDE the row, which is why paint containment is a non-issue here, unlike the
|
|
785
|
+
* seam's overflowing pill. The rail rounds off at the run's two ends so a group reads
|
|
786
|
+
* as one continuous bracket down the list rather than as N separate stripes.
|
|
787
|
+
*
|
|
788
|
+
* Grouped rows are otherwise untouched: no nesting, no collapsing, no accordion. A
|
|
789
|
+
* member is a full row you can rename, recolour, reshape, and delete exactly as an
|
|
790
|
+
* ungrouped one, because grouping never affects editing.
|
|
791
|
+
*/
|
|
792
|
+
.mtya-editor-list > *[data-grouped] {
|
|
793
|
+
position: relative;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.mtya-editor-list > *[data-grouped]::before {
|
|
797
|
+
position: absolute;
|
|
798
|
+
inset-block: 0;
|
|
799
|
+
inset-inline-start: 0;
|
|
800
|
+
inline-size: 3px;
|
|
801
|
+
content: "";
|
|
802
|
+
background-color: var(--group-color);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.mtya-editor-list > *[data-group-first]::before {
|
|
806
|
+
border-start-start-radius: 3px;
|
|
807
|
+
border-start-end-radius: 3px;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.mtya-editor-list > *[data-group-last]::before {
|
|
811
|
+
border-end-start-radius: 3px;
|
|
812
|
+
border-end-end-radius: 3px;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/*
|
|
816
|
+
* mtya-editor-list-limit-tooltip renders the limit notice's sentences on their own lines: the
|
|
817
|
+
* copy carries an explicit newline between them, and pre-line honors that break (and still
|
|
818
|
+
* wraps a long line) so the notice reads as short lines rather than one dense run.
|
|
819
|
+
*/
|
|
820
|
+
.mtya-editor-list-limit-tooltip {
|
|
821
|
+
white-space: pre-line;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/*
|
|
825
|
+
* The cap explainer's glyph. It paints from `currentColor` like every published glyph, so the
|
|
826
|
+
* dimmed treatment is a colour on the element rather than a prop on the component, which is
|
|
827
|
+
* also what keeps it a Mantine decision a consumer can retheme.
|
|
828
|
+
*/
|
|
829
|
+
.mtya-editor-list-limit-glyph {
|
|
830
|
+
color: var(--mantine-color-dimmed);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/*
|
|
834
|
+
* mtya-dashed-add gives an "add" control a ghost, dashed outline so it reads as a placeholder
|
|
835
|
+
* to fill rather than as a primary action. It pairs with Mantine's `variant="default"` (the
|
|
836
|
+
* neutral outline) and swaps only the solid border for a dashed one, so the control still
|
|
837
|
+
* inherits the theme's button height, radius and hover from that variant.
|
|
838
|
+
*/
|
|
839
|
+
.mtya-dashed-add {
|
|
840
|
+
border-style: dashed;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/*
|
|
844
|
+
* The floating panel shell.
|
|
845
|
+
*
|
|
846
|
+
* It caps against its positioned wrapper (a caller anchors and, on a narrow viewport, bounds
|
|
847
|
+
* that box) and lays the title and body out as a column, so the title stays put and the body
|
|
848
|
+
* below it is what scrolls.
|
|
849
|
+
*
|
|
850
|
+
* The width is one load-bearing value: narrow enough to overlay a map without reading as a
|
|
851
|
+
* drawer. Below the panel's breakpoint it fills the anchor box instead, so a picker never runs
|
|
852
|
+
* off a phone screen.
|
|
853
|
+
*/
|
|
854
|
+
.mtya-studio-panel {
|
|
855
|
+
display: flex;
|
|
856
|
+
flex-direction: column;
|
|
857
|
+
width: 340px;
|
|
858
|
+
max-height: 100%;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
@container mtya-studio (max-width: 36em) {
|
|
862
|
+
.mtya-studio-panel {
|
|
863
|
+
width: 100%;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/*
|
|
868
|
+
* The body takes the height left under the title and scrolls inside it. `min-height: 0` is
|
|
869
|
+
* what lets a flex child shrink below its content, so the scroll engages instead of the whole
|
|
870
|
+
* shell growing.
|
|
871
|
+
*/
|
|
872
|
+
.mtya-panel-body {
|
|
873
|
+
flex: 1 1 auto;
|
|
874
|
+
min-height: 0;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/*
|
|
878
|
+
* The reveal marquee: one clipped line that scrolls its hidden tail into view.
|
|
879
|
+
*
|
|
880
|
+
* The clip is the fixed-width frame the text scrolls inside, and it is the stable measuring
|
|
881
|
+
* frame: the hook observes THIS element rather than the inner text, because the text's own
|
|
882
|
+
* width changes the moment the marquee expands it, which would feed the measurement back into
|
|
883
|
+
* itself.
|
|
884
|
+
*/
|
|
885
|
+
.mtya-marquee-clip {
|
|
886
|
+
display: flex;
|
|
887
|
+
align-items: center;
|
|
888
|
+
min-width: 0;
|
|
889
|
+
overflow: hidden;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/*
|
|
893
|
+
* The text is the single row of content. As the flex child it shrinks to the clip: `min-width: 0`
|
|
894
|
+
* lets it shrink past its content so the ellipsis can paint, and `max-width: 100%` pins it to
|
|
895
|
+
* the clip, so a long line truncates at rest.
|
|
896
|
+
*/
|
|
897
|
+
.mtya-marquee-text {
|
|
898
|
+
min-width: 0;
|
|
899
|
+
max-width: 100%;
|
|
900
|
+
overflow: hidden;
|
|
901
|
+
text-overflow: ellipsis;
|
|
902
|
+
white-space: nowrap;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/*
|
|
906
|
+
* On hover or focus of the marquee HOST, an overflowing line reveals its tail: the width cap
|
|
907
|
+
* lifts, the flex sizing freezes so the text grows to full length, and the animation translates
|
|
908
|
+
* it left by the measured overflow and back.
|
|
909
|
+
*
|
|
910
|
+
* The trigger is an ancestor marked `data-marquee-host` rather than the text itself, so one
|
|
911
|
+
* hover drives every line a row or card owns: a title and its subtitle move together instead
|
|
912
|
+
* of whichever one the pointer happens to be over. The reveal is decorative, so it is gated
|
|
913
|
+
* behind `prefers-reduced-motion` and never runs for a line that fits.
|
|
914
|
+
*/
|
|
915
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
916
|
+
[data-marquee-host]:where(:hover, :focus-within) .mtya-marquee-text[data-overflowing="true"] {
|
|
917
|
+
flex: 0 0 auto;
|
|
918
|
+
max-width: none;
|
|
919
|
+
overflow: visible;
|
|
920
|
+
animation: mtya-marquee var(--marquee-duration, 4s) ease-in-out infinite alternate;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
@keyframes mtya-marquee {
|
|
925
|
+
0%,
|
|
926
|
+
12% {
|
|
927
|
+
transform: translateX(0);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
88%,
|
|
931
|
+
100% {
|
|
932
|
+
transform: translateX(calc(-1 * var(--marquee-shift, 0px)));
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/*
|
|
937
|
+
* `.mtya-picker-card` is the shared picker-card surface for the terrain, overlay, and unit
|
|
938
|
+
* grids: a bordered, padded tile with a media slot on top and a left-aligned name
|
|
939
|
+
* below on the card's own surface. The padding comes from the Radio.Card
|
|
940
|
+
* `p` prop so the text content breathes; image media opts out of it via
|
|
941
|
+
* `.mtya-picker-card-media-image`. Selection turns the 1px border primary (Mantine's
|
|
942
|
+
* built-in data-checked mod) and reveals the ring overlay below, plus a primary-tinted
|
|
943
|
+
* media, rather than a floating chip, and hover hints with the neutral gray-4 border
|
|
944
|
+
* so the focus target is obvious without extra chrome.
|
|
945
|
+
*/
|
|
946
|
+
.mtya-picker-card {
|
|
947
|
+
position: relative;
|
|
948
|
+
overflow: hidden;
|
|
949
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
950
|
+
transition: border-color 120ms ease;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/*
|
|
954
|
+
* The selection ring is an overlay rather than an inset box-shadow on the card itself.
|
|
955
|
+
* The layers thumbnail bleeds to the card edges (`.mtya-picker-card-media-image`), and a
|
|
956
|
+
* box-shadow on the card paints BENEATH its children, so the image would cover the ring on
|
|
957
|
+
* the bled top/side edges while it stayed visible over the footer, making the ring read
|
|
958
|
+
* thicker at the footer than around the image. This ::after paints ABOVE the image, so the
|
|
959
|
+
* 1px primary ring sits uniformly around the whole card. It is always present (a
|
|
960
|
+
* pseudo-element cannot transition in and out of existence, so the ring fades via opacity)
|
|
961
|
+
* and inert to pointer events; it stays invisible until the card is checked.
|
|
962
|
+
* overflow:hidden on the card clips it to the rounded inner edge.
|
|
963
|
+
*/
|
|
964
|
+
.mtya-picker-card::after {
|
|
965
|
+
position: absolute;
|
|
966
|
+
inset: 0;
|
|
967
|
+
pointer-events: none;
|
|
968
|
+
content: "";
|
|
969
|
+
border-radius: inherit;
|
|
970
|
+
box-shadow: inset 0 0 0 1px var(--mantine-primary-color-filled);
|
|
971
|
+
opacity: 0;
|
|
972
|
+
transition: opacity 120ms ease;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/*
|
|
976
|
+
* `.mtya-picker-card-media` is the top slot. It left-aligns its child so the preferences unit
|
|
977
|
+
* symbol ("km · m") reads as a label flush with the name below rather than a centered
|
|
978
|
+
* caption. It carries no fixed height: the preferences symbol sizes itself, and
|
|
979
|
+
* image media (below) sets its own height through the Image `h` prop.
|
|
980
|
+
*/
|
|
981
|
+
.mtya-picker-card-media {
|
|
982
|
+
display: flex;
|
|
983
|
+
align-items: center;
|
|
984
|
+
justify-content: flex-start;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/*
|
|
988
|
+
* The image media bleeds the layers thumbnail out of the card padding so it touches
|
|
989
|
+
* the top and side edges: negative top/inline margins cancel the card's padding
|
|
990
|
+
* on those sides, and an xxs bottom margin sets the gap above the title. Image
|
|
991
|
+
* cards trim the card's bottom padding to a matching xxs (Radio.Card pb), so the
|
|
992
|
+
* title sits with even space above and below. The card's overflow:hidden + radius
|
|
993
|
+
* clip the image corners to the card shape.
|
|
994
|
+
*/
|
|
995
|
+
.mtya-picker-card-media-image {
|
|
996
|
+
margin: calc(-1 * var(--mantine-spacing-xs)) calc(-1 * var(--mantine-spacing-xs))
|
|
997
|
+
var(--mantine-spacing-xxs);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/*
|
|
1001
|
+
* `.mtya-picker-card-name` is the caption row under the media. It carries the label's own xs
|
|
1002
|
+
* font size with a tight line-height so the row stays compact, and frames the single line.
|
|
1003
|
+
* The even gap above and below the title comes from the card, not this row: the
|
|
1004
|
+
* media's xxs bottom margin sets the space above, and image cards trim the card's
|
|
1005
|
+
* bottom padding to a matching xxs so the space below equals it. The shared
|
|
1006
|
+
* MarqueeText inside owns the clip + ellipsis + hover reveal, so this row only
|
|
1007
|
+
* provides the font context for it.
|
|
1008
|
+
*/
|
|
1009
|
+
.mtya-picker-card-name {
|
|
1010
|
+
display: flex;
|
|
1011
|
+
align-items: center;
|
|
1012
|
+
font-size: var(--mantine-font-size-xs);
|
|
1013
|
+
line-height: 1.25;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/*
|
|
1017
|
+
* `.mtya-picker-card-name-text` carries the medium weight of the caption's label text;
|
|
1018
|
+
* MarqueeText's own text rule handles the truncation, ellipsis, and hover-reveal sizing, so
|
|
1019
|
+
* this only sets the weight on top of it.
|
|
1020
|
+
*/
|
|
1021
|
+
.mtya-picker-card-name-text {
|
|
1022
|
+
font-weight: 500;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.mtya-picker-card:where(:hover) {
|
|
1026
|
+
border-color: var(--mantine-color-gray-4);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/*
|
|
1030
|
+
* The checked card turns its base 1px border primary and reveals the selection-ring
|
|
1031
|
+
* overlay (`.mtya-picker-card::after` above), so selecting a card adds no border width and
|
|
1032
|
+
* never shifts the row height (a 2px border would). The ring fades in via the overlay's
|
|
1033
|
+
* opacity transition and paints above the bled thumbnail, so it reads uniformly around the
|
|
1034
|
+
* whole card rather than thicker at the footer than around the image.
|
|
1035
|
+
*/
|
|
1036
|
+
.mtya-picker-card:where([data-checked]) {
|
|
1037
|
+
border-color: var(--mantine-primary-color-filled);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.mtya-picker-card:where([data-checked])::after {
|
|
1041
|
+
opacity: 1;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/*
|
|
1045
|
+
* The active card tints its media primary, not its name: in preferences the media
|
|
1046
|
+
* holds the unit symbol ("km · m"), which must turn primary to mark the selection
|
|
1047
|
+
* while the name stays the default color. In layers the media is an <img> so the
|
|
1048
|
+
* color is inert there and selection rides on the primary border and the ring overlay alone.
|
|
1049
|
+
*/
|
|
1050
|
+
.mtya-picker-card:where([data-checked]) .mtya-picker-card-media {
|
|
1051
|
+
color: var(--mantine-primary-color-filled);
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
/*
|
|
1055
|
+
* A locked card desaturates its media and surfaces a not-allowed cursor so the
|
|
1056
|
+
* swap-blocked state reads at a glance; the section header already carries the
|
|
1057
|
+
* explanatory tooltip.
|
|
1058
|
+
*
|
|
1059
|
+
* The lock is keyed on data-locked, which the card sets itself, not on Mantine's
|
|
1060
|
+
* data-disabled: Radio.Card renders an UnstyledButton, which forwards `disabled`
|
|
1061
|
+
* to the native <button> and emits no matching mod, so a [data-disabled] selector
|
|
1062
|
+
* would never match here.
|
|
1063
|
+
*
|
|
1064
|
+
* It stays HIT-TESTABLE, deliberately. The lock blocks the swap, not the reading of
|
|
1065
|
+
* what is being withheld: `pointer-events: none` takes the card out of hit testing
|
|
1066
|
+
* and with it every :hover, including the one the name's marquee scrolls on, which
|
|
1067
|
+
* is the only way to read a title too long for the card. A card locked to organization
|
|
1068
|
+
* members is exactly the card whose full name matters most, so a reader outside an
|
|
1069
|
+
* organization must not be the one person who cannot see it. Nothing is lost by letting
|
|
1070
|
+
* the pointer land: the card is a native disabled <button>, so it dispatches no click,
|
|
1071
|
+
* and both grids guard their own select path as well. Hit-testable is also what makes
|
|
1072
|
+
* the not-allowed cursor visible at all.
|
|
1073
|
+
*/
|
|
1074
|
+
.mtya-picker-card[data-locked="true"] {
|
|
1075
|
+
cursor: not-allowed;
|
|
1076
|
+
filter: grayscale(1);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/*
|
|
1080
|
+
* The shared hover lift must not read as an invitation on a card that cannot be
|
|
1081
|
+
* picked, so a locked card holds the neutral border the pointer found it with.
|
|
1082
|
+
*/
|
|
1083
|
+
.mtya-picker-card[data-locked="true"]:where(:hover) {
|
|
1084
|
+
border-color: var(--mantine-color-default-border);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/*
|
|
1088
|
+
* The transient alert over the map: one banner, pinned bottom-centre.
|
|
1089
|
+
*
|
|
1090
|
+
* Anchored here rather than inline so the two positions are one declaration each and a host
|
|
1091
|
+
* restyling their map's chrome can reach them, and because the raised variant is a `calc()` over
|
|
1092
|
+
* theme spacing, a value that belongs in a stylesheet rather than assembled in a render.
|
|
1093
|
+
*
|
|
1094
|
+
* `z-index: 3` is above the map canvas and below MapLibre's popups and every portalled dialog.
|
|
1095
|
+
* An alert that covered a confirm would be unanswerable, and one under the canvas is invisible.
|
|
1096
|
+
*/
|
|
1097
|
+
.mtya-map-alert {
|
|
1098
|
+
position: absolute;
|
|
1099
|
+
bottom: var(--mantine-spacing-md);
|
|
1100
|
+
left: 50%;
|
|
1101
|
+
z-index: 3;
|
|
1102
|
+
transform: translateX(-50%);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/*
|
|
1106
|
+
* Lifted clear of the elevation panel while an itinerary is open, so neither surface covers the
|
|
1107
|
+
* other. The panel publishes no measured height; 64px is the allotment for its characteristics
|
|
1108
|
+
* row, chart and surface bars, and a host whose panel differs overrides this rule or passes
|
|
1109
|
+
* `style`.
|
|
1110
|
+
*/
|
|
1111
|
+
.mtya-map-alert[data-raised="true"] {
|
|
1112
|
+
bottom: calc(var(--mantine-spacing-md) + 64px + var(--mantine-spacing-xs));
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/*
|
|
1116
|
+
* The dialog shell's header band.
|
|
1117
|
+
*
|
|
1118
|
+
* Flush with the body padding and carrying a hairline divider, so the title reads as a distinct
|
|
1119
|
+
* band above the content rather than floating over it. The bottom margin opens a calm gap to the
|
|
1120
|
+
* first body row.
|
|
1121
|
+
*
|
|
1122
|
+
* Set here rather than on a Mantine theme, which is the difference between a shell that works in
|
|
1123
|
+
* one application and one that ships. Theme-level `classNames` resolve only under the theme that
|
|
1124
|
+
* registers them; a consumer mounts this under their own provider, and a dialog whose divider and
|
|
1125
|
+
* title weight lived in a theme entry would render bare for everyone who did not know to add one.
|
|
1126
|
+
*/
|
|
1127
|
+
.mtya-modal-header {
|
|
1128
|
+
align-items: flex-start;
|
|
1129
|
+
padding-bottom: var(--mantine-spacing-sm);
|
|
1130
|
+
margin-bottom: var(--mantine-spacing-md);
|
|
1131
|
+
border-bottom: 1px solid var(--mantine-color-default-border);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/*
|
|
1135
|
+
* The one weight and size every dialog heading shares, so a Manage, a Share and a Delete heading
|
|
1136
|
+
* read identically.
|
|
1137
|
+
*
|
|
1138
|
+
* The class is doubled to raise its specificity to (0,2,0). It lands on Mantine's own <h2>, whose
|
|
1139
|
+
* root class already declares font-size and font-weight at (0,1,0): a tie that would otherwise be
|
|
1140
|
+
* settled by stylesheet injection order, which is not something a heading's weight should depend
|
|
1141
|
+
* on.
|
|
1142
|
+
*
|
|
1143
|
+
* `min-width` lets the title box give up width inside the header's flex row. Without it a long
|
|
1144
|
+
* subject line holds its content width and widens the dialog past its `size` instead of
|
|
1145
|
+
* ellipsising inside it.
|
|
1146
|
+
*/
|
|
1147
|
+
.mtya-modal-title.mtya-modal-title {
|
|
1148
|
+
min-width: 0;
|
|
1149
|
+
font-size: var(--mantine-font-size-md);
|
|
1150
|
+
font-weight: 600;
|
|
1151
|
+
line-height: 1.3;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
/*
|
|
1155
|
+
* The header's left column: the icon accent beside the title and description stack, held as ONE
|
|
1156
|
+
* flex child so the header band's space-between still pushes the close button to the far edge.
|
|
1157
|
+
* `flex` and `min-width` are the first two links in the chain that lets a long name shrink rather
|
|
1158
|
+
* than shove the close button off the card.
|
|
1159
|
+
*/
|
|
1160
|
+
.mtya-modal-heading {
|
|
1161
|
+
flex: 1;
|
|
1162
|
+
min-width: 0;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
/* Stacks the title over its description: the third link in that chain, since a single element
|
|
1166
|
+
* holding its content width holds the whole line's. */
|
|
1167
|
+
.mtya-modal-heading-text {
|
|
1168
|
+
min-width: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/*
|
|
1172
|
+
* A header with no second line (a confirm, whose body is that sentence): the title stands at the
|
|
1173
|
+
* middle of the glyph's tile rather than at its top edge, where one line beside a taller tile
|
|
1174
|
+
* reads as fallen out of step with it. The height is the tile's (Mantine's `lg` ThemeIcon), so a
|
|
1175
|
+
* title long enough to wrap outgrows it and starts level with the tile's top again.
|
|
1176
|
+
*/
|
|
1177
|
+
.mtya-modal-heading-text:where([data-solo]) {
|
|
1178
|
+
justify-content: center;
|
|
1179
|
+
min-height: calc(2.125rem * var(--mantine-scale, 1));
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/*
|
|
1183
|
+
* The dimmed line under the title, and the element the dialog's aria-describedby points at.
|
|
1184
|
+
*
|
|
1185
|
+
* The weight is restated because a caller may pass a composed node here (a glyph, a name and its
|
|
1186
|
+
* measurements) rather than text, and it must read at body weight even sitting in a header band
|
|
1187
|
+
* beside a 600 heading. It is always a SIBLING of the <h2>, never a child: the heading is the
|
|
1188
|
+
* dialog's accessible name and carries the title alone.
|
|
1189
|
+
*/
|
|
1190
|
+
.mtya-modal-description {
|
|
1191
|
+
min-width: 0;
|
|
1192
|
+
font-weight: var(--mantine-font-weight-regular);
|
|
1193
|
+
line-height: 1.4;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/*
|
|
1197
|
+
* The route metric line lets itself shrink inside whatever encloses it. min-width: 0 is
|
|
1198
|
+
* the load-bearing half: a flex child refuses to shrink below its content width by
|
|
1199
|
+
* default, so the content would stay at its natural width and an enclosing button's
|
|
1200
|
+
* overflow: hidden would cut it, which is how a duration loses its last glyph ("4h 6mi").
|
|
1201
|
+
*
|
|
1202
|
+
* white-space: normal undoes a button label's nowrap so the content wraps instead. A
|
|
1203
|
+
* metric line is several separate elements, so text-overflow has nothing to ellipsize
|
|
1204
|
+
* across; wrapping to a second line is the only way to guarantee nothing is ever cut
|
|
1205
|
+
* mid-glyph, and it reads fine in a narrow panel.
|
|
1206
|
+
*/
|
|
1207
|
+
.mtya-route-metric-line {
|
|
1208
|
+
flex: 1;
|
|
1209
|
+
min-width: 0;
|
|
1210
|
+
white-space: normal;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/*
|
|
1214
|
+
* A metric value reserves the width it takes in the emphasized weight: a hidden copy of its text
|
|
1215
|
+
* (its `data-text`), drawn at that weight with no height, sits under it, and the value is as wide
|
|
1216
|
+
* as the wider of the two. Moving the emphasis between rows then reflows nothing, where a line
|
|
1217
|
+
* that only fits in the regular weight would otherwise wrap under the pointer in a narrow column
|
|
1218
|
+
* and push every row below it down. The copy is hidden, so it is neither seen nor read aloud.
|
|
1219
|
+
* The value is centred in that width, so the room the regular weight leaves is shared by the
|
|
1220
|
+
* separators on either side rather than all landing before the next one.
|
|
1221
|
+
*/
|
|
1222
|
+
.mtya-route-metric-value {
|
|
1223
|
+
display: inline-flex;
|
|
1224
|
+
flex-direction: column;
|
|
1225
|
+
align-items: center;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
.mtya-route-metric-value::after {
|
|
1229
|
+
visibility: hidden;
|
|
1230
|
+
height: 0;
|
|
1231
|
+
overflow: hidden;
|
|
1232
|
+
font-weight: 600;
|
|
1233
|
+
user-select: none;
|
|
1234
|
+
content: attr(data-text);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/*
|
|
1238
|
+
* The settings toggle row: the Switch root, laid out as a full-width line so the label
|
|
1239
|
+
* sits flush left and the track flush right. The hover tint is rounded and stays inside
|
|
1240
|
+
* the container's own inset: the row is mounted in an `xs` dropdown and an `sm` panel,
|
|
1241
|
+
* so a full-bleed band would need to know which, and would be wrong in one of them.
|
|
1242
|
+
*/
|
|
1243
|
+
.mtya-toggle-row {
|
|
1244
|
+
width: 100%;
|
|
1245
|
+
cursor: pointer;
|
|
1246
|
+
border-radius: var(--mantine-radius-sm);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.mtya-toggle-row:where(:hover) {
|
|
1250
|
+
background-color: var(--mantine-color-default-hover);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/*
|
|
1254
|
+
* The row's body is the Switch body, which Mantine renders as the <label> bound to the
|
|
1255
|
+
* input, so it is the click target. Stretching it full width with its own padding makes
|
|
1256
|
+
* the entire row (glyph, label, the gap, and the track) toggle the value, with the
|
|
1257
|
+
* padding on the xxs step so a list of these stays dense enough to read as one block.
|
|
1258
|
+
* space-between pins the label left and the track right.
|
|
1259
|
+
*/
|
|
1260
|
+
.mtya-toggle-row-body {
|
|
1261
|
+
justify-content: space-between;
|
|
1262
|
+
width: 100%;
|
|
1263
|
+
padding: var(--mantine-spacing-xxs);
|
|
1264
|
+
cursor: pointer;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
/*
|
|
1268
|
+
* Force the pointer cursor across the whole row. Mantine drives the label's cursor
|
|
1269
|
+
* through a CSS variable that the inner Text and label wrapper resolve to the default
|
|
1270
|
+
* arrow, so the label would read as non-interactive even though the body is the click
|
|
1271
|
+
* target; painting every descendant pointer makes the entire row read as clickable.
|
|
1272
|
+
*/
|
|
1273
|
+
/* The `> *` idiom below is flagged as descending-specificity against
|
|
1274
|
+
`.mtya-editor-list > .mtya-segment-seam:has([data-merge]:hover) + *` higher in this file. The
|
|
1275
|
+
override that rule warns about cannot occur: that selector sets `background-color` alone, and
|
|
1276
|
+
every rule suppressed here sets layout (cursor, padding, intrinsic size, a divider border).
|
|
1277
|
+
Reordering to satisfy the check would move a hover treatment past unrelated layout for a
|
|
1278
|
+
conflict that does not exist. */
|
|
1279
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties; see above. */
|
|
1280
|
+
.mtya-toggle-row-body * {
|
|
1281
|
+
cursor: pointer;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/*
|
|
1285
|
+
* The radio option card is the shared selectable-option surface: a bordered, padded row
|
|
1286
|
+
* whose whole area is the radio target. It carries the same selection vocabulary
|
|
1287
|
+
* `.mtya-picker-card` uses, so a mode card in a wizard, a format in an export rail and a
|
|
1288
|
+
* terrain tile in a layers panel all announce hover and selection identically: a
|
|
1289
|
+
* hairline border at rest, the neutral gray-4 on hover, and a primary border plus the
|
|
1290
|
+
* ring overlay when checked.
|
|
1291
|
+
*/
|
|
1292
|
+
.mtya-radio-option-card {
|
|
1293
|
+
position: relative;
|
|
1294
|
+
overflow: hidden;
|
|
1295
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
1296
|
+
transition: border-color 120ms ease;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
/*
|
|
1300
|
+
* The selection ring is an overlay rather than an inset box-shadow on the card itself: a
|
|
1301
|
+
* box-shadow paints BENEATH the card's children, so any leading media that bleeds toward
|
|
1302
|
+
* an edge would cover it unevenly. This ::after paints ABOVE, so the 1px primary ring
|
|
1303
|
+
* reads uniformly around the whole card. It is always present (a pseudo-element cannot
|
|
1304
|
+
* transition in and out of existence, so it fades via opacity) and inert to pointer
|
|
1305
|
+
* events; overflow: hidden clips it to the rounded inner edge.
|
|
1306
|
+
*/
|
|
1307
|
+
.mtya-radio-option-card::after {
|
|
1308
|
+
position: absolute;
|
|
1309
|
+
inset: 0;
|
|
1310
|
+
pointer-events: none;
|
|
1311
|
+
content: "";
|
|
1312
|
+
border-radius: inherit;
|
|
1313
|
+
box-shadow: inset 0 0 0 1px var(--mantine-primary-color-filled);
|
|
1314
|
+
opacity: 0;
|
|
1315
|
+
transition: opacity 120ms ease;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.mtya-radio-option-card:where(:hover) {
|
|
1319
|
+
border-color: var(--mantine-color-gray-4);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/*
|
|
1323
|
+
* The checked card turns its base 1px border primary and reveals the ring overlay, so
|
|
1324
|
+
* selecting adds no border width and never shifts the row height (a 2px border would).
|
|
1325
|
+
*/
|
|
1326
|
+
.mtya-radio-option-card:where([data-checked]) {
|
|
1327
|
+
border-color: var(--mantine-primary-color-filled);
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
.mtya-radio-option-card:where([data-checked])::after {
|
|
1331
|
+
opacity: 1;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
.mtya-radio-option-card:where([data-disabled]) {
|
|
1335
|
+
cursor: not-allowed;
|
|
1336
|
+
opacity: 0.6;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.mtya-radio-option-card:where([data-disabled]):where(:hover) {
|
|
1340
|
+
border-color: var(--mantine-color-default-border);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/*
|
|
1344
|
+
* A theme's respectReducedMotion only covers Mantine's own JS transitions, so the raw CSS
|
|
1345
|
+
* ones above need their own guard.
|
|
1346
|
+
*/
|
|
1347
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1348
|
+
.mtya-radio-option-card,
|
|
1349
|
+
.mtya-radio-option-card::after {
|
|
1350
|
+
transition: none;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
/* ------------------------------------------------------------------------------------------
|
|
1355
|
+
* Studio header
|
|
1356
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1357
|
+
|
|
1358
|
+
/*
|
|
1359
|
+
* The brand lockup a host mounts at the top of its own nav: a mark beside a two-line column.
|
|
1360
|
+
*
|
|
1361
|
+
* Both boxes carry `min-width: 0` for the reason the sidenav header's pair do: a flex item
|
|
1362
|
+
* refuses to shrink past its content unless it does, and that refusal travels, so a long title
|
|
1363
|
+
* widens the whole row past a narrow panel unless the chain is unbroken from the row down to
|
|
1364
|
+
* the text that gives way.
|
|
1365
|
+
*/
|
|
1366
|
+
.mtya-studio-header,
|
|
1367
|
+
.mtya-studio-header-column {
|
|
1368
|
+
min-width: 0;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/*
|
|
1372
|
+
* The wordmark. The FACE is a token rather than a stack, because a published package cannot
|
|
1373
|
+
* assume the host loaded any particular one: Mountaya's own is Mont, and a default naming it
|
|
1374
|
+
* would resolve to the fallback in every application that does not have it. Unset, the wordmark
|
|
1375
|
+
* is set in whatever the studio around it is set in, which is always a working answer.
|
|
1376
|
+
*
|
|
1377
|
+
* It breaks an unbreakable word rather than overrunning: a host's product name is free to wrap,
|
|
1378
|
+
* and one with no space in it has nowhere to.
|
|
1379
|
+
*/
|
|
1380
|
+
.mtya-studio-header-title {
|
|
1381
|
+
font-family: var(--mtya-brand-font);
|
|
1382
|
+
overflow-wrap: anywhere;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
/* ------------------------------------------------------------------------------------------
|
|
1386
|
+
* Sidenav panel chrome
|
|
1387
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1388
|
+
|
|
1389
|
+
/*
|
|
1390
|
+
* The header pins a panel's leading affordance and title to the top of its scrolling viewport,
|
|
1391
|
+
* so both stay in reach while the fields scroll beneath. The body background fills the cell to
|
|
1392
|
+
* occlude that content, and the bottom border reads the theme's default border colour so this
|
|
1393
|
+
* edge and the footer's read as one system.
|
|
1394
|
+
*
|
|
1395
|
+
* The negative top and inline margins cancel `SidenavContentBody`'s `md` padding, so the
|
|
1396
|
+
* divider spans the panel's full width and the header seats flush at the very top; the padding
|
|
1397
|
+
* restores the inset around the title. That is the whole reason the header has to be the body's
|
|
1398
|
+
* first child: the breakout is calibrated to exactly that inset.
|
|
1399
|
+
*
|
|
1400
|
+
* A global sheet rather than a CSS module, so the isolation is the `mtya-` prefix.
|
|
1401
|
+
*/
|
|
1402
|
+
.mtya-sidenav-header {
|
|
1403
|
+
position: sticky;
|
|
1404
|
+
top: 0;
|
|
1405
|
+
/* 3 beats the z-index:2 labels inside Mantine SegmentedControl content. */
|
|
1406
|
+
z-index: 3;
|
|
1407
|
+
padding: var(--mantine-spacing-md) var(--mantine-spacing-md) var(--mantine-spacing-sm);
|
|
1408
|
+
margin-inline: calc(-1 * var(--mantine-spacing-md));
|
|
1409
|
+
margin-top: calc(-1 * var(--mantine-spacing-md));
|
|
1410
|
+
background-color: var(--mantine-color-body);
|
|
1411
|
+
border-bottom: 1px solid var(--mantine-color-default-border);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/*
|
|
1415
|
+
* The header's leading half: the affordance beside the title column.
|
|
1416
|
+
*
|
|
1417
|
+
* Both carry `min-width: 0` because a flex item refuses to shrink past its content unless it
|
|
1418
|
+
* does, and that refusal travels: a subtitle that could truncate perfectly well still widens
|
|
1419
|
+
* the whole header past a narrow panel when an ancestor between them is holding its content
|
|
1420
|
+
* width. The chain has to be unbroken from the panel down to the text that gives way.
|
|
1421
|
+
*/
|
|
1422
|
+
.mtya-sidenav-title-group,
|
|
1423
|
+
.mtya-sidenav-title-column {
|
|
1424
|
+
min-width: 0;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
/*
|
|
1428
|
+
* The column also breaks an unbreakable word rather than overrunning. A title is free to wrap
|
|
1429
|
+
* onto a second line (that is what the column is a stack for), but a name with no space in it
|
|
1430
|
+
* has nowhere to wrap, and the panel would carry the overflow.
|
|
1431
|
+
*/
|
|
1432
|
+
.mtya-sidenav-title-column {
|
|
1433
|
+
overflow-wrap: anywhere;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/*
|
|
1437
|
+
* The footer is the header's mirror at the bottom edge, holding the panel's primary action.
|
|
1438
|
+
*
|
|
1439
|
+
* `margin-top: auto` seats it at the bottom of its flex-column parent when the content is
|
|
1440
|
+
* shorter than the viewport; when the content overflows, that margin collapses and the sticky
|
|
1441
|
+
* position pins the footer to the viewport bottom while the fields scroll under it. The
|
|
1442
|
+
* vertical padding is symmetric so the gap below the action matches the gap above it, and the
|
|
1443
|
+
* negative bottom margin keeps the background flush against the panel's own bottom edge.
|
|
1444
|
+
*/
|
|
1445
|
+
.mtya-sidenav-footer {
|
|
1446
|
+
position: sticky;
|
|
1447
|
+
bottom: 0;
|
|
1448
|
+
/* 3 beats the z-index:2 labels inside Mantine SegmentedControl content. */
|
|
1449
|
+
z-index: 3;
|
|
1450
|
+
padding: var(--mantine-spacing-sm) var(--mantine-spacing-md);
|
|
1451
|
+
margin-inline: calc(-1 * var(--mantine-spacing-md));
|
|
1452
|
+
margin-top: auto;
|
|
1453
|
+
margin-bottom: calc(-1 * var(--mantine-spacing-md));
|
|
1454
|
+
background-color: var(--mantine-color-body);
|
|
1455
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
/*
|
|
1459
|
+
* The line of keyboard shortcuts an editing footer shows above its save button. Each shortcut
|
|
1460
|
+
* keeps its key and its verb together, and the line wraps between shortcuts, centred under the
|
|
1461
|
+
* full-width button, so a narrow sidenav breaks it into rows rather than cutting a chord.
|
|
1462
|
+
*/
|
|
1463
|
+
.mtya-edit-shortcuts {
|
|
1464
|
+
display: flex;
|
|
1465
|
+
flex-wrap: wrap;
|
|
1466
|
+
gap: var(--mantine-spacing-xxs) var(--mantine-spacing-sm);
|
|
1467
|
+
justify-content: center;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
.mtya-edit-shortcut {
|
|
1471
|
+
white-space: nowrap;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/* ------------------------------------------------------------------------------------------
|
|
1475
|
+
* Activity badge
|
|
1476
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1477
|
+
|
|
1478
|
+
/*
|
|
1479
|
+
* The soft tinted chip that frames an activity's silhouette.
|
|
1480
|
+
*
|
|
1481
|
+
* A square, so every row's icon column stays aligned whatever the activity draws, and
|
|
1482
|
+
* `flex: none` so it does not shrink inside a row's nowrap group. The size and background read
|
|
1483
|
+
* from custom properties the component writes, which is what lets a taller surface scale the
|
|
1484
|
+
* chip up without a second class.
|
|
1485
|
+
*/
|
|
1486
|
+
.mtya-activity-badge {
|
|
1487
|
+
display: flex;
|
|
1488
|
+
flex: none;
|
|
1489
|
+
align-items: center;
|
|
1490
|
+
justify-content: center;
|
|
1491
|
+
width: var(--mtya-activity-badge-size, 1.75rem);
|
|
1492
|
+
height: var(--mtya-activity-badge-size, 1.75rem);
|
|
1493
|
+
background-color: var(--mtya-activity-badge-bg, rgba(0, 0, 0, 0.04));
|
|
1494
|
+
border-radius: var(--mantine-radius-sm, 0.25rem);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
/*
|
|
1498
|
+
* The silhouette inside it, drawn in one neutral tint.
|
|
1499
|
+
*
|
|
1500
|
+
* The glyph paints from `currentColor`, so tinting is a colour on this element rather than a
|
|
1501
|
+
* mask over an image, which is the whole reason the badge reads the marker seam instead of
|
|
1502
|
+
* carrying artwork of its own. `contain` fits a tall figure inside the square without
|
|
1503
|
+
* distorting it.
|
|
1504
|
+
*/
|
|
1505
|
+
.mtya-activity-glyph {
|
|
1506
|
+
width: var(--mtya-activity-glyph-size, 1rem);
|
|
1507
|
+
height: var(--mtya-activity-glyph-size, 1rem);
|
|
1508
|
+
color: var(--mtya-activity-glyph-color, rgb(100, 116, 139));
|
|
1509
|
+
object-fit: contain;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/* ------------------------------------------------------------------------------------------
|
|
1513
|
+
* Dialog subject line
|
|
1514
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1515
|
+
|
|
1516
|
+
/*
|
|
1517
|
+
* The subject line is one shrink chain, which is why its rules sit together rather than on the
|
|
1518
|
+
* elements: a chain reads as a chain only when its links do.
|
|
1519
|
+
*
|
|
1520
|
+
* The row and the name are the two links that give up width. `min-width: 0` is what lets a flex
|
|
1521
|
+
* item shrink past its own content at all: without it the line holds its content width and
|
|
1522
|
+
* widens the dialog past its size instead of ellipsising inside it.
|
|
1523
|
+
*/
|
|
1524
|
+
.mtya-dialog-subject,
|
|
1525
|
+
.mtya-dialog-subject-name {
|
|
1526
|
+
min-width: 0;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/*
|
|
1530
|
+
* Everything that is NOT the name holds its shape: a glyph, a segment name, and two short
|
|
1531
|
+
* fixed-form numbers. A distance that ellipsises has stopped being a distance, so the name is
|
|
1532
|
+
* the only part that yields.
|
|
1533
|
+
*/
|
|
1534
|
+
.mtya-dialog-subject-pinned {
|
|
1535
|
+
flex: 0 0 auto;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/*
|
|
1539
|
+
* The LanguageSelect's selected-option check, made visually identical to a default Mantine
|
|
1540
|
+
* Select's.
|
|
1541
|
+
*
|
|
1542
|
+
* The picker replaces Mantine's option content with its own row (the mark and the label), which
|
|
1543
|
+
* replaces Mantine's check markup with it, so the only way to match the default is to re-apply
|
|
1544
|
+
* the exact rules its internal `optionsDropdownCheckIcon` class carries. Without them the bare
|
|
1545
|
+
* check renders at full opacity and reads heavier than every other Select's on the page.
|
|
1546
|
+
*
|
|
1547
|
+
* The `:where(...)` ancestor keeps specificity at (0,1,0) so it never fights the option's own
|
|
1548
|
+
* colour, exactly as Mantine's own rule does.
|
|
1549
|
+
*/
|
|
1550
|
+
.mtya-language-select-check {
|
|
1551
|
+
width: 0.8em;
|
|
1552
|
+
min-width: 0.8em;
|
|
1553
|
+
height: 0.8em;
|
|
1554
|
+
opacity: 0.4;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
:where([data-combobox-selected]) .mtya-language-select-check {
|
|
1558
|
+
opacity: 1;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/*
|
|
1562
|
+
* The publication state's coloured mark, for the header's status line.
|
|
1563
|
+
*
|
|
1564
|
+
* It runs at the cap height of the xs text it sits beside, so the pair reads as one word with
|
|
1565
|
+
* a bullet rather than as a label hung off a swatch, and it never shrinks: it is 8px of
|
|
1566
|
+
* meaning and there is nothing to gain by giving any of it back to the line.
|
|
1567
|
+
*/
|
|
1568
|
+
.mtya-publication-dot {
|
|
1569
|
+
flex: 0 0 auto;
|
|
1570
|
+
width: 8px;
|
|
1571
|
+
height: 8px;
|
|
1572
|
+
border-radius: var(--mantine-radius-xl);
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
/*
|
|
1576
|
+
* `.mtya-fullscreen-content` is the full-screen surface's dialog box, as tall as the box the
|
|
1577
|
+
* dialog fills: the studio, or the window outside one. It is a size container, so a surface
|
|
1578
|
+
* inside it sizes a part by the dialog's own height (`cqh`) rather than by the window's.
|
|
1579
|
+
*/
|
|
1580
|
+
.mtya-fullscreen-content {
|
|
1581
|
+
container: mtya-fullscreen / size;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/*
|
|
1585
|
+
* `.mtya-fullscreen-body` is the dialog's body, held to the dialog's full height so the shell
|
|
1586
|
+
* inside it has a height to fill.
|
|
1587
|
+
*/
|
|
1588
|
+
.mtya-fullscreen-body {
|
|
1589
|
+
height: 100%;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
/*
|
|
1593
|
+
* `.mtya-fullscreen-shell` is the full-screen surface's Modal body: a full-height flex column
|
|
1594
|
+
* (header / main / optional footer) so the header and footer pin to the top and bottom
|
|
1595
|
+
* without sticky positioning: the column shell makes sticky unnecessary.
|
|
1596
|
+
*/
|
|
1597
|
+
.mtya-fullscreen-shell {
|
|
1598
|
+
display: flex;
|
|
1599
|
+
flex-direction: column;
|
|
1600
|
+
height: 100%;
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
/*
|
|
1604
|
+
* `.mtya-wizard-layout` lays out a full-screen wizard under its header: the rail that lists its
|
|
1605
|
+
* sections, the open section, and the stage that shows what the section changes.
|
|
1606
|
+
*
|
|
1607
|
+
* In a studio of the medium breakpoint's width and up the three stand side by side: the rail at
|
|
1608
|
+
* `--mtya-section-rail-width` and the open section at `--mtya-wizard-panel-width`, both of
|
|
1609
|
+
* which `WizardLayout` writes on the layout, and the stage in the room they leave. In a
|
|
1610
|
+
* narrower studio they stack: the stage on top at a share of the dialog's height, the rail
|
|
1611
|
+
* across the page under it with its sections side by side, and the open section in the room
|
|
1612
|
+
* that is left, scrolling on its own.
|
|
1613
|
+
*
|
|
1614
|
+
* A section that is a page of its own (`data-page`) takes the stage's room as well: the stage
|
|
1615
|
+
* is not drawn, and the section reads at a page's width.
|
|
1616
|
+
*
|
|
1617
|
+
* The breakpoint is a container query on the studio rather than a media query, because a
|
|
1618
|
+
* wizard fills the studio and a studio embedded in a page is narrower than the window. The
|
|
1619
|
+
* value is Mantine's `md` written out, since a container condition reads no variable. The
|
|
1620
|
+
* stage's share is `cqh` against the full-screen dialog's size container, so it follows the
|
|
1621
|
+
* dialog in a studio shorter than the window.
|
|
1622
|
+
*/
|
|
1623
|
+
.mtya-wizard-sections {
|
|
1624
|
+
/* The tabs' own root draws no box: the layout under it is the shell's column child. */
|
|
1625
|
+
display: contents;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
.mtya-wizard-layout {
|
|
1629
|
+
display: grid;
|
|
1630
|
+
flex: 1;
|
|
1631
|
+
grid-template-areas: "stage" "rail" "panel";
|
|
1632
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
1633
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1634
|
+
min-width: 0;
|
|
1635
|
+
min-height: 0;
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
.mtya-wizard-layout[data-page] {
|
|
1639
|
+
grid-template-areas: "rail" "panel";
|
|
1640
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
.mtya-wizard-rail {
|
|
1644
|
+
grid-area: rail;
|
|
1645
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
/*
|
|
1649
|
+
* The open section. It scrolls on its own, and on the y axis only: a focus ring or a slider
|
|
1650
|
+
* thumb grazing the column's edge must never mint a horizontal scrollbar.
|
|
1651
|
+
*/
|
|
1652
|
+
.mtya-wizard-panel {
|
|
1653
|
+
grid-area: panel;
|
|
1654
|
+
min-width: 0;
|
|
1655
|
+
min-height: 0;
|
|
1656
|
+
padding: var(--mantine-spacing-md);
|
|
1657
|
+
overflow-x: hidden;
|
|
1658
|
+
overflow-y: auto;
|
|
1659
|
+
/* The room a scrollbar takes is kept whether or not a section scrolls, so the fields of a
|
|
1660
|
+
* short section and of a long one start at the same edge. */
|
|
1661
|
+
scrollbar-gutter: stable;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
/*
|
|
1665
|
+
* A section that is a page of its own stands on the canvas a settings page draws its cards on,
|
|
1666
|
+
* held to a reading measure.
|
|
1667
|
+
*/
|
|
1668
|
+
.mtya-wizard-layout[data-page] .mtya-wizard-panel {
|
|
1669
|
+
background-color: var(--mantine-color-gray-0);
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
[data-mtya-color-scheme="dark"] .mtya-wizard-layout[data-page] .mtya-wizard-panel {
|
|
1673
|
+
background-color: var(--mantine-color-dark-8);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
.mtya-wizard-page {
|
|
1677
|
+
width: 100%;
|
|
1678
|
+
max-width: 800px;
|
|
1679
|
+
margin-inline: auto;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.mtya-wizard-stage {
|
|
1683
|
+
display: flex;
|
|
1684
|
+
flex-direction: column;
|
|
1685
|
+
grid-area: stage;
|
|
1686
|
+
min-width: 0;
|
|
1687
|
+
height: 40cqh;
|
|
1688
|
+
min-height: 0;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
.mtya-wizard-layout[data-page] .mtya-wizard-stage {
|
|
1692
|
+
display: none;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
@container mtya-studio (width >= 62em) {
|
|
1696
|
+
.mtya-wizard-layout {
|
|
1697
|
+
grid-template-areas: "rail panel stage";
|
|
1698
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1699
|
+
grid-template-columns:
|
|
1700
|
+
var(--mtya-section-rail-width) var(--mtya-wizard-panel-width)
|
|
1701
|
+
minmax(0, 1fr);
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
.mtya-wizard-layout[data-page] {
|
|
1705
|
+
grid-template-areas: "rail panel";
|
|
1706
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1707
|
+
grid-template-columns: var(--mtya-section-rail-width) minmax(0, 1fr);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.mtya-wizard-rail {
|
|
1711
|
+
border-top: 0;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
.mtya-wizard-panel {
|
|
1715
|
+
border-right: 1px solid var(--mantine-color-default-border);
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
.mtya-wizard-layout[data-page] .mtya-wizard-panel {
|
|
1719
|
+
padding: var(--mantine-spacing-xl);
|
|
1720
|
+
border-right: 0;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.mtya-wizard-stage {
|
|
1724
|
+
height: auto;
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
/*
|
|
1729
|
+
* `.mtya-fullscreen-header` draws the divider beneath a full-screen surface's top bar. The flex
|
|
1730
|
+
* shell makes the header static, so only the bottom border is set here.
|
|
1731
|
+
*/
|
|
1732
|
+
.mtya-fullscreen-header {
|
|
1733
|
+
border-bottom: 1px solid var(--mantine-color-default-border);
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/*
|
|
1737
|
+
* `.mtya-fullscreen-header-identity` holds the surface's title and the subject beside it. It
|
|
1738
|
+
* takes the room the bar has left beside its other parts and gives its own up before they do,
|
|
1739
|
+
* so a long name never pushes the close button out of the bar.
|
|
1740
|
+
*
|
|
1741
|
+
* `.mtya-fullscreen-header-subject` is the identity line after the title. It is the part that
|
|
1742
|
+
* yields: the title holds its width, and the subject ellipsises its name inside what is left.
|
|
1743
|
+
* In a studio narrower than Mantine's `sm` the subject stands under the title, at the bar's
|
|
1744
|
+
* full width, and the dot that separates the two on one line is not drawn.
|
|
1745
|
+
*/
|
|
1746
|
+
.mtya-fullscreen-header-identity {
|
|
1747
|
+
display: flex;
|
|
1748
|
+
flex: 1;
|
|
1749
|
+
flex-direction: column;
|
|
1750
|
+
gap: 0;
|
|
1751
|
+
align-items: flex-start;
|
|
1752
|
+
min-width: 0;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
.mtya-fullscreen-header-title {
|
|
1756
|
+
flex: none;
|
|
1757
|
+
max-width: 100%;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.mtya-fullscreen-header-subject {
|
|
1761
|
+
min-width: 0;
|
|
1762
|
+
max-width: 100%;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.mtya-fullscreen-header-dot {
|
|
1766
|
+
display: none;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
@container mtya-studio (width >= 48em) {
|
|
1770
|
+
.mtya-fullscreen-header-identity {
|
|
1771
|
+
flex-direction: row;
|
|
1772
|
+
gap: var(--mantine-spacing-md);
|
|
1773
|
+
align-items: center;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
.mtya-fullscreen-header-dot {
|
|
1777
|
+
display: block;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
/*
|
|
1782
|
+
* `.mtya-fullscreen-footer` draws the divider above a full-screen surface's bottom bar. The flex
|
|
1783
|
+
* shell makes the footer static, so only the top border is set here.
|
|
1784
|
+
*/
|
|
1785
|
+
.mtya-fullscreen-footer {
|
|
1786
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/*
|
|
1790
|
+
* `.mtya-fullscreen-stage` makes a full-screen surface's main area a full-height flex column
|
|
1791
|
+
* that takes the row's slack. min-height:0 lets a scrolling child shrink within the column
|
|
1792
|
+
* rather than overflowing it, and min-width:0 lets the column shrink below its
|
|
1793
|
+
* content's intrinsic width so a wide child (a long snippet line) scrolls inside its
|
|
1794
|
+
* own box on the x axis instead of widening the column past the modal.
|
|
1795
|
+
*/
|
|
1796
|
+
.mtya-fullscreen-stage {
|
|
1797
|
+
display: flex;
|
|
1798
|
+
flex-direction: column;
|
|
1799
|
+
min-width: 0;
|
|
1800
|
+
min-height: 0;
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/*
|
|
1804
|
+
* `.mtya-preview-stage` is the video wizard's preview stage. It fills the room the wizard's
|
|
1805
|
+
* layout gives its stage: the row's full height beside the open section, and the stage's share
|
|
1806
|
+
* of the dialog's height where the layout stacks.
|
|
1807
|
+
*/
|
|
1808
|
+
.mtya-preview-stage {
|
|
1809
|
+
flex: 1;
|
|
1810
|
+
min-height: 0;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
/*
|
|
1814
|
+
* `.mtya-fullscreen-compass-rose` supplies the control tokens the published rose paints from.
|
|
1815
|
+
* It reads them off the nearest ancestor that declares them, and the studio declares them
|
|
1816
|
+
* on the control stack alone: a full-screen surface is outside that stack, where the rose would
|
|
1817
|
+
* otherwise fall back to its light-only defaults and disappear against a dark shell.
|
|
1818
|
+
*
|
|
1819
|
+
* The scheme split is a light default plus a [data-mtya-color-scheme="dark"] override
|
|
1820
|
+
* rather than the CSS light-dark() function, for the reason stated at the top of this file:
|
|
1821
|
+
* lowered, the value is invalid and the fills fall back to the parent `<svg fill="none">`,
|
|
1822
|
+
* leaving only the hardcoded orange north needle. The disc paints the control surface so it
|
|
1823
|
+
* blends into the button it sits in; the "N" and the south needle share --mtya-control-fg,
|
|
1824
|
+
* the needle at the rose's own lower opacity so it stays subordinate to the north one.
|
|
1825
|
+
*/
|
|
1826
|
+
.mtya-fullscreen-compass-rose {
|
|
1827
|
+
--mtya-control-bg: var(--mantine-color-default);
|
|
1828
|
+
--mtya-control-fg: #525252;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
[data-mtya-color-scheme="dark"] .mtya-fullscreen-compass-rose {
|
|
1832
|
+
--mtya-control-fg: var(--mantine-color-dark-0);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/*
|
|
1836
|
+
* `.mtya-point-armed-pulse` breathes a soft blue glow around the endpoint button while a
|
|
1837
|
+
* map-pick is armed, signalling that the map waits for a click. The glow is
|
|
1838
|
+
* a box-shadow keyed off the theme primary blue (mixed toward transparent so the
|
|
1839
|
+
* ring fades), so it tracks the light/dark palette. It is decorative (applied
|
|
1840
|
+
* to the button alongside, not in place of, its text), so the accessible name is
|
|
1841
|
+
* untouched.
|
|
1842
|
+
*/
|
|
1843
|
+
.mtya-point-armed-pulse {
|
|
1844
|
+
animation: mtya-point-armed-pulse 1600ms ease-in-out infinite;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
/*
|
|
1848
|
+
* The armed button is disabled (the map, not the button, takes the next click),
|
|
1849
|
+
* but Mantine dims disabled buttons and paints them gray, which would hide the
|
|
1850
|
+
* pulse and the blue waiting-for-a-click cue. Restore full opacity and restate the
|
|
1851
|
+
* light-blue surface/text so the disabled armed button still reads as the blue
|
|
1852
|
+
* pulsing "waiting" state, just non-clickable. The cursor stays the default
|
|
1853
|
+
* disabled arrow so it cannot be pressed.
|
|
1854
|
+
*/
|
|
1855
|
+
.mtya-point-armed-pulse:disabled,
|
|
1856
|
+
.mtya-point-armed-pulse[data-disabled] {
|
|
1857
|
+
color: var(--mantine-color-blue-light-color);
|
|
1858
|
+
background-color: var(--mantine-color-blue-light);
|
|
1859
|
+
opacity: 1;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
@keyframes mtya-point-armed-pulse {
|
|
1863
|
+
0%,
|
|
1864
|
+
100% {
|
|
1865
|
+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--mantine-color-blue-5) 50%, transparent);
|
|
1866
|
+
}
|
|
1867
|
+
50% {
|
|
1868
|
+
box-shadow: 0 0 0 6px color-mix(in srgb, var(--mantine-color-blue-5) 0%, transparent);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/* The pulse is decorative; hold a single static glow when the user asks for
|
|
1873
|
+
reduced motion so the armed state still reads without the breathing loop. */
|
|
1874
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1875
|
+
.mtya-point-armed-pulse {
|
|
1876
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--mantine-color-blue-5) 40%, transparent);
|
|
1877
|
+
animation: none;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/* ------------------------------------------------------------------------------------------
|
|
1882
|
+
* The floating panel anchor
|
|
1883
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1884
|
+
|
|
1885
|
+
/*
|
|
1886
|
+
* The positioned wrapper the open floating panel renders into. Its position/right/top insets
|
|
1887
|
+
* stay inline, because they are computed against the control column's own geometry in
|
|
1888
|
+
* TypeScript; this class carries only what a media query can express.
|
|
1889
|
+
*
|
|
1890
|
+
* The flex column lets the panel inside cap its own height against this box, so a long picker
|
|
1891
|
+
* scrolls its body rather than growing past the viewport.
|
|
1892
|
+
*/
|
|
1893
|
+
.mtya-studio-panel-anchor {
|
|
1894
|
+
display: flex;
|
|
1895
|
+
flex-direction: column;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/*
|
|
1899
|
+
* Below xs the panel is anchored on the LEFT as well, so it spans the viewport between the two
|
|
1900
|
+
* insets instead of keeping a fixed width that would run off a phone screen, and its height is
|
|
1901
|
+
* capped to whatever is left under its own top inset (published inline as `--mtya-panel-top`),
|
|
1902
|
+
* so the cap tracks the anchor and the two can never drift.
|
|
1903
|
+
*/
|
|
1904
|
+
@container mtya-studio (max-width: 36em) {
|
|
1905
|
+
.mtya-studio-panel-anchor {
|
|
1906
|
+
left: var(--mantine-spacing-md);
|
|
1907
|
+
max-height: calc(100dvh - var(--mtya-panel-top) - var(--mantine-spacing-md));
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
/*
|
|
1912
|
+
* The thumbnail filling the top media slot of each layer card. Compact enough that the card row
|
|
1913
|
+
* stays inside the floating panel's narrow width without dominating its vertical space, and a
|
|
1914
|
+
* step shorter below the panel's own narrow breakpoint so more of a long picker fits the capped
|
|
1915
|
+
* panel height there.
|
|
1916
|
+
*
|
|
1917
|
+
* The height lives here rather than on the Image's `h` style prop on purpose: a responsive
|
|
1918
|
+
* Mantine style prop injects a per-instance <style> element beside the element, which would sit
|
|
1919
|
+
* inside every card (extra nodes on a grid that renders dozens), and it pollutes the card's text
|
|
1920
|
+
* content. One class covers every card.
|
|
1921
|
+
*/
|
|
1922
|
+
.mtya-layers-card-thumb {
|
|
1923
|
+
height: var(--mtya-layer-thumb-height, 52px);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
@container mtya-studio (max-width: 36em) {
|
|
1927
|
+
.mtya-layers-card-thumb {
|
|
1928
|
+
height: var(--mtya-layer-thumb-height-sm, 40px);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
/* ------------------------------------------------------------------------------------------
|
|
1933
|
+
* Search
|
|
1934
|
+
* ---------------------------------------------------------------------------------------- */
|
|
1935
|
+
|
|
1936
|
+
/*
|
|
1937
|
+
* The search field skins as a member of the floating control family: the same soft shadow, md
|
|
1938
|
+
* radius, and neutral glyph/text colour the map controls wear. Mantine's `default` variant emits
|
|
1939
|
+
* `--ai-bg` and `--ai-hover` as INLINE styles (its varsResolver sets them whenever a variant is
|
|
1940
|
+
* present), and an inline style outranks a class, so the background cannot be driven through a
|
|
1941
|
+
* custom property from here; the held tint paints `background-color` directly instead.
|
|
1942
|
+
*
|
|
1943
|
+
* The class carries a `-studio-` infix and MUST keep it. `@mountaya/elements-react` publishes
|
|
1944
|
+
* a `.mtya-search-input` of its own for the bare input inside its `SearchControl`, where the
|
|
1945
|
+
* `.mtya-search-field` wrapper is what carries the surface, so that rule strips the input's
|
|
1946
|
+
* own `background` and `border`. This stylesheet bundles that one, and the two rules have
|
|
1947
|
+
* equal specificity, so under a shared name the studio's declarations below would win where
|
|
1948
|
+
* they OVERLAP and the two elements-react declares alone would still land: the bar would render
|
|
1949
|
+
* transparent and frameless over the map while keeping this file's colour, radius and shadow,
|
|
1950
|
+
* which reads as a styling bug in the theme rather than as a name collision. The custom
|
|
1951
|
+
* properties keep their published `--mtya-search-input-*` names: they are a theming contract
|
|
1952
|
+
* (see theme/rules/tokens.ts) and they collide with nothing.
|
|
1953
|
+
*/
|
|
1954
|
+
.mtya-studio-search-input {
|
|
1955
|
+
/*
|
|
1956
|
+
* A notch under the sm default so the query and placeholder read a touch smaller than the
|
|
1957
|
+
* surrounding chrome, matching the result rows. Font only; the control keeps its height.
|
|
1958
|
+
*/
|
|
1959
|
+
font-size: var(--mantine-font-size-xs);
|
|
1960
|
+
color: var(--mtya-search-input-color, #404040);
|
|
1961
|
+
border-radius: var(--mantine-radius-md);
|
|
1962
|
+
box-shadow: var(--mantine-shadow-sm);
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
/*
|
|
1966
|
+
* The neutral colour above reads on a light surface; on a dark embed the query text would sit
|
|
1967
|
+
* dark-on-dark, so it flips to the soft light grey the control glyphs use. An attribute selector
|
|
1968
|
+
* rather than the `light-dark()` function, for the reason stated at the top of this file:
|
|
1969
|
+
* LightningCSS lowers `light-dark()` into a toggle polyfill and drops the companion declaration
|
|
1970
|
+
* in code-split CSS, collapsing the value.
|
|
1971
|
+
*/
|
|
1972
|
+
[data-mtya-color-scheme="dark"] .mtya-studio-search-input {
|
|
1973
|
+
color: var(--mtya-search-input-color-dark, var(--mantine-color-dark-0));
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/*
|
|
1977
|
+
* The held tint mirrors an open control panel: while the results dropdown is open the bar reads
|
|
1978
|
+
* as the same grey-held surface. `data-active` is set on the input by the owner whenever the
|
|
1979
|
+
* dropdown shows. The border drops to TRANSPARENT rather than being removed so the bar reads as
|
|
1980
|
+
* one continuous surface with the dropdown flush beneath it while keeping its 1px border box, so
|
|
1981
|
+
* the field never shifts as the state flips.
|
|
1982
|
+
*/
|
|
1983
|
+
.mtya-studio-search-input[data-active] {
|
|
1984
|
+
background-color: var(--mtya-search-input-held-bg, var(--mantine-color-gray-1));
|
|
1985
|
+
border-color: transparent;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
[data-mtya-color-scheme="dark"] .mtya-studio-search-input[data-active] {
|
|
1989
|
+
background-color: var(--mtya-search-input-held-bg-dark, var(--mantine-color-dark-5));
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
/*
|
|
1993
|
+
* Focus dissolves the bar's border instead of flipping it to Mantine's primary: the field reads
|
|
1994
|
+
* as a frameless surface the moment it engages. Mantine's layered input styles drive the focus
|
|
1995
|
+
* border through `--input-bd-focus` and paint a ring; these rules are unlayered, so re-pointing
|
|
1996
|
+
* that variable and the border colour at transparent wins without `!important`. A text input
|
|
1997
|
+
* matches `:focus-visible` on pointer focus too, a UA heuristic this accepts, so one treatment
|
|
1998
|
+
* covers keyboard and pointer.
|
|
1999
|
+
*/
|
|
2000
|
+
.mtya-studio-search-input:focus,
|
|
2001
|
+
.mtya-studio-search-input:focus-within,
|
|
2002
|
+
.mtya-studio-search-input:focus-visible {
|
|
2003
|
+
--input-bd-focus: transparent;
|
|
2004
|
+
outline: none;
|
|
2005
|
+
border-color: transparent;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/*
|
|
2009
|
+
* The results panel floats beneath the bar, anchored to the prompt ROW (the bar plus whatever
|
|
2010
|
+
* sits beside it) rather than to the column: `inset-inline: 0` spans that row's full width, so
|
|
2011
|
+
* the dropdown's right edge lands flush with the trailing control however wide it is, while its
|
|
2012
|
+
* left edge stays on the bar's. The top inset clears the bar by one xs step, and the z-index
|
|
2013
|
+
* sits it above its row siblings within the anchor's stacking band (above the map, below
|
|
2014
|
+
* portalled menus). Absolute, out of flow, is what frees it to overhang the column.
|
|
2015
|
+
*/
|
|
2016
|
+
.mtya-search-dropdown {
|
|
2017
|
+
position: absolute;
|
|
2018
|
+
inset-block-start: calc(100% + var(--mantine-spacing-xs));
|
|
2019
|
+
inset-inline: 0;
|
|
2020
|
+
z-index: 1;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
/*
|
|
2024
|
+
* The positioning context for the assistant tab: the bar sits in normal flow and the tab row is
|
|
2025
|
+
* absolutely placed beneath it. Relative only, with no z-index, so the tab row's negative one
|
|
2026
|
+
* lands it behind the bar within this stacking band rather than behind the map.
|
|
2027
|
+
*/
|
|
2028
|
+
.mtya-search-bar-row {
|
|
2029
|
+
position: relative;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
/*
|
|
2033
|
+
* The tab row places the assistant tab below the bar and centres it. It is pulled up so the
|
|
2034
|
+
* tab's top hides behind the bar (the z-index keeps it behind and the bar's opaque background
|
|
2035
|
+
* covers it), spans the bar's width, and centres with flexbox. Centring lives HERE rather than
|
|
2036
|
+
* as a transform on the button on purpose: Mantine's Button writes its own transform on
|
|
2037
|
+
* `:active`, which would override a translateX centring and make the tab jump aside on press,
|
|
2038
|
+
* dropping the click.
|
|
2039
|
+
*/
|
|
2040
|
+
.mtya-search-ai-tab-row {
|
|
2041
|
+
position: absolute;
|
|
2042
|
+
inset-block-start: calc(100% - 11px);
|
|
2043
|
+
inset-inline: 0;
|
|
2044
|
+
z-index: -1;
|
|
2045
|
+
display: flex;
|
|
2046
|
+
justify-content: center;
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
/*
|
|
2050
|
+
* The tab itself: rounded bottom corners and a soft shadow so it reads as a tab emerging from
|
|
2051
|
+
* behind the field. `height: auto` is load-bearing: Mantine's fixed button height would clip
|
|
2052
|
+
* the label once the top padding pushes it down; with it the padding grows the tab so the whole
|
|
2053
|
+
* label sits in the visible, peeking part.
|
|
2054
|
+
*/
|
|
2055
|
+
.mtya-search-ai-tab {
|
|
2056
|
+
height: auto;
|
|
2057
|
+
padding-inline: var(--mantine-spacing-xl);
|
|
2058
|
+
padding-top: 15px;
|
|
2059
|
+
padding-bottom: 5px;
|
|
2060
|
+
border-radius: 0 0 var(--mantine-radius-md) var(--mantine-radius-md);
|
|
2061
|
+
box-shadow: var(--mantine-shadow-sm);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/*
|
|
2065
|
+
* The two-column dropdown must never reflow as results land. The category labels never change,
|
|
2066
|
+
* so the rail self-sizes to the longest one ONCE and then holds that width (`flex-shrink: 0`
|
|
2067
|
+
* keeps it from collapsing, and the reserved badge slot keeps a counted tab the same width as an
|
|
2068
|
+
* uncounted one). The root spans the fixed-width dropdown so the block fills it rather than
|
|
2069
|
+
* shrink-wrapping to the longest row, and the panel takes the remainder and clips its rows
|
|
2070
|
+
* (`min-width: 0`) instead of widening to its content.
|
|
2071
|
+
*/
|
|
2072
|
+
.mtya-search-tabs {
|
|
2073
|
+
width: 100%;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
.mtya-search-tabs-list {
|
|
2077
|
+
flex-shrink: 0;
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
.mtya-search-tabs-panel {
|
|
2081
|
+
flex: 1 1 0;
|
|
2082
|
+
min-width: 0;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/*
|
|
2086
|
+
* The reserved count column on every tab: a fixed minimum width sized for the two-digit cap, so
|
|
2087
|
+
* the slot (and therefore the rail) stays the same width whether or not the tab carries a
|
|
2088
|
+
* count, with the badge pinned to the slot's trailing edge.
|
|
2089
|
+
*/
|
|
2090
|
+
.mtya-search-tabs-badge {
|
|
2091
|
+
display: inline-flex;
|
|
2092
|
+
justify-content: flex-end;
|
|
2093
|
+
min-width: 2rem;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
/*
|
|
2097
|
+
* A settled-empty category is a disabled vertical tab. The default variant's tab border is
|
|
2098
|
+
* transparent at rest and turns visible on hover, and Mantine's own disabled-hover rule clears
|
|
2099
|
+
* only the background, leaving that border to paint an inline-end line on an inert tab. Holding
|
|
2100
|
+
* it transparent is what makes the empty category read as fully inert. A disabled tab is never
|
|
2101
|
+
* active, so this cannot touch the active tab's indicator.
|
|
2102
|
+
*/
|
|
2103
|
+
.mtya-search-tabs-tab:where([data-disabled]):hover {
|
|
2104
|
+
border-color: transparent;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/*
|
|
2108
|
+
* The same tab is non-selectable, but its 0 count must read like any populated category's, so
|
|
2109
|
+
* it holds full opacity rather than Mantine's disabled fade. The not-allowed cursor and the
|
|
2110
|
+
* absent hover border carry the non-interactive state instead, and the count never dims.
|
|
2111
|
+
*/
|
|
2112
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties: the hover clears the border alone. */
|
|
2113
|
+
.mtya-search-tabs-tab:where([data-disabled]) {
|
|
2114
|
+
opacity: 1;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
/*
|
|
2118
|
+
* One search hit: an ARIA `option` inside the parent's `listbox`. `content-visibility: auto`
|
|
2119
|
+
* pairs with `contain-intrinsic-size` so a category's rows skip layout and paint while scrolled
|
|
2120
|
+
* out of view while still reserving their height: the list paints only what is on screen
|
|
2121
|
+
* without virtualization machinery. It is also the marquee host: hovering or focusing the row
|
|
2122
|
+
* drives the title's and subtitle's reveal from one place.
|
|
2123
|
+
*/
|
|
2124
|
+
.mtya-search-row {
|
|
2125
|
+
min-height: 44px;
|
|
2126
|
+
contain-intrinsic-size: auto 52px;
|
|
2127
|
+
padding-block: var(--mantine-spacing-xs);
|
|
2128
|
+
padding-inline: var(--mantine-spacing-sm);
|
|
2129
|
+
content-visibility: auto;
|
|
2130
|
+
overflow: hidden;
|
|
2131
|
+
cursor: pointer;
|
|
2132
|
+
list-style: none;
|
|
2133
|
+
border-radius: var(--mantine-radius-sm);
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
.mtya-search-row:where(:hover, :focus-within) {
|
|
2137
|
+
background-color: var(--mtya-search-row-hover-bg, var(--mantine-color-gray-1));
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
/*
|
|
2141
|
+
* The keyboard cursor's row wins over the hover surface, so an arrow-key selection stays
|
|
2142
|
+
* visually distinct from the row the pointer happens to be over.
|
|
2143
|
+
*/
|
|
2144
|
+
.mtya-search-row[data-selected] {
|
|
2145
|
+
background-color: var(--mtya-search-row-selected-bg, var(--mantine-color-blue-light));
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
/*
|
|
2149
|
+
* The title column shrinks and clips (`flex: 1` plus `min-width: 0`) so the bounded activity
|
|
2150
|
+
* cluster sits beside it without wrapping, keeping the name and description the row's priority.
|
|
2151
|
+
*/
|
|
2152
|
+
.mtya-search-row-title-column {
|
|
2153
|
+
flex: 1;
|
|
2154
|
+
min-width: 0;
|
|
2155
|
+
overflow: hidden;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
/*
|
|
2159
|
+
* The trailing cluster of compatible-activity glyphs. `flex-shrink: 0` keeps it from collapsing
|
|
2160
|
+
* inside the row's nowrap group, so the bounded cluster stays fully visible while the title
|
|
2161
|
+
* column absorbs all of the row's width pressure.
|
|
2162
|
+
*/
|
|
2163
|
+
.mtya-search-row-activities {
|
|
2164
|
+
flex-shrink: 0;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/*
|
|
2168
|
+
* The row's first line, carried inside the shared marquee: bold at the xs size, so it reads as
|
|
2169
|
+
* the hit's identity. The marquee owns the clip, the ellipsis and the hover reveal; this sets
|
|
2170
|
+
* only the type.
|
|
2171
|
+
*/
|
|
2172
|
+
.mtya-search-row-title {
|
|
2173
|
+
font-size: var(--mantine-font-size-xs);
|
|
2174
|
+
font-weight: 700;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
/*
|
|
2178
|
+
* The dimmed description line beneath it, at the same size, matching the second line every other
|
|
2179
|
+
* row in the studio carries.
|
|
2180
|
+
*/
|
|
2181
|
+
.mtya-search-row-secondary {
|
|
2182
|
+
font-size: var(--mantine-font-size-xs);
|
|
2183
|
+
color: var(--mantine-color-dimmed);
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
/* ------------------------------------------------------------------------------------------
|
|
2187
|
+
* Export dialog
|
|
2188
|
+
* ---------------------------------------------------------------------------------------- */
|
|
2189
|
+
|
|
2190
|
+
/*
|
|
2191
|
+
* The dialog body: a rail of every format on the left, a detail pane for the selected one on the
|
|
2192
|
+
* right, separated by a hairline. Both columns stretch to the taller of the two (always the
|
|
2193
|
+
* rail, whose contents never change), which is what makes the dialog's height constant and lets
|
|
2194
|
+
* the pane anchor its own controls.
|
|
2195
|
+
*/
|
|
2196
|
+
.mtya-export-split {
|
|
2197
|
+
display: grid;
|
|
2198
|
+
grid-template-columns: 14rem 1fr;
|
|
2199
|
+
gap: var(--mantine-spacing-lg);
|
|
2200
|
+
align-items: stretch;
|
|
2201
|
+
|
|
2202
|
+
/*
|
|
2203
|
+
* Pinned to its tallest state (the formats that carry a variant row the others do not), so
|
|
2204
|
+
* the dialog is one height whichever format is being browsed. It also opens inside an
|
|
2205
|
+
* embedded studio iframe, where a footer that moved as the selection changed could land
|
|
2206
|
+
* outside the frame. The reserve is the difference between the two states only, and because
|
|
2207
|
+
* the receipt is bottom-anchored the slack lands as breathing room above it rather than as an
|
|
2208
|
+
* empty box in the middle of the pane.
|
|
2209
|
+
*/
|
|
2210
|
+
min-height: 19rem;
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
.mtya-export-rail {
|
|
2214
|
+
padding-right: var(--mantine-spacing-lg);
|
|
2215
|
+
border-right: 1px solid var(--mantine-color-default-border);
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/*
|
|
2219
|
+
* The pane fills the rail's height so its trailing controls can be bottom-anchored.
|
|
2220
|
+
* `min-width: 0` lets long hint text wrap instead of widening the grid column.
|
|
2221
|
+
*/
|
|
2222
|
+
.mtya-export-detail {
|
|
2223
|
+
min-width: 0;
|
|
2224
|
+
height: 100%;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/*
|
|
2228
|
+
* The receipt is pushed to the bottom of the pane, so the file that will land sits at an
|
|
2229
|
+
* identical position for every format: neither the description's length nor the variant control
|
|
2230
|
+
* can move it, and it stays directly above the button that produces it.
|
|
2231
|
+
*/
|
|
2232
|
+
.mtya-export-outcome {
|
|
2233
|
+
margin-top: auto;
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2236
|
+
/*
|
|
2237
|
+
* The receipt frames the one thing the dialog is for: the file that will land. A subtle surface
|
|
2238
|
+
* and hairline set it apart from the pane's prose without competing with the rail's cards.
|
|
2239
|
+
*/
|
|
2240
|
+
.mtya-export-receipt {
|
|
2241
|
+
padding: var(--mantine-spacing-xs);
|
|
2242
|
+
background-color: var(--mantine-color-default-hover);
|
|
2243
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
2244
|
+
border-radius: var(--mantine-radius-default);
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
/*
|
|
2248
|
+
* The receipt names the file, so it is set in the monospace face: a filename is a literal, and
|
|
2249
|
+
* reading it as one makes the extension unambiguous.
|
|
2250
|
+
*/
|
|
2251
|
+
.mtya-export-filename {
|
|
2252
|
+
font-family: var(--mantine-font-family-monospace);
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2255
|
+
/* ------------------------------------------------------------------------------------------
|
|
2256
|
+
* The co-pilot conversation
|
|
2257
|
+
* ---------------------------------------------------------------------------------------- */
|
|
2258
|
+
|
|
2259
|
+
/*
|
|
2260
|
+
* Each tool action reads as a discrete, quiet agent action rather than a plain text line: a
|
|
2261
|
+
* hairline border and a faint raised surface group the status line and its disclosure into one
|
|
2262
|
+
* contained row, set apart from the reply prose without shouting. `overflow: hidden` clips the
|
|
2263
|
+
* disclosure button's rectangular hover fill to the container's rounded corners.
|
|
2264
|
+
*/
|
|
2265
|
+
.mtya-activity-row {
|
|
2266
|
+
overflow: hidden;
|
|
2267
|
+
background-color: var(--mantine-color-default);
|
|
2268
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
2269
|
+
border-radius: var(--mantine-radius-sm);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/*
|
|
2273
|
+
* The collapsed row is a full-width disclosure button; the padding gives the hover surface room
|
|
2274
|
+
* and matches the static row so glyphs align whether or not a row has details. The container
|
|
2275
|
+
* owns the corner radius, so the button carries none.
|
|
2276
|
+
*/
|
|
2277
|
+
.mtya-activity-row-button {
|
|
2278
|
+
width: 100%;
|
|
2279
|
+
padding: var(--mantine-spacing-xxs) var(--mantine-spacing-xs);
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
.mtya-activity-row-button:hover {
|
|
2283
|
+
background-color: var(--mantine-color-default-hover);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
/* A row with nothing to expand renders as a plain line, at the button's padding so its status
|
|
2287
|
+
glyph lines up with the expandable rows beside it. */
|
|
2288
|
+
.mtya-activity-row-static {
|
|
2289
|
+
padding: var(--mantine-spacing-xxs) var(--mantine-spacing-xs);
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
/* The label takes the row's free space and truncates, so the collapsed line stays one line and
|
|
2293
|
+
the chevron pins to the trailing edge. */
|
|
2294
|
+
.mtya-activity-row-label {
|
|
2295
|
+
flex: 1;
|
|
2296
|
+
min-width: 0;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
/* The chevron turns a quarter when the row opens. `currentColor` tracks the dimmed treatment;
|
|
2300
|
+
the rotation is suppressed under reduced motion. */
|
|
2301
|
+
.mtya-activity-row-chevron {
|
|
2302
|
+
color: var(--mantine-color-dimmed);
|
|
2303
|
+
transition: transform 150ms ease;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
.mtya-activity-row-chevron[data-open] {
|
|
2307
|
+
transform: rotate(90deg);
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2311
|
+
.mtya-activity-row-chevron {
|
|
2312
|
+
transition: none;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/* The expanded detail (the tool name, the settled summary, or the error) wraps a long
|
|
2317
|
+
unbroken token or URL instead of widening the row past the panel. */
|
|
2318
|
+
.mtya-activity-row-detail {
|
|
2319
|
+
overflow-wrap: anywhere;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2322
|
+
/*
|
|
2323
|
+
* The captured tool input can carry long JSON lines. Mantine's Code already scrolls its own
|
|
2324
|
+
* overflow; capping it at the row width keeps a wide value scrolling inside its own block (the
|
|
2325
|
+
* JSON stays readable and unwrapped), so it never widens the panel.
|
|
2326
|
+
*/
|
|
2327
|
+
.mtya-activity-row-input {
|
|
2328
|
+
max-width: 100%;
|
|
2329
|
+
overflow-x: auto;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/*
|
|
2333
|
+
* The rendered markdown stacks its blocks on a uniform vertical rhythm. A flex gap gives every
|
|
2334
|
+
* block the same spacing without per-block margins, and `overflow-wrap: anywhere` breaks a long
|
|
2335
|
+
* autolinked URL inside the narrow chat column instead of letting it widen the panel.
|
|
2336
|
+
*/
|
|
2337
|
+
.mtya-markdown {
|
|
2338
|
+
display: flex;
|
|
2339
|
+
flex-direction: column;
|
|
2340
|
+
gap: var(--mantine-spacing-xxs);
|
|
2341
|
+
overflow-wrap: anywhere;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/* The block elements ship their own margins; zeroing them makes the flex gap above the single
|
|
2345
|
+
source of spacing between blocks. */
|
|
2346
|
+
.mtya-markdown :where(p, ul, ol, pre, blockquote, table) {
|
|
2347
|
+
margin: 0;
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
/* A quoted passage is marked with a leading rule and dimmed text rather than a full callout,
|
|
2351
|
+
which keeps it legible in the narrow chat column. */
|
|
2352
|
+
.mtya-markdown-blockquote {
|
|
2353
|
+
padding-inline-start: var(--mantine-spacing-xs);
|
|
2354
|
+
color: var(--mantine-color-dimmed);
|
|
2355
|
+
border-inline-start: 2px solid var(--mantine-color-default-border);
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
/*
|
|
2359
|
+
* A fenced block drops to the extra-small type scale so a wide sample stays readable in the
|
|
2360
|
+
* narrow column, and scrolls a long line inside its own block (capped at the column width), so
|
|
2361
|
+
* the panel itself never gains a horizontal scrollbar.
|
|
2362
|
+
*/
|
|
2363
|
+
.mtya-markdown-code {
|
|
2364
|
+
max-width: 100%;
|
|
2365
|
+
overflow-x: auto;
|
|
2366
|
+
font-size: var(--mantine-font-size-xs);
|
|
2367
|
+
}
|
|
2368
|
+
|
|
2369
|
+
/* A GFM table scrolls horizontally instead of widening the panel, at the extra-small type scale
|
|
2370
|
+
so more columns fit before it has to. */
|
|
2371
|
+
.mtya-markdown-table {
|
|
2372
|
+
overflow-x: auto;
|
|
2373
|
+
font-size: var(--mantine-font-size-xs);
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
/*
|
|
2377
|
+
* The composer is a bordered chat input: a soft frame around the unstyled textarea and its
|
|
2378
|
+
* control row. The border lifts to the primary filled colour while anything inside is focused,
|
|
2379
|
+
* so the input reads as active without a heavy focus ring.
|
|
2380
|
+
*/
|
|
2381
|
+
.mtya-chat-composer {
|
|
2382
|
+
display: flex;
|
|
2383
|
+
flex-direction: column;
|
|
2384
|
+
gap: var(--mantine-spacing-xs);
|
|
2385
|
+
padding: var(--mantine-spacing-sm);
|
|
2386
|
+
background-color: var(--mantine-color-body);
|
|
2387
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
2388
|
+
border-radius: var(--mantine-radius-default);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
.mtya-chat-composer:focus-within {
|
|
2392
|
+
border-color: var(--mantine-primary-color-filled);
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
/*
|
|
2396
|
+
* The composer frame owns the inset, so the textarea sits flush on every side. Mantine's
|
|
2397
|
+
* unstyled variant zeroes a textarea's horizontal padding, but a multiline input still carries
|
|
2398
|
+
* a size-based vertical padding set inline, so `padding-block: 0` levels the top with the sides
|
|
2399
|
+
* and the composer's own padding becomes the single uniform inset. A long unbroken draft token
|
|
2400
|
+
* then wraps rather than forcing a horizontal scroll, so the frame keeps its width whatever is
|
|
2401
|
+
* typed.
|
|
2402
|
+
*/
|
|
2403
|
+
.mtya-chat-composer textarea {
|
|
2404
|
+
padding-block: 0;
|
|
2405
|
+
overflow-wrap: anywhere;
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
/*
|
|
2409
|
+
* The wrap guard every transcript turn shares: `overflow-wrap: anywhere` breaks a long unbroken
|
|
2410
|
+
* token or URL so it can never widen the panel, and `min-width: 0` lets the flex column child
|
|
2411
|
+
* shrink so a wide child is contained rather than stretching the column. `overflow-wrap` is
|
|
2412
|
+
* inherited, so this one rule reaches every turn's descendant text (the reply prose, the error
|
|
2413
|
+
* alert, the confirmation summary) from one place.
|
|
2414
|
+
*
|
|
2415
|
+
* `content-visibility: auto` skips layout and paint for a turn scrolled out of view and reserves
|
|
2416
|
+
* its height instead. Turn heights vary widely (a one-line tool row, a tall markdown reply), so
|
|
2417
|
+
* the reserved size falls back to a short turn only until a turn has rendered once; the
|
|
2418
|
+
* remembered real height then anchors the scroll so revisiting earlier turns stays stable.
|
|
2419
|
+
*/
|
|
2420
|
+
.mtya-chat-turn {
|
|
2421
|
+
min-width: 0;
|
|
2422
|
+
contain-intrinsic-size: auto 48px;
|
|
2423
|
+
content-visibility: auto;
|
|
2424
|
+
overflow-wrap: anywhere;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
/*
|
|
2428
|
+
* The reader's own words are shaped into a trailing-aligned bubble: the large radius rounds the
|
|
2429
|
+
* soft surface, and `word-break` keeps even a pasted URL wrapping inside the bubble instead of
|
|
2430
|
+
* pushing it wider.
|
|
2431
|
+
*/
|
|
2432
|
+
.mtya-chat-user-bubble {
|
|
2433
|
+
word-break: break-word;
|
|
2434
|
+
border-radius: var(--mantine-radius-lg);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
/*
|
|
2438
|
+
* The option row undoes what a Mantine Button does to multi-line content, because the question
|
|
2439
|
+
* card stacks an option's label over its description inside one.
|
|
2440
|
+
*
|
|
2441
|
+
* The button ROOT sets `text-align: center`, which is inherited, so `justify` (which only moves
|
|
2442
|
+
* the flex box holding [section | label]) leaves the text itself centred inside a stack as wide
|
|
2443
|
+
* as its widest line, and a card of options would render its labels down the middle. The LABEL
|
|
2444
|
+
* sets nowrap plus `overflow: hidden` with no ellipsis, so a description one pixel too wide
|
|
2445
|
+
* would be cut mid-glyph rather than trailing off.
|
|
2446
|
+
*/
|
|
2447
|
+
.mtya-chat-option-row {
|
|
2448
|
+
text-align: left;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
/*
|
|
2452
|
+
* The hover paint is withheld from an inert row. The card reports inertness with
|
|
2453
|
+
* `data-disabled` rather than the native attribute (the row the reader just activated has to
|
|
2454
|
+
* keep its focus, which a disabled control drops), so the guard has to read that attribute too;
|
|
2455
|
+
* `:not(:disabled)` alone would let a settled card light up under the pointer as if it could
|
|
2456
|
+
* still be picked.
|
|
2457
|
+
*/
|
|
2458
|
+
.mtya-chat-option-row:not(:disabled):not([data-disabled]):hover {
|
|
2459
|
+
background-color: var(--mantine-color-default-hover);
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
/*
|
|
2463
|
+
* The content inside the button. `min-width: 0` is the load-bearing half: a flex child refuses
|
|
2464
|
+
* to shrink below its content width by default, so the content would stay at its natural width
|
|
2465
|
+
* and the label's `overflow: hidden` would cut it. `white-space: normal` undoes the button
|
|
2466
|
+
* label's nowrap so the content wraps instead of being cut mid-glyph.
|
|
2467
|
+
*/
|
|
2468
|
+
.mtya-chat-option-body {
|
|
2469
|
+
flex: 1;
|
|
2470
|
+
min-width: 0;
|
|
2471
|
+
white-space: normal;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/*
|
|
2475
|
+
* The pending-reply loader. Mantine's `respectReducedMotion` reaches its JS transitions only,
|
|
2476
|
+
* and a dots loader animates on raw CSS keyframes with no static variant to switch to, so the
|
|
2477
|
+
* reduced-motion guard lands here: the pulse stops and the three dots stay drawn, which keeps
|
|
2478
|
+
* the "composing" signal instead of trading it for a blank lane. The rule reaches the dots
|
|
2479
|
+
* themselves rather than the wrapper, since they are what carries the animation.
|
|
2480
|
+
*/
|
|
2481
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2482
|
+
.mtya-chat-thinking * {
|
|
2483
|
+
animation-duration: 0s;
|
|
2484
|
+
animation-iteration-count: 1;
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
/* ------------------------------------------------------------------------------------------
|
|
2489
|
+
* The itinerary editor's own surfaces
|
|
2490
|
+
* ---------------------------------------------------------------------------------------- */
|
|
2491
|
+
|
|
2492
|
+
/*
|
|
2493
|
+
* `.mtya-activity-guide-head` and `.mtya-activity-guide-row` share one column template, so every
|
|
2494
|
+
* capability glyph lands under the header that names it. The template is declared twice rather
|
|
2495
|
+
* than through a single grid over all cells because each row needs to carry its own background
|
|
2496
|
+
* for the held state, which a flat grid of cells cannot do.
|
|
2497
|
+
*/
|
|
2498
|
+
.mtya-activity-guide-head,
|
|
2499
|
+
.mtya-activity-guide-row {
|
|
2500
|
+
display: grid;
|
|
2501
|
+
grid-template-columns: 11.5rem minmax(0, 1fr) 7.5rem 7.5rem 7.5rem;
|
|
2502
|
+
gap: var(--mantine-spacing-xs);
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
/*
|
|
2506
|
+
* The head carries the whole primer: each capability is named once, glyphed once, and
|
|
2507
|
+
* defined once, directly above the column of marks that compares it. A definition here costs
|
|
2508
|
+
* a short line read where it is needed; the same definitions in prose blocks above the table
|
|
2509
|
+
* would put a wall of text between the reader and the answer.
|
|
2510
|
+
*
|
|
2511
|
+
* Its cells top-align so the glyphs and the names stay on one baseline however many
|
|
2512
|
+
* lines a translated definition takes: bottom-aligning lifts a column whose definition
|
|
2513
|
+
* wraps, and the names stop reading as one row. A single rule separates the
|
|
2514
|
+
* definitions from the data. The first two columns are deliberately unheaded: a column
|
|
2515
|
+
* of activity glyphs and a column of terrain phrases announce themselves.
|
|
2516
|
+
*/
|
|
2517
|
+
.mtya-activity-guide-head {
|
|
2518
|
+
align-items: start;
|
|
2519
|
+
padding: 0 var(--mantine-spacing-xs) var(--mantine-spacing-sm);
|
|
2520
|
+
margin-block-end: var(--mantine-spacing-xs);
|
|
2521
|
+
border-block-end: 1px solid var(--mantine-color-default-border);
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
/* `.mtya-activity-guide-head-mark` stacks a column's glyph, name and definition above its marks. */
|
|
2525
|
+
.mtya-activity-guide-head-mark {
|
|
2526
|
+
display: flex;
|
|
2527
|
+
flex-direction: column;
|
|
2528
|
+
gap: 3px;
|
|
2529
|
+
align-items: center;
|
|
2530
|
+
color: var(--mantine-color-dimmed);
|
|
2531
|
+
text-align: center;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/*
|
|
2535
|
+
* `.mtya-activity-guide-head-label` holds a capability's name on one line. The names are kept
|
|
2536
|
+
* short enough in every language to fit the column, and nowrap makes that a guarantee rather
|
|
2537
|
+
* than a hope: a wrapped name would sit the column titles off the baseline of each other.
|
|
2538
|
+
*/
|
|
2539
|
+
.mtya-activity-guide-head-label {
|
|
2540
|
+
font-size: var(--mantine-font-size-xxs);
|
|
2541
|
+
font-weight: 600;
|
|
2542
|
+
line-height: 1.3;
|
|
2543
|
+
color: var(--mantine-color-text);
|
|
2544
|
+
text-transform: uppercase;
|
|
2545
|
+
letter-spacing: 0.04em;
|
|
2546
|
+
white-space: nowrap;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/*
|
|
2550
|
+
* `.mtya-activity-guide-head-gloss` is the column's definition: a handful of words, allowed to
|
|
2551
|
+
* wrap onto a second line so a longer translation stays readable rather than truncating the one
|
|
2552
|
+
* thing that makes the column legible. text-wrap:balance keeps those two lines even.
|
|
2553
|
+
*/
|
|
2554
|
+
.mtya-activity-guide-head-gloss {
|
|
2555
|
+
font-size: var(--mantine-font-size-xxs);
|
|
2556
|
+
line-height: 1.3;
|
|
2557
|
+
color: var(--mantine-color-dimmed);
|
|
2558
|
+
text-wrap: balance;
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
/*
|
|
2562
|
+
* `.mtya-activity-guide-body` scrolls within a fixed height, so the dialog stays the same size
|
|
2563
|
+
* as the catalog grows: new activities lengthen the scroll, never the modal. The cap is set just
|
|
2564
|
+
* below a laptop's comfortable dialog height so the footnote and the action row stay in view.
|
|
2565
|
+
*/
|
|
2566
|
+
.mtya-activity-guide-body {
|
|
2567
|
+
max-height: 25rem;
|
|
2568
|
+
overflow-y: auto;
|
|
2569
|
+
}
|
|
2570
|
+
|
|
2571
|
+
/*
|
|
2572
|
+
* `.mtya-activity-guide-group` heads each category inside the scrolling body. It takes a top
|
|
2573
|
+
* margin on every group after the first so the categories read as bands, and none on the first
|
|
2574
|
+
* so the table starts flush under its header.
|
|
2575
|
+
*/
|
|
2576
|
+
.mtya-activity-guide-group {
|
|
2577
|
+
margin-block: var(--mantine-spacing-sm) var(--mantine-spacing-xxs);
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
.mtya-activity-guide-body > *:first-child.mtya-activity-guide-group {
|
|
2581
|
+
margin-block-start: 0;
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
/*
|
|
2585
|
+
* `.mtya-activity-guide-row` is one activity. It carries no rule of its own: the rows are held
|
|
2586
|
+
* apart by their padding and by the category headings, and the columns are already aligned, so
|
|
2587
|
+
* a rule between every pair would only add noise. The hover tint is the sole row-level chrome,
|
|
2588
|
+
* and it doubles as the cue that a fuller explanation waits behind the row.
|
|
2589
|
+
*/
|
|
2590
|
+
.mtya-activity-guide-row {
|
|
2591
|
+
position: relative;
|
|
2592
|
+
align-items: center;
|
|
2593
|
+
padding: 7px var(--mantine-spacing-xs);
|
|
2594
|
+
cursor: help;
|
|
2595
|
+
border-radius: var(--mantine-radius-sm);
|
|
2596
|
+
transition: background-color 120ms ease;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
.mtya-activity-guide-row:hover:not([data-selected]) {
|
|
2600
|
+
background-color: var(--mantine-color-default-hover);
|
|
2601
|
+
}
|
|
2602
|
+
|
|
2603
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2604
|
+
.mtya-activity-guide-row {
|
|
2605
|
+
transition: none;
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
|
|
2609
|
+
/*
|
|
2610
|
+
* The held row takes the primary tint plus an accent bar on its leading edge, so the
|
|
2611
|
+
* activity the form currently carries is findable without the row implying it can be
|
|
2612
|
+
* clicked. The bar is a pseudo-element, so the row's height never shifts between states.
|
|
2613
|
+
*/
|
|
2614
|
+
.mtya-activity-guide-row[data-selected] {
|
|
2615
|
+
background-color: var(--mantine-primary-color-light);
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
.mtya-activity-guide-row[data-selected]::before {
|
|
2619
|
+
position: absolute;
|
|
2620
|
+
inset-block: 4px;
|
|
2621
|
+
inset-inline-start: 0;
|
|
2622
|
+
width: 2px;
|
|
2623
|
+
content: "";
|
|
2624
|
+
background-color: var(--mantine-primary-color-filled);
|
|
2625
|
+
border-radius: 2px;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
/*
|
|
2629
|
+
* `.mtya-activity-guide-name` holds the glyph and the activity's name. min-width:0 lets a long
|
|
2630
|
+
* name truncate inside its fixed column rather than pushing the capability columns out of
|
|
2631
|
+
* alignment with the header above them.
|
|
2632
|
+
*/
|
|
2633
|
+
.mtya-activity-guide-name {
|
|
2634
|
+
display: flex;
|
|
2635
|
+
gap: var(--mantine-spacing-xs);
|
|
2636
|
+
align-items: center;
|
|
2637
|
+
min-width: 0;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
/*
|
|
2641
|
+
* `.mtya-activity-guide-description` is held to a single line. Every activity is summarised in a
|
|
2642
|
+
* short phrase, so the row height is constant and the table's height is simply its row count: no
|
|
2643
|
+
* row can wrap and push the body into a scroll. A phrase long enough to overrun its column
|
|
2644
|
+
* (a longer translation) truncates rather than wrapping, keeping that guarantee.
|
|
2645
|
+
*/
|
|
2646
|
+
.mtya-activity-guide-description {
|
|
2647
|
+
min-width: 0;
|
|
2648
|
+
overflow: hidden;
|
|
2649
|
+
text-overflow: ellipsis;
|
|
2650
|
+
white-space: nowrap;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
/* `.mtya-activity-guide-mark` centres the capability glyph under its header. */
|
|
2654
|
+
.mtya-activity-guide-mark {
|
|
2655
|
+
display: flex;
|
|
2656
|
+
justify-content: center;
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
/*
|
|
2660
|
+
* `.mtya-elevation-sheet-sheet` is the compact-viewport form of the docked elevation profile: a
|
|
2661
|
+
* bottom sheet that spans the viewport edge to edge instead of the desktop dock's inset
|
|
2662
|
+
* card. --mtya-sheet-drag carries the live finger offset during a drag and is written
|
|
2663
|
+
* through a ref (never per-frame React state), so a gesture costs no re-render;
|
|
2664
|
+
* it is cleared on release and the sheet settles onto its snap.
|
|
2665
|
+
*/
|
|
2666
|
+
.mtya-elevation-sheet-sheet {
|
|
2667
|
+
touch-action: none;
|
|
2668
|
+
transform: translateY(var(--mtya-sheet-drag, 0px));
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
/*
|
|
2672
|
+
* `.mtya-elevation-sheet-handle` is the full-width grab target above the profile content. It is
|
|
2673
|
+
* a real button so a keyboard and a screen reader reach the snap cycle too: a drag
|
|
2674
|
+
* gesture alone would leave the analysis section unreachable without a pointer.
|
|
2675
|
+
*/
|
|
2676
|
+
.mtya-elevation-sheet-handle {
|
|
2677
|
+
display: flex;
|
|
2678
|
+
align-items: center;
|
|
2679
|
+
justify-content: center;
|
|
2680
|
+
width: 100%;
|
|
2681
|
+
padding: var(--mantine-spacing-xxs) 0;
|
|
2682
|
+
touch-action: none;
|
|
2683
|
+
cursor: grab;
|
|
2684
|
+
background: transparent;
|
|
2685
|
+
border: 0;
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
.mtya-elevation-sheet-handle:active {
|
|
2689
|
+
cursor: grabbing;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
/* `.mtya-elevation-sheet-grip` is the 36x4 rounded bar that reads as "drag me". */
|
|
2693
|
+
.mtya-elevation-sheet-grip {
|
|
2694
|
+
width: 36px;
|
|
2695
|
+
height: 4px;
|
|
2696
|
+
background-color: var(--mantine-color-default-border);
|
|
2697
|
+
border-radius: var(--mantine-radius-xl);
|
|
2698
|
+
}
|
|
2699
|
+
|
|
2700
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2701
|
+
.mtya-elevation-sheet-sheet {
|
|
2702
|
+
transition: transform 150ms ease;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
/*
|
|
2706
|
+
* While the finger is down the sheet must track it exactly, so the settle
|
|
2707
|
+
* transition is suppressed for the duration of the gesture.
|
|
2708
|
+
*/
|
|
2709
|
+
.mtya-elevation-sheet-sheet[data-dragging="true"] {
|
|
2710
|
+
transition: none;
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2714
|
+
/*
|
|
2715
|
+
* `.mtya-import-legend-solid` and `.mtya-import-legend-dashed` are the legend's stroke samples.
|
|
2716
|
+
* They are drawn as a border on a fixed-width span rather than as an icon because what they
|
|
2717
|
+
* stand for IS a stroke: a glyph would be a picture of a line where the line itself is
|
|
2718
|
+
* available.
|
|
2719
|
+
*
|
|
2720
|
+
* The samples carry no color. The map paints each segment's pair in that segment's
|
|
2721
|
+
* own hue, so a legend swatch in any one of them would claim to be about that
|
|
2722
|
+
* segment; the neutral text color says "this is what a stroke of this kind means"
|
|
2723
|
+
* and nothing more.
|
|
2724
|
+
*
|
|
2725
|
+
* The solid sample keeps the full text color while its label is dimmed with the
|
|
2726
|
+
* rest of the caption: the sample is the whole distinction between the two rows, so
|
|
2727
|
+
* it is the one thing here that must not fade.
|
|
2728
|
+
*/
|
|
2729
|
+
.mtya-import-legend-solid,
|
|
2730
|
+
.mtya-import-legend-dashed {
|
|
2731
|
+
display: inline-block;
|
|
2732
|
+
flex: none;
|
|
2733
|
+
width: 20px;
|
|
2734
|
+
border-top-color: var(--mantine-color-text);
|
|
2735
|
+
border-top-width: 2px;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
.mtya-import-legend-solid {
|
|
2739
|
+
border-top-style: solid;
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
.mtya-import-legend-dashed {
|
|
2743
|
+
border-top-color: var(--mantine-color-dimmed);
|
|
2744
|
+
border-top-style: dashed;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
/*
|
|
2748
|
+
* The two comparison captures are photographs of a map, so they carry no edge of
|
|
2749
|
+
* their own against the dialog surface: the hairline is what stops a pale ridge or
|
|
2750
|
+
* a snowfield from bleeding into the background. The aspect ratio is pinned so the
|
|
2751
|
+
* pair stays the same height whatever the source crop, which is the whole point of
|
|
2752
|
+
* showing them side by side.
|
|
2753
|
+
*
|
|
2754
|
+
* The scheme split is a light default plus a [data-mtya-color-scheme="dark"]
|
|
2755
|
+
* override rather than the CSS light-dark() function, for the reason stated at the top of
|
|
2756
|
+
* this file: lowered, both fallbacks emit and the property resets to its initial value.
|
|
2757
|
+
*/
|
|
2758
|
+
/*
|
|
2759
|
+
* A 21:9 letterbox, not 16:9: the dialog stacks two of these rows above its prose, and
|
|
2760
|
+
* every row of height here is height the reader has to scroll past to reach the
|
|
2761
|
+
* argument. A route is a long thin thing photographed from above, so the vertical band
|
|
2762
|
+
* a squarer crop adds is empty hillside; cutting it lets the capture be framed
|
|
2763
|
+
* TIGHTER on the ground instead, which is what makes the two lines legible at the
|
|
2764
|
+
* ~285px the pair actually renders at.
|
|
2765
|
+
*/
|
|
2766
|
+
.mtya-routing-guide-comparison {
|
|
2767
|
+
aspect-ratio: 21 / 9;
|
|
2768
|
+
object-fit: cover;
|
|
2769
|
+
border: 1px solid var(--mantine-color-gray-3);
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
[data-mtya-color-scheme="dark"] .mtya-routing-guide-comparison {
|
|
2773
|
+
border-color: var(--mantine-color-dark-4);
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
/*
|
|
2777
|
+
* `.mtya-routing-guide-pair` holds one comparison's two captures: side by side in a studio of
|
|
2778
|
+
* Mantine's `xs` width and up, stacked in a narrower one. The breakpoint reads the studio
|
|
2779
|
+
* rather than the window, since the guide is a dialog of a studio that may be one region of a
|
|
2780
|
+
* page.
|
|
2781
|
+
*/
|
|
2782
|
+
.mtya-routing-guide-pair {
|
|
2783
|
+
display: grid;
|
|
2784
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2785
|
+
gap: var(--mantine-spacing-xs);
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
@container mtya-studio (width >= 36em) {
|
|
2789
|
+
.mtya-routing-guide-pair {
|
|
2790
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
/*
|
|
2795
|
+
* The frame exists to anchor the caption over the capture. Which picture is which is a
|
|
2796
|
+
* property of the picture, so the label rides on it instead of claiming a text row of
|
|
2797
|
+
* its own under each one: two before/after rows plus their prose is a tall dialog,
|
|
2798
|
+
* and those rows are the cheapest height to give back. It also keeps the pairing
|
|
2799
|
+
* unambiguous once the pair wraps to a single column in a narrow studio, where
|
|
2800
|
+
* captions underneath read as a caption for the image below them.
|
|
2801
|
+
*/
|
|
2802
|
+
.mtya-routing-guide-frame {
|
|
2803
|
+
position: relative;
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
/*
|
|
2807
|
+
* Both captures are the same light topo raster in either colour scheme, so a single
|
|
2808
|
+
* appearance covers both and no scheme override is needed: a near-opaque white pill
|
|
2809
|
+
* stays legible over contour lines without hiding the ground it sits on.
|
|
2810
|
+
*/
|
|
2811
|
+
.mtya-routing-guide-caption {
|
|
2812
|
+
position: absolute;
|
|
2813
|
+
inset-block-end: var(--mantine-spacing-xxs);
|
|
2814
|
+
inset-inline-start: var(--mantine-spacing-xxs);
|
|
2815
|
+
padding: 2px var(--mantine-spacing-xs);
|
|
2816
|
+
color: var(--mantine-color-dark-9);
|
|
2817
|
+
background-color: rgb(255 255 255 / 0.9);
|
|
2818
|
+
border-radius: var(--mantine-radius-sm);
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
/*
|
|
2822
|
+
* `.mtya-itinerary-identity-line` is the whole identity row. It carries `min-width: 0` for the
|
|
2823
|
+
* same reason its ancestors in SidenavContentHeader do: the chain that lets the name below give
|
|
2824
|
+
* up its width has to be unbroken from the panel down, and a single link holding its content
|
|
2825
|
+
* width holds the whole line's.
|
|
2826
|
+
*
|
|
2827
|
+
* `.mtya-itinerary-identity-activity` is the activity glyph + its translated name, and it is the
|
|
2828
|
+
* ONE element on the identity line whose length is not bounded by the data model: an activity
|
|
2829
|
+
* name runs as long as the language makes it ("Randonnée en raquettes", "Ski de randonnée
|
|
2830
|
+
* nordique"). It gives up its width first (`min-width: 0` is what lets a flex item
|
|
2831
|
+
* shrink past its content at all), so the measurements beside it keep their shape and
|
|
2832
|
+
* the name ellipsises instead.
|
|
2833
|
+
*
|
|
2834
|
+
* Without this the line would grow: the editor panel is a vertical scroller, and a
|
|
2835
|
+
* scroller that is not clipped on the other axis answers content wider than itself
|
|
2836
|
+
* with a HORIZONTAL scrollbar. A 340px panel that slides sideways is never what the
|
|
2837
|
+
* reader wanted, so the line is built so it cannot happen.
|
|
2838
|
+
*/
|
|
2839
|
+
.mtya-itinerary-identity-line,
|
|
2840
|
+
.mtya-itinerary-identity-activity,
|
|
2841
|
+
.mtya-itinerary-identity-activity-name {
|
|
2842
|
+
min-width: 0;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/*
|
|
2846
|
+
* `.mtya-profile-strip-row` is the strip's one line of stat cells. The gap tightens below the sm
|
|
2847
|
+
* breakpoint so more cells fit before the strip has to scroll at all.
|
|
2848
|
+
*
|
|
2849
|
+
* The gap lives here rather than on the Group's responsive `gap` prop on purpose:
|
|
2850
|
+
* a responsive Mantine style prop injects a per-instance <style> element beside
|
|
2851
|
+
* the element, which would land inside the very row whose height is load-bearing
|
|
2852
|
+
* for the elevation panel's fit budget.
|
|
2853
|
+
*/
|
|
2854
|
+
.mtya-profile-strip-row {
|
|
2855
|
+
gap: var(--mantine-spacing-xl);
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
@container mtya-studio (max-width: 48em) {
|
|
2859
|
+
.mtya-profile-strip-row {
|
|
2860
|
+
gap: var(--mantine-spacing-md);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
/*
|
|
2865
|
+
* The segment chooser in the profile's header, which narrows where the studio does.
|
|
2866
|
+
*
|
|
2867
|
+
* A CSS rule rather than a responsive style prop. Mantine's `w={{ base: 120, sm: 180 }}` injects
|
|
2868
|
+
* a per-instance `<style>` element beside the field and measures the VIEWPORT, so a studio in a
|
|
2869
|
+
* narrow pane of a wide window would read the window and stay wide. This measures the studio,
|
|
2870
|
+
* and costs no extra node.
|
|
2871
|
+
*/
|
|
2872
|
+
.mtya-profile-segment-select {
|
|
2873
|
+
inline-size: 180px;
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
@container mtya-studio (max-width: 48em) {
|
|
2877
|
+
.mtya-profile-segment-select {
|
|
2878
|
+
inline-size: 120px;
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
/*
|
|
2883
|
+
* `.mtya-group-range-box` is the bordered container the range rows sit in, matching the editor
|
|
2884
|
+
* list's frame so the picker reads as the same kind of list the sidenav shows. It scrolls
|
|
2885
|
+
* rather than growing without bound: a long chain must not push the modal's footer
|
|
2886
|
+
* off the viewport.
|
|
2887
|
+
*
|
|
2888
|
+
* It is a `<fieldset>`, because the chevrons inside it are one control over one run
|
|
2889
|
+
* rather than unrelated buttons, so the chrome a browser gives a fieldset is taken back
|
|
2890
|
+
* here: its inset margin, its padding (the rows carry their own), and above all
|
|
2891
|
+
* `min-inline-size: min-content`, which would otherwise stop the box shrinking inside the
|
|
2892
|
+
* modal's column and defeat the row names' truncation.
|
|
2893
|
+
*/
|
|
2894
|
+
.mtya-group-range-box {
|
|
2895
|
+
min-inline-size: 0;
|
|
2896
|
+
max-block-size: 240px;
|
|
2897
|
+
padding: 0;
|
|
2898
|
+
margin: 0;
|
|
2899
|
+
overflow-y: auto;
|
|
2900
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
2901
|
+
border-radius: var(--mantine-radius-sm);
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
/*
|
|
2905
|
+
* One collection in the membership picker's dropdown.
|
|
2906
|
+
*
|
|
2907
|
+
* The same off-screen skipping the editor list and the search results use: an organization's
|
|
2908
|
+
* collection tree is its own to grow, and the dropdown lays out every option that matches the
|
|
2909
|
+
* search, so on a large workspace most of what it holds is scrolled out of view and laid out
|
|
2910
|
+
* on every keystroke. The reserved size is one line of an `xs` option, which is what these are;
|
|
2911
|
+
* `auto` means the real height replaces it as soon as an option has been rendered once.
|
|
2912
|
+
*
|
|
2913
|
+
* Deliberately on the OPTION rather than a windowing hook over the list. Mantine's combobox
|
|
2914
|
+
* navigates by querying option nodes, and the listbox names its active row with
|
|
2915
|
+
* `aria-activedescendant`: both resolve through the DOM node, so a list that removed the
|
|
2916
|
+
* off-screen ones would stop arrowing past the window and would announce nothing.
|
|
2917
|
+
*/
|
|
2918
|
+
.mtya-collection-option {
|
|
2919
|
+
contain-intrinsic-size: auto 28px;
|
|
2920
|
+
content-visibility: auto;
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2923
|
+
/*
|
|
2924
|
+
* The rows get the same off-screen skipping the editor list gives its own, for the
|
|
2925
|
+
* same reason: this box shows the WHOLE chain inside 240px, so on a long itinerary
|
|
2926
|
+
* most of what it holds is scrolled out of view, and laying all of it out on every
|
|
2927
|
+
* chevron press is work nobody sees. The reserved size is a single-line row: these
|
|
2928
|
+
* carry a name and at most a badge, so they never grow the way an editor row does.
|
|
2929
|
+
*/
|
|
2930
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties; see `.mtya-toggle-row-body *`. */
|
|
2931
|
+
.mtya-group-range-box > * {
|
|
2932
|
+
contain-intrinsic-size: auto 36px;
|
|
2933
|
+
padding: var(--mantine-spacing-xs);
|
|
2934
|
+
content-visibility: auto;
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties; see `.mtya-toggle-row-body *`. */
|
|
2938
|
+
.mtya-group-range-box > * + * {
|
|
2939
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
/*
|
|
2943
|
+
* A row inside the chosen run carries a solid rail in the group's colour along its
|
|
2944
|
+
* inline start, the same signal the editor list paints on a grouped row, so the
|
|
2945
|
+
* picker and the list agree on what "in this group" looks like. The rail is drawn
|
|
2946
|
+
* INSIDE the row box, so nothing depends on the row overflowing.
|
|
2947
|
+
*/
|
|
2948
|
+
.mtya-group-range-row {
|
|
2949
|
+
position: relative;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
.mtya-group-range-row[data-selected]::before {
|
|
2953
|
+
position: absolute;
|
|
2954
|
+
inset-block: 0;
|
|
2955
|
+
inset-inline-start: 0;
|
|
2956
|
+
inline-size: 3px;
|
|
2957
|
+
content: "";
|
|
2958
|
+
background-color: var(--group-color);
|
|
2959
|
+
}
|
|
2960
|
+
|
|
2961
|
+
/* The run's two ends round the rail off, so it reads as one continuous bracket. */
|
|
2962
|
+
.mtya-group-range-row[data-run-first]::before {
|
|
2963
|
+
border-start-start-radius: 3px;
|
|
2964
|
+
border-start-end-radius: 3px;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
.mtya-group-range-row[data-run-last]::before {
|
|
2968
|
+
border-end-start-radius: 3px;
|
|
2969
|
+
border-end-end-radius: 3px;
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
/*
|
|
2973
|
+
* A row already held by another group is a hard stop: it can never join this one, so
|
|
2974
|
+
* it is dimmed to read as unavailable while staying legible enough to explain itself
|
|
2975
|
+
* through the badge naming its owner.
|
|
2976
|
+
*/
|
|
2977
|
+
.mtya-group-range-row[data-foreign] {
|
|
2978
|
+
opacity: 0.55;
|
|
2979
|
+
}
|
|
2980
|
+
|
|
2981
|
+
/*
|
|
2982
|
+
* `.mtya-suggestion-list-box` is the bordered frame route candidates sit in, drawn by
|
|
2983
|
+
* SuggestionList for the suggestions panel and for the co-pilot's conversation alike, so a
|
|
2984
|
+
* candidate offered in either reads as the same thing. It is its OWN copy of the editor-list
|
|
2985
|
+
* frame (deliberately not shared with the segment/waypoint editors' EditorListSection), because
|
|
2986
|
+
* the rows it holds answer to a different gesture: hovering previews a route, and nothing is
|
|
2987
|
+
* renamed or recoloured. The frame itself still reads as one family with the editors (a 1px
|
|
2988
|
+
* border and small radius matching the form inputs, each direct child one padded row with a
|
|
2989
|
+
* hairline divider between adjacent rows).
|
|
2990
|
+
*/
|
|
2991
|
+
.mtya-suggestion-list-box {
|
|
2992
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
2993
|
+
border-radius: var(--mantine-radius-sm);
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties; see `.mtya-toggle-row-body *`. */
|
|
2997
|
+
.mtya-suggestion-list-box > * {
|
|
2998
|
+
padding: var(--mantine-spacing-xs);
|
|
2999
|
+
cursor: pointer;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
/*
|
|
3003
|
+
* Each row highlights on hover with the neutral surface. The background lives on the
|
|
3004
|
+
* padded row element so the highlight and the pointer cursor cover the ENTIRE row
|
|
3005
|
+
* including its padding, which is exactly the area that previews the route, so what
|
|
3006
|
+
* lights up is what responds.
|
|
3007
|
+
*/
|
|
3008
|
+
.mtya-suggestion-list-box > *:hover {
|
|
3009
|
+
background-color: var(--mantine-color-default-hover);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
/*
|
|
3013
|
+
* The selected row (via the data-selected the row sets: the candidate the map previews,
|
|
3014
|
+
* or the pick a settled conversation card records) is signalled by its EDGE taking the
|
|
3015
|
+
* primary color, never by a fill, so the hover paint still reads on the selected row
|
|
3016
|
+
* instead of being swallowed by it. A row has no border of its own (the frame owns the
|
|
3017
|
+
* border and the dividers between rows), so the edge is an inset ring, which costs no
|
|
3018
|
+
* layout the way an added border would and leaves the divider system untouched.
|
|
3019
|
+
*/
|
|
3020
|
+
.mtya-suggestion-list-box > *[data-selected] {
|
|
3021
|
+
box-shadow: inset 0 0 0 1px var(--mantine-primary-color-filled);
|
|
3022
|
+
}
|
|
3023
|
+
|
|
3024
|
+
/*
|
|
3025
|
+
* An inert row (via the data-inert the row sets: a settled conversation card, or every row
|
|
3026
|
+
* while a pick lands) takes no action, so it drops the pointer and the hover paint that
|
|
3027
|
+
* promise one. One it does not single out is dimmed as well, the way a row held elsewhere
|
|
3028
|
+
* is, so a settled card reads as its pick against the candidates passed over.
|
|
3029
|
+
*/
|
|
3030
|
+
.mtya-suggestion-list-box > [data-inert] {
|
|
3031
|
+
cursor: default;
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
.mtya-suggestion-list-box > [data-inert]:hover {
|
|
3035
|
+
background-color: transparent;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3038
|
+
.mtya-suggestion-list-box > [data-inert]:not([data-selected]) {
|
|
3039
|
+
opacity: 0.55;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
/*
|
|
3043
|
+
* `.mtya-suggestion-list-empty-row` wraps the empty-state explainer that fills the frame when a
|
|
3044
|
+
* generation resolved with no candidates. It is not a click target, so it opts out of the row
|
|
3045
|
+
* hover background and the pointer cursor the rules above give every direct child (its higher
|
|
3046
|
+
* specificity, `.mtya-suggestion-list-box > .mtya-suggestion-list-empty-row`, overrides them),
|
|
3047
|
+
* leaving the explainer reading as static copy rather than a selectable row, matching
|
|
3048
|
+
* the segment/waypoint empty-row opt-out.
|
|
3049
|
+
*/
|
|
3050
|
+
.mtya-suggestion-list-box > .mtya-suggestion-list-empty-row {
|
|
3051
|
+
cursor: default;
|
|
3052
|
+
background-color: transparent;
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
.mtya-suggestion-list-box > .mtya-suggestion-list-empty-row:hover {
|
|
3056
|
+
background-color: transparent;
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
/* stylelint-disable-next-line no-descending-specificity -- different properties; see `.mtya-toggle-row-body *`. */
|
|
3060
|
+
.mtya-suggestion-list-box > * + * {
|
|
3061
|
+
border-top: 1px solid var(--mantine-color-default-border);
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
/*
|
|
3065
|
+
* The embed snippet's code block is constrained to its container so a long iframe src URL
|
|
3066
|
+
* scrolls horizontally inside the block rather than widening the wizard's stage column, which
|
|
3067
|
+
* would overflow the modal on the x axis. The root clips, and the inner <pre> Mantine renders
|
|
3068
|
+
* scrolls on overflow.
|
|
3069
|
+
*/
|
|
3070
|
+
.mtya-embed-snippet {
|
|
3071
|
+
max-width: 100%;
|
|
3072
|
+
overflow: hidden;
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
.mtya-embed-snippet pre {
|
|
3076
|
+
overflow-x: auto;
|
|
3077
|
+
}
|
|
3078
|
+
|
|
3079
|
+
/*
|
|
3080
|
+
* A table's side of the embed wizard's stage: the element on the canvas a settings page draws
|
|
3081
|
+
* its cards on, since the table paints a card of its own. It scrolls on both axes inside the
|
|
3082
|
+
* stage, so a table of many rows or many columns never widens the wizard, and the frame holds
|
|
3083
|
+
* the table to a reading width in a stage wider than a table needs.
|
|
3084
|
+
*/
|
|
3085
|
+
.mtya-embed-table-stage {
|
|
3086
|
+
flex: 1;
|
|
3087
|
+
min-width: 0;
|
|
3088
|
+
min-height: 0;
|
|
3089
|
+
padding: var(--mantine-spacing-md);
|
|
3090
|
+
overflow: auto;
|
|
3091
|
+
background-color: var(--mantine-color-gray-0);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
[data-mtya-color-scheme="dark"] .mtya-embed-table-stage {
|
|
3095
|
+
background-color: var(--mantine-color-dark-8);
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3098
|
+
.mtya-embed-table-frame {
|
|
3099
|
+
width: 100%;
|
|
3100
|
+
max-width: 60rem;
|
|
3101
|
+
margin-inline: auto;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
/*
|
|
3105
|
+
* The place of a step of the embed's code in its list: a figure in a disc, at the height of the
|
|
3106
|
+
* step's title, so the steps read in order down the page.
|
|
3107
|
+
*/
|
|
3108
|
+
.mtya-embed-step-mark {
|
|
3109
|
+
display: flex;
|
|
3110
|
+
flex: none;
|
|
3111
|
+
align-items: center;
|
|
3112
|
+
justify-content: center;
|
|
3113
|
+
width: 1.375rem;
|
|
3114
|
+
height: 1.375rem;
|
|
3115
|
+
font-size: var(--mantine-font-size-xs);
|
|
3116
|
+
font-weight: 600;
|
|
3117
|
+
font-variant-numeric: tabular-nums;
|
|
3118
|
+
color: var(--mantine-primary-color-light-color);
|
|
3119
|
+
background-color: var(--mantine-primary-color-light);
|
|
3120
|
+
border-radius: var(--mantine-radius-xl);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
/* The mark beside the wizard's status line keeps its own width while the line gives way. */
|
|
3124
|
+
.mtya-embed-status-mark {
|
|
3125
|
+
display: flex;
|
|
3126
|
+
flex: none;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
/*
|
|
3130
|
+
* The POI picker's trigger, painted from the SAME control tokens the published map controls
|
|
3131
|
+
* read (`--mtya-control-*` on `.mtya-controls`, with the values here as fallbacks for a
|
|
3132
|
+
* consumer who has not declared them). It cannot use `.mtya-control-button` itself: that rule
|
|
3133
|
+
* fixes a square `--mtya-control-size` box, and this control is a labelled pill with a leading
|
|
3134
|
+
* glyph and a trailing status badge. What it shares is everything a reader compares it against
|
|
3135
|
+
* (the surface, the radius, the shadow, the hover and held greys), so the one control on the
|
|
3136
|
+
* LEFT of the map reads as the same kind of thing as the stack on the right.
|
|
3137
|
+
*
|
|
3138
|
+
* The held state keys off `data-expanded` rather than `aria-pressed`: this is a Menu trigger,
|
|
3139
|
+
* not a toggle, so Mantine marks it open with that attribute and there is no pressed state to
|
|
3140
|
+
* read. Every rule pairs the class with `:not(:disabled, [data-disabled])`, which lifts it
|
|
3141
|
+
* above Mantine's own variant colours regardless of stylesheet order, and Mantine's `default`
|
|
3142
|
+
* variant emits its background as an INLINE style, which a class cannot override, so the
|
|
3143
|
+
* background is painted directly rather than through its `--btn-*` variables.
|
|
3144
|
+
*/
|
|
3145
|
+
.mtya-poi-trigger {
|
|
3146
|
+
color: var(--mtya-control-fg, #212529);
|
|
3147
|
+
background-color: var(--mtya-control-bg, #ffffff);
|
|
3148
|
+
box-shadow: var(--mtya-control-shadow, 0 1px 3px rgb(0 0 0 / 5%), 0 1px 2px rgb(0 0 0 / 10%));
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
.mtya-poi-trigger:not(:disabled, [data-disabled]):hover,
|
|
3152
|
+
.mtya-poi-trigger:not(:disabled, [data-disabled]):active,
|
|
3153
|
+
.mtya-poi-trigger[data-expanded]:not(:disabled, [data-disabled]) {
|
|
3154
|
+
background-color: var(--mtya-control-bg-hover, #f1f3f5);
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
.mtya-poi-trigger:disabled,
|
|
3158
|
+
.mtya-poi-trigger[data-disabled] {
|
|
3159
|
+
color: var(--mtya-control-fg-disabled, #adb5bd);
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
/*
|
|
3163
|
+
* Mantine seats a button's left section an `xs` gap from the label, a touch wide for a
|
|
3164
|
+
* labelled control this small. The attribute selector reaches Mantine's left-section span,
|
|
3165
|
+
* whose own class is hashed: `data-position` is the stable hook.
|
|
3166
|
+
*/
|
|
3167
|
+
.mtya-poi-trigger [data-position="left"] {
|
|
3168
|
+
margin-inline-end: var(--mantine-spacing-xxs);
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
/*
|
|
3172
|
+
* .mtya-subheader-band is the publication strip directly under the editor's header. It breaks
|
|
3173
|
+
* out of the panel's `md` padding the same way the sidenav header does at the top edge, so its
|
|
3174
|
+
* bottom divider spans the full panel width and the two chrome edges read as one system rather
|
|
3175
|
+
* than as a header and a floating card.
|
|
3176
|
+
*
|
|
3177
|
+
* It does NOT stick. The header above it stays in reach while the segment list scrolls because
|
|
3178
|
+
* the back affordance and the title are navigation; publication is a decision the reader makes
|
|
3179
|
+
* once, and a second pinned row would spend a third of a 340px panel's height on chrome before
|
|
3180
|
+
* a single segment showed.
|
|
3181
|
+
*
|
|
3182
|
+
* The padding is symmetric because the band is one row: the state and the act on it sit on the
|
|
3183
|
+
* same baseline, so there is no second line for a heavier bottom inset to balance. The negative
|
|
3184
|
+
* top margin cancels the panel's `md` gap so the band seats flush against the header's own
|
|
3185
|
+
* divider: two hairlines with a gap between them would read as an empty row.
|
|
3186
|
+
*/
|
|
3187
|
+
.mtya-subheader-band {
|
|
3188
|
+
padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
|
3189
|
+
margin-inline: calc(-1 * var(--mantine-spacing-md));
|
|
3190
|
+
margin-top: calc(-1 * var(--mantine-spacing-md));
|
|
3191
|
+
border-bottom: 1px solid var(--mantine-color-default-border);
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
/*
|
|
3195
|
+
* .mtya-subheader-status is the dot + word + age group, and .mtya-subheader-age the dimmed
|
|
3196
|
+
* trailer inside it. The band's flexible end: `min-width: 0` is what lets a flex item shrink
|
|
3197
|
+
* past its content, so a long translation gives up its width here rather than pushing the
|
|
3198
|
+
* action off the panel. What survives the squeeze is what matters: the mark and the state
|
|
3199
|
+
* word come first, and only the dimmed age behind them ellipsises.
|
|
3200
|
+
*/
|
|
3201
|
+
.mtya-subheader-status,
|
|
3202
|
+
.mtya-subheader-age {
|
|
3203
|
+
min-width: 0;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
/*
|
|
3207
|
+
* .mtya-subheader-settled is the settled pill, and it carries no act of its own: the band
|
|
3208
|
+
* states what the public sees, and the itinerary action menu one row above owns the verbs,
|
|
3209
|
+
* withdrawal included.
|
|
3210
|
+
*
|
|
3211
|
+
* It is a Button by shape only. The element is a div, so it is not focusable and answers no
|
|
3212
|
+
* press, and these two rules finish the job for the pointer: no hover, no click cursor,
|
|
3213
|
+
* nothing that invites one.
|
|
3214
|
+
*
|
|
3215
|
+
* It is deliberately NOT a disabled button. A greyed-out control reads as an action the panel
|
|
3216
|
+
* has broken; a lime, checked, unpressable one reads as the answer, "this is live", which is
|
|
3217
|
+
* what the row is actually saying.
|
|
3218
|
+
*/
|
|
3219
|
+
.mtya-subheader-settled {
|
|
3220
|
+
pointer-events: none;
|
|
3221
|
+
cursor: default;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
/* ------------------------------------------------------------------------------------------
|
|
3225
|
+
* A place's own mark
|
|
3226
|
+
* ---------------------------------------------------------------------------------------- */
|
|
3227
|
+
|
|
3228
|
+
/*
|
|
3229
|
+
* `.mtya-place-mark` is the picture the tile server paints on the map: a waypoint's glyph
|
|
3230
|
+
* centred in a disc filled with the waypoint's colour. Every surface that names one place (a
|
|
3231
|
+
* dialog header, a row's affordance, a full-screen editor's hero) draws it from here, so a
|
|
3232
|
+
* reader who clicked a pin meets the same shape wherever the click took them.
|
|
3233
|
+
*
|
|
3234
|
+
* Both dimensions read a custom property with a default, so a host retints or resizes every
|
|
3235
|
+
* mark at once from any ancestor, and the component that renders one sets the two values for
|
|
3236
|
+
* the instance rather than carrying a style object per size.
|
|
3237
|
+
*
|
|
3238
|
+
* The glyph colour is white rather than a token: the disc is filled with an author-chosen hex
|
|
3239
|
+
* that a scheme token knows nothing about, and white is what the sprite generator paints.
|
|
3240
|
+
*/
|
|
3241
|
+
.mtya-place-mark {
|
|
3242
|
+
display: inline-flex;
|
|
3243
|
+
flex: 0 0 auto;
|
|
3244
|
+
align-items: center;
|
|
3245
|
+
justify-content: center;
|
|
3246
|
+
width: var(--mtya-place-mark-size, 28px);
|
|
3247
|
+
height: var(--mtya-place-mark-size, 28px);
|
|
3248
|
+
color: #fff;
|
|
3249
|
+
background-color: var(--mtya-place-mark-color, #3b82f6);
|
|
3250
|
+
border-radius: 50%;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
/*
|
|
3254
|
+
* The halo is for the one place a mark is the SUBJECT rather than an affordance: a full-screen
|
|
3255
|
+
* editor's hero. Two rings of the mark's own colour, mixed far toward transparent, so the disc
|
|
3256
|
+
* sits in a glow rather than behind a border. At a header's size this reads as a smudge, which
|
|
3257
|
+
* is why it is opt-in rather than the default.
|
|
3258
|
+
*/
|
|
3259
|
+
.mtya-place-mark[data-halo] {
|
|
3260
|
+
box-shadow:
|
|
3261
|
+
0 0 0 6px color-mix(in srgb, var(--mtya-place-mark-color, #3b82f6) 14%, transparent),
|
|
3262
|
+
0 0 0 14px color-mix(in srgb, var(--mtya-place-mark-color, #3b82f6) 7%, transparent);
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
/* ------------------------------------------------------------------------------------------
|
|
3266
|
+
* The place editor
|
|
3267
|
+
*
|
|
3268
|
+
* The full-screen workbench a waypoint is written in: its sections' cards and fields, on the
|
|
3269
|
+
* stage, beside the published card. Everything here is prefixed `mtya-pe-` and sits in one
|
|
3270
|
+
* block, because it belongs to that one surface rather than to the chrome it borrows from. The
|
|
3271
|
+
* rail that lists the sections is the block after this one, which the read-only dialog shares.
|
|
3272
|
+
*
|
|
3273
|
+
* Every rule below restates a treatment Mountaya's own application ALREADY has, in the one place
|
|
3274
|
+
* a published package cannot reach it from: the settings list row's hover, the page canvas its
|
|
3275
|
+
* section cards sit on, the reading measure its fields are held to. They are here because those
|
|
3276
|
+
* live in that application's own stylesheet, which this package does not depend on and must
|
|
3277
|
+
* not.
|
|
3278
|
+
* ---------------------------------------------------------------------------------------- */
|
|
3279
|
+
|
|
3280
|
+
/*
|
|
3281
|
+
* The stage's scrolling column. The full-screen shell makes the header and footer static, so
|
|
3282
|
+
* this is the one thing that scrolls, and on the y axis only, because a focus ring or a slider
|
|
3283
|
+
* thumb grazing the column's edge must never mint a horizontal scrollbar.
|
|
3284
|
+
*/
|
|
3285
|
+
.mtya-pe-scroll {
|
|
3286
|
+
flex: 1;
|
|
3287
|
+
min-width: 0;
|
|
3288
|
+
min-height: 0;
|
|
3289
|
+
overflow-x: hidden;
|
|
3290
|
+
overflow-y: auto;
|
|
3291
|
+
}
|
|
3292
|
+
|
|
3293
|
+
/*
|
|
3294
|
+
* The canvas a section card sits on, the relationship a settings page draws, where white
|
|
3295
|
+
* bordered cards read as raised against a page a hair darker than they are. Without it a
|
|
3296
|
+
* bordered card on a white shell reads as a hairline box drawn on nothing, which is how a
|
|
3297
|
+
* settings page stops looking like one.
|
|
3298
|
+
*/
|
|
3299
|
+
.mtya-pe-canvas {
|
|
3300
|
+
background-color: var(--mantine-color-gray-0);
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
[data-mtya-color-scheme="dark"] .mtya-pe-canvas {
|
|
3304
|
+
background-color: var(--mantine-color-dark-8);
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
/*
|
|
3308
|
+
* The right-hand aside: the live preview beside a stage whose own content is the page. The
|
|
3309
|
+
* mirror of `.mtya-section-rail`, whose divider is on the other edge: a
|
|
3310
|
+
* border on the wrong side reads as a gap between two panels rather than as the seam between
|
|
3311
|
+
* them.
|
|
3312
|
+
*/
|
|
3313
|
+
.mtya-pe-aside {
|
|
3314
|
+
flex-shrink: 0;
|
|
3315
|
+
min-height: 0;
|
|
3316
|
+
overflow-x: hidden;
|
|
3317
|
+
overflow-y: auto;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
@container mtya-studio (width >= 48em) {
|
|
3321
|
+
.mtya-pe-aside {
|
|
3322
|
+
border-left: 1px solid var(--mantine-color-default-border);
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
|
|
3326
|
+
/*
|
|
3327
|
+
* The reading column a section's fields are held to: the measure of Mantine's `sm` container,
|
|
3328
|
+
* wide enough for a two-column field row, narrow enough that a label and its control stay on one
|
|
3329
|
+
* eye movement.
|
|
3330
|
+
*/
|
|
3331
|
+
.mtya-pe-sheet {
|
|
3332
|
+
width: 100%;
|
|
3333
|
+
max-width: 720px;
|
|
3334
|
+
margin-inline: auto;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
/*
|
|
3338
|
+
* The grid of the sections whose cards are not prose-shaped: two columns where the stage has
|
|
3339
|
+
* the room for two cards a glyph grid fits in, one where it has not. The stage is what is
|
|
3340
|
+
* measured (`mtya-wp-stage`), since the rail and the summary beside it take their share of the
|
|
3341
|
+
* studio first. The gap is `CARD_GAP`, which the component writes as `--mtya-pe-card-gap` so
|
|
3342
|
+
* the sections that stack their cards and the sections that grid them keep one rhythm.
|
|
3343
|
+
*/
|
|
3344
|
+
.mtya-pe-card-grid {
|
|
3345
|
+
display: grid;
|
|
3346
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3347
|
+
gap: var(--mtya-pe-card-gap);
|
|
3348
|
+
}
|
|
3349
|
+
|
|
3350
|
+
@container mtya-wp-stage (width >= 46em) {
|
|
3351
|
+
.mtya-pe-card-grid {
|
|
3352
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
|
|
3356
|
+
/*
|
|
3357
|
+
* The amenity picker's tiles, by the room the studio has: two a row in a studio of Mantine's
|
|
3358
|
+
* `sm` width and up, one in a narrower studio.
|
|
3359
|
+
*
|
|
3360
|
+
* Two at the reading measure, and that is a LEGIBILITY figure rather than a density one: three
|
|
3361
|
+
* columns fit the English vocabulary and clip the French, where "Assistance personnelle" and
|
|
3362
|
+
* "Point de chronométrage" run past the tile and ellipsise. A service a reader has to decode
|
|
3363
|
+
* from its first nine letters is worse than a longer list, and this list is scanned once per
|
|
3364
|
+
* place rather than read.
|
|
3365
|
+
*/
|
|
3366
|
+
.mtya-pe-tile-grid {
|
|
3367
|
+
display: grid;
|
|
3368
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3369
|
+
gap: var(--mantine-spacing-xs);
|
|
3370
|
+
}
|
|
3371
|
+
|
|
3372
|
+
@container mtya-studio (width >= 48em) {
|
|
3373
|
+
.mtya-pe-tile-grid {
|
|
3374
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
/*
|
|
3379
|
+
* One service tile in the amenity picker: a glyph, its word, and the tick that closes the row.
|
|
3380
|
+
*
|
|
3381
|
+
* `Checkbox.Card` paints its own surface, border and selected state from the theme; what it does
|
|
3382
|
+
* not do is lay its children out, because it has no idea what a caller put inside one. This is
|
|
3383
|
+
* that row, and the label between the two fixed ends is the part that gives up width, so a long
|
|
3384
|
+
* service name wraps rather than pushing the tick out of the tile. It WRAPS rather than
|
|
3385
|
+
* ellipsises: the grid stretches every tile in a row to the tallest of them, so a second line
|
|
3386
|
+
* costs the row and not the reader.
|
|
3387
|
+
*/
|
|
3388
|
+
.mtya-pe-tile {
|
|
3389
|
+
display: flex;
|
|
3390
|
+
gap: var(--mantine-spacing-sm);
|
|
3391
|
+
align-items: center;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
.mtya-pe-tile-label {
|
|
3395
|
+
flex: 1;
|
|
3396
|
+
min-width: 0;
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
/*
|
|
3400
|
+
* A field row of two: two controls side by side in a studio of Mantine's `sm` width and up, one
|
|
3401
|
+
* under the other in a narrower studio, where half a phone's width cuts an email address or a
|
|
3402
|
+
* web address short.
|
|
3403
|
+
*/
|
|
3404
|
+
.mtya-pe-field-pair {
|
|
3405
|
+
display: grid;
|
|
3406
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3407
|
+
gap: var(--mantine-spacing-md);
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3410
|
+
@container mtya-studio (width >= 48em) {
|
|
3411
|
+
.mtya-pe-field-pair {
|
|
3412
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
/*
|
|
3417
|
+
* A row of a list a card edits: a photo, a link, a custom field. Its fields stand on one line
|
|
3418
|
+
* with its delete at the end in a studio of Mantine's `xs` width and up. In a narrower studio
|
|
3419
|
+
* the fields stack and the delete stays level with the first, so no field is cut to a few
|
|
3420
|
+
* characters. A row whose fields weigh the same (`data-even`) splits its width evenly, and one
|
|
3421
|
+
* that pairs an address with a few words gives the address twice the room.
|
|
3422
|
+
*/
|
|
3423
|
+
.mtya-pe-entry {
|
|
3424
|
+
display: grid;
|
|
3425
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
3426
|
+
gap: var(--mantine-spacing-xs) var(--mantine-spacing-sm);
|
|
3427
|
+
align-items: start;
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
.mtya-pe-entry-field {
|
|
3431
|
+
grid-column: 1;
|
|
3432
|
+
min-width: 0;
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3435
|
+
/*
|
|
3436
|
+
* The delete stands level with the control of the first field: under a bare control's top
|
|
3437
|
+
* edge, and on the baseline of a labelled one, whose label takes the room above it.
|
|
3438
|
+
*/
|
|
3439
|
+
.mtya-pe-entry-remove {
|
|
3440
|
+
grid-row: 1;
|
|
3441
|
+
grid-column: 2;
|
|
3442
|
+
align-self: start;
|
|
3443
|
+
margin-top: var(--mantine-spacing-xxs);
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.mtya-pe-entry[data-even] .mtya-pe-entry-remove {
|
|
3447
|
+
align-self: end;
|
|
3448
|
+
margin-top: 0;
|
|
3449
|
+
margin-bottom: var(--mantine-spacing-xxs);
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
@container mtya-studio (width >= 36em) {
|
|
3453
|
+
.mtya-pe-entry {
|
|
3454
|
+
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
|
|
3455
|
+
gap: var(--mantine-spacing-md);
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
.mtya-pe-entry[data-even] {
|
|
3459
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
.mtya-pe-entry-field {
|
|
3463
|
+
grid-column: auto;
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3466
|
+
.mtya-pe-entry-remove {
|
|
3467
|
+
grid-column: 3;
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
/* ------------------------------------------------------------------------------------------
|
|
3472
|
+
* Sections listed down one side
|
|
3473
|
+
*
|
|
3474
|
+
* A surface laid out in sections lists them down its leading side, the open one beside them:
|
|
3475
|
+
* the arrangement the account and organization pages use for their own navigation. The waypoint
|
|
3476
|
+
* dialogs and the full-screen wizards share the parts below, prefixed `mtya-section-` (the rail,
|
|
3477
|
+
* the list, a section's heading) and `mtya-rail-switcher` (the line a rail opens on).
|
|
3478
|
+
*
|
|
3479
|
+
* The treatments restate that navigation's, which lives in the application's own stylesheet
|
|
3480
|
+
* and is out of this package's reach: a dense row of a dimmed glyph and a name, the quiet fill
|
|
3481
|
+
* under the pointer, and the open row on the primary colour's light fill behind a bar at its
|
|
3482
|
+
* leading edge. Every colour is a scheme-aware Mantine variable, so no rule needs a dark twin.
|
|
3483
|
+
* ---------------------------------------------------------------------------------------- */
|
|
3484
|
+
|
|
3485
|
+
/*
|
|
3486
|
+
* The rail: what the surface is open on, then its sections. A column beside the open section
|
|
3487
|
+
* in a wide studio, `--mtya-section-rail-width` wide, where it scrolls on its own; a band
|
|
3488
|
+
* across the surface in a narrow one.
|
|
3489
|
+
*/
|
|
3490
|
+
.mtya-section-rail {
|
|
3491
|
+
display: flex;
|
|
3492
|
+
flex-shrink: 0;
|
|
3493
|
+
flex-direction: column;
|
|
3494
|
+
gap: var(--mantine-spacing-sm);
|
|
3495
|
+
min-width: 0;
|
|
3496
|
+
padding: var(--mantine-spacing-sm) var(--mantine-spacing-md);
|
|
3497
|
+
border-bottom: 1px solid var(--mantine-color-default-border);
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
@container mtya-studio (width >= 62em) {
|
|
3501
|
+
.mtya-section-rail {
|
|
3502
|
+
gap: var(--mantine-spacing-md);
|
|
3503
|
+
width: var(--mtya-section-rail-width, 17.5rem);
|
|
3504
|
+
padding: var(--mantine-spacing-md);
|
|
3505
|
+
overflow-x: hidden;
|
|
3506
|
+
overflow-y: auto;
|
|
3507
|
+
border-right: 1px solid var(--mantine-color-default-border);
|
|
3508
|
+
border-bottom: 0;
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
/*
|
|
3513
|
+
* What the rail is open on, and the way to another: one compact line at an input's height,
|
|
3514
|
+
* hairlined, holding a mark, a name cut with an ellipsis and a chevron. Where there is nothing
|
|
3515
|
+
* else to open, the same line is no button and reacts to nothing.
|
|
3516
|
+
*/
|
|
3517
|
+
.mtya-rail-switcher {
|
|
3518
|
+
display: flex;
|
|
3519
|
+
gap: var(--mantine-spacing-xs);
|
|
3520
|
+
align-items: center;
|
|
3521
|
+
width: 100%;
|
|
3522
|
+
min-width: 0;
|
|
3523
|
+
min-height: 2.25rem;
|
|
3524
|
+
padding: var(--mantine-spacing-xxs) var(--mantine-spacing-xs);
|
|
3525
|
+
font: inherit;
|
|
3526
|
+
color: var(--mantine-color-text);
|
|
3527
|
+
text-align: start;
|
|
3528
|
+
background-color: var(--mantine-color-body);
|
|
3529
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
3530
|
+
border-radius: var(--mantine-radius-sm);
|
|
3531
|
+
transition: background-color 120ms ease;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
button.mtya-rail-switcher {
|
|
3535
|
+
cursor: pointer;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
button.mtya-rail-switcher:where(:hover, [aria-expanded="true"]) {
|
|
3539
|
+
background-color: var(--mantine-color-default-hover);
|
|
3540
|
+
}
|
|
3541
|
+
|
|
3542
|
+
button.mtya-rail-switcher:where(:disabled) {
|
|
3543
|
+
cursor: not-allowed;
|
|
3544
|
+
background-color: var(--mantine-color-body);
|
|
3545
|
+
}
|
|
3546
|
+
|
|
3547
|
+
.mtya-rail-switcher-name {
|
|
3548
|
+
flex: 1;
|
|
3549
|
+
min-width: 0;
|
|
3550
|
+
overflow: hidden;
|
|
3551
|
+
text-overflow: ellipsis;
|
|
3552
|
+
font-size: var(--mantine-font-size-sm);
|
|
3553
|
+
font-weight: 500;
|
|
3554
|
+
white-space: nowrap;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
/*
|
|
3558
|
+
* A name that is one of a fixed vocabulary is never cut: it takes a second line where one is
|
|
3559
|
+
* too short for it, and the control grows by that line.
|
|
3560
|
+
*/
|
|
3561
|
+
.mtya-rail-switcher:where([data-wraps]) .mtya-rail-switcher-name {
|
|
3562
|
+
overflow: visible;
|
|
3563
|
+
line-height: 1.3;
|
|
3564
|
+
white-space: normal;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
.mtya-rail-switcher-end {
|
|
3568
|
+
display: flex;
|
|
3569
|
+
flex: none;
|
|
3570
|
+
color: var(--mantine-color-dimmed);
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
/*
|
|
3574
|
+
* The mark of an option that is no place on a map: a glyph on the quiet tile a settings row
|
|
3575
|
+
* leads with, at the size the switcher's own line holds.
|
|
3576
|
+
*/
|
|
3577
|
+
.mtya-rail-switcher-mark {
|
|
3578
|
+
display: flex;
|
|
3579
|
+
flex: none;
|
|
3580
|
+
align-items: center;
|
|
3581
|
+
justify-content: center;
|
|
3582
|
+
width: 1.375rem;
|
|
3583
|
+
height: 1.375rem;
|
|
3584
|
+
color: var(--mantine-primary-color-light-color);
|
|
3585
|
+
background-color: var(--mantine-primary-color-light);
|
|
3586
|
+
border-radius: var(--mantine-radius-sm);
|
|
3587
|
+
}
|
|
3588
|
+
|
|
3589
|
+
/*
|
|
3590
|
+
* The sections, as a list. One under the other wherever it stands in a column; in a rail that
|
|
3591
|
+
* lies across a narrow studio it scrolls sideways, every section one swipe away and none
|
|
3592
|
+
* wrapped onto a second line. It draws no scrollbar there: the row cut at the rail's edge is
|
|
3593
|
+
* what says there is more, and a bar under the rows would underline the open one.
|
|
3594
|
+
*/
|
|
3595
|
+
.mtya-section-nav {
|
|
3596
|
+
display: flex;
|
|
3597
|
+
flex-direction: column;
|
|
3598
|
+
gap: var(--mantine-spacing-xxs);
|
|
3599
|
+
min-width: 0;
|
|
3600
|
+
}
|
|
3601
|
+
|
|
3602
|
+
@container mtya-studio (width < 62em) {
|
|
3603
|
+
.mtya-section-rail .mtya-section-nav {
|
|
3604
|
+
flex-direction: row;
|
|
3605
|
+
overflow-x: auto;
|
|
3606
|
+
scrollbar-width: none;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
/*
|
|
3611
|
+
* One section: its glyph, dimmed until the row is under the pointer or open, its name, and
|
|
3612
|
+
* what stands at its end (how much it records, or the mark of something to attend to).
|
|
3613
|
+
*/
|
|
3614
|
+
.mtya-section-nav-item {
|
|
3615
|
+
position: relative;
|
|
3616
|
+
display: flex;
|
|
3617
|
+
flex: none;
|
|
3618
|
+
gap: var(--mantine-spacing-xs);
|
|
3619
|
+
align-items: center;
|
|
3620
|
+
min-width: 0;
|
|
3621
|
+
padding: var(--mantine-spacing-xxs) var(--mantine-spacing-sm);
|
|
3622
|
+
font: inherit;
|
|
3623
|
+
font-size: var(--mantine-font-size-sm);
|
|
3624
|
+
line-height: var(--mantine-line-height);
|
|
3625
|
+
color: var(--mantine-color-text);
|
|
3626
|
+
text-align: start;
|
|
3627
|
+
white-space: nowrap;
|
|
3628
|
+
cursor: pointer;
|
|
3629
|
+
background-color: transparent;
|
|
3630
|
+
border: 0;
|
|
3631
|
+
border-radius: var(--mantine-radius-sm);
|
|
3632
|
+
transition: background-color 120ms ease;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
.mtya-section-nav-item:where(:hover) {
|
|
3636
|
+
background-color: var(--mantine-color-default-hover);
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3639
|
+
.mtya-section-nav-item:where(:focus-visible),
|
|
3640
|
+
.mtya-rail-switcher:where(:focus-visible) {
|
|
3641
|
+
outline: 2px solid var(--mantine-primary-color-filled);
|
|
3642
|
+
outline-offset: -2px;
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
.mtya-section-nav-item[data-active] {
|
|
3646
|
+
font-weight: 500;
|
|
3647
|
+
color: var(--mantine-primary-color-light-color);
|
|
3648
|
+
background-color: var(--mantine-primary-color-light);
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
.mtya-section-nav-item[data-active]:where(:hover) {
|
|
3652
|
+
background-color: var(--mantine-primary-color-light-hover);
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3655
|
+
/* A held row is listed and opens nothing: it reads dimmed, and keeps the fill it stands on. */
|
|
3656
|
+
.mtya-section-nav-item:where(:disabled) {
|
|
3657
|
+
cursor: not-allowed;
|
|
3658
|
+
opacity: 0.55;
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
.mtya-section-nav-item:where(:disabled):where(:hover):not([data-active]) {
|
|
3662
|
+
background-color: transparent;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
.mtya-section-nav-glyph {
|
|
3666
|
+
display: flex;
|
|
3667
|
+
flex: none;
|
|
3668
|
+
color: var(--mantine-color-dimmed);
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3671
|
+
.mtya-section-nav-item:where(:hover, [data-active]) .mtya-section-nav-glyph {
|
|
3672
|
+
color: inherit;
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
.mtya-section-nav-label {
|
|
3676
|
+
flex: 1;
|
|
3677
|
+
min-width: 0;
|
|
3678
|
+
overflow: hidden;
|
|
3679
|
+
text-overflow: ellipsis;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
.mtya-section-nav-end {
|
|
3683
|
+
display: flex;
|
|
3684
|
+
flex: none;
|
|
3685
|
+
align-items: center;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
.mtya-section-nav-count {
|
|
3689
|
+
font-size: var(--mantine-font-size-xs);
|
|
3690
|
+
font-variant-numeric: tabular-nums;
|
|
3691
|
+
color: var(--mantine-color-dimmed);
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
.mtya-section-nav-item[data-active] .mtya-section-nav-count {
|
|
3695
|
+
color: inherit;
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
/* Something to attend to is said in orange whatever the row's own colour, as a warning is. */
|
|
3699
|
+
.mtya-section-nav-attention {
|
|
3700
|
+
display: flex;
|
|
3701
|
+
color: var(--mantine-color-orange-filled);
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
/*
|
|
3705
|
+
* In a column the open section carries a bar at its leading edge, squared off on that side.
|
|
3706
|
+
* Lying across a narrow studio's rail it is a pill, and every row there is a finger's target.
|
|
3707
|
+
*/
|
|
3708
|
+
@container mtya-studio (width >= 62em) {
|
|
3709
|
+
.mtya-section-rail .mtya-section-nav-item[data-active] {
|
|
3710
|
+
border-start-start-radius: 0;
|
|
3711
|
+
border-end-start-radius: 0;
|
|
3712
|
+
}
|
|
3713
|
+
|
|
3714
|
+
.mtya-section-rail .mtya-section-nav-item[data-active]::before {
|
|
3715
|
+
position: absolute;
|
|
3716
|
+
inset-block: 0;
|
|
3717
|
+
inset-inline-start: 0;
|
|
3718
|
+
width: 2px;
|
|
3719
|
+
content: "";
|
|
3720
|
+
background-color: var(--mantine-primary-color-filled);
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
@container mtya-studio (width < 48em) {
|
|
3725
|
+
.mtya-section-rail .mtya-section-nav-item,
|
|
3726
|
+
.mtya-section-rail .mtya-rail-switcher {
|
|
3727
|
+
min-height: 2.75rem;
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
/*
|
|
3732
|
+
* The heading a section opens on: the section's name and the sentence saying what it holds. It
|
|
3733
|
+
* is the page title of a settings page, at the size a dialog's own title is drawn in. What
|
|
3734
|
+
* stands at its end (the one act that concerns the section as a whole) keeps its own width
|
|
3735
|
+
* beside the words, level with the name.
|
|
3736
|
+
*/
|
|
3737
|
+
.mtya-section-head {
|
|
3738
|
+
display: flex;
|
|
3739
|
+
gap: var(--mantine-spacing-sm);
|
|
3740
|
+
align-items: flex-start;
|
|
3741
|
+
}
|
|
3742
|
+
|
|
3743
|
+
.mtya-section-head-words {
|
|
3744
|
+
display: flex;
|
|
3745
|
+
flex: 1;
|
|
3746
|
+
flex-direction: column;
|
|
3747
|
+
gap: var(--mantine-spacing-xxs);
|
|
3748
|
+
min-width: 0;
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
.mtya-section-head-action {
|
|
3752
|
+
flex: none;
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
.mtya-section-title {
|
|
3756
|
+
margin: 0;
|
|
3757
|
+
font-size: var(--mantine-font-size-md);
|
|
3758
|
+
font-weight: 600;
|
|
3759
|
+
line-height: 1.3;
|
|
3760
|
+
}
|
|
3761
|
+
|
|
3762
|
+
/*
|
|
3763
|
+
* A card's own heading, where a section holds more than one card. A heading element rather
|
|
3764
|
+
* than a paragraph, so the section's outline is its cards.
|
|
3765
|
+
*/
|
|
3766
|
+
.mtya-section-card-title {
|
|
3767
|
+
margin: 0;
|
|
3768
|
+
font-size: var(--mantine-font-size-sm);
|
|
3769
|
+
font-weight: 600;
|
|
3770
|
+
line-height: var(--mantine-line-height);
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
/* ------------------------------------------------------------------------------------------
|
|
3774
|
+
* The waypoint dialogs' sections
|
|
3775
|
+
*
|
|
3776
|
+
* The editor and the read-only dialog lay the shared rail and list out their own way.
|
|
3777
|
+
* Everything here is prefixed `mtya-wp-`.
|
|
3778
|
+
* ---------------------------------------------------------------------------------------- */
|
|
3779
|
+
|
|
3780
|
+
/*
|
|
3781
|
+
* The editor's row under its header: the rail, the open section and the summary. Stacked in a
|
|
3782
|
+
* studio narrower than Mantine's `md`, where the rail lies across the top.
|
|
3783
|
+
*/
|
|
3784
|
+
.mtya-wp-layout {
|
|
3785
|
+
display: flex;
|
|
3786
|
+
flex: 1;
|
|
3787
|
+
flex-direction: column;
|
|
3788
|
+
min-width: 0;
|
|
3789
|
+
min-height: 0;
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
@container mtya-studio (width >= 62em) {
|
|
3793
|
+
.mtya-wp-layout {
|
|
3794
|
+
flex-direction: row;
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
|
|
3798
|
+
/*
|
|
3799
|
+
* The stage: the open section, in the room the rail and the summary leave it. It is a size
|
|
3800
|
+
* container, so what a section lays side by side follows the stage's own width, and it is
|
|
3801
|
+
* padded by the studio's: a phone keeps the gutter every other surface of the studio has.
|
|
3802
|
+
*/
|
|
3803
|
+
.mtya-wp-stage {
|
|
3804
|
+
flex: 1;
|
|
3805
|
+
padding: var(--mantine-spacing-md);
|
|
3806
|
+
container: mtya-wp-stage / inline-size;
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
@container mtya-studio (width >= 48em) {
|
|
3810
|
+
.mtya-wp-stage {
|
|
3811
|
+
padding: var(--mantine-spacing-xl);
|
|
3812
|
+
}
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
/*
|
|
3816
|
+
* The read-only dialog's body. It is its own size container, so the arrangement follows the
|
|
3817
|
+
* dialog's width and not the window's: a dialog is narrow on a phone and in a narrow studio
|
|
3818
|
+
* alike.
|
|
3819
|
+
*/
|
|
3820
|
+
.mtya-wp-view {
|
|
3821
|
+
container: mtya-wp-view / inline-size;
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
/*
|
|
3825
|
+
* Narrow, the sections stand one under the other, each under its own heading, and the list of
|
|
3826
|
+
* them is not drawn: every fact is one scroll away, with nothing to open first.
|
|
3827
|
+
*/
|
|
3828
|
+
.mtya-wp-view-layout {
|
|
3829
|
+
display: flex;
|
|
3830
|
+
flex-direction: column;
|
|
3831
|
+
gap: var(--mantine-spacing-lg);
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
.mtya-wp-view-nav {
|
|
3835
|
+
display: none;
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
.mtya-wp-view-panel {
|
|
3839
|
+
display: flex;
|
|
3840
|
+
flex-direction: column;
|
|
3841
|
+
gap: var(--mantine-spacing-sm);
|
|
3842
|
+
min-width: 0;
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
/*
|
|
3846
|
+
* Wide, the sections are listed beside the open one. The row keeps one height whatever the
|
|
3847
|
+
* open section holds, and the section scrolls inside it: a dialog that grew and shrank with
|
|
3848
|
+
* each section would move the list under the pointer that is choosing from it.
|
|
3849
|
+
*/
|
|
3850
|
+
@container mtya-wp-view (width >= 34em) {
|
|
3851
|
+
.mtya-wp-view-split {
|
|
3852
|
+
flex-direction: row;
|
|
3853
|
+
height: 22rem;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
.mtya-wp-view-split .mtya-wp-view-nav {
|
|
3857
|
+
display: block;
|
|
3858
|
+
flex: none;
|
|
3859
|
+
width: 12.5rem;
|
|
3860
|
+
overflow-y: auto;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
.mtya-wp-view-split .mtya-wp-view-panel {
|
|
3864
|
+
display: none;
|
|
3865
|
+
flex: 1;
|
|
3866
|
+
overflow-y: auto;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
.mtya-wp-view-split .mtya-wp-view-panel[data-active] {
|
|
3870
|
+
display: flex;
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
.mtya-wp-view-nav .mtya-section-nav-item[data-active] {
|
|
3874
|
+
border-start-start-radius: 0;
|
|
3875
|
+
border-end-start-radius: 0;
|
|
3876
|
+
}
|
|
3877
|
+
|
|
3878
|
+
.mtya-wp-view-nav .mtya-section-nav-item[data-active]::before {
|
|
3879
|
+
position: absolute;
|
|
3880
|
+
inset-block: 0;
|
|
3881
|
+
inset-inline-start: 0;
|
|
3882
|
+
width: 2px;
|
|
3883
|
+
content: "";
|
|
3884
|
+
background-color: var(--mantine-primary-color-filled);
|
|
3885
|
+
}
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
/*
|
|
3889
|
+
* The facts of one section, as a list of a name and its value: the dimmed name in one column
|
|
3890
|
+
* and the value beside it, starting where every other value starts. A value runs to as many
|
|
3891
|
+
* lines as it needs and breaks inside a long address, so it never meets its name. In a dialog
|
|
3892
|
+
* too narrow for two columns the value stands under its name.
|
|
3893
|
+
*/
|
|
3894
|
+
.mtya-wp-facts {
|
|
3895
|
+
display: grid;
|
|
3896
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3897
|
+
gap: 0;
|
|
3898
|
+
margin: 0;
|
|
3899
|
+
font-size: var(--mantine-font-size-sm);
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
.mtya-wp-facts dt {
|
|
3903
|
+
color: var(--mantine-color-dimmed);
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
.mtya-wp-facts dd {
|
|
3907
|
+
min-width: 0;
|
|
3908
|
+
margin: 0 0 var(--mantine-spacing-xs);
|
|
3909
|
+
overflow-wrap: anywhere;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
.mtya-wp-facts dd:last-child {
|
|
3913
|
+
margin-bottom: 0;
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
@container mtya-wp-view (width >= 24em) {
|
|
3917
|
+
.mtya-wp-facts {
|
|
3918
|
+
grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
|
|
3919
|
+
gap: var(--mantine-spacing-xs) var(--mantine-spacing-md);
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
.mtya-wp-facts dd {
|
|
3923
|
+
margin-bottom: 0;
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3927
|
+
/* The services a waypoint offers, each a glyph and its name in a hairlined pill. */
|
|
3928
|
+
.mtya-wp-chips {
|
|
3929
|
+
display: flex;
|
|
3930
|
+
flex-wrap: wrap;
|
|
3931
|
+
gap: var(--mantine-spacing-xs);
|
|
3932
|
+
padding: 0;
|
|
3933
|
+
margin: 0;
|
|
3934
|
+
list-style: none;
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
.mtya-wp-chip {
|
|
3938
|
+
display: inline-flex;
|
|
3939
|
+
gap: var(--mantine-spacing-xxs);
|
|
3940
|
+
align-items: center;
|
|
3941
|
+
padding: 0.125rem var(--mantine-spacing-xs);
|
|
3942
|
+
font-size: var(--mantine-font-size-sm);
|
|
3943
|
+
border: 1px solid var(--mantine-color-default-border);
|
|
3944
|
+
border-radius: var(--mantine-radius-xl);
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
/*
|
|
3948
|
+
* A waypoint's photos, as many to a row as fit at a width a photo still reads at. Each keeps
|
|
3949
|
+
* one shape whatever the picture's own, with its caption under it.
|
|
3950
|
+
*/
|
|
3951
|
+
.mtya-wp-photos {
|
|
3952
|
+
display: grid;
|
|
3953
|
+
grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
|
|
3954
|
+
gap: var(--mantine-spacing-sm);
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
.mtya-wp-photo {
|
|
3958
|
+
min-width: 0;
|
|
3959
|
+
margin: 0;
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
.mtya-wp-photo img {
|
|
3963
|
+
display: block;
|
|
3964
|
+
width: 100%;
|
|
3965
|
+
aspect-ratio: 4 / 3;
|
|
3966
|
+
object-fit: cover;
|
|
3967
|
+
background-color: var(--mantine-color-default-hover);
|
|
3968
|
+
border-radius: var(--mantine-radius-sm);
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
.mtya-wp-photo figcaption {
|
|
3972
|
+
margin-top: var(--mantine-spacing-xxs);
|
|
3973
|
+
font-size: var(--mantine-font-size-xs);
|
|
3974
|
+
color: var(--mantine-color-dimmed);
|
|
3975
|
+
overflow-wrap: anywhere;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
.mtya-wp-links {
|
|
3979
|
+
display: flex;
|
|
3980
|
+
flex-direction: column;
|
|
3981
|
+
gap: var(--mantine-spacing-xxs);
|
|
3982
|
+
padding: 0;
|
|
3983
|
+
margin: 0;
|
|
3984
|
+
font-size: var(--mantine-font-size-sm);
|
|
3985
|
+
overflow-wrap: anywhere;
|
|
3986
|
+
list-style: none;
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3990
|
+
.mtya-section-nav-item,
|
|
3991
|
+
.mtya-rail-switcher {
|
|
3992
|
+
transition: none;
|
|
3993
|
+
}
|
|
3994
|
+
}
|