Skip to content

Commit e7ffb17

Browse files
author
Nicolas Cusan
committed
add missing dep, improve center mixin
1 parent 0b6d306 commit e7ffb17

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ indent_style = space
1111
insert_final_newline = true
1212
trim_trailing_whitespace = true
1313
end_of_line = lf
14-
15-
[*.md]
16-
trim_trailing_whitespace = false

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"autoprefixer": "^9.1.5",
3030
"babel-eslint": "^10.0.1",
3131
"babel-loader": "^8.0.4",
32+
"beeper": "^1.1.1",
3233
"browser-sync": "^2.26.0",
3334
"cssnano": "^4.1.4",
3435
"del": "3.0.0",

src/sass/lib/mixins/_center.sass

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
//============================================
44
55
=center($width, $height: $width, $position: absolute)
6-
+pos(50%, top left, $position)
6+
@if $position
7+
+pos(50%, top left, $position)
78

89
+size($width, $height)
910
margin-left: -$width / 2

0 commit comments

Comments
 (0)