Skip to content

Commit

Permalink
refactor: Rename transition class for main content body
Browse files Browse the repository at this point in the history
- Change class name from 'transition-main-content-body' to 'transition-fade-up'
- Update class name in page.ejs and page.styl files
- Maintain existing transition behavior and styling
  • Loading branch information
EvanNotFound committed Nov 19, 2024
1 parent 0847f0e commit f75ff0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layout/page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<%- partial('components/header/navbar') %>
</div>

<div class="main-content-body transition-main-content-body">
<div class="main-content-body transition-fade-up">
<% if (is_home() && theme.home.sidebar.enable === true && theme.home.sidebar.position === "left") { %>
<%- partial('pages/home/home-sidebar') %>
<% } %>
Expand Down
6 changes: 3 additions & 3 deletions source/css/layout/page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
transition 0.4s
opacity 1

.transition-main-content-body
.transition-fade-up
transform translateY(0)
opacity 1
transition transform 0.4s ease, opacity 0.4s ease
Expand All @@ -158,7 +158,7 @@ html.is-changing
transition opacity 0.4s ease
opacity 1

.transition-main-content-body
.transition-fade-up
transition transform 0.4s ease, opacity 0.4s ease
transform translateY(0)
opacity 1
Expand All @@ -168,6 +168,6 @@ html.is-animating
.transition-fade
opacity 0

.transition-main-content-body
.transition-fade-up
transform translateY(20px)
opacity 0

0 comments on commit f75ff0c

Please sign in to comment.