Skip to content

Commit 6a89590

Browse files
committedJan 13, 2025··
chore(deps): update dependencies
fix(toc): address selected text highlight issue (#127, #126) - Updated styles in _markdown.scss and _typography.scss - Modified TableOfContents.svelte to fix issues with text selection
1 parent b599b9a commit 6a89590

File tree

5 files changed

+308
-269
lines changed

5 files changed

+308
-269
lines changed
 

‎package-lock.json

+276-249
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,46 @@
1515
},
1616
"devDependencies": {
1717
"@eslint/compat": "^1.2.3",
18-
"@eslint/js": "^9.16.0",
18+
"@eslint/js": "^9.17.0",
1919
"@melt-ui/pp": "^0.3.2",
2020
"@melt-ui/svelte": "^0.86.2",
21-
"@sveltejs/adapter-static": "^3.0.0",
22-
"@sveltejs/kit": "^2.11.0",
23-
"@sveltejs/vite-plugin-svelte": "^5.0.2",
24-
"@types/dateformat": "^5.0.2",
25-
"@types/node": "^22.10.1",
21+
"@sveltejs/adapter-static": "^3.0.8",
22+
"@sveltejs/kit": "^2.15.2",
23+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
24+
"@types/dateformat": "^5.0.3",
25+
"@types/node": "^22.10.5",
2626
"@types/prismjs": "^1.26.5",
27-
"@typescript-eslint/eslint-plugin": "^8.18.0",
28-
"@typescript-eslint/parser": "^8.18.0",
27+
"@typescript-eslint/eslint-plugin": "^8.19.1",
28+
"@typescript-eslint/parser": "^8.19.1",
2929
"autoprefixer": "^10.4.20",
30-
"eslint": "^9.16.0",
30+
"eslint": "^9.17.0",
3131
"eslint-config-eslint": "^11.0.0",
3232
"eslint-config-prettier": "^9.1.0",
3333
"eslint-plugin-prettier": "^5.2.1",
3434
"eslint-plugin-svelte": "^2.36.0",
35-
"globals": "^15.0.0",
35+
"globals": "^15.14.0",
3636
"mdsvex": "^0.12.3",
3737
"prettier": "^3.3.2",
3838
"prettier-plugin-svelte": "^3.2.6",
3939
"prettier-plugin-tailwindcss": "^0.6.5",
4040
"rehype-autolink-headings": "^7.1.0",
4141
"rehype-external-links": "^3.0.0",
4242
"rehype-slug": "^6.0.0",
43-
"sass": "^1.82.0",
44-
"svelte": "^5.0.0",
43+
"sass": "^1.83.1",
44+
"svelte": "^5.17.1",
4545
"svelte-check": "^4.0.0",
4646
"svelte-eslint-parser": "^0.43.0",
47-
"svelte-sitemap": "^2.6.0",
48-
"tailwindcss": "^3.4.9",
47+
"svelte-sitemap": "^2.7.0",
48+
"tailwindcss": "^3.4.17",
4949
"typescript": "^5.0.0",
5050
"typescript-eslint": "^8.0.0",
5151
"vite": "^6.0.0",
5252
"vite-plugin-imagemin": "^0.6.1"
5353
},
5454
"dependencies": {
5555
"@fontsource-variable/roboto-mono": "^5.1.0",
56-
"@fontsource-variable/roboto-slab": "^5.1.0",
57-
"@iconify/svelte": "^4.0.2",
56+
"@fontsource-variable/roboto-slab": "^5.1.1",
57+
"@iconify/svelte": "^4.2.0",
5858
"@tailwindcss/container-queries": "^0.1.1",
5959
"@tailwindcss/forms": "^0.5.9",
6060
"@tailwindcss/typography": "^0.5.15",

‎src/lib/components/atoms/TableOfContents.svelte

+5-3
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,23 @@
8787
8888
li {
8989
margin-top: 16px;
90+
list-style-type: none !important;
91+
margin-left: 0 !important;
9092
9193
a {
92-
color: rgba(245, 245, 245, 0.96);
94+
color: rgba(245, 245, 245, 0.96) !important;
9395
font-size: 0.875rem;
9496
text-decoration: none;
9597
word-break: keep-all;
9698
9799
&:hover {
98-
color: rgba(255, 49, 0, 0.96);
100+
color: rgba(255, 49, 0, 0.96) !important;
99101
}
100102
}
101103
102104
&.active a {
103105
font-weight: bold;
104-
color: rgba(255, 49, 0, 0.96);
106+
color: rgba(255, 49, 0, 0.96) !important;
105107
}
106108
}
107109
}

‎src/lib/scss/_markdown.scss

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#article-content {
22
.content {
3+
a {
4+
color: rgba(255, 49, 0, 0.96);
5+
word-break: keep-all;
6+
}
7+
38
a:not(.button) {
49
&:hover {
510
filter: drop-shadow(0px 0px 3px var(--color--primary));
@@ -97,4 +102,9 @@
97102
img {
98103
border-radius: 6px;
99104
}
105+
106+
ul li {
107+
list-style-type: disc;
108+
margin-left: 1rem;
109+
}
100110
}

‎src/lib/scss/_typography.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ a {
1818
}
1919

2020
::selection {
21-
background-color: rgba(var(--color--primary-rgb), 0.3);
21+
background-color: rgba(0, 120, 215, 0.3);
2222
color: var(--color--text);
2323
text-shadow: none;
2424
}

0 commit comments

Comments
 (0)
Please sign in to comment.