tdesign-mobile-vue
Version:
tdesign-mobile-vue
55 lines (48 loc) • 934 B
text/less
@import "../_variables.less";
.hairline-base() {
position: absolute;
box-sizing: border-box;
content: " ";
pointer-events: none;
}
.hairline(@color: @border-color) {
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border: 1px solid @color;
transform: scale(.5);
.hairline-base();
}
.hairline-top(@color: @border-color) {
right: 0;
left: 0;
top: 0;
border-top: 1px solid @color;
transform: scaleY(.5);
.hairline-base();
}
.hairline-bottom(@color: @border-color) {
right: 0;
left: 0;
bottom: 0;
border-bottom: 1px solid @color;
transform: scaleY(.5);
.hairline-base();
}
.hairline-left(@color: @border-color) {
top: 0;
bottom: 0;
left: 0;
border-left: 1px solid @color;
transform: scaleX(.5);
.hairline-base();
}
.hairline-right(@color: @border-color) {
top: 0;
bottom: 0;
right: 0;
border-right: 1px solid @color;
transform: scaleX(.5);
.hairline-base();
}