Skip to content

Commit 547e440

Browse files
committed
perf: Use cooltipz-class stylesheet from cooltipz-css v2.4.0 for improved performance
1 parent 955c126 commit 547e440

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

app/components/SiteFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ul>
1414
<ul class="footer__social">
1515
<li v-for="socialLink in socialLinks" :key="socialLink.key">
16-
<nuxt-link :href="socialLink.value" target="_blank" rel="noopener noreferrer" data-cooltipz-dir="top" :aria-label="socialLink.key">
16+
<nuxt-link :href="socialLink.value" target="_blank" rel="noopener noreferrer" class="cooltipz--top" :aria-label="socialLink.key">
1717
<Icon class="footer__social-icon" :name="`custom:${socialLink.key.toLowerCase()}`" mode="svg" />
1818
<span class="sr-only">{{ socialLink.key }}</span>
1919
</nuxt-link>

app/pages/blog/[year]/[slug].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
</p>
2626
<ul class="article__share">
2727
<li>
28-
<a :href="`https://twitter.com/intent/tweet?text=${article.title} by Jack Domleo&url=${config.public.BASE_URL}${$route.path}`" rel="nofollow noopener" target="_blank" data-cooltipz-dir="top" aria-label="Share on X">
28+
<a :href="`https://twitter.com/intent/tweet?text=${article.title} by Jack Domleo&url=${config.public.BASE_URL}${$route.path}`" rel="nofollow noopener" target="_blank" class="cooltipz--top" aria-label="Share on X">
2929
<Icon name="custom:twitter" mode="svg" />
3030
<span class="sr-only">Share on X/Twitter</span>
3131
</a>
3232
</li>
3333
<li>
34-
<a :href="`https://www.linkedin.com/shareArticle?mini=true&url=${config.public.BASE_URL}${$route.path}&title=${article.title}&summary=${article.description} by Jack Domleo&source=${config.public.BASE_URL}${$route.path}`" rel="nofollow noopener" target="_blank" data-cooltipz-dir="top" aria-label="Share on LinkedIn">
34+
<a :href="`https://www.linkedin.com/shareArticle?mini=true&url=${config.public.BASE_URL}${$route.path}&title=${article.title}&summary=${article.description} by Jack Domleo&source=${config.public.BASE_URL}${$route.path}`" rel="nofollow noopener" target="_blank" class="cooltipz--top" aria-label="Share on LinkedIn">
3535
<Icon name="custom:linkedin" mode="svg" />
3636
<span class="sr-only">Share on LinkedIn</span>
3737
</a>
3838
</li>
3939
<li>
40-
<button data-cooltipz-dir="top" aria-label="Copy link" @click="copyLink()">
40+
<button class="cooltipz--top" aria-label="Copy link" @click="copyLink()">
4141
<Icon name="custom:link" mode="svg" />
4242
<span class="sr-only">Copy link</span>
4343
</button>

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default defineNuxtConfig({
1919
},
2020
css: [
2121
'modern-normalize/modern-normalize.css',
22-
'cooltipz-css/src/cooltipz.scss',
22+
'cooltipz-css/src/cooltipz-classes.scss',
2323
'~/assets/styles/main.scss'
2424
],
2525
site: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@nuxtjs/sitemap": "^7.4.3",
2929
"@vueuse/core": "^13.6.0",
3030
"better-sqlite3": "^12.2.0",
31-
"cooltipz-css": "^2.3.1",
31+
"cooltipz-css": "^2.4.0",
3232
"dayjs": "^1.11.13",
3333
"i": "^0.3.7",
3434
"modern-normalize": "^3.0.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)