import{n as e}from"./chunk-BneVvdWh.js";import{t}from"./jsx-runtime-C2wGStra.js";import{l as n,o as r}from"./iframe-D-oZzXNK.js";import{r as i}from"./react-B8jdHdWa.js";import{t as a}from"./mdx-react-shim-8vvjMMnP.js";function o(e){let t={code:`code`,h1:`h1`,p:`p`,pre:`pre`,strong:`strong`,...i(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{title:`Guides/Custom Components/Scss/Hover`}),`
`,(0,c.jsx)(t.h1,{id:`scss-hover`,children:`SCSS: Hover`}),`
`,(0,c.jsxs)(`details`,{style:{marginBlock:`24px`},children:[(0,c.jsx)(`summary`,{children:`🚧 SCSS Support is experimental 🚧`}),(0,c.jsx)(t.p,{children:`SCSS support was introduced due to the lack of support for LESS in the Next.js app router.`}),(0,c.jsx)(t.p,{children:`Please avoid using it for other purposes, as the API may change or be removed in the future.`})]}),`
`,(0,c.jsxs)(t.p,{children:[`Import `,(0,c.jsx)(t.code,{children:`hover.scss`}),` from `,(0,c.jsx)(t.code,{children:`@preply/ds-web-core`}),` and use the `,(0,c.jsx)(t.code,{children:`onHover`}),` mixin to show hover only for `,(0,c.jsx)(t.strong,{children:`Desktops with mouse`}),`:`]}),`
`,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{className:`language-css`,children:`@use '@preply/ds-web-core/dist/generated/tokens' as *;
@use '@preply/ds-web-core/dist/generated/hover' as *;

.MyComponent {
    background: lightblue;
    padding: $spacing-16;

    @include onHover {
        background: lightpink;
    }
}
`})})]})}function s(e={}){let{wrapper:t}={...i(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}var c;e((()=>{c=t(),a(),n()}))();export{s as default};