@rspress-theme-anatole/theme-default 0.7.38 → 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 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
  }
@@ -3621,6 +3626,16 @@ p {
3621
3626
  justify-content: center;
3622
3627
  gap: 8px;
3623
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;
3624
3639
  }
3625
3640
 
3626
3641
  .special-card {
@@ -3878,6 +3893,14 @@ p {
3878
3893
  border-radius: 8px;
3879
3894
  padding: 16px;
3880
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;
3881
3904
  }
3882
3905
 
3883
3906
  .whatsnew-label {
@@ -3897,18 +3920,12 @@ p {
3897
3920
  margin: 4px 0;
3898
3921
  }
3899
3922
 
3900
- .whatsnew-date {
3923
+ .whatsnew-desc {
3901
3924
  font-size: 16px;
3902
3925
  color: #6b7280;
3903
3926
  margin-bottom: 12px;
3904
3927
  }
3905
3928
 
3906
- .whatsnew-link {
3907
- font-weight: 600;
3908
- color: #111;
3909
- text-decoration: none;
3910
- }
3911
-
3912
3929
  .features-title {
3913
3930
  margin-bottom: 16px;
3914
3931
  font-size: 24px;
@@ -3970,8 +3987,14 @@ p {
3970
3987
  }
3971
3988
 
3972
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
+
3973
3995
  .features-tab-showcase a:hover {
3974
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
3996
+ transform: translateY(-4px);
3997
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
3975
3998
  }
3976
3999
 
3977
4000
  .request-article-section {
@@ -4135,12 +4158,14 @@ p {
4135
4158
  border-radius: 8px;
4136
4159
  background: #fff;
4137
4160
  text-decoration: none;
4138
- transition: box-shadow 0.2s ease, border-color 0.2s ease;
4161
+ transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
4162
+ cursor: pointer;
4139
4163
  }
4140
4164
 
4141
4165
  .popular-topics-card:hover {
4142
- border-color: #d5d5d5;
4143
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
4166
+ transform: translateY(-4px);
4167
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
4168
+ border-color: #b0b5bd;
4144
4169
  }
4145
4170
 
4146
4171
  .popular-topics-card-title {
@@ -4207,4 +4232,4 @@ p {
4207
4232
  .popular-topics-grid {
4208
4233
  grid-template-columns: 1fr;
4209
4234
  }
4210
- }
4235
+ }
package/dist/bundle.js CHANGED
@@ -3225,8 +3225,10 @@ function HomepageTopics({ frontmatter, routePath }) {
3225
3225
  }, topicItem.text);
3226
3226
  }
3227
3227
 
3228
- return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3228
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3229
3229
  className: "topics-card",
3230
+ href: topicItem.link,
3231
+ style: { textDecoration: 'none', color: 'inherit' },
3230
3232
  children: [
3231
3233
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3232
3234
  className: "topics-icon-wrapper",
@@ -3234,8 +3236,7 @@ function HomepageTopics({ frontmatter, routePath }) {
3234
3236
  className: topicItem.icon + " topics-icon"
3235
3237
  })
3236
3238
  }),
3237
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3238
- href: topicItem.link,
3239
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3239
3240
  className: "topics-link",
3240
3241
  children: topicItem.text
3241
3242
  }),
@@ -3292,8 +3293,10 @@ function HomepageMoreTopics({ frontmatter, routePath }) {
3292
3293
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3293
3294
  className: "topics-grid",
3294
3295
  children: moreTopics.items.map((topicItem) => {
3295
- return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3296
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3296
3297
  className: "topics-card",
3298
+ href: topicItem.link,
3299
+ style: { textDecoration: 'none', color: 'inherit' },
3297
3300
  children: [
3298
3301
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3299
3302
  className: "topics-icon-wrapper",
@@ -3301,8 +3304,7 @@ function HomepageMoreTopics({ frontmatter, routePath }) {
3301
3304
  className: topicItem.icon + " topics-icon"
3302
3305
  })
3303
3306
  }),
3304
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3305
- href: topicItem.link,
3307
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3306
3308
  className: "topics-link",
3307
3309
  children: topicItem.text
3308
3310
  }),
@@ -3330,10 +3332,10 @@ function HomepageFeatures({ frontmatter, routePath }) {
3330
3332
 
3331
3333
  return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3332
3334
  children: [
3333
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3335
+ features.title && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3334
3336
  children: [
3335
3337
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
3336
- children: features.title ?? 'Features',
3338
+ children: features.title,
3337
3339
  className: "topics-title"
3338
3340
  }),
3339
3341
  ],
@@ -4052,8 +4054,9 @@ function WhatsNew({ frontmatter }) {
4052
4054
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
4053
4055
  className: "whatsnew-cards",
4054
4056
  children: (whatsNew.items || []).map((item) => {
4055
- return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
4057
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
4056
4058
  className: "whatsnew-card",
4059
+ href: item.link,
4057
4060
  children: [
4058
4061
  item.label && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
4059
4062
  className: "whatsnew-label",
@@ -4064,13 +4067,8 @@ function WhatsNew({ frontmatter }) {
4064
4067
  children: item.title
4065
4068
  }),
4066
4069
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
4067
- className: "whatsnew-date",
4068
- children: item.date
4069
- }),
4070
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
4071
- href: item.link,
4072
- className: "whatsnew-link",
4073
- children: "View Details →"
4070
+ className: "whatsnew-desc",
4071
+ children: item.desc
4074
4072
  }),
4075
4073
  ]
4076
4074
  }, item.title);
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.38",
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.38",
25
- "@rspress-theme-anatole/shared": "0.7.38",
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",