UNPKG

lixin-web

Version:

vue and bootstrap

117 lines (105 loc) 2.87 kB
// Mixins // -------------------------------------------------- // Utilities @import "~bootstrap/less/mixins/hide-text.less"; @import "~bootstrap/less/mixins/opacity.less"; @import "~bootstrap/less/mixins/image.less"; @import "~bootstrap/less/mixins/reset-filter.less"; @import "~bootstrap/less/mixins/responsive-visibility.less"; @import "~bootstrap/less/mixins/tab-focus.less"; @import "~bootstrap/less/mixins/reset-text.less"; @import "~bootstrap/less/mixins/text-overflow.less"; @import "~bootstrap/less/mixins/vendor-prefixes.less"; // Components //@import "~bootstrap/less/mixins/buttons.less"; @import "~bootstrap/less/mixins/panels.less"; @import "~bootstrap/less/mixins/forms.less"; // Skins @import "~bootstrap/less/mixins/border-radius.less"; @import "~bootstrap/less/mixins/gradients.less"; // Layout @import "~bootstrap/less/mixins/clearfix.less"; @import "~bootstrap/less/mixins/center-block.less"; .icon-alignment(){ //Icon and Text Alignment http://snook.ca/archives/html_and_css/icons-and-type vertical-align: middle; position:relative; top:-.1em; } //.text-overflow-multi(@line:3){ // display: -webkit-box;-webkit-line-clamp: @line; -webkit-box-orient: vertical; // overflow: hidden; //} .to-el-checkbox(){ -webkit-appearance: none; z-index: 1; width: 18px; height: 18px; border: 1px solid #c0ccda; border-radius: 50%; background-color: #fff; transition: border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46); vertical-align: middle; position: relative; &:after{ position: absolute; top: 1px; left: 5px; box-sizing: content-box; width: 4px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0; content: ""; transition: transform .15s cubic-bezier(.71,-.46,.88,.6) .05s; transform: rotate(45deg) scaleY(0); transform-origin: center; } &:not([disabled]):hover,&:focus{ border-color:@brand-primary; } &:focus{ outline:none; } &:checked{ border-color:@brand-primary; background: @brand-primary; &:after{ transform:rotate(45deg) scaleY(1); } } &[disabled]{ border-color: #D3DCE6; background-color: #EFF2F7; cursor: not-allowed; } } .hvr-ripple-out(@border-color:@brand-primary,@border-width:6px){ transform: perspective(1px) translateZ(0); position: relative; &:before{ animation-duration: 1s; content: ''; position: absolute; border: @border-color solid @border-width; top: 0; right: 0; bottom: 0; left: 0; } &:hover,&:focus,&:active{ &:before{ animation-name: hvr-ripple-out; } } @keyframes hvr-ripple-out { 100% { top: @border-width * -2; right: @border-width * -2; bottom: @border-width * -2; left: @border-width * -2; opacity: 0; } } }