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
20 lines (19 loc) • 1.14 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 } from 'antd-style';
/**
* 静态 stylish 工具函数
* 用于 createStaticStyles 中替代动态 stylish
*/
var _lobeStaticStylish = createStaticStyles(function (_ref) {
var css = _ref.css,
cssVar = _ref.cssVar;
return {
buttonDefaultHover: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: all 0.2s;\n\n &:hover {\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])), cssVar.colorFillTertiary, cssVar.colorFill),
resetLinkColor: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n text-decoration: none;\n\n &:hover {\n color: ", ";\n }\n "])), cssVar.colorText, cssVar.colorPrimary)
};
});
export var lobeStaticStylish = {
buttonDefaultHover: _lobeStaticStylish.buttonDefaultHover,
resetLinkColor: _lobeStaticStylish.resetLinkColor
};