@rspress-theme-anatole/theme-default 0.7.37 → 0.7.39
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/dist/bundle.css +39 -13
- package/dist/bundle.js +17 -25
- package/package.json +3 -3
package/dist/bundle.css
CHANGED
|
@@ -91,6 +91,11 @@
|
|
|
91
91
|
flex-shrink: 0;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
body.kb-page-homepage .navBarTitle_c5f07 a {
|
|
95
|
+
cursor: default;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
94
99
|
.navContainer_d18b1 * {
|
|
95
100
|
pointer-events: all;
|
|
96
101
|
}
|
|
@@ -1879,7 +1884,8 @@ p {
|
|
|
1879
1884
|
}
|
|
1880
1885
|
|
|
1881
1886
|
.rspress-logo {
|
|
1882
|
-
height:
|
|
1887
|
+
height: 28px;
|
|
1888
|
+
width: 28px;
|
|
1883
1889
|
}
|
|
1884
1890
|
|
|
1885
1891
|
#nprogress .bar {
|
|
@@ -3620,6 +3626,16 @@ p {
|
|
|
3620
3626
|
justify-content: center;
|
|
3621
3627
|
gap: 8px;
|
|
3622
3628
|
font-size: 20px;
|
|
3629
|
+
text-decoration: none;
|
|
3630
|
+
color: inherit;
|
|
3631
|
+
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
|
3632
|
+
cursor: pointer;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
3635
|
+
.topics-card:hover {
|
|
3636
|
+
transform: translateY(-4px);
|
|
3637
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
3638
|
+
border-color: #b0b5bd;
|
|
3623
3639
|
}
|
|
3624
3640
|
|
|
3625
3641
|
.special-card {
|
|
@@ -3877,6 +3893,14 @@ p {
|
|
|
3877
3893
|
border-radius: 8px;
|
|
3878
3894
|
padding: 16px;
|
|
3879
3895
|
background: #fff;
|
|
3896
|
+
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
|
3897
|
+
cursor: pointer;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
.whatsnew-card:hover {
|
|
3901
|
+
transform: translateY(-4px);
|
|
3902
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
3903
|
+
border-color: #b0b5bd;
|
|
3880
3904
|
}
|
|
3881
3905
|
|
|
3882
3906
|
.whatsnew-label {
|
|
@@ -3896,18 +3920,12 @@ p {
|
|
|
3896
3920
|
margin: 4px 0;
|
|
3897
3921
|
}
|
|
3898
3922
|
|
|
3899
|
-
.whatsnew-
|
|
3923
|
+
.whatsnew-desc {
|
|
3900
3924
|
font-size: 16px;
|
|
3901
3925
|
color: #6b7280;
|
|
3902
3926
|
margin-bottom: 12px;
|
|
3903
3927
|
}
|
|
3904
3928
|
|
|
3905
|
-
.whatsnew-link {
|
|
3906
|
-
font-weight: 600;
|
|
3907
|
-
color: #111;
|
|
3908
|
-
text-decoration: none;
|
|
3909
|
-
}
|
|
3910
|
-
|
|
3911
3929
|
.features-title {
|
|
3912
3930
|
margin-bottom: 16px;
|
|
3913
3931
|
font-size: 24px;
|
|
@@ -3969,8 +3987,14 @@ p {
|
|
|
3969
3987
|
}
|
|
3970
3988
|
|
|
3971
3989
|
/* Overview tab layout */
|
|
3990
|
+
.features-tab-showcase a {
|
|
3991
|
+
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
|
3992
|
+
cursor: pointer;
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3972
3995
|
.features-tab-showcase a:hover {
|
|
3973
|
-
|
|
3996
|
+
transform: translateY(-4px);
|
|
3997
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
3974
3998
|
}
|
|
3975
3999
|
|
|
3976
4000
|
.request-article-section {
|
|
@@ -4134,12 +4158,14 @@ p {
|
|
|
4134
4158
|
border-radius: 8px;
|
|
4135
4159
|
background: #fff;
|
|
4136
4160
|
text-decoration: none;
|
|
4137
|
-
transition: box-shadow 0.
|
|
4161
|
+
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
|
|
4162
|
+
cursor: pointer;
|
|
4138
4163
|
}
|
|
4139
4164
|
|
|
4140
4165
|
.popular-topics-card:hover {
|
|
4141
|
-
|
|
4142
|
-
box-shadow: 0
|
|
4166
|
+
transform: translateY(-4px);
|
|
4167
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
4168
|
+
border-color: #b0b5bd;
|
|
4143
4169
|
}
|
|
4144
4170
|
|
|
4145
4171
|
.popular-topics-card-title {
|
|
@@ -4206,4 +4232,4 @@ p {
|
|
|
4206
4232
|
.popular-topics-grid {
|
|
4207
4233
|
grid-template-columns: 1fr;
|
|
4208
4234
|
}
|
|
4209
|
-
}
|
|
4235
|
+
}
|
package/dist/bundle.js
CHANGED
|
@@ -681,12 +681,13 @@ const NavBarTitle = () => {
|
|
|
681
681
|
style: {
|
|
682
682
|
border: '1px solid #D2D5DA',
|
|
683
683
|
height: '24px',
|
|
684
|
+
margin: '0 12px',
|
|
684
685
|
},
|
|
685
686
|
}),
|
|
686
687
|
logoText && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
687
688
|
children: logoText,
|
|
688
689
|
style: {
|
|
689
|
-
|
|
690
|
+
fontSize: '20px',
|
|
690
691
|
}
|
|
691
692
|
}),
|
|
692
693
|
!logo && !logoText && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
@@ -3224,8 +3225,10 @@ function HomepageTopics({ frontmatter, routePath }) {
|
|
|
3224
3225
|
}, topicItem.text);
|
|
3225
3226
|
}
|
|
3226
3227
|
|
|
3227
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("
|
|
3228
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
3228
3229
|
className: "topics-card",
|
|
3230
|
+
href: topicItem.link,
|
|
3231
|
+
style: { textDecoration: 'none', color: 'inherit' },
|
|
3229
3232
|
children: [
|
|
3230
3233
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3231
3234
|
className: "topics-icon-wrapper",
|
|
@@ -3233,8 +3236,7 @@ function HomepageTopics({ frontmatter, routePath }) {
|
|
|
3233
3236
|
className: topicItem.icon + " topics-icon"
|
|
3234
3237
|
})
|
|
3235
3238
|
}),
|
|
3236
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("
|
|
3237
|
-
href: topicItem.link,
|
|
3239
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
3238
3240
|
className: "topics-link",
|
|
3239
3241
|
children: topicItem.text
|
|
3240
3242
|
}),
|
|
@@ -3291,8 +3293,10 @@ function HomepageMoreTopics({ frontmatter, routePath }) {
|
|
|
3291
3293
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3292
3294
|
className: "topics-grid",
|
|
3293
3295
|
children: moreTopics.items.map((topicItem) => {
|
|
3294
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("
|
|
3296
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
3295
3297
|
className: "topics-card",
|
|
3298
|
+
href: topicItem.link,
|
|
3299
|
+
style: { textDecoration: 'none', color: 'inherit' },
|
|
3296
3300
|
children: [
|
|
3297
3301
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3298
3302
|
className: "topics-icon-wrapper",
|
|
@@ -3300,8 +3304,7 @@ function HomepageMoreTopics({ frontmatter, routePath }) {
|
|
|
3300
3304
|
className: topicItem.icon + " topics-icon"
|
|
3301
3305
|
})
|
|
3302
3306
|
}),
|
|
3303
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("
|
|
3304
|
-
href: topicItem.link,
|
|
3307
|
+
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
3305
3308
|
className: "topics-link",
|
|
3306
3309
|
children: topicItem.text
|
|
3307
3310
|
}),
|
|
@@ -3329,10 +3332,10 @@ function HomepageFeatures({ frontmatter, routePath }) {
|
|
|
3329
3332
|
|
|
3330
3333
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3331
3334
|
children: [
|
|
3332
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3335
|
+
features.title && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
3333
3336
|
children: [
|
|
3334
3337
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
|
|
3335
|
-
children: features.title
|
|
3338
|
+
children: features.title,
|
|
3336
3339
|
className: "topics-title"
|
|
3337
3340
|
}),
|
|
3338
3341
|
],
|
|
@@ -4051,8 +4054,9 @@ function WhatsNew({ frontmatter }) {
|
|
|
4051
4054
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
4052
4055
|
className: "whatsnew-cards",
|
|
4053
4056
|
children: (whatsNew.items || []).map((item) => {
|
|
4054
|
-
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("
|
|
4057
|
+
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
4055
4058
|
className: "whatsnew-card",
|
|
4059
|
+
href: item.link,
|
|
4056
4060
|
children: [
|
|
4057
4061
|
item.label && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
|
|
4058
4062
|
className: "whatsnew-label",
|
|
@@ -4063,13 +4067,8 @@ function WhatsNew({ frontmatter }) {
|
|
|
4063
4067
|
children: item.title
|
|
4064
4068
|
}),
|
|
4065
4069
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
4066
|
-
className: "whatsnew-
|
|
4067
|
-
children: item.
|
|
4068
|
-
}),
|
|
4069
|
-
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
|
|
4070
|
-
href: item.link,
|
|
4071
|
-
className: "whatsnew-link",
|
|
4072
|
-
children: "View Details →"
|
|
4070
|
+
className: "whatsnew-desc",
|
|
4071
|
+
children: item.desc
|
|
4073
4072
|
}),
|
|
4074
4073
|
]
|
|
4075
4074
|
}, item.title);
|
|
@@ -4288,16 +4287,10 @@ function HomepageTopSearch({ frontmatter, routePath }) {
|
|
|
4288
4287
|
|
|
4289
4288
|
function IntroBanner({ frontmatter, routePath }) {
|
|
4290
4289
|
const banner = frontmatter?.banner || DEFAULT_HERO;
|
|
4291
|
-
const imageSrc = typeof banner.image?.src === 'string'
|
|
4292
|
-
? { light: banner.image.src, dark: banner.image.src }
|
|
4293
|
-
: banner.image?.src || { light: '', dark: '' };
|
|
4294
4290
|
|
|
4295
4291
|
return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
4296
4292
|
style: {
|
|
4297
|
-
height: "
|
|
4298
|
-
backgroundImage: `url(${(0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.normalizeImagePath)(imageSrc.light)})`,
|
|
4299
|
-
backgroundSize: "cover",
|
|
4300
|
-
backgroundPosition: "center right",
|
|
4293
|
+
height: "233px",
|
|
4301
4294
|
display: "flex",
|
|
4302
4295
|
alignItems: "center",
|
|
4303
4296
|
paddingLeft: "40px"
|
|
@@ -4306,7 +4299,6 @@ function IntroBanner({ frontmatter, routePath }) {
|
|
|
4306
4299
|
(0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
4307
4300
|
style: {
|
|
4308
4301
|
maxWidth: "657px",
|
|
4309
|
-
padding: "20px",
|
|
4310
4302
|
borderRadius: "8px"
|
|
4311
4303
|
},
|
|
4312
4304
|
children: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress-theme-anatole/theme-default",
|
|
3
3
|
"author": "Anatole Tong",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.39",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/bundle.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@mdx-js/react": "2.3.0",
|
|
24
|
-
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.
|
|
25
|
-
"@rspress-theme-anatole/shared": "0.7.
|
|
24
|
+
"@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.39",
|
|
25
|
+
"@rspress-theme-anatole/shared": "0.7.39",
|
|
26
26
|
"@rspress/runtime": "1.43.8",
|
|
27
27
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
28
28
|
"copy-to-clipboard": "^3.3.3",
|