Skip to content

Commit

Permalink
Merge pull request #79 from k-utsumi/feature/update-markdown
Browse files Browse the repository at this point in the history
Fix pre/code style for #477
  • Loading branch information
LeBenLeBen authored and mihkeleidast committed May 23, 2020
1 parent b627a96 commit 5f55fb8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions packages/mandelbrot/assets/scss/components/_prose.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
font-feature-settings: "liga", "dlig", "kern", "onum";
hanging-punctuation: first;

> *:not(:last-child) {
> *:not(pre):not(:last-child) {
margin-bottom: 0.75em;
}

Expand Down Expand Up @@ -68,24 +68,25 @@
opacity: 0.75;
}

code,
code pre {
code {
padding: 0.125rem;
background-color: rgba($color-text, 0.075);
}

img {
max-width: 100%;
}

p code,
li code {
padding: 0.125rem;
pre > code {
padding: 0;
background: 0;
}

code pre {
pre {
padding: 0.125rem 0.5rem;
margin: 1rem -0.5rem;
overflow: auto;
background-color: rgba($color-text, 0.075);
}

img {
max-width: 100%;
}

table {
Expand Down

0 comments on commit 5f55fb8

Please sign in to comment.