Skip to content

Commit

Permalink
onepx
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Aug 16, 2017
1 parent b7135ad commit 8270305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion styles/components/Message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $prefixCls: za-message;
color: $color;
background-color: $background;
border-color: $border;
@include onepx(top right bottom left, $border);
@include onepx($border-color: $border);
}

.#{$prefixCls} {
Expand Down
4 changes: 2 additions & 2 deletions styles/core/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin onepx($positions: top right bottom left, $border-color: #ddd, $radius: 0) {
@mixin onepx($positions: top right bottom left, $border-color: #ddd, $border-radius: 0) {
&:after {
content: '';
pointer-events: none;
Expand All @@ -7,7 +7,7 @@
height: 100%;
left: 0;
top: 0;
border-radius: $radius;
border-radius: $border-radius;
@each $position in $positions {
border-#{$position}: 1px solid $border-color;
}
Expand Down

0 comments on commit 8270305

Please sign in to comment.