Skip to content

Commit

Permalink
add: code highghlight
Browse files Browse the repository at this point in the history
fix: code blocks style
  • Loading branch information
therealzaybee committed Jul 29, 2023
1 parent 8dfa026 commit 927b858
Show file tree
Hide file tree
Showing 8 changed files with 164 additions and 21 deletions.
46 changes: 30 additions & 16 deletions assets/built/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2098,25 +2098,25 @@ figcaption strong {
color: rgba(0,0,0,0.8);
}

.gh-canvas :not(pre) code {
vertical-align: middle;
padding: 0.15em 0.4em 0.15em;
border: #e1eaef 1px solid;
font-weight: 400 !important;
font-size: 0.9em;
line-height: 1em;
color: #dc0050;
background: #f0f6f9;
border-radius: 0.25em;
/* .gh-canvas :not(pre) code {
vertical-align: middle;
padding: 0.15em 0.4em 0.15em;
border: #e1eaef 1px solid;
font-weight: 400 !important;
font-size: 0.9em;
line-height: 1em;
color: #dc0050;
background: #f0f6f9;
border-radius: 0.25em;
}
.gh-canvas > pre {
overflow: scroll;
padding: 16px 20px;
background: rgba(255,255,255,0.8);
border-radius: 5px;
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
}
overflow: scroll;
padding: 16px 20px;
background: rgba(255,255,255,0.8);
border-radius: 5px;
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
} */

.kg-embed-card {
display: flex;
Expand Down Expand Up @@ -2744,6 +2744,20 @@ body.dark {
max-width: 100%
}

:not(pre)>code[class*=language-],pre[class*=language-]{
--tw-bg-opacity: 1 !important;
background-color: rgb(1 22 39 / var(--tw-bg-opacity)) !important;
}

:is(.dark :not(pre)>code[class*=language-]),:is(.dark pre[class*=language-]){
--tw-bg-opacity: 1 !important;
background-color: rgb(39 40 34 / var(--tw-bg-opacity)) !important;
}

:not(pre)>code[class*=language-],pre[class*=language-] {
border-radius: 8px;
}

:is(.dark .dark\:prose-invert){
--tw-prose-body: var(--tw-prose-invert-body);
--tw-prose-headings: var(--tw-prose-invert-headings);
Expand Down
2 changes: 1 addition & 1 deletion assets/built/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/built/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/css/ghost/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ figcaption strong {
color: rgba(0,0,0,0.8);
}

.gh-canvas :not(pre) code {
/* .gh-canvas :not(pre) code {
vertical-align: middle;
padding: 0.15em 0.4em 0.15em;
border: #e1eaef 1px solid;
Expand All @@ -154,7 +154,7 @@ figcaption strong {
background: rgba(255,255,255,0.8);
border-radius: 5px;
box-shadow: 0 2px 6px -2px rgba(0,0,0,.1), 0 0 1px rgba(0,0,0,.4);
}
} */

.kg-embed-card {
display: flex;
Expand Down
5 changes: 5 additions & 0 deletions assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,8 @@ body.dark {
margin: 0 auto;
max-width: 100%
}

:not(pre)>code[class*=language-],pre[class*=language-] {
@apply !bg-[#011627] dark:!bg-[#272822];
border-radius: 8px;
}
3 changes: 3 additions & 0 deletions assets/css/prism.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 927b858

Please sign in to comment.