Skip to content

Commit

Permalink
onepx
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeLin committed Aug 22, 2017
1 parent 970772f commit d680cd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Expand Up @@ -11,6 +11,7 @@
"linebreak-style": "off",
"func-names": ["error", "as-needed"],
"prefer-arrow-callback": "warn",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-multi-assign": "warn",
"no-param-reassign": "off",
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
Expand Down
11 changes: 4 additions & 7 deletions examples/styles/core/mixins.scss
@@ -1,24 +1,21 @@
@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;
box-sizing: border-box;
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
border-radius: $radius;
border: 1px solid $border-color;
border-width: 0;
border-radius: $border-radius;
@each $position in $positions {
border-#{$position}-width: 1px;
border-#{$position}: 1px solid $border-color;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
width: 200%;
height: 200%;
transform: scale(0.5);
transform: scale(0.5, 0.5);
transform-origin: 0 0;
}
}
Expand Down

0 comments on commit d680cd1

Please sign in to comment.