fix: improve print and mobile styles

finxol.io 15a79e92 af00ae53

verified
Changed files
+13 -3
app
components
content
+13 -3
app/components/content/Bookmark.vue
···
:to="url"
:class="[
'flex flex-row items-center justify-start gap-4',
-
'px-2 py-4 md:px-4 md:py-6 not-prose',
+
'px-4 py-4 md:px-6 md:py-6 not-prose',
'border border-gray-300 dark:border-gray-700 border-solid border-2 rounded-lg',
'bg-stone-200/25 hover:bg-stone-200/50 dark:bg-stone-700/25 dark:hover:bg-stone-700/50',
-
'transition-colors duration-200'
+
'transition-colors duration-200',
+
'bookmark-link'
]"
>
<Icon name="ri:bookmark-fill" size="1.5rem" class="text-yellow-700" />
-
<div class="flex flex-col items-start justify-start">
+
<div class="bookmark-content flex flex-col items-start justify-start font-bold">
<slot />
<span class="text-xs text-gray-400 dark:text-gray-600">
{{props.url}}
···
</div>
</NuxtLink>
</template>
+
+
<style scope>
+
@media print {
+
a.bookmark-link::after {
+
content: "";
+
display: none;
+
}
+
}
+
</style>