[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; overflow: hidden;
&:not(:last-child)::after { &:not(:last-child)::after {
left: 15px; margin-left: 15px;
right: 0;
width: auto;
transform: scale(1, .5);
border-bottom-width: 1px; border-bottom-width: 1px;
} }

View File

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