UNPKG

gov-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

107 lines (106 loc) 2.38 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 */ .gov-layout { display: flex; flex-direction: column; flex: auto; background: #f0f2f5; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } .gov-layout, .gov-layout * { box-sizing: border-box; } .gov-layout.gov-layout-has-sider { flex-direction: row; } .gov-layout.gov-layout-has-sider > .gov-layout, .gov-layout.gov-layout-has-sider > .gov-layout-content { overflow-x: hidden; } .gov-layout-header, .gov-layout-footer { flex: 0 0 auto; } .gov-layout-header { background: #001529; padding: 0 50px; height: 64px; line-height: 64px; } .gov-layout-footer { background: #f0f2f5; padding: 24px 50px; color: rgba(0, 0, 0, 0.65); font-size: 14px; } .gov-layout-content { flex: auto; /* fix firefox can't set height smaller than content on flex item */ min-height: 0; } .gov-layout-sider { transition: all 0.2s; position: relative; background: #001529; /* fix firefox can't set width smaller than content on flex item */ min-width: 0; } .gov-layout-sider-children { height: 100%; padding-top: 0.1px; margin-top: -0.1px; } .gov-layout-sider-has-trigger { padding-bottom: 48px; } .gov-layout-sider-right { order: 1; } .gov-layout-sider-trigger { position: fixed; text-align: center; bottom: 0; cursor: pointer; height: 48px; line-height: 48px; color: #fff; background: #002140; z-index: 1; transition: all 0.2s; } .gov-layout-sider-zero-width > * { overflow: hidden; } .gov-layout-sider-zero-width-trigger { position: absolute; top: 64px; right: -36px; text-align: center; width: 36px; height: 42px; line-height: 42px; background: #001529; color: #fff; font-size: 18px; border-radius: 0 4px 4px 0; cursor: pointer; transition: background 0.3s ease; } .gov-layout-sider-zero-width-trigger:hover { background: #192c3e; } .gov-layout-sider-light { background: #fff; } .gov-layout-sider-light .gov-layout-sider-trigger { color: rgba(0, 0, 0, 0.65); background: #fff; } .gov-layout-sider-light .gov-layout-sider-zero-width-trigger { color: rgba(0, 0, 0, 0.65); background: #fff; }