UNPKG

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.6 kB
var _templateObject, _templateObject2, _templateObject3; 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'; var prefixCls = 'ant'; export var styles = createStaticStyles(function (_ref) { var css = _ref.css, cssVar = _ref.cssVar; return { active: cx("".concat(prefixCls, "-item-active"), css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n "])), cssVar.colorFillTertiary)), item: cx("".concat(prefixCls, "-item"), css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n all: unset;\n\n user-select: none;\n scroll-margin: 50px;\n\n display: block;\n\n box-sizing: inherit;\n width: 100%;\n padding: 12px 10px;\n border-radius: 5px;\n\n font-family: ", ";\n font-weight: normal;\n line-height: 1;\n color: ", ";\n\n background: transparent;\n\n &:hover {\n background: ", ";\n }\n "])), cssVar.fontFamily, cssVar.colorText, cssVar.colorFillTertiary)), selected: cx("".concat(prefixCls, "-item-selected"), css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-weight: bold;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n "])), cssVar.colorPrimaryText, cssVar.colorPrimaryBg, cssVar.colorPrimaryTextHover, cssVar.colorPrimaryBgHover)) }; });