acud
Version:
acg react 组件库
122 lines (121 loc) • 2.45 kB
CSS
/* color */
/* 默认颜色 */
/* 通用-icon */
/* 标签 */
/* 默认颜色 */
/* 其他颜色 */
/* 通用 */
/* 水平 */
/* 垂直 */
/* 序号水平 */
/* 序号垂直 */
.acud-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;
}
.acud-layout,
.acud-layout * {
box-sizing: border-box;
}
.acud-layout.acud-layout-has-sider {
flex-direction: row;
}
.acud-layout.acud-layout-has-sider > .acud-layout,
.acud-layout.acud-layout-has-sider > .acud-layout-content {
width: 0;
}
.acud-layout-header,
.acud-layout-footer {
flex: 0 0 auto;
}
.acud-layout-header {
height: 64px;
padding: 0 50px;
color: #151B26;
line-height: 64px;
background: #001529;
}
.acud-layout-footer {
padding: 24px 50px;
color: #151B26;
font-size: 12px;
background: #f0f2f5;
}
.acud-layout-content {
flex: auto;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
}
.acud-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;
}
.acud-layout-sider-children {
height: 100%;
margin-top: -0.1px;
padding-top: 0.1px;
}
.acud-layout-sider-children .acud-menu.acud-menu-inline-collapsed {
width: auto;
}
.acud-layout-sider-has-trigger {
padding-bottom: 48px;
}
.acud-layout-sider-right {
order: 1;
}
.acud-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;
}
.acud-layout-sider-zero-width > * {
overflow: hidden;
}
.acud-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 0px 0px 0;
cursor: pointer;
transition: background 0.3s ease;
}
.acud-layout-sider-zero-width-trigger::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
transition: all 0.3s;
content: '';
}
.acud-layout-sider-zero-width-trigger:hover::after {
background: rgba(255, 255, 255, 0.1);
}
.acud-layout-sider-zero-width-trigger-right {
left: -36px;
border-radius: 0px 0 0 0px;
}