generator-xweb
Version:
Scaffold out a front-end rest web app, user bower and npm at same time
236 lines (225 loc) • 3.16 kB
text/less
/*layout*/
@media (min-width: 768px) {
html, body{
width:100%;
height:100%;
overflow-x: hidden;
}
.hbox{
display: table;
table-layout: fixed;
border-spacing:0;
width: 100%;
> aside,
> section{
display: table-cell;
vertical-align: top;
height: 100%;
padding: 0;
float: none;
&.show,
&.hidden-sm {
display: table-cell ;
}
}
&.stretch{
height:100%;
}
}
.vbox{
display: table;
border-spacing:0;
position: relative;
height: 100%;
width: 100%;
> section,
> footer {
position: absolute;
top: 0;
bottom: 0;
width: 100%;
}
> header{
~ section {
top: 50px;
}
}
> section{
&.w-f{
bottom: 50px;
}
}
> footer {
top: auto;
z-index: 1000;
~ section {
bottom: 50px;
}
}
&.flex{
> header,
> section,
> footer {
position: inherit;
}
> section{
display: table-row;
height: 100%;
> section {
position: relative;
height: 100%;
overflow: auto;
.ie & {
display: table-cell;
}
> section {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
}
}
}
}
.aside-xs{
width: 48px;
}
.aside{
width: 180px;
}
.aside-sm{
width: 150px;
}
.aside-md{
width: 200px;
}
.aside-lg{
width: 250px;
}
.aside-xl{
width: 300px;
}
.scrollable{
-webkit-overflow-scrolling:touch;
}
}
.hbox > aside,
.hbox > section{
padding: 0 ;
}
.header,
.footer{
min-height: 50px;
padding: 0 15px;
> p{
margin-top: 15px;
display: inline-block;
}
> .btn,
> .btn-group,
> .btn-toolbar,
{
margin-top: 10px;
}
> .btn-lg{
margin-top: 0;
}
.nav-tabs {
border: none;
margin-left: -15px;
margin-right: -15px;
> li {
a{
border: none ;
border-radius: 0;
padding-top: 15px;
padding-bottom: 15px;
line-height: 20px;
&:hover,
&:focus
{
background-color: transparent;
}
}
&.active a{
color: @text-color;
&,
&:hover{
background-color: @body-bg;
}
}
}
&.nav-white{
> li.active a{
&,
&:hover{
background-color: #fff;
}
}
}
}
&.navbar{
min-height: 0;
border-radius: 0;
border: none;
margin-bottom: 0;
}
}
.scrollable{
overflow-x: hidden;
overflow-y: auto;
}
.no-touch {
.scrollable.hover {
overflow-y: hidden;
&:hover
{
overflow: visible;
overflow-y: auto;
}
}
}
@media print {
html, body, .hbox, .vbox{
height: auto;
}
.vbox > section, .vbox > footer{
position: relative;
}
}
html.layout-box{
padding: 30px;
background-color: #161719;
&,
body,
.hbox,
.vbox{
height: auto;
}
.vbox{
> section,
> footer{
position: static;
}
}
}
::-webkit-scrollbar {
width: 7px;
height: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 1em;
background-color:rgba(50,50,50,0.3);
}
::-webkit-scrollbar-thumb:hover{
background-color:rgba(50,50,50,0.6);
}
::-webkit-scrollbar-track {
border-radius: 1em;
background-color:rgba(50,50,50,0.1);
}
::-webkit-scrollbar-track:hover{
background-color:rgba(50,50,50,0.2);
}