Skip to content

Commit

Permalink
fix: override bootstrap styling for dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Nov 19, 2024
1 parent 4aadd8b commit f936f57
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default defineComponent({
});
</script>
<template>
<h5 class="text-dark">
<h5>
<i class="fa-solid fa-book me-2" />
<template v-if="pmID">
<VCLink
Expand Down
14 changes: 12 additions & 2 deletions src/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
body {
background: inherit;
color: inherit;
}

a {
color: inherit;
text-decoration: none;
Expand Down Expand Up @@ -37,7 +42,7 @@ p {

.entity-card {
background-color: var(--vp-c-bg-soft);
border: 1px solid #dedede;
border: 1px solid var(--vp-c-bg-soft);
border-radius: 4px;
box-shadow: 0 4px 25px 0 rgba(0, 0, 0, .1);
padding: .5rem 1rem;
Expand All @@ -47,10 +52,15 @@ p {
}

.entity-card.active {
background-color: #413d3d !important;
background-color: #413d3d;
color: #eee;
}

.dark .entity-card.active {
background-color: var(--vp-c-brand-1);
border-color: var(--vp-c-brand-2);
}

.alert {
--bs-alert-bg: transparent;
--bs-alert-padding-x: 1rem;
Expand Down

0 comments on commit f936f57

Please sign in to comment.