[bugfix] hairline (#1805)

This commit is contained in:
neverland 2018-09-14 15:29:41 +08:00 committed by GitHub
parent 82b037a576
commit 5aec811dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -13,10 +13,7 @@
overflow: hidden;
&:not(:last-child)::after {
left: 15px;
right: 0;
width: auto;
transform: scale(1, .5);
margin-left: 15px;
border-bottom-width: 1px;
}

View File

@ -1,12 +1,11 @@
@mixin hairline($border-color: #eee) {
content: '';
position: absolute;
top: 0;
left: 0;
width: 199%;
height: 199%;
top: -50%;
left: -50%;
right: -50%;
bottom: -50%;
transform: scale(0.5);
transform-origin: 0 0;
pointer-events: none;
box-sizing: border-box;
border: 0 solid $border-color;