Skip to content

Commit dcaf967

Browse files
updated css
1 parent d863b0c commit dcaf967

4 files changed

Lines changed: 19 additions & 20 deletions

File tree

assets/css/styles.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ body {
2424
min-height: 100vh;
2525
background: linear-gradient(135deg,
2626
rgb(255, 220, 220) 0%,
27-
rgba(220,220,255) 25%,
28-
rgba(220,225,220) 50%,
29-
rgba(255,220,220) 75%,
30-
rgba(220,220,225) 100%);
27+
rgba(220, 220, 255) 25%,
28+
rgba(220, 225, 220) 50%,
29+
rgba(255, 220, 220) 75%,
30+
rgba(220, 220, 225) 100%);
3131
background-size: 400% 400%;
3232
animation: pearl-shimmer 20s ease infinite;
3333
font-family: 'Segoe UI', sans-serif;
@@ -147,13 +147,14 @@ html {
147147
transition: opacity 0.5s;
148148
background-color: #d6d6d695;
149149
display: flex;
150-
/* justify-content: space-between; */
151150
align-items: center;
152151
padding: 0 20px;
153152
box-sizing: border-box;
154153
z-index: 1;
155154
border-bottom-right-radius: 10px;
156155
border-bottom-left-radius: 10px;
156+
/* filter: blur(5px); */
157+
backdrop-filter: blur(5px);
157158
}
158159

159160
#navbar.show {

assets/js/script.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ function checkScroll() {
8585
}
8686
}
8787

88-
window.addEventListener('scroll', checkScroll);
89-
window.addEventListener('load', checkScroll);
88+
window.addEventListener('scroll', checkScroll);
89+
window.addEventListener('load', checkScroll);
9090

91-
document.getElementById('back-to-top')?.addEventListener('click', function () {
92-
window.scrollTo({ top: 0, behavior: 'smooth' });
93-
});
91+
document.getElementById('back-to-top')?.addEventListener('click', function () {
92+
window.scrollTo({ top: 0, behavior: 'smooth' });
93+
});
9494

95-
document.addEventListener('visibilitychange', function () {
96-
if (document.visibilityState === 'hidden') {
97-
document.title = '人在做,天在看';
98-
} else {
99-
document.title = '田语 | 朴实无华,意蕴悠长';
100-
}
101-
});
95+
document.addEventListener('visibilitychange', function () {
96+
if (document.visibilityState === 'hidden') {
97+
document.title = '人在做,天在看';
98+
} else {
99+
document.title = '田语 | 朴实无华,意蕴悠长';
100+
}
101+
});

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<body>
1818
<div id="navbar">
19-
<a href="./index.html" class="logo">田语</a>
19+
<a href="./index.html" class="logo">田语</a>
2020
<div class="dropdown">
2121
<button class="dropdown-btn">关于</button>
2222
<div class="dropdown-content">

robots.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)