ygd
Version:
An enterprise-class UI design language and React-based implementation
110 lines (109 loc) • 2.38 kB
CSS
/* 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 */
.yg-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;
}
.yg-layout,
.yg-layout * {
box-sizing: content-box;
}
.yg-layout.yg-layout-has-sider {
flex-direction: row;
}
.yg-layout.yg-layout-has-sider > .yg-layout,
.yg-layout.yg-layout-has-sider > .yg-layout-content {
overflow-x: hidden;
}
.yg-layout-header,
.yg-layout-footer {
flex: 0 0 auto;
}
.yg-layout-header {
height: 64px;
padding: 0 50px;
line-height: 64px;
background: #001529;
}
.yg-layout-footer {
padding: 50px 20px 10px 20px;
color: #333;
font-size: 12px;
background: #f0f2f5;
}
.yg-layout-content {
flex: auto;
/* fix firefox can't set height smaller than content on flex item */
min-height: 0;
}
.yg-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;
}
.yg-layout-sider-children {
height: 100%;
margin-top: -0.1px;
padding-top: 0.1px;
}
.yg-layout-sider-has-trigger {
padding-bottom: 48px;
}
.yg-layout-sider-right {
order: 1;
}
.yg-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;
}
.yg-layout-sider-zero-width > * {
overflow: hidden;
}
.yg-layout-sider-zero-width-trigger {
position: absolute;
top: 64px;
right: -36px;
width: 36px;
height: 42px;
color: #fff;
font-size: 18px;
line-height: 42px;
text-align: center;
background: #001529;
border-radius: 0 2px 2px 0;
cursor: pointer;
transition: background 0.3s ease;
}
.yg-layout-sider-zero-width-trigger:hover {
background: #192c3e;
}
.yg-layout-sider-zero-width-trigger-right {
left: -36px;
}
.yg-layout-sider-light {
background: #fff;
}
.yg-layout-sider-light .yg-layout-sider-trigger {
color: #333;
background: #fff;
}
.yg-layout-sider-light .yg-layout-sider-zero-width-trigger {
color: #333;
background: #fff;
}