Skip to content

Commit

Permalink
fix: code editor styles in admonitions (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao authored Dec 13, 2024
1 parent 86a686e commit 2d6058f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -795,11 +795,17 @@ table {
}
}

code {
code:not(pre code) {
background-color: var(--logto-container-neutral-bg);
}
}

html[data-theme='dark'] {
.alert pre code {
background-color: #181132;
}
}

.alert--info,
.alert--secondary {
--ifm-alert-background-color: var(--logto-container-info-bg);
Expand Down
6 changes: 3 additions & 3 deletions src/theme/Admonition/Layout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

> p:first-of-type {
display: inline;
}

p + p {
margin-block: 1rem 0;
+ * {
margin-block: 1rem;
}
}

.title {
Expand Down

0 comments on commit 2d6058f

Please sign in to comment.