summaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authormuqiuhan <[email protected]>2026-03-15 12:08:48 +0000
committermuqiuhan <[email protected]>2026-03-15 12:08:48 +0000
commit828b9cae99ea35b16a6e22f8b4ea8cab617c51d8 (patch)
treed8a4bf71d51c4cbfec8c975a53f14ad00de5b16e /css
parente7adfc645c5624bc3b827d7233f6e78b33a90e79 (diff)
downloadblog-828b9cae99ea35b16a6e22f8b4ea8cab617c51d8.tar.gz
deploy: 8c4fb118dd728788cd4c7c57ebfc48a75860b987
Diffstat (limited to 'css')
-rw-r--r--css/partials/header.css44
-rw-r--r--css/partials/paginator.css6
-rw-r--r--css/partials/profile.css58
-rw-r--r--css/style.css67
4 files changed, 90 insertions, 85 deletions
diff --git a/css/partials/header.css b/css/partials/header.css
index 6606b3f0..44363f71 100644
--- a/css/partials/header.css
+++ b/css/partials/header.css
@@ -14,6 +14,13 @@
background: $color-background;
}
}
+@media (max-width: 688px) {
+ @supports not (backdrop-filter: blur(12px)) {
+ .header-inner .site-nav .menu-list {
+ background: $color-background;
+ }
+ }
+}
.header-inner {
display: flex;
flex-wrap: nowrap;
@@ -54,6 +61,9 @@
display: flex;
}
@media (max-width: 688px) {
+ .header {
+ overflow: visible;
+ }
.header-inner {
flex-wrap: wrap;
align-items: center;
@@ -69,6 +79,10 @@
height: 100%;
cursor: pointer;
color: $color-text-primary;
+ transition: color $transition-duration ease;
+ }
+ .header-inner #menu-btn:hover {
+ color: $color-accent;
}
.header-inner .site-brand-container {
display: flex;
@@ -80,20 +94,30 @@
width: 100%;
}
.header-inner .site-nav .menu-list {
- height: 0;
+ display: flex;
+ flex-direction: column;
+ max-height: 0;
overflow: hidden;
margin-top: 0;
+ background: $color-glass;
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border-top: 1px solid $color-border;
+ transition: max-height 300ms ease-out;
+ text-align: left;
+ }
+ .header-inner .site-nav .menu-list.active {
+ max-height: 400px;
}
.header-inner .site-nav .menu-list .menu-item {
- margin-right: 0;
- margin-left: auto;
- margin-top: $margin-s-1;
- padding: $margin-s-1 0;
+ margin: 0;
+ padding: $margin-m-0 $margin-m-1;
+ border-bottom: 1px solid $color-border;
}
- .header-inner .site-nav .active {
- margin-top: $margin-s-0;
- margin-bottom: $margin-s-0;
- height: auto;
- flex-direction: column;
+ .header-inner .site-nav .menu-list .menu-item:last-child {
+ border-bottom: none;
+ }
+ .header-inner .site-nav .menu-list .menu-item a {
+ display: block;
}
}
diff --git a/css/partials/paginator.css b/css/partials/paginator.css
index 57c51a33..29abdc38 100644
--- a/css/partials/paginator.css
+++ b/css/partials/paginator.css
@@ -20,3 +20,9 @@
.pagination .space {
margin-left: $margin-l-0;
}
+@media (max-width: 688px) {
+ .paginator {
+ margin-top: $margin-m-1;
+ margin-bottom: $margin-m-1;
+ }
+}
diff --git a/css/partials/profile.css b/css/partials/profile.css
index 368a309c..e69de29b 100644
--- a/css/partials/profile.css
+++ b/css/partials/profile.css
@@ -1,58 +0,0 @@
-.profile {
- margin-top: $margin-l-0;
- display: flex;
- flex-direction: row-reverse;
- align-items: center;
-}
-.profile .profile-content {
- width: 50%;
- margin: 0 $margin-l-0 0 0;
-}
-.profile .profile-content .profile-title {
- margin-top: 0;
- margin-bottom: $margin-m-0;
-}
-.profile .profile-content .profile-body {
- margin-top: 0;
- margin-bottom: $margin-m-1;
- color: $color-text-secondary;
-}
-.profile .profile-content .profile-link {
- margin-top: 0;
- margin-bottom: $margin-m-0;
-}
-.profile .profile-content .profile-link a {
- text-decoration: underline;
- text-underline-offset: 3px;
- transition: color $transition-duration ease;
-}
-.profile .profile-content .profile-link a:hover {
- color: $color-accent;
-}
-.profile .profile-image {
- width: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-.profile .profile-image img {
- max-width: 100%;
- max-height: 35vh;
- object-fit: contain;
-}
-@media (max-width: 480px) {
- .profile {
- flex-wrap: wrap;
- align-items: flex-start;
- }
- .profile .profile-content {
- width: 100%;
- margin-top: $margin-m-0;
- }
- .profile .profile-image {
- width: 100%;
- }
- .profile .profile-image img {
- max-height: 25vh;
- }
-}
diff --git a/css/style.css b/css/style.css
index b237ca5b..1227a4e1 100644
--- a/css/style.css
+++ b/css/style.css
@@ -332,6 +332,13 @@ input[type="search"]::-webkit-search-results-decoration {
background: #fff;
}
}
+@media (max-width: 688px) {
+ @supports not (backdrop-filter: blur(12px)) {
+ .header-inner .site-nav .menu-list {
+ background: #fff;
+ }
+ }
+}
.header-inner {
display: flex;
flex-wrap: nowrap;
@@ -384,6 +391,9 @@ input[type="search"]::-webkit-search-results-decoration {
display: flex;
}
@media (max-width: 688px) {
+ .header {
+ overflow: visible;
+ }
.header-inner {
flex-wrap: wrap;
align-items: center;
@@ -399,6 +409,10 @@ input[type="search"]::-webkit-search-results-decoration {
height: 100%;
cursor: pointer;
color: #09090b;
+ transition: color 200ms ease;
+ }
+ .header-inner #menu-btn:hover {
+ color: #2563eb;
}
.header-inner .site-brand-container {
display: flex;
@@ -410,21 +424,31 @@ input[type="search"]::-webkit-search-results-decoration {
width: 100%;
}
.header-inner .site-nav .menu-list {
- height: 0;
+ display: flex;
+ flex-direction: column;
+ max-height: 0;
overflow: hidden;
margin-top: 0;
+ background: rgba(255,255,255,0.92);
+ backdrop-filter: blur(12px);
+ -webkit-backdrop-filter: blur(12px);
+ border-top: 1px solid #e4e4e7;
+ transition: max-height 300ms ease-out;
+ text-align: left;
+ }
+ .header-inner .site-nav .menu-list.active {
+ max-height: 400px;
}
.header-inner .site-nav .menu-list .menu-item {
- margin-right: 0;
- margin-left: auto;
- margin-top: 0.125rem;
- padding: 0.125rem 0;
+ margin: 0;
+ padding: 0.5rem 0.75rem;
+ border-bottom: 1px solid #e4e4e7;
}
- .header-inner .site-nav .active {
- margin-top: 0.0625rem;
- margin-bottom: 0.0625rem;
- height: auto;
- flex-direction: column;
+ .header-inner .site-nav .menu-list .menu-item:last-child {
+ border-bottom: none;
+ }
+ .header-inner .site-nav .menu-list .menu-item a {
+ display: block;
}
}
.footer {
@@ -441,6 +465,9 @@ input[type="search"]::-webkit-search-results-decoration {
margin-bottom: 0.5rem;
}
@media (max-width: 688px) {
+ .footer {
+ margin-top: 1.5rem;
+ }
.footer .footer-text {
font-size: 0.625rem;
margin-top: 0.125rem;
@@ -602,8 +629,14 @@ input[type="search"]::-webkit-search-results-decoration {
.pagination .space {
margin-left: 1.5rem;
}
+@media (max-width: 688px) {
+ .paginator {
+ margin-top: 0.75rem;
+ margin-bottom: 0.75rem;
+ }
+}
.profile {
- margin-top: 1.5rem;
+ margin-top: 20vh;
display: flex;
flex-direction: row-reverse;
align-items: center;
@@ -637,12 +670,8 @@ input[type="search"]::-webkit-search-results-decoration {
}
.profile .profile-content .profile-link {
margin-top: 0;
- margin-bottom: 0.5rem;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
- font-size: 0.8125rem;
- font-weight: 500;
- line-height: 1.125rem;
- color: #09090b;
+ margin-bottom: 0.75rem;
+ font-size: 0.9375rem;
}
.profile .profile-content .profile-link a {
text-decoration: underline;
@@ -667,11 +696,15 @@ input[type="search"]::-webkit-search-results-decoration {
.profile {
flex-wrap: wrap;
align-items: flex-start;
+ margin-top: 1.5rem;
}
.profile .profile-content {
width: 100%;
margin-top: 0.5rem;
}
+ .profile .profile-content .profile-link {
+ font-size: 0.875rem;
+ }
.profile .profile-image {
width: 100%;
}