Skip to content

Commit

Permalink
perf: enhanced protection against third-party css style intrusions (#370
Browse files Browse the repository at this point in the history
)
  • Loading branch information
XPoet committed Nov 21, 2024
1 parent b654489 commit 573bc3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layout/_page/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
style="height: <%= post?.home_cover_height ? post?.home_cover_height + 'px' : '10rem' %>"
>
<% if (post.sticky) { %>
<div class="post-sticky-box cover">
<div class="post-sticky-box cover-offset">
<i class="fas fa-thumbtack"></i><span class="sticky-name">&nbsp;<%- __('top') %></span>
</div>
<% } %>
Expand All @@ -29,7 +29,7 @@
<div class="home-post-item-bottom border-box">
<% if (post.sticky && !post?.home_cover) { %>
<div class="post-sticky-box card">
<div class="post-sticky-box card-offset">
<i class="fas fa-thumbtack"></i><span class="sticky-name">&nbsp;<%- __('top') %></span>
</div>
<% } %>
Expand Down
4 changes: 2 additions & 2 deletions source/css/layout/_page/home.styl
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
cursor default
disable-user-select()

&.cover {
&.cover-offset {
top 0.6rem
right 0.6rem
}

&.card {
&.card-offset {
top 0.8rem
right 0.8rem
}
Expand Down

0 comments on commit 573bc3c

Please sign in to comment.