Skip to content

Commit

Permalink
style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 28, 2023
1 parent b0995f9 commit fd512c8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@tailwind components;
@tailwind utilities;

.vp-code span {
color: var(--shiki-dark, inherit);
}

:root {
--c-brand: #3eaf7c;
--c-brand-light: #4abf8a;
Expand Down Expand Up @@ -31,6 +35,18 @@ p img {
display: none;
}

h3 .header-anchor {
display: inline-block;
position: absolute;
left: -1em;
text-decoration: none;
color: var(--c-brand);
}

h3 .header-anchor:before {
content: '#';
}

/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML.
* Based on https://github.com/chriskempson/tomorrow-theme
Expand Down Expand Up @@ -149,3 +165,24 @@ span.lang {
.custom-block.tip:before {
color: #42b883;
}

.prose :where(:not(pre)>code):not(:where([class~='not-prose'], [class~='not-prose'] *)) {
color: #0a3760;
padding: 0.25em 0.4em;
border-radius: 4px;
background-color: #eee;
}

.prose
:where(code):not(
:where([class~='not-prose'], [class~='not-prose'] *)
)::before {
content: '' !important;
}

.prose
:where(code):not(
:where([class~='not-prose'], [class~='not-prose'] *)
)::after {
content: '' !important;
}

0 comments on commit fd512c8

Please sign in to comment.