Skip to content

Commit 7e08f9e

Browse files
committed
修改heartbeat样式
1 parent 0c760ca commit 7e08f9e

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

source/css/custom.css

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,23 +1958,28 @@ img[data-lazy-src]:not(.loaded) {
19581958
#random-post .random-friends-post:hover{
19591959
color: var(--fyz-white)!important;
19601960
}
1961-
#heartbeat::before{
1962-
display: inline-block;
1963-
font-size: 1rem;
1964-
animation: heartbeat .5s infinite;
1965-
content: '💗';
1966-
font-style: normal;
1967-
margin-right: 5px;
1968-
}
1961+
.heartbeat{
1962+
animation: heartbeat 1.2s ease-in-out infinite;
1963+
color: red;
1964+
}
19691965

1970-
@keyframes heartbeat {
1971-
0%, 100% {
1972-
transform: scale(1);
1966+
@keyframes heartbeat {
1967+
0%,100% {
1968+
transform: scale(1)
19731969
}
1974-
50% {
1975-
transform: scale(1.2);
1970+
1971+
10%,30% {
1972+
transform: scale(.88)
19761973
}
1977-
}
1974+
1975+
20%,40%,60%,80% {
1976+
transform: scale(1.08)
1977+
}
1978+
1979+
50%,70% {
1980+
transform: scale(1.08)
1981+
}
1982+
}
19781983
#runtime-footer {
19791984
color: var(--fyz-white);
19801985
}

themes/butterfly/layout/includes/footer.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
.footer_custom_text!=`${theme.footer.custom_text}`
2121
if theme.footer.runtimeshow.enable
2222
#runtime-footer
23-
i#heartbeat
24-
| 本站已持续运行
23+
i.fas.fa-heart.heartbeat
24+
| 本站已持续运行
2525
span
2626
- var publishDate = date_xml(theme.runtimeshow.publish_date)
2727
script.

0 commit comments

Comments
 (0)