generator-xweb
Version:
Scaffold out a front-end rest web app, user bower and npm at same time
611 lines (553 loc) • 9.63 kB
text/less
// Body reset
// -------------------------
body {
font-family: @font-family-base;
font-size: @font-size-base;
color: @text-color;
background-color: @body-bg;
// -webkit-font-smoothing: antialiased;
}
.h1, .h2, .h3, .h4, .h5, .h6 {
margin: 0;
}
// Links
// -------------------------
a {
color: @link-color;
text-decoration: none;
}
a:hover,
a:focus {
color: @link-hover-color;
text-decoration: none;
}
.badge{
background-color: @badge-bg;
&.up{
position: relative;
top: -10px;
padding:3px 6px;
}
}
label{font-weight: 600}
.label-sm{
padding-top: 0;
padding-bottom: 0;
}
.text-primary{
color: @brand-primary;
}
.text-info{
color: @brand-info;
}
.text-success{
color: @brand-success;
}
.text-warning{
color: @brand-warning;
}
.text-danger{
color: @brand-danger;
}
.text-white {
color: #fff;
}
.text-muted {
color: @text-muted;
}
small{font-size:90%}
.badge-white {
background-color: transparent;
border: 1px solid rgba(255,255,255,0.35);
padding: 2px 6px;
}
.badge-hollow {
background-color: transparent;
border: 1px solid rgba(0,0,0,0.15);
color: inherit;
}
.caret-white{
border-top-color: #fff;
border-top-color: rgba(255,255,255,.65);
a:hover & {
border-top-color: #fff;
}
}
.tooltip-inner{
background-color: @tooltip-fallback-color;
background-color: @tooltip-color;
}
.tooltip {
&.top .tooltip-arrow {
border-top-color: @tooltip-fallback-color;
border-top-color: @tooltip-color;
}
&.right .tooltip-arrow {
border-right-color: @tooltip-fallback-color;
border-right-color: @tooltip-color;
}
&.bottom .tooltip-arrow {
border-bottom-color: @tooltip-fallback-color;
border-bottom-color: @tooltip-color;
}
&.left .tooltip-arrow {
border-left-color: @tooltip-fallback-color;
border-left-color: @tooltip-color;
}
}
.popover-content{
font-size: 12px;
line-height: 1.5
}
.progress-xs{
height: 6px
}
.progress-sm{
height: 10px;
.progress-bar{
font-size: 10px;line-height: 1em
}
}
.breadcrumb{
background-color: #fff;
border:1px solid @border-color;
padding-left: 10px;
font-size: 12px;
}
.accordion-group,
.accordion-inner{
border-color: @border-color;
border-radius: @border-radius-base;
}
.alert{
font-size: 85%;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
.close i{
font-size: 12px;
font-weight: normal;
display: block;
}
}
.form-control{
border-color: @input-border;
&,
&:focus {
.box-shadow(none);
}
}
.input-s-sm{
width: 120px
}
.input-s{
width: 200px
}
.input-s-lg{
width: 250px
}
.input-group-addon{
border-color: @input-border;
background-color: lighten(@brand-light, 3%);
}
.list-group{
border-radius: @border-radius-base;
&.no-radius {
.list-group-item{
border-radius: 0 ;
}
}
&.no-borders {
.list-group-item{
border: none;
}
}
&.no-border{
.list-group-item{
border-width: 1px 0;
}
}
&.no-bg{
.list-group-item{
background-color: transparent;
}
}
}
.list-group-item{
border-color: @border-color;
padding-right: 15px;
&.media {
margin-top: 0;
}
&.active {
border-color: @brand-info ;
background-color: @brand-info ;
&,
.text-muted{
color: lighten(@brand-info, 30%);
}
a{
color: #fff;
}
}
.list-group-alt & {
&:nth-child(2n+2){
background-color: rgba(0,0,0,0.02);
}
}
.list-group-lg & {
padding-top: 15px;
padding-bottom: 15px;
}
.list-group-sp & {
margin-bottom: 5px;
border-radius: 3px;
}
> .badge{
margin-right: 0;
}
> .fa-chevron-right {
float: right;
margin-top: 4px;
margin-right: -5px;
& + .badge{
margin-right: 5px;
}
}
}
.nav-pills{
&.no-radius {
> li{
> a {
border-radius: 0;
}
}
}
> li{
&.active {
> a{
color: #fff ;
background-color: @brand-info ;
}
}
}
}
.nav{
&.nav-sm{
> li > a{
padding: 6px 8px;
}
}
> li > a{
.avatar{
width: 30px;
}
}
}
.panel{
border-radius: @panel-border-radius;
border-color: @panel-border;
&.no-borders{
border-width: 0;
.panel-heading,
.panel-footer{
border-width: 0;
}
}
.table-responsive{
border-color: #e0e4e8;
}
.table{
td,
th {
padding:6px 15px;
border-top: 1px solid #eaedef;
}
thead > tr > th{
border-bottom: 1px solid #e0e4e8;
}
}
.table-striped{
> tbody {
> tr{
&:nth-child(odd){
> td,
> th{
background-color: #fcfdfe;
}
}
}
}
> thead {
th{
background: #fafbfc;
border-right: 1px solid #e0e4e8;
&:last-child{
border-right: none
}
}
}
}
}
.panel-heading{
border-color: @panel-border;
background-color: @panel-heading-bg;
border-radius: @panel-border-radius @panel-border-radius 0 0;
&.bg{
margin:-1px -1px 0 -1px;
border: none;
.list-group-item{
border-color:transparent;
> a{
color: #fff
}
}
}
.nav{
font-size:13px;
margin: -10px -15px -11px;
border: none;
> li > a{
border-radius: 0;margin:0;border-width: 0;
}
}
.nav-tabs{
&.nav-justified{
width: auto;
}
&.nav-justified,
&.pull-left{
> li:first-child{
> a{
border-radius: @panel-border-radius 0 0 0;
}
}
}
&.nav-justified,
&.pull-right{
> li:last-child{
> a{
border-radius: 0 @panel-border-radius 0 0;
}
}
}
> li{
> a{
line-height: 1.5;
&:hover,
&:focus{
border-width:0;
background: transparent;
border-color: transparent;
}
}
&.active{
> a {
&,
&:hover,
&:focus{
color: @text-color;
background:#fff;
}
}
}
}
}
.list-group{
background: transparent;
}
}
.panel-footer{
border-color: @panel-border;
background-color: @panel-footer-bg;
border-radius: 0 0 @panel-border-radius @panel-border-radius;
}
.panel-group .panel-heading + .panel-collapse .panel-body{
border-top: 1px solid #eaedef;
}
.open{
z-index: 1050;
position: relative;
}
.dropdown-menu{
font-size: 13px;
border-radius: @border-radius-base;
.box-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
border: 1px solid #ddd;
border: 1px solid rgba(0, 0, 0, 0.1);
&.pull-left{
left:100%;
}
> .panel{
border: none;
margin: -5px 0;
}
> li > a{
padding: 5px 15px;
}
> li > a:hover,
> li > a:focus,
> .active > a,
> .active > a:hover,
> .active > a:focus{
background-image: none;
filter:none;
background-color: @brand-dark;
color: #fff;
}
}
.dropdown-header{
padding: 5px 15px;
}
.dropdown-submenu{
position: relative;
&:hover,
&:focus{
> a{
background-color: @brand-dark;
color: #fff;
}
> .dropdown-menu {
display: block;
}
}
&.pull-left{
float: none ;
> .dropdown-menu{
left: -100%;
margin-left: 10px;
}
}
.dropdown-menu{
left:100%;
top:0;
margin-top:0;
margin-left: -1px
}
.dropup & {
> .dropdown-menu{
top: auto;
bottom: 0;
}
}
}
.dropdown-select > li > a input{position: absolute;left: -9999em;}
/*Carousel*/
.carousel-control{
width: 40px;
color: #999;
text-shadow:none;
&:hover,
&:focus{
color: #ccc;
text-decoration: none;
opacity: 0.9;
filter: alpha(opacity=90);
}
&.left,
&.right{
background-image:none;
filter:none;
}
i {
position: absolute;
top: 50%;
left: 50%;
z-index: 5;
display: inline-block;
width: 20px;
height: 20px;
margin-top: -10px;
margin-left: -10px;
}
}
.carousel-indicators{
&.out{
bottom: -5px;
}
li{
.transition(background-color .25s);
background: #ddd;
background-color: rgba(0,0,0,0.2);
border: none;
}
.active{
background: @brand-success;
width: 10px;
height: 10px;
margin:1px;
}
}
.carousel.carousel-fade{
.item {
.transition(opacity .25s);
.backface-visibility(hidden);
opacity: 0;filter: alpha(opacity=0);
}
.active{
opacity: 1;
filter: alpha(opacity=1);
}
.active.left,
.active.right {
left: 0;
z-index: 2;
opacity: 0;
filter: alpha(opacity=0);
}
.next,
.prev {
left: 0;
z-index: 1;
}
.carousel-control {
z-index: 3;
}
}
/*cols*/
.col-lg-2-4 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.col-0{clear:left;}
.row.no-gutter{
margin-left: 0;
margin-right: 0;
}
.no-gutter [class*="col"]{
padding: 0;
}
.modal-backdrop{
background-color: @brand-dark;
&.in{
opacity: 0.8;
filter: alpha(opacity=80);
}
}
.modal-over{
width: 100%;
height: 100%;
position:relative;
background: @brand-dark;
}
.modal-center{
position: absolute;
left:50%;
top:50%;
}
.modal-content{
-webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.icon-lg:before {
vertical-align: -10%;
font-size: 1.3333333333333333em;
}
.icon-muted{
color: #d9d9d9;
text-shadow: 0 1px 1px #fff;
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form{
border-color:transparent;
}