Skip to content

Commit

Permalink
Make code block 100% screen width on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Jan 23, 2021
1 parent 994b3e3 commit 28f36be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/css/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,16 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
margin-top: 1rem;
}
}

.post-content > div[class^='language-'] {
@include ml-mr(-1.25rem);
border-radius: 0;

&::before { // the lang badge
right: 1rem;
}
}

}

@media all and (max-width: 768px) {
Expand Down

0 comments on commit 28f36be

Please sign in to comment.