Skip to content

Commit

Permalink
🌈 style: 卡片样式调整一致
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed May 23, 2024
1 parent af51488 commit 746e68d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/hexo-theme-async/layout/_partial/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<footer class="trm-scroll-animation">
<footer class="trm-footer-card trm-scroll-animation">

<% if(theme.footer.beian.enable) { %>
<div class="trm-footer-item">
Expand Down
5 changes: 5 additions & 0 deletions packages/hexo-theme-async/source/css/_components/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
color: var(--theme-color, #00283a);
margin-bottom: 20px;
}

.shadow();
}

// skill-card
Expand All @@ -21,6 +23,7 @@
margin-bottom: var(--card-bottom-card, 40px);

.shadow();

.trm-skill-header {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -827,6 +830,7 @@
padding: 0;

.shadow();

.trm-popup-content {
max-height: 550px;
display: flex;
Expand Down Expand Up @@ -949,6 +953,7 @@
padding: var(--card-padding, 40px);

.shadow();

.trm-project-desc {
height: 3rem;
overflow: hidden;
Expand Down
4 changes: 2 additions & 2 deletions packages/hexo-theme-async/source/css/_components/footer.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
footer {
.trm-footer-card {
background-color: var(--theme-bg-color, #fcfcfe);
box-shadow: var(--box-shadow);
border-radius: var(--card-border-radius, 10px);
text-align: center;
width: 100%;
padding: 20px;

.shadow();
.trm-footer-item {
color: var(--body-color, #7b7b7d);
min-height: 1.6rem;
Expand Down
16 changes: 14 additions & 2 deletions packages/hexo-theme-async/source/css/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,32 @@
}

.click-animation {
.transition-mixin(all, 0.3s, ease);
&:active {
transform: scale(0.97);
animation: linear 0.2s clickanimation forwards;
}
}

.shadow {
transition:
all 0.4s ease-in-out,
box-shadow 0.3s ease;
box-shadow: var(--box-shadow);

&:hover {
box-shadow: var(--box-shadow-hover);
}
}

@keyframes clickanimation {
0% {
transform: scale(1);
}

100% {
transform: scale(0.97);
}
}

@import "./_variables/index.less";
@import "./_components/index.less";
@import (optional) "../../../../source/_data/style/index.less";

0 comments on commit 746e68d

Please sign in to comment.