68 lines
1.1 KiB
Plaintext
68 lines
1.1 KiB
Plaintext
@import "../config/_.less";
|
|
|
|
.clearfix() {
|
|
&:after,
|
|
&:before {
|
|
content: " ";
|
|
display: table;
|
|
}
|
|
&:after {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
.ellipsis() {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.no-scrollbar() {
|
|
&::-webkit-scrollbar {
|
|
display: none !important;
|
|
width: 0 !important;
|
|
height: 0 !important;
|
|
-webkit-appearance: none;
|
|
opacity: 0 !important;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.hairline-common() {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
content: ' ';
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hairline(@color: var(--van-border-color)) {
|
|
.hairline-common();
|
|
|
|
top: -50%;
|
|
right: -50%;
|
|
bottom: -50%;
|
|
left: -50%;
|
|
border: 0 solid @color;
|
|
transform: scale(0.5);
|
|
}
|
|
|
|
.hairline-top(@color: var(--van-border-color), @left: 0, @right: 0) {
|
|
.hairline-common();
|
|
|
|
top: 0;
|
|
right: @right;
|
|
left: @left;
|
|
border-top: 1px solid @color;
|
|
transform: scaleY(0.5);
|
|
}
|
|
|
|
.hairline-bottom(@color: var(--van-border-color), @left: 0, @right: 0) {
|
|
.hairline-common();
|
|
|
|
right: @right;
|
|
bottom: 0;
|
|
left: @left;
|
|
border-bottom: 1px solid @color;
|
|
transform: scaleY(0.5);
|
|
} |