Skip to content

Commit 89699d0

Browse files
committed
added center positions
1 parent 6f25cf3 commit 89699d0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/position.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,28 @@
1010
&-static {
1111
position: static;
1212
}
13+
}
14+
15+
.position {
16+
&-center {
17+
position: absolute;
18+
top: 50%;
19+
left: 50%;
20+
transform: translate3d(-50%, -50%, 0);
21+
font-smoothing: subpixel-antialiased;
22+
23+
&-y {
24+
position: absolute;
25+
top: 50%;
26+
transform: translate3d(0, -50%, 0);
27+
font-smoothing: subpixel-antialiased;
28+
}
29+
30+
&-x {
31+
position: absolute;
32+
left: 50%;
33+
transform: translate3d(-50%, 0, 0);
34+
font-smoothing: subpixel-antialiased;
35+
}
36+
}
1337
}

0 commit comments

Comments
 (0)