123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411 |
- /*layout*/
- html, body{
- width: 100%;
- height: 100%;
- }
- body{
- overflow-x: hidden;
- }
- .app{
- height: auto;
- min-height: 100%;
- width: 100%;
- position: relative;
- &:before{
- content: "";
- position: absolute;
- width: inherit;
- top: 0;
- bottom: 0;
- z-index: -1;
- background-color: @body-bg;
- border: inherit;
- display: block;
- }
- }
- .app-header-fixed{
- padding-top: @app-header-height;
- .app-header{
- position: fixed;
- top: 0;
- width: 100%;
- }
- }
- .app-header{
- z-index: 1025;
- border-radius: 0;
- }
- // menu
- .app-aside{
- float: left;
- &:before{
- content: "";
- position: absolute;
- width: inherit;
- top: 0;
- bottom: 0;
- z-index: -1;
- background-color: inherit;
- border: inherit;
- }
- }
- .app-aside-footer{
- position: absolute;
- bottom: 0;
- width: 100%;
- z-index: 1000;
- max-width: @app-aside-width;
- .app-aside-folded & {
- max-width: @app-aside-folded-width;
- }
- ~ div{
- padding-bottom: 50px;
- }
- }
- .app-aside-right{
- padding-bottom: @app-header-height;
- }
- // content
- .app-content{
- height: 100%;
- .clearfix();
- }
- .app-content-full{
- position: absolute;
- top: @app-header-height;
- bottom: @app-header-height;
- height: auto;
- width: auto !important;
- padding: 0 !important;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- &.h-full{
- bottom: 0;
- height: auto;
- }
- }
- .app-content-body{
- padding-bottom: @app-header-height;
- float: left;
- width: 100%;
- }
- // footer
- .app-footer{
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 1005;
- &.app-footer-fixed{
- position: fixed;
- }
- }
- .hbox{
- display: table;
- table-layout: fixed;
- border-spacing: 0;
- width: 100%;
- height: 100%;
- .col{
- display: table-cell;
- vertical-align: top;
- height: 100%;
- float: none;
- }
- }
- .v-middle{vertical-align: middle !important;}
- .v-top{vertical-align: top !important;}
- .v-bottom{vertical-align: bottom !important;}
- .vbox{
- display: table;
- border-spacing:0;
- position: relative;
- width: 100%;
- height: 100%;
- min-height: 240px;
- .row-row {
- display: table-row;
- height: 100%;
- .cell {
- position: relative;
- height: 100%;
- width: 100%;
- -webkit-overflow-scrolling:touch;
- overflow: auto;
- .ie & {
- display: table-cell;
- }
- .cell-inner {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- }
- }
- }
- }
- // navbar
- .navbar{
- .navbar-form-sm{
- margin-top: 10px;
- margin-bottom: 10px;
- }
- border-width: 0;
- border-radius: 0;
- margin: 0;
- }
- .navbar-md{
- min-height: @app-header-md-height;
- .navbar-btn{
- margin-top: 13px;
- }
- .navbar-form{
- margin-top: 15px;
- }
- .navbar-nav > li > a{
- padding-top: 20px;
- padding-bottom: 20px;
- }
- .navbar-brand{
- line-height: 60px;
- }
- }
- .navbar-header{
- > button{
- text-decoration: none;
- line-height: 30px;
- font-size: 16px;
- padding: 10px 17px;
- border: none;
- background-color: transparent;
- }
- }
- .navbar-brand{
- float: none;
- text-align: center;
- font-size: 20px;
- font-weight: 700;
- height: auto;
- line-height: @app-header-height;
- display: inline-block;
- padding: 0 20px;
- &:hover{
- text-decoration: none;
- }
- img{
- max-height: 20px;
- margin-top: -4px;
- vertical-align: middle;
- }
- }
- @media (min-width: 768px) {
- .app-aside,
- .navbar-header {
- width: @app-aside-width;
- }
- .navbar-collapse,
- .app-content,
- .app-footer{
- margin-left: @app-aside-width;
- }
- .app-aside-right{
- position: absolute;
- top: @app-header-height;
- bottom: 0;
- right: 0;
- z-index: 1000;
- &.pos-fix{
- z-index: 1010;
- }
- }
- .visible-folded{display: none;}
- .app-aside-folded{
- .hidden-folded{
- display: none !important;
- }
- .visible-folded{
- display: inherit;
- }
- .text-center-folded{
- text-align: center;
- }
- .pull-none-folded{
- float: none !important;
- }
- .w-auto-folded{
- width: auto;
- }
- .app-aside,
- .navbar-header {
- width: @app-aside-folded-width;
- }
- .navbar-collapse,
- .app-content,
- .app-footer{
- margin-left: @app-aside-folded-width;
- }
- .app-header{
- .navbar-brand{
- display: block;
- padding: 0;
- }
- }
-
- }
- .app-aside-fixed{
- .app-header{
- .navbar-header{
- position: fixed;
- }
- }
- .aside-wrap{
- position: fixed;
- overflow: hidden;
- top: @app-header-height;
- bottom: 0;
- left: 0;
- width: @app-aside-width;
- z-index: 1000;
- .navi-wrap{
- width: @app-aside-width + @scroll-bar-width;
- position: relative;
- height: 100%;
- overflow-x:hidden;
- overflow-y: scroll;
- -webkit-overflow-scrolling: touch;
- &::-webkit-scrollbar {
- -webkit-appearance: none;
- }
- &::-webkit-scrollbar:vertical {
- width: @scroll-bar-width;
- }
- }
- .smart & .navi-wrap{
- width: @app-aside-width;
- }
- }
- &.app-aside-folded{
- .app-aside{
- position: fixed;
- top: 0;
- bottom: 0;
- z-index: 1010;
- }
- .aside-wrap{
- width: @app-aside-folded-width;
- .navi-wrap{
- width: @app-aside-folded-width + @scroll-bar-width;
- }
- .smart & .navi-wrap{
- width: @app-aside-folded-width;
- }
- }
- }
- }
- .bg-auto{
- &:before{
- content: "";
- position: absolute;
- width: inherit;
- top: 0;
- bottom: 0;
- z-index: -1;
- background-color: inherit;
- border: inherit;
- }
- &.b-l:before{
- margin-left: -1px;
- }
- &.b-r:before{
- margin-right: -1px;
- }
- }
- .col.show{
- display: table-cell !important;
- }
- }
- // sm
- @media (min-width: 768px) and (max-width: 991px) {
- .hbox-auto-sm{
- display: block;
- > .col{
- width: auto;
- height: auto;
- display: block;
- &.show{
- display: block !important;
- }
- }
- }
- }
- // xs
- @media (max-width: 767px) {
- .app-aside{
- float: none;
- }
- .app-content-full{
- width: 100% !important;
- }
- .hbox-auto-xs{
- display: block;
- > .col{
- width: auto;
- height: auto;
- display: block;
- }
- }
- .navbar-nav{
- margin-top: 0;
- margin-bottom: 0;
- > li > a{
- box-shadow:0 -1px 0 rgba(0,0,0,0.1);
- .up{
- top: 0;
- }
- .avatar{
- width: 30px;
- margin-top: -5px;
- }
- }
- .open .dropdown-menu{
- background-color: #fff;
- }
- }
- .navbar-form{
- box-shadow:0 -1px 0 rgba(0,0,0,0.1);
- margin-top: 0 !important;
- margin-bottom: 0 !important;
- .form-group{
- margin-bottom: 0;
- }
- }
- }
|