@xingwangzhe/stalux 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +192 -0
- package/package.json +108 -0
- package/scripts/cli.mjs +103 -0
- package/src/assets/BiCcCircle.svg +1 -0
- package/src/assets/astro.svg +1 -0
- package/src/assets/background/README.md +3 -0
- package/src/assets/background/pattern-1.min.svg +1 -0
- package/src/assets/background/pattern-10.min.svg +1 -0
- package/src/assets/background/pattern-11.min.svg +1 -0
- package/src/assets/background/pattern-12.min.svg +1 -0
- package/src/assets/background/pattern-13.min.svg +1 -0
- package/src/assets/background/pattern-14.min.svg +1 -0
- package/src/assets/background/pattern-15.min.svg +1 -0
- package/src/assets/background/pattern-16.min.svg +1 -0
- package/src/assets/background/pattern-17.min.svg +1 -0
- package/src/assets/background/pattern-18.min.svg +1 -0
- package/src/assets/background/pattern-19.min.svg +1 -0
- package/src/assets/background/pattern-2.min.svg +1 -0
- package/src/assets/background/pattern-20.min.svg +1 -0
- package/src/assets/background/pattern-21.min.svg +1 -0
- package/src/assets/background/pattern-22.min.svg +1 -0
- package/src/assets/background/pattern-23.min.svg +1 -0
- package/src/assets/background/pattern-24.min.svg +1 -0
- package/src/assets/background/pattern-25.min.svg +1 -0
- package/src/assets/background/pattern-26.min.svg +1 -0
- package/src/assets/background/pattern-27.min.svg +1 -0
- package/src/assets/background/pattern-28.min.svg +1 -0
- package/src/assets/background/pattern-29.min.svg +1 -0
- package/src/assets/background/pattern-3.min.svg +1 -0
- package/src/assets/background/pattern-30.min.svg +1 -0
- package/src/assets/background/pattern-31.min.svg +1 -0
- package/src/assets/background/pattern-32.min.svg +1 -0
- package/src/assets/background/pattern-33.min.svg +1 -0
- package/src/assets/background/pattern-34.min.svg +1 -0
- package/src/assets/background/pattern-35.min.svg +1 -0
- package/src/assets/background/pattern-36.min.svg +1 -0
- package/src/assets/background/pattern-37.min.svg +1 -0
- package/src/assets/background/pattern-38.min.svg +1 -0
- package/src/assets/background/pattern-39.min.svg +1 -0
- package/src/assets/background/pattern-4.min.svg +1 -0
- package/src/assets/background/pattern-40.min.svg +1 -0
- package/src/assets/background/pattern-41.min.svg +1 -0
- package/src/assets/background/pattern-42.min.svg +1 -0
- package/src/assets/background/pattern-5.min.svg +1 -0
- package/src/assets/background/pattern-6.min.svg +1 -0
- package/src/assets/background/pattern-7.min.svg +1 -0
- package/src/assets/background/pattern-8.min.svg +1 -0
- package/src/assets/background/pattern-9.min.svg +1 -0
- package/src/assets/background.svg +1 -0
- package/src/assets/cc-icon.svg +4 -0
- package/src/assets/fonts/GoogleSansCode-Italic.woff2 +0 -0
- package/src/assets/fonts/GoogleSansCode.woff2 +0 -0
- package/src/assets/fonts/LXGWWenKai-Regular.ttf +0 -0
- package/src/assets/fonts/LXGWWenKai-Regular.woff2 +0 -0
- package/src/components/stalux/analytics/clarity.astro +25 -0
- package/src/components/stalux/analytics/google.astro +31 -0
- package/src/components/stalux/analytics/umami.astro +16 -0
- package/src/components/stalux/archives/archivesList.astro +116 -0
- package/src/components/stalux/archives/toArchive.astro +14 -0
- package/src/components/stalux/categories/categoriesCard.astro +49 -0
- package/src/components/stalux/categories/categoriesList.astro +17 -0
- package/src/components/stalux/common/author.astro +35 -0
- package/src/components/stalux/common/date.astro +59 -0
- package/src/components/stalux/common/search.astro +14 -0
- package/src/components/stalux/common/textType.astro +16 -0
- package/src/components/stalux/common/verCount.astro +10 -0
- package/src/components/stalux/footer/FooterBadges.astro +150 -0
- package/src/components/stalux/footer/FooterBeian.astro +91 -0
- package/src/components/stalux/footer/FooterCopyright.astro +40 -0
- package/src/components/stalux/footer/FooterStats.astro +108 -0
- package/src/components/stalux/footer/FooterThemeInfo.astro +67 -0
- package/src/components/stalux/layout/footer.astro +87 -0
- package/src/components/stalux/layout/head.astro +194 -0
- package/src/components/stalux/layout/listPage.astro +26 -0
- package/src/components/stalux/layout/navs.astro +174 -0
- package/src/components/stalux/links/linkCard.astro +50 -0
- package/src/components/stalux/links/linkList.astro +20 -0
- package/src/components/stalux/links/socialMedia.astro +102 -0
- package/src/components/stalux/posts/PhotoSwipeStyle.astro +3 -0
- package/src/components/stalux/posts/PostTaxonomy.astro +65 -0
- package/src/components/stalux/posts/WalineComment.astro +609 -0
- package/src/components/stalux/posts/postAuthor.astro +23 -0
- package/src/components/stalux/posts/postCC.astro +52 -0
- package/src/components/stalux/posts/postCard.astro +83 -0
- package/src/components/stalux/posts/postContent.astro +174 -0
- package/src/components/stalux/posts/postLeft.astro +41 -0
- package/src/components/stalux/posts/postList.astro +25 -0
- package/src/components/stalux/posts/postNavigation.astro +137 -0
- package/src/components/stalux/posts/postRight.astro +33 -0
- package/src/components/stalux/posts/postToc.astro +88 -0
- package/src/components/stalux/posts/randomPost.astro +134 -0
- package/src/components/stalux/tags/tagHeader.astro +50 -0
- package/src/components/stalux/tags/tagsCloud.astro +100 -0
- package/src/components/stalux/words/wordCard.astro +62 -0
- package/src/components/stalux/words/wordList.astro +70 -0
- package/src/config.ts +58 -0
- package/src/i18n/en.json +193 -0
- package/src/i18n/zh-CN.json +193 -0
- package/src/index.ts +215 -0
- package/src/internal/components-plugin.ts +54 -0
- package/src/internal/dev-toolbar.ts +33 -0
- package/src/internal/override.ts +99 -0
- package/src/internal/pagefind.ts +40 -0
- package/src/layouts/PostLayout.astro +90 -0
- package/src/layouts/Stalux.astro +91 -0
- package/src/pages/404.astro +103 -0
- package/src/pages/about.astro +59 -0
- package/src/pages/about.md.ts +15 -0
- package/src/pages/api/post.abbrlink.json.ts +20 -0
- package/src/pages/archives.astro +23 -0
- package/src/pages/archives.md.ts +24 -0
- package/src/pages/atom.xml.ts +29 -0
- package/src/pages/categories/[category].astro +35 -0
- package/src/pages/categories/[category].md.ts +34 -0
- package/src/pages/categories/index.astro +23 -0
- package/src/pages/categories/index.md.ts +27 -0
- package/src/pages/index.astro +30 -0
- package/src/pages/index.md.ts +18 -0
- package/src/pages/links.astro +23 -0
- package/src/pages/links.md.ts +18 -0
- package/src/pages/llms-full.txt.ts +25 -0
- package/src/pages/llms.txt.ts +26 -0
- package/src/pages/posts/[post].astro +69 -0
- package/src/pages/posts/[post].md.ts +109 -0
- package/src/pages/rss.xml.ts +29 -0
- package/src/pages/tags/[tag].astro +37 -0
- package/src/pages/tags/[tag].md.ts +34 -0
- package/src/pages/tags/index.astro +23 -0
- package/src/pages/tags/index.md.ts +27 -0
- package/src/pages/words.astro +24 -0
- package/src/pages/words.md.ts +14 -0
- package/src/plugins/feature-flags.ts +68 -0
- package/src/plugins/satteri-temml.ts +81 -0
- package/src/schemas/collections.ts +140 -0
- package/src/schemas/config.ts +226 -0
- package/src/scripts/background.ts +59 -0
- package/src/styles/base/init.css +286 -0
- package/src/styles/base/math.css +411 -0
- package/src/styles/components/archives/archivesList.module.css +378 -0
- package/src/styles/components/archives/toArchive.module.css +3 -0
- package/src/styles/components/categories/categoriesCard.module.css +87 -0
- package/src/styles/components/categories/categoriesList.module.css +27 -0
- package/src/styles/components/common/author.module.css +73 -0
- package/src/styles/components/common/date.module.css +15 -0
- package/src/styles/components/common/textType.module.css +10 -0
- package/src/styles/components/footer/footer.module.css +44 -0
- package/src/styles/components/layout/navs.module.css +250 -0
- package/src/styles/components/links/linkCard.module.css +99 -0
- package/src/styles/components/links/linkList.module.css +67 -0
- package/src/styles/components/links/socialLinks.module.css +22 -0
- package/src/styles/components/markdown.css +528 -0
- package/src/styles/components/posts/postAuthor.module.css +32 -0
- package/src/styles/components/posts/postCC.module.css +138 -0
- package/src/styles/components/posts/postCard.module.css +156 -0
- package/src/styles/components/posts/postCategories.module.css +50 -0
- package/src/styles/components/posts/postContent.module.css +230 -0
- package/src/styles/components/posts/postLayout.module.css +142 -0
- package/src/styles/components/posts/postLeft.module.css +38 -0
- package/src/styles/components/posts/postList.module.css +24 -0
- package/src/styles/components/posts/postNavigation.module.css +187 -0
- package/src/styles/components/posts/postRight.module.css +60 -0
- package/src/styles/components/posts/postSidebar.module.css +57 -0
- package/src/styles/components/posts/postTags.module.css +51 -0
- package/src/styles/components/posts/postTaxonomy.module.css +87 -0
- package/src/styles/components/posts/postToc.module.css +74 -0
- package/src/styles/components/posts/randomPost.module.css +131 -0
- package/src/styles/components/tags/tagHeader.module.css +44 -0
- package/src/styles/components/tags/tagsCloud.module.css +124 -0
- package/src/styles/components/words/wordCard.module.css +130 -0
- package/src/styles/components/words/wordList.module.css +39 -0
- package/src/styles/pages/archives.module.css +18 -0
- package/src/styles/pages/categories.module.css +13 -0
- package/src/styles/pages/home.module.css +51 -0
- package/src/styles/pages/listPage.module.css +13 -0
- package/src/styles/pages/tags.module.css +12 -0
- package/src/styles/pages/words.module.css +13 -0
- package/src/styles/shared/animations.css +87 -0
- package/src/styles/shared/stagger.css +20 -0
- package/src/utils/ai-discovery.ts +547 -0
- package/src/utils/badge-generator.ts +68 -0
- package/src/utils/cc.ts +46 -0
- package/src/utils/collections-stats.ts +48 -0
- package/src/utils/config-utils.ts +107 -0
- package/src/utils/count-words.ts +20 -0
- package/src/utils/dayjs.ts +106 -0
- package/src/utils/feed.ts +70 -0
- package/src/utils/i18n.ts +64 -0
- package/src/utils/lucide-icons.ts +52 -0
- package/src/utils/semantic-time.ts +11 -0
- package/src/utils/taxonomy.ts +44 -0
- package/src/utils/toc-scrollspy.ts +95 -0
- package/src/utils/waline.ts +27 -0
- package/src/utils/word-count-utils.ts +83 -0
- package/template/astro.config.mjs +51 -0
- package/template/package.json +27 -0
- package/template/public/robots.txt +3 -0
- package/template/src/content.config.ts +11 -0
- package/template/stalux/about/index.md +14 -0
- package/template/stalux/config/ai-discovery.yml +2 -0
- package/template/stalux/config/author.yml +4 -0
- package/template/stalux/config/comment.yml +5 -0
- package/template/stalux/config/footer.yml +13 -0
- package/template/stalux/config/head.yml +7 -0
- package/template/stalux/config/links.yml +4 -0
- package/template/stalux/config/media-links.yml +8 -0
- package/template/stalux/config/navs.yml +23 -0
- package/template/stalux/config/promote.yml +2 -0
- package/template/stalux/config/site.yml +7 -0
- package/template/stalux/config/typetexts.yml +5 -0
- package/template/stalux/posts/hello-stalux.md +47 -0
- package/template/stalux/words/_template.md +12 -0
- package/template/stalux/words/einstein-imagination.md +8 -0
- package/template/tsconfig.json +9 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/* 导航容器 — 相对定位,为滚动按钮提供锚点 */
|
|
2
|
+
.navContainer {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.navList {
|
|
10
|
+
display: flex;
|
|
11
|
+
gap: 2rem;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
transition: transform 0.3s ease;
|
|
15
|
+
/* 当导航项总宽度超过视口时允许横向滚动,防止右侧项被裁剪 */
|
|
16
|
+
overflow-x: auto;
|
|
17
|
+
scroll-behavior: smooth;
|
|
18
|
+
-webkit-overflow-scrolling: touch;
|
|
19
|
+
/* 隐藏滚动条但保留滚动功能 */
|
|
20
|
+
scrollbar-width: none;
|
|
21
|
+
-ms-overflow-style: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.navList::-webkit-scrollbar {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* 滚动按钮 — 仅当内容溢出时显示 */
|
|
29
|
+
.scrollBtn {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
transform: translateY(-50%);
|
|
33
|
+
z-index: 10;
|
|
34
|
+
width: 36px;
|
|
35
|
+
height: 36px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
border: none;
|
|
38
|
+
background: var(--black-30p);
|
|
39
|
+
backdrop-filter: blur(8px);
|
|
40
|
+
color: var(--white-full);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
transition: opacity 0.25s ease;
|
|
48
|
+
padding: 0;
|
|
49
|
+
box-shadow: var(--shadow-md);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.scrollBtn:hover {
|
|
53
|
+
background: var(--black-50p);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.scrollBtn.visible {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
pointer-events: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.scrollBtn[data-side="left"] {
|
|
62
|
+
left: 4px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.scrollBtn[data-side="right"] {
|
|
66
|
+
right: 4px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* 导航容器 hover 时显示滚动按钮 */
|
|
70
|
+
.navContainer:hover .scrollBtn.visible {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* 按钮图标 */
|
|
75
|
+
.scrollBtn svg {
|
|
76
|
+
width: 20px;
|
|
77
|
+
height: 20px;
|
|
78
|
+
stroke: currentColor;
|
|
79
|
+
stroke-width: 2;
|
|
80
|
+
fill: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.navLink,
|
|
84
|
+
.navLink:visited {
|
|
85
|
+
color: inherit;
|
|
86
|
+
text-decoration: none;
|
|
87
|
+
background: none;
|
|
88
|
+
border: none;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
font: inherit;
|
|
91
|
+
padding: 0.5rem 0.75rem;
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: 0.5rem;
|
|
95
|
+
width: 100%;
|
|
96
|
+
min-height: 44px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.navLink :global(.nav-icon) {
|
|
100
|
+
stroke: var(--white-full);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.navLink:hover :global(.nav-icon),
|
|
104
|
+
.navLink:hover .navText {
|
|
105
|
+
stroke: var(--stalux-accent-color);
|
|
106
|
+
color: var(--stalux-accent-color);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.navItem {
|
|
110
|
+
font-size: 1.3em;
|
|
111
|
+
margin-right: 1em;
|
|
112
|
+
margin-left: 1em;
|
|
113
|
+
text-shadow: var(--stalux-text-shadow);
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
flex-shrink: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navText {
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
color: var(--white-full);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* 汉堡菜单按钮 */
|
|
125
|
+
.navToggle {
|
|
126
|
+
display: none;
|
|
127
|
+
background: none;
|
|
128
|
+
border: none;
|
|
129
|
+
color: inherit;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
padding: 0.75rem;
|
|
132
|
+
z-index: 1001;
|
|
133
|
+
min-width: 48px;
|
|
134
|
+
min-height: 48px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.navToggle :global(svg) {
|
|
138
|
+
width: 32px;
|
|
139
|
+
height: 32px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* 遮罩层 */
|
|
143
|
+
.navOverlay {
|
|
144
|
+
display: none;
|
|
145
|
+
position: fixed;
|
|
146
|
+
top: 0;
|
|
147
|
+
left: 0;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
background: rgba(0, 0, 0, 0.6);
|
|
151
|
+
z-index: 999;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
transition: opacity 0.3s ease;
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.navOverlay[data-state="show"] {
|
|
158
|
+
display: block;
|
|
159
|
+
opacity: 1;
|
|
160
|
+
pointer-events: auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* 中等屏幕:缩小间距和字号 */
|
|
164
|
+
@media (max-width: 1100px) {
|
|
165
|
+
.navList {
|
|
166
|
+
gap: 1rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.navItem {
|
|
170
|
+
font-size: 1em;
|
|
171
|
+
margin-right: 0.6em;
|
|
172
|
+
margin-left: 0.6em;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* 较窄屏幕:隐藏文字,只显示图标 */
|
|
177
|
+
@media (max-width: 900px) {
|
|
178
|
+
.navText {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.navItem {
|
|
183
|
+
font-size: 1em;
|
|
184
|
+
margin-right: 0.5em;
|
|
185
|
+
margin-left: 0.5em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.navList {
|
|
189
|
+
gap: 0.75rem;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* 窄屏:改为侧边栏 */
|
|
194
|
+
@media (max-width: 600px) {
|
|
195
|
+
.navToggle {
|
|
196
|
+
display: block;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.navContainer {
|
|
200
|
+
overflow: visible;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.navList {
|
|
204
|
+
position: fixed;
|
|
205
|
+
top: 0;
|
|
206
|
+
right: 0;
|
|
207
|
+
width: 220px;
|
|
208
|
+
height: 100vh;
|
|
209
|
+
background: var(--black-20p);
|
|
210
|
+
backdrop-filter: blur(20px);
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
align-items: flex-start;
|
|
213
|
+
justify-content: flex-start;
|
|
214
|
+
gap: 0;
|
|
215
|
+
padding: 0.5rem 1rem 2rem 1rem;
|
|
216
|
+
transform: translateX(100%);
|
|
217
|
+
z-index: 1000;
|
|
218
|
+
overflow-y: auto;
|
|
219
|
+
pointer-events: none;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.navList[data-state="open"] {
|
|
223
|
+
transform: translateX(0);
|
|
224
|
+
pointer-events: auto;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.navItem {
|
|
228
|
+
width: 100%;
|
|
229
|
+
margin: 0;
|
|
230
|
+
border-bottom: 1px solid var(--white-10p);
|
|
231
|
+
font-size: 0.9em;
|
|
232
|
+
flex-shrink: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.navText {
|
|
236
|
+
display: inline;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.navLink {
|
|
240
|
+
width: 100%;
|
|
241
|
+
padding: 0.45rem 0.75rem;
|
|
242
|
+
min-height: 44px;
|
|
243
|
+
font-size: inherit;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.navLink :global(.nav-icon) {
|
|
247
|
+
width: 18px;
|
|
248
|
+
height: 18px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* 友链卡片(受 staluxmyblog 链接布局启发)*/
|
|
2
|
+
|
|
3
|
+
.card {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background: var(--white-10p) !important;
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
color: #fff;
|
|
11
|
+
min-height: 200px;
|
|
12
|
+
width: 180px;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
transition:
|
|
15
|
+
transform var(--transition-normal) ease,
|
|
16
|
+
box-shadow var(--transition-normal) ease,
|
|
17
|
+
background var(--transition-normal) ease;
|
|
18
|
+
box-shadow: var(--shadow-md);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.card:hover {
|
|
22
|
+
transform: translateY(-6px);
|
|
23
|
+
background: #ffffff26;
|
|
24
|
+
box-shadow: var(--shadow-xl);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.avatar {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
margin-bottom: 12px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.avatar img {
|
|
34
|
+
width: 80px;
|
|
35
|
+
height: 80px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
object-fit: cover;
|
|
38
|
+
border: 2px solid var(--accent-60p);
|
|
39
|
+
transform-origin: center;
|
|
40
|
+
transition:
|
|
41
|
+
transform 0.8s ease,
|
|
42
|
+
box-shadow 0.3s ease,
|
|
43
|
+
border-color 0.3s ease;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.card:hover .avatar img {
|
|
47
|
+
transform: rotate(360deg) scale(1.1);
|
|
48
|
+
box-shadow: 0 0 20px var(--accent-50p);
|
|
49
|
+
border-color: var(--accent-85p);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.content {
|
|
53
|
+
text-align: center;
|
|
54
|
+
flex: 1;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.title {
|
|
60
|
+
font-size: 1.1rem;
|
|
61
|
+
margin: 0 0 8px 0;
|
|
62
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(1, 162, 190, 0.9));
|
|
63
|
+
background-clip: text;
|
|
64
|
+
-webkit-text-fill-color: transparent;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.description {
|
|
71
|
+
margin: 0;
|
|
72
|
+
font-size: 0.95rem;
|
|
73
|
+
color: var(--white-78p);
|
|
74
|
+
line-height: 1.45;
|
|
75
|
+
display: -webkit-box;
|
|
76
|
+
-webkit-line-clamp: 3;
|
|
77
|
+
-webkit-box-orient: vertical;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (max-width: 480px) {
|
|
83
|
+
.card {
|
|
84
|
+
padding: 14px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.avatar img {
|
|
88
|
+
width: 70px;
|
|
89
|
+
height: 70px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.title {
|
|
93
|
+
font-size: 1rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.description {
|
|
97
|
+
font-size: 0.9rem;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* 友链列表 - 响应式网格布局(受 staluxmyblog 启发)*/
|
|
2
|
+
|
|
3
|
+
.list {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
6
|
+
gap: 20px;
|
|
7
|
+
margin: 30px auto;
|
|
8
|
+
padding: 0;
|
|
9
|
+
list-style: none;
|
|
10
|
+
max-width: 1200px;
|
|
11
|
+
justify-items: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.item {
|
|
15
|
+
animation: fadeInUp 0.5s ease forwards;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes fadeInUp {
|
|
21
|
+
from {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
transform: translateY(20px);
|
|
24
|
+
}
|
|
25
|
+
to {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
transform: translateY(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* 大屏幕:5个卡片一行 */
|
|
32
|
+
@media (min-width: 1400px) {
|
|
33
|
+
.list {
|
|
34
|
+
grid-template-columns: repeat(5, 1fr);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 中等屏幕:4个卡片一行 */
|
|
39
|
+
@media (max-width: 1399px) and (min-width: 1100px) {
|
|
40
|
+
.list {
|
|
41
|
+
grid-template-columns: repeat(4, 1fr);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* 小屏幕:3个卡片一行 */
|
|
46
|
+
@media (max-width: 1099px) and (min-width: 768px) {
|
|
47
|
+
.list {
|
|
48
|
+
grid-template-columns: repeat(3, 1fr);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* 平板:2个卡片一行 */
|
|
53
|
+
@media (max-width: 767px) and (min-width: 480px) {
|
|
54
|
+
.list {
|
|
55
|
+
grid-template-columns: repeat(2, 1fr);
|
|
56
|
+
gap: 16px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 移动设备:1个卡片一行 */
|
|
61
|
+
@media (max-width: 479px) {
|
|
62
|
+
.list {
|
|
63
|
+
grid-template-columns: 1fr;
|
|
64
|
+
gap: 14px;
|
|
65
|
+
margin: 20px auto;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.social-links {
|
|
2
|
+
margin-top: 3em;
|
|
3
|
+
ul {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
gap: 1em;
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0;
|
|
9
|
+
li {
|
|
10
|
+
font-size: large;
|
|
11
|
+
width: 2.5em;
|
|
12
|
+
height: 2.5em;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
background-color: var(--white-15p);
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|