Skip to content

Commit 13950d2

Browse files
committed
Update blog
1 parent 71906a2 commit 13950d2

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

themes/butterfly/layout/includes/page/about.pug

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
.badge-wrapper
4141
.badge-base.LI-profile-badge(data-locale="en_US" data-size="large" data-theme="dark" data-type="HORIZONTAL" data-vanity="yizhanfan" data-version="v1")
4242
.author-content-item.hello-about
43-
.cursor(style='position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);')
43+
.cursor
4444
.shapes
45-
.shape.shape-1(style='position: absolute;top: 50%;left: 50%;')
46-
.shape.shape-2(style='position: absolute;top: 50%;left: 50%;')
47-
.shape.shape-3(style='position: absolute;top: 50%;left: 50%;')
45+
.shape.shape-1
46+
.shape.shape-2
47+
.shape.shape-3
4848
.content
4949
h1 Hello there!
5050

themes/butterfly/source/css/_custom/about/hello-about.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
.shape {
2828
will-change: transform;
2929
position: absolute;
30+
top: 50%;
31+
left: 50%;
3032
border-radius: 50%;
3133
}
3234

@@ -93,10 +95,12 @@
9395

9496
.cursor {
9597
position: absolute;
98+
top: 50%;
99+
left: 50%;
100+
transform: translate(-50%, -50%);
96101
background: #2128bd;
97102
width: 20px;
98103
height: 20px;
99-
margin: -10px 0 0 -10px;
100104
border-radius: 50%;
101105
will-change: transform;
102106
user-select: none;

0 commit comments

Comments
 (0)