Skip to content

Commit 4ad5227

Browse files
committed
clamp-based approach for vertical center
1 parent ed17877 commit 4ad5227

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

preview-vertical.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.markdown-preview-sizer .markdown-preview-section {
2-
padding-top: 20%;
3-
padding-bottom: 25%;
1+
.view-content > div > .markdown-preview-view > .markdown-preview-sizer.markdown-preview-section {
2+
transform: translateY(clamp(0px, calc(50vh - 25%), 100%));
43
}

0 commit comments

Comments
 (0)