@chayns-components/person-finder
Version:
A set of beautiful React components for developing your own applications with chayns.
54 lines (48 loc) • 2.41 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledPersonFinderBodyContent = exports.StyledPersonFinderBody = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
const StyledPersonFinderBody = exports.StyledPersonFinderBody = _styledComponents.default.div`
display: flex;
flex-direction: column;
height: 300px;
`;
const StyledPersonFinderBodyContent = exports.StyledPersonFinderBodyContent = _styledComponents.default.div`
height: 100%;
overflow-y: auto;
padding-bottom: 10px;
// Styles for custom scrollbar
${({
$browser,
theme
}) => $browser === 'firefox' ? (0, _styledComponents.css)`
scrollbar-color: rgba(${theme['text-rgb']}, 0.15) transparent;
scrollbar-width: thin;
` : (0, _styledComponents.css)`
&::-webkit-scrollbar {
width: 10px;
height: 10px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-button {
background-color: transparent;
height: 5px;
width: 5px;
}
&::-webkit-scrollbar-thumb {
background-color: rgba(${theme['text-rgb']}, 0.15);
border-radius: 20px;
background-clip: padding-box;
border: solid 3px transparent;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
`}
`;
//# sourceMappingURL=PersonFinderBody.styles.js.map