UNPKG

captain-ui

Version:

有赞vue wap业务组件库

88 lines (78 loc) 1.86 kB
/* color variables */ $black: #000; $white: #fff; $red: #f44; $blue: #38f; $orange: #f60; $green: #07c160; $gray: #c9c9c9; $gray-light: #e5e5e5; $gray-darker: #666; $gray-dark: #999; $yellow: #f09000; /* default colors */ $text-color: #333; $border-color: #ccc; $active-color: #e8e8e8; $background-color: #f8f8f8; /* button */ $button-primary-color: $white; $button-primary-background-color: $green; $button-primary-border-color: #0a0; $button-default-color: $text-color; $button-default-background-color: $white; $button-default-border-color: $border-color; $button-danger-color: $white; $button-danger-background-color: $red; $button-danger-border-color: #e33; $button-disabled-color: $gray-dark; $button-disabled-background-color: $gray-light; $button-disabled-border-color: #cacaca; @define-mixin multi-ellipsis $lines { overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: $lines; -webkit-box-orient: vertical; } @define-mixin ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @define-mixin clearfix { &::after { content: ''; display: table; clear: both; } } $border-poses: top, right, bottom, left; @define-mixin border-retina $poses: $border-poses, $border-retina-color: $border-color { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; pointer-events: none; box-sizing: border-box; @each $pos in $poses { border-$(pos): 1px solid $border-retina-color; } } @define-mixin hairline $border-retina-color: $border-color { content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; pointer-events: none; box-sizing: border-box; border: 0 solid $border-retina-color; }