Skip to content

Commit 573bc3c

Browse files
committed
perf: enhanced protection against third-party css style intrusions (#370)
1 parent b654489 commit 573bc3c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: layout/_page/home.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
style="height: <%= post?.home_cover_height ? post?.home_cover_height + 'px' : '10rem' %>"
1818
>
1919
<% if (post.sticky) { %>
20-
<div class="post-sticky-box cover">
20+
<div class="post-sticky-box cover-offset">
2121
<i class="fas fa-thumbtack"></i><span class="sticky-name">&nbsp;<%- __('top') %></span>
2222
</div>
2323
<% } %>
@@ -29,7 +29,7 @@
2929
3030
<div class="home-post-item-bottom border-box">
3131
<% if (post.sticky && !post?.home_cover) { %>
32-
<div class="post-sticky-box card">
32+
<div class="post-sticky-box card-offset">
3333
<i class="fas fa-thumbtack"></i><span class="sticky-name">&nbsp;<%- __('top') %></span>
3434
</div>
3535
<% } %>

Diff for: source/css/layout/_page/home.styl

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@
8888
cursor default
8989
disable-user-select()
9090

91-
&.cover {
91+
&.cover-offset {
9292
top 0.6rem
9393
right 0.6rem
9494
}
9595

96-
&.card {
96+
&.card-offset {
9797
top 0.8rem
9898
right 0.8rem
9999
}

0 commit comments

Comments
 (0)