UNPKG

733 BSCSSView Raw
1@charset "UTF-8";
2
3// select mixins
4// --------------------------------------------------
5
6// @global
7@mixin select-size(
8 $height,
9 $lineHeight
10) {
11 $padding-tb: calc((#{$height} - #{$lineHeight} - 2px) / 2);
12
13 min-height: calc(#{$height} - 2px);
14 padding-top: $padding-tb;
15 padding-bottom: $padding-tb;
16 line-height: $lineHeight;
17}
18
19// 16px 是 tag-body 的固定高度
20@mixin select-tag-size(
21 $height,
22 $border: 1px
23) {
24 $padding-tb: calc((#{$height} - #{$s-4} - #{$border} * 2) / 2);
25
26 padding-top: $padding-tb;
27 padding-bottom: $padding-tb;
28 height: $height;
29
30 .#{$css-prefix}tag-body, .#{$css-prefix}tag-close-btn {
31 line-height: calc(#{$height} - #{$padding-tb} * 2);
32 }
33}