UNPKG

vue-ant-patterns

Version:

vue-ant-patterns

97 lines (91 loc) 1.85 kB
@import '../../style/themes/index.less'; @import '../../style/mixins/flex.less'; .sider-layout-sider (@prefix) { .@{prefix} { width: @sider-width + @padding-md; padding-left: 0; padding-right: @padding-md; position: relative; // transition: width 0.3s; // 备选 // min-height: 100%; // height: 100%; .flex; // .flex-col; // .flex-grow; flex-grow: 0; flex-shrink: 0; flex-basis: @sider-width + @padding-md; overflow-x: hidden; // .flex; &.v-line { &:after { content: ' '; position: absolute; width: 1px; top: 0; right: 0; bottom: 0; left: auto; background: #dee3eb; } } &&-layout-direction-left { padding-left: 0; padding-right: 0; width:100%; height:100% } &&-layout-direction-right { padding-right: 0; padding-left: @padding-md; } &&-layout-direction-right.v-line { &:after { left: 0; right: auto; } } & .sider-collapse-button { height: 40px; .ant-button { margin-right: 0; } // position: absolute; top: 0; right: 0; } &&-right { & .sider-collapse-button { right: auto; left: 0; } } & &-inner { position: relative; // width: 100%; // height: 100%; display: flex; flex: 1; flex-direction: column; // overflow: hidden; } // &.side-scroll { // & &-inner { // height: 100%; // } // } } .sider-collapse-button { height: 40px; .ant-btn { margin: 0; } } // .@{prefix}-layout-collapsed .sider-collapse-button { // height: 40px !important; // left: 0; // right: 0; // justify-content: center; // } }