Skip to content

Commit

Permalink
Tweak background colour of tokens in code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 6, 2023
1 parent ac2ab5e commit 78cf548
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
&__frame {
width: 100%;
height: 20rem;
margin: 0 auto;

display: block;

Expand All @@ -93,6 +94,10 @@
overflow: auto;
}

&--mobile {
max-width: 768px;
}

&--xxs {
height: 5rem;
}
Expand Down Expand Up @@ -146,6 +151,14 @@
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background-color: #f1ece9;

.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
background-color: transparent;
}
}

&-copy {
Expand Down

0 comments on commit 78cf548

Please sign in to comment.