Skip to content

Commit

Permalink
fix: elements being gray on print
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored and kbdharun committed Jul 20, 2024
1 parent 0dc909f commit d1b585b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,16 @@

::-webkit-scrollbar-thumb:hover {
background: #555;
}
}


@media print {
body {
background-color: white;
color: black;
}

h1, h2, h3, h4, h5, h6, code {
color: black;
}
}
2 changes: 1 addition & 1 deletion src/views/ArticleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
</nav>
<section class="bg-gray-100 dark:bg-gray-800 text-black dark:text-gray-200">
<div class="container mx-auto py-8 px-4 text-center">
<div class="container mx-auto py-8 px-4 text-center print:text-black">
<h1 class="text-3xl font-bold">{{ article.Title }}</h1>
<p class="mt-4">{{ article.Description }}</p>
<div class="flex justify-center mt-4 gap-2">
Expand Down

0 comments on commit d1b585b

Please sign in to comment.