dumi-theme-lobehub
Version:
dumi-theme-lobehub is a documentation site theme package designed for dumi2. It provides a more beautiful and user-friendly development and reading experience based on @lobehub/ui
13 lines • 1.82 kB
JavaScript
var _templateObject, _templateObject2;
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
import { createStaticStyles, cx } from 'antd-style';
import { lobeStaticStylish } from "../../styles";
var prefixCls = 'ant';
export var styles = createStaticStyles(function (_ref) {
var css = _ref.css,
cssVar = _ref.cssVar;
return {
button: cx("".concat(prefixCls, "-button"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n all: unset;\n\n cursor: default;\n user-select: none;\n\n padding: 8px;\n\n font-size: ", ";\n line-height: 0;\n color: ", ";\n\n background: ", ";\n\n border: 1px solid ", ";\n border-radius: ", ";\n\n -webkit-tap-highlight-color: transparent;\n\n &:focus-visible {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n "])), lobeStaticStylish.buttonDefaultHover, cssVar.fontSize, cssVar.colorTextSecondary, cssVar.colorBgContainer, cssVar.colorBorder, cssVar.borderRadius, cssVar.colorPrimary, cssVar.colorPrimaryBg)),
container: cx(prefixCls, css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n user-select: none;\n scrollbar-width: none;\n\n overflow-y: auto;\n overscroll-behavior: contain;\n\n box-sizing: border-box;\n width: 160px;\n padding: 5px;\n border: 1px solid ", ";\n border-radius: 8px;\n\n font-size: ", ";\n\n background: ", ";\n outline: 0;\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n display: none;\n }\n "])), cssVar.colorBorder, cssVar.fontSize, cssVar.colorBgElevated, cssVar.boxShadowSecondary))
};
});