lixin-web
Version:
vue and bootstrap
383 lines (346 loc) • 7.46 kB
text/less
//.divider(@divider-color:@divider-color){
// background: @divider-color;
// width:1px;
//}
//
//.divider{
// .divider();
//}
.form-control{
&,&:focus{
box-shadow: none;
}
}
.panel-title{
small{
color: @gray;
font-size:14/16 * 100%;
margin-left: 10px;
}
}
.mouse-icon {
position: absolute;
left: 50%;
bottom: 5%;
border: 2px solid #fff;
border-radius: 16px;
height: 50px;
width: 30px;
margin-left: -15px;
display: none;
z-index: 10;
@media @ie78hack{
display: none ;
}
.wheel{
animation-name: mouse-drop;
animation-duration: 1s;
animation-timing-function: linear;
animation-delay: 0s;
animation-iteration-count: infinite;
animation-play-state: running;
position: relative;
border-radius: 10px;
background: #fff;
width: 4px;
height: 10px;
top: 4px;
margin-left: auto;
margin-right: auto
}
@media (min-width: @screen-sm){
display: inline-block;
}
}
@keyframes mouse-drop {
0% {
top: 5px;
opacity: 0
}
30% {
top: 10px;
opacity: 1
}
100% {
top: 25px;
opacity: 0
}
}
.ripple {
left: 0;
top: 0;
position: absolute;
background:rgba(0, 0, 0, 0.3);
border-radius: 50%;
transform:scale(0);
animation:ripple .5s;
pointer-events: none;
}
@keyframes ripple {
100% {opacity: 0; transform: scale(4);}
}
.backdrop{
background: rgba(0,0,0,.5);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;display: none;
}
.ajax-loader{
position: fixed;display: block;
background-color: transparent;
//.scale(1.5);
//@loadColor:lighten(@brand-primary,10);//pacman
> div{
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 60px;
height: 40px;
margin: auto ;
//pacman
//>div:first-of-type,>div:nth-child(2){
// border-top-color: @loadColor;
// border-bottom-color: @loadColor;
// border-left-color: @loadColor;
//}
//>div:nth-child(3),>div:nth-child(4),>div:nth-child(5){
// background: @loadColor;
//}
> div{
background: @brand-primary;
}
}
}
.sys-message-list{
display: none;
}
*:not(.fixed-table-footer) > .table-hover {
> tbody > tr:not(.no-records-found){
&:hover {
background-color: @table-bg-hover;
}
}
}
.table-striped>tbody>tr:nth-of-type(odd) {
background-color: @table-bg-hover;
}
.table{
width: 100%;
}
.sign-validation(){
@form-control-shadow:inset 0px 1px 1px fade(#fff,100),inset 1px 0 0px fade(#000,15),inset -1px 0 0px fade(#000,15);
.form-container{
position: relative;
overflow: hidden;
margin-bottom: 20px;
box-shadow:0 1px 2px #fff;
&:before{
position: absolute;
top: 2px;
right: 0px;
left: 0px;
height: 58px;
box-shadow: 0 -1px 2px rgba(0,0,0,.30);
content: "";
z-index: 1;
.border-top-radius(@border-radius-base * 2);
pointer-events: none;
}
@-moz-document url-prefix(){
&:before{
content: none;
}
}
.form-group{
&:first-child{
.form-control{
.border-top-radius(@border-radius-base * 2);
//box-shadow:inset 0px 2px 1px fade(#000,30),inset 1px 0 0px fade(#000,15),inset -1px 0 0px fade(#000,15);
}
}
&:last-child{
.form-control{
.border-bottom-radius(@border-radius-base * 2);
}
}
}
}
.fv-hidden-submit.disabled ~ .form-container{
overflow: visible;
}
.form-group{
position: relative;
margin-bottom: 0;
> span{
position: absolute;
left: 20px;
font-size:18px;
top: 22px;
color: #b1b3b7;
}
img{
position: absolute;
right: 12px;
top: 11px;
border:1px solid #c0c1c2;
}
& + .form-group{
margin-top: -1px;
}
}
.form-control{
border-color: #c1c3c5 #b8babc;
padding-left: 54px;
height: 60px;
background: #e5e7e9;
box-shadow:@form-control-shadow;
border-radius:0;
font-size:@font-size-medium;
&::-webkit-input-placeholder{
color: #6f7278;
}
//http://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete
&:-webkit-autofill{
-webkit-text-fill-color: @input-color ;
-webkit-box-shadow: 0 0 0px 1000px #e5e7e9 inset ;
}
}
.help-block{
position: absolute;
pointer-events: none;
-webkit-user-select: none;
}
.fa-check{
display: none ;
}
.fa-remove{
top: 20px;
}
.has-success{
.form-control:focus{
border-color:#c1c3c5 #b8babc;
box-shadow: @form-control-shadow;
}
}
.has-error{
z-index:2;
.form-control-feedback,.help-block{
color: @state-error;
}
.help-block{
border:1px solid;
border-radius:@input-border-radius;
background: #fff;
font-size:@font-size-medium;
line-height: 36px;
padding-left: 12px;
padding-right: 12px;
z-index:1;
right: -15px;
top: 6px;
.translate(100%,0);
&:before,&:after{
width: 0;
height: 0;
border-style: solid;
position: absolute;
content: '';
}
&:before{
top: 10px;
left: -7px;
border-color: transparent;
border-right-color: @state-error;
border-width: 7px;
border-left-width: 0;
}
&:after{
top: 11px;
left: -6px;
border-color: transparent;
border-right-color: #fff;
border-width: 6px;
border-left-width: 0;
}
}
.form-control,.help-block{
border-color: @state-error;
}
}
.auth-img{
height: 38px;cursor: pointer;
}
.btn[type="submit"]{
//background-image: url(../img/submit_btn.png);
background-image: url(../img/login_btn.png);
background-repeat:repeat-x;
border:1px solid #147ad8;
//border:none;
font-size: 32px;
height: 70px;
color: #fff;
font-family:黑体;
border-radius: 4px;
text-shadow: 0 1px 3px fade(#000,50);
//@media @devicePixelRatio2{
// background-image: url(../img/submit_btn_2x.png);
// background-size:cover;
//}
}
.imoon-auth{
& + * + .form-control-feedback{
right: 105px;
}
}
@media (max-width:@screen-xs-max){
.form-control-feedback{
display: none ;
}
.has-error .help-block{
&:before,&:after{
content: none ;
}
right: 10px;
.translate(0,0);
}
.auth-img{
& + .help-block{
right: 108px;
}
}
}
}
.selectedIcon(@width:10px;@height:6px;@border-width:1px){
position: relative;
&:before,&:after{
content: '';
position: absolute;
right: 0;
top: 0;
z-index:1;
}
&:before{
border-width: @width;
border-style: solid;
border-color: transparent;
border-right-color: @brand-primary;
border-top-color: @brand-primary;
}
&:after{
width: @width;
height: @height;
border-width: @border-width;
border-style: solid;
border-color: transparent transparent #fff #fff;
transform: rotate(-45deg);
}
}
// Responsive tables
//
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
// by enabling horizontal scrolling. Only applies <768px. Everything above that
// will display normally.