UNPKG

polestar-ui-kit

Version:

## Install

257 lines (232 loc) 7.13 kB
@import "../mixins/index"; @ps-layout-prefix-cls: ~"@{polestar-prefix}-layout"; .@{ps-layout-prefix-cls} { &-wrapper * { box-sizing: border-box; } /*grid 버그로 추가 수정*/ &-wrapper .page-grid{ display: grid; height: 100% } &-wrapper { display: flex; flex-direction: column; margin: 0; padding: 0; } &-header { // line-height: 3; z-index: 100; position: sticky; top: 0; margin: 0; // padding: 0 13px 0 0; width: 100%; display: block; background: @primary-6; border-bottom: 1px solid @gray-2; .@{mega-prefix-cls} { // z-index: 30101; position: relative; line-height: 50px; > ul { margin: 0; list-style: none; white-space: nowrap; float: left; background-color: red; width: calc(100% - 390px); //background: @primary-6; > li { display: inline-block; margin: 0 10px 0 0; &:hover { > a { background: @primary-7; color: @white; } } > i { padding: 0 0 0 5px; color: @primary-2 !important; } > a { display: inline-block; padding: 0 5px 0 5px; color: @gray-1; font-size: @font-size-base; text-align: center; // text-transform: uppercase; // line-height: 40px; text-decoration: none; // &:hover { // color: @white; // } } } } }} &-navbar { &-logo { float: left; padding: 6px 10px 6px 20px; width: 220px; height: 50px; background: @primary-color; line-height: 38px; } &-nav { //float: left; // margin: 0 0 0 15px; } &-item { float: right !important; width: 140px; button.ps-button { height: 100%; padding: 10px 13px !important; //border: unset; border: none ; border-left: @border-width-base @border-style-base @primary-5; //border-radius: unset; border-radius: 0; background-color: transparent; color: @primary-2; font-size: @font-size-lg2; &:hover, &:active, &:focus { background: @primary-7; color: @white; } &:after { border: 0 solid @gray-6; } } .ps-button-container:first-child { button.ps-button { border-left: none; } } } } &-container { display: flex; flex: 1 1 0%; } &-leftside { z-index: 99; flex: 0 0 auto; // flex: 0 0 269px !important; background-color: @white; margin: 0; padding: 0; &-content { position: sticky; top: 51px; width: 315px; // left width는 여기서 정해야 함 // width: auto !important; max-height : calc(100vh ~'-' 50px); height: calc(100vh ~'-' 45px); overflow: hidden; // overflow-y: auto; padding: 0; } &-resizer { position: fixed; top: 0;//49px; left: 315px; // left width 값에 맞춰서 정해야 함 z-index: 99; width: 5px; height: 100% !important; margin: 0; border-left: @border-width-base @border-style-base @gray-2; cursor: col-resize; } &-toggle-button { position: fixed; top: 50%; left: 314px; width: 13px; height: 46px; background: @gray-1; border-top: @border-width-base @border-style-base @gray-2; border-right: @border-width-base @border-style-base @gray-2; border-bottom: @border-width-base @border-style-base @gray-2; border-left: @border-width-base2 @border-style-base @gray-2; border-radius: 0 3px 3px 0; padding: 9px 2px; cursor: pointer; z-index: 100; &-collapse:before { .ps-iconfont("\E073"); } &-expand:before { .ps-iconfont("\E074"); } /* &.@{ps-layout-prefix-cls} { &-leftside { &-collapse:before { content: '\E058'; color: green; } &-expand:before { content: '\E057'; color: orange; } } } */ } } &-main { flex: 1 1 0%; margin: 0; padding: 0; width: 0 !important; } &-breadcrumb { position: sticky; top: 51px; width: 100%; z-index: 98; background-color: @white; border-bottom: 1px solid @gray-2; padding: 5px 24px; height: 30px; } &-content { // overflow: hidden; // overflow-y: auto; display: flex; padding: 0 20px; min-height: calc(100% ~'-' 58px); //margin: 20px 0; // height : calc(100% ~'-' 64px); // min-height: 800px; > div { width: 100%; // height: 100%; >> CRUD화면 레이아웃 재배치 필요 .page-content{ background: @white; height:calc(100% - 13px); display: flex; flex-direction: column; //flex: 0 0 auto; } } } &-footer { // position: fixed; // bottom: 0; width: 100%; z-index: 9999; // margin: 10px 0 0 0; padding: 5px 20px; text-align: right; font-size: @font-size-sm; color: @gray-5; background-color: @gray-1; border-top: @border-width-base @border-style-base @border-color-split; } }