UNPKG

wetrade-design

Version:

一款多语言支持Vue3的UI框架

152 lines (151 loc) 3.13 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ /** gray-sp */ /** blue-sp */ /** green-sp */ /** red-sp */ /** orange-sp */ /** 品牌橙 */ /** 日落黄 */ /** 柠檬黄 */ /** 新生绿 */ /** 绿色 */ /** 碧涛青 */ /** 海蔚蓝 */ /** 品牌蓝色 */ /** 宝石蓝 */ /** 星空紫 */ /** 罗兰紫 */ /** 青春紫 */ /** 品红 */ /** 红色 */ /** 灰色 */ /** 保留ant色板 */ /** 绿色 */ /** 品牌蓝 */ .wd-layout { display: flex; flex: auto; flex-direction: column; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; background: #f0f2f5; } .wd-layout, .wd-layout * { box-sizing: border-box; } .wd-layout.wd-layout-has-sider { flex-direction: row; } .wd-layout.wd-layout-has-sider > .wd-layout, .wd-layout.wd-layout-has-sider > .wd-layout-content { width: 0; } .wd-layout-header, .wd-layout-footer { flex: 0 0 auto; } .wd-layout-header { height: 64px; padding: 0 50px; color: #1E1E29; line-height: 64px; background: #001529; } .wd-layout-footer { padding: 24px 50px; color: #1E1E29; font-size: 14px; background: #f0f2f5; } .wd-layout-content { flex: auto; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } .wd-layout-sider { position: relative; /* fix firefox can't set width smaller than content on flex item */ min-width: 0; background: #001529; transition: all 0.2s; } .wd-layout-sider-children { height: 100%; margin-top: -0.1px; padding-top: 0.1px; } .wd-layout-sider-children .wd-menu.wd-menu-inline-collapsed { width: auto; } .wd-layout-sider-has-trigger { padding-bottom: 48px; } .wd-layout-sider-right { order: 1; } .wd-layout-sider-trigger { position: fixed; bottom: 0; z-index: 1; height: 48px; color: #fff; line-height: 48px; text-align: center; background: #002140; cursor: pointer; transition: all 0.2s; } .wd-layout-sider-zero-width > * { overflow: hidden; } .wd-layout-sider-zero-width-trigger { position: absolute; top: 64px; right: -36px; z-index: 1; width: 36px; height: 42px; color: #fff; font-size: 18px; line-height: 42px; text-align: center; background: #001529; border-radius: 0 6px 6px 0; cursor: pointer; transition: background 0.3s ease; } .wd-layout-sider-zero-width-trigger::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: transparent; transition: all 0.3s; content: ''; } .wd-layout-sider-zero-width-trigger:hover::after { background: rgba(255, 255, 255, 0.1); } .wd-layout-sider-zero-width-trigger-right { left: -36px; border-radius: 6px 0 0 6px; } .wd-layout-sider-light { background: #fff; } .wd-layout-sider-light .wd-layout-sider-trigger { color: #1E1E29; background: #fff; } .wd-layout-sider-light .wd-layout-sider-zero-width-trigger { color: #1E1E29; background: #fff; } .wd-layout-rtl { direction: rtl; }