| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /** 全局 CSS 变量,这种变量不仅可以在 CSS 和 SCSS 中使用,还可以导入到 JS 中使用 */
- :root {
- /** 全局背景色 */
- --v3-body-bg-color: #f6f8f9;;
- /** Header 区域 = NavigationBar 组件 + TagsView 组件 */
- --v3-header-height: calc(var(--v3-navigationbar-height) + var(--v3-tagsview-height));
- --v3-header-bg-color: #ffffff;
- /** NavigationBar 组件 */
- --v3-navigationbar-height: 50px;
- /** Sidebar 组件(左侧模式全部生效、顶部模式全部不生效、混合模式非颜色部分生效) */
- --v3-sidebar-width: 168px;
- --v3-sidebar-hide-width: 58px;
- --v3-sidebar-menu-item-height: 60px;
- --v3-sidebar-menu-tip-line-bg-color: var(--el-color-primary);
- --v3-sidebar-menu-bg-color: #001428;
- --v3-sidebar-menu-hover-bg-color: #409eff10;
- --v3-sidebar-menu-text-color: #c0c4cc;
- --v3-sidebar-menu-active-text-color: #ffffff;
- /** TagsView 组件 */
- --v3-tagsview-height: 34px;
- --v3-tagsview-tag-text-color: #495060;
- --v3-tagsview-tag-active-text-color: #ffffff;
- --v3-tagsview-tag-bg-color: #ffffff;
- --v3-tagsview-tag-active-bg-color: var(--el-color-primary);
- --v3-tagsview-tag-border-radius: 2px;
- --v3-tagsview-tag-border-color: #d8dce5;
- --v3-tagsview-tag-active-border-color: var(--el-color-primary);
- --v3-tagsview-tag-active-before-color: #ffffff;
- --v3-tagsview-tag-icon-hover-bg-color: #00000030;
- --v3-tagsview-tag-icon-hover-color: #ffffff;
- /** RightPanel 组件 */
- --v3-rightpanel-button-bg-color: #001428;
- }
- /** 内容区放大时,将不需要的组件隐藏 */
- body.content-large {
- /** Header 区域 = TagsView 组件 */
- --v3-header-height: var(--v3-tagsview-height);
- /** NavigationBar 组件 */
- --v3-navigationbar-height: 0px;
- /** Sidebar 组件 */
- --v3-sidebar-width: 0px;
- --v3-sidebar-hide-width: 0px;
- }
|