style: lint fix

This commit is contained in:
pengzhanbo 2025-01-29 23:18:18 +08:00
parent 4ed2ed49a8
commit b6df5e1e1c
3 changed files with 9 additions and 8 deletions

View File

@ -93,8 +93,8 @@ export function usePDF(
const isFirefoxWithPDFJS
= !isMobileDevice
&& /firefox/iu.test(userAgent)
&& userAgent.split('rv:').length > 1
&& /firefox/iu.test(userAgent)
&& userAgent.split('rv:').length > 1
? Number.parseInt(userAgent.split('rv:')[1].split('.')[0], 10) > 18
: false
@ -103,9 +103,9 @@ export function usePDF(
// As of Sept 2020 no mobile browsers properly support PDF embeds
= !isMobileDevice
// We're moving into the age of MIME-less browsers. They mostly all support PDF rendering without plugins.
&& (isModernBrowser
// Modern versions of Firefox come bundled with PDFJS
|| isFirefoxWithPDFJS)
&& (isModernBrowser
// Modern versions of Firefox come bundled with PDFJS
|| isFirefoxWithPDFJS)
if (!url)
return

View File

@ -131,7 +131,7 @@ function handleClick() {
.vp-back-to-top svg circle {
fill: none;
r: 16;
r: 16px;
stroke: var(--vp-c-brand-2);
stroke-dasharray: 0% 314.1593%;
stroke-width: 4px;
@ -157,7 +157,7 @@ function handleClick() {
}
.vp-back-to-top svg circle {
r: 22;
r: 22px;
}
}

View File

@ -93,7 +93,8 @@ const { bulletin, showBulletin, enableBulletin, close } = useBulletinControl()
mask:
linear-gradient(var(--vp-c-bg) 0 100%) content-box,
linear-gradient(var(--vp-c-bg) 0 100%);
mask-composite: xor;
-webkit-mask-composite: xor;
mask-composite: subtract;
}
.vp-bulletin:where(.preset) .close {