UNPKG

vue-ant-patterns

Version:

vue-ant-patterns

190 lines (189 loc) 4.68 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 */ /* 命名规则, 三部分 className .flex-侧轴 .flex-主轴 .flex-侧轴-主轴 */ .depot-layout { position: relative; z-index: 2; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; } .depot-layout-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 12px 24px; background-color: #4b5873; color: #ffffff; height: 64px; overflow: hidden; } .depot-layout-content { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; } .depot-layout-content-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } .depot-layout-content-column { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .depot-sider-layout { width: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .depot-sider { width: 256px; padding-left: 0; padding-right: 16px; position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0; -ms-flex-negative: 0; flex-shrink: 0; -ms-flex-preferred-size: 256px; flex-basis: 256px; overflow-x: hidden; } .depot-sider.v-line:after { content: ' '; position: absolute; width: 1px; top: 0; right: 0; bottom: 0; left: auto; background: #dee3eb; } .depot-sider.depot-sider-layout-direction-left { padding-left: 0; padding-right: 0; width: 100%; height: 100%; } .depot-sider.depot-sider-layout-direction-right { padding-right: 0; padding-left: 16px; } .depot-sider.depot-sider-layout-direction-right.v-line:after { left: 0; right: auto; } .depot-sider .sider-collapse-button { height: 40px; top: 0; right: 0; } .depot-sider .sider-collapse-button .ant-button { margin-right: 0; } .depot-sider.depot-sider-right .sider-collapse-button { right: auto; left: 0; } .depot-sider .depot-sider-inner { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; } .sider-collapse-button { height: 40px; } .sider-collapse-button .ant-btn { margin: 0; } .depot-sider-layout-content { min-height: 100%; padding-left: 16px; width: calc(100% - (240px + 16px)); -ms-flex-preferred-size: calc(100% - (240px + 16px)); flex-basis: calc(100% - (240px + 16px)); } .depot-sider-layout-close > .depot-sider { -ms-flex-preferred-size: 0; flex-basis: 0; } .depot-sider-layout-close > .depot-sider-layout-content { width: 100%; -ms-flex-preferred-size: 100%; flex-basis: 100%; } .depot-sider-layout.depot-sider-layout-left .depot-sider-layout-content { padding-right: 0; padding-left: 16px; } .depot-sider-layout.depot-sider-layout-right .depot-sider-layout-content { padding-left: 0; padding-right: 16px; } .depot-sider-layout.depot-sider-layout-collapsed > .depot-sider { width: 64px; -ms-flex-preferred-size: 64px; flex-basis: 64px; } .depot-sider-layout.depot-sider-layout-collapsed > .depot-sider-layout-content { width: calc(100% - (48px + 16px)); -ms-flex-preferred-size: calc(100% - (48px + 16px)); flex-basis: calc(100% - (48px + 16px)); } .depot-sider-layout.depot-sider-layout-extends > .depot-sider { width: 256px; -ms-flex-preferred-size: 256px; flex-basis: 256px; } .depot-sider-layout.depot-sider-layout-extends > .depot-sider-layout-content { width: calc(100% - (240px + 16px)); -ms-flex-preferred-size: calc(100% - (240px + 16px)); flex-basis: calc(100% - (240px + 16px)); }