Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jul 9, 2024
1 parent 6f29ecf commit 441a265
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
18 changes: 3 additions & 15 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,11 @@ body {
}

figure[data-rehype-pretty-code-figure] {
&>figcaption[data-rehype-pretty-code-title] {
&>figcaption {
background-color: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
padding: 0.25rem 0.5rem 0.5rem 0.5rem;
margin-bottom: -1.25rem;
margin-left: -2rem;
margin-right: -2rem;
}

&>figcaption[data-rehype-pretty-code-caption] {
background-color: var(--md-sys-color-surface-container-high);
color: var(--md-sys-color-on-surface-variant);
padding: 0.5rem 0.5rem 0.25rem 0.5rem;
margin-top: -1.25rem;
margin-bottom: 1.25rem;
margin-left: -2rem;
margin-right: -2rem;
margin: 0 -2rem;
padding: 0.25rem 2rem;
}
}

Expand Down
3 changes: 2 additions & 1 deletion uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ export default {
'color': 'var(--md-sys-color-on-primary)',
},
'pre': {
'border-radius': 0,
'padding': '0.75rem 0',
'position': 'relative',
'margin': '-2rem',
'margin': '0 -2rem',
'overflow-y': 'hidden',
},
'pre,code': {
Expand Down

0 comments on commit 441a265

Please sign in to comment.