Skip to content

Commit

Permalink
Merge pull request #4 from tomsmeding/no-copy-bar
Browse files Browse the repository at this point in the history
Theme: no copy bar
  • Loading branch information
Kleidukos authored Sep 15, 2024
2 parents 967f1e6 + e022ba5 commit f455f71
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sass/_extra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,19 @@ blockquote > p:first-child {
code {
font-size: 1rem;
}

/* Remove the padding at the top of a code block to make space for the
* language/copybutton bar. */
pre {
padding-top: .3rem;
/* To ensure that top and bottom padding are definitely the same, even if
* abridge updates its styles, let's set the padding-bottom to this value
* too. At the time of writing (2024-09-15), this is the same as abridge's
* value (and hence doesn't change anything). */
padding-bottom: .3rem;
}

/* Actually remove the language/copybutton bar at the top of a code block. */
pre code[data-lang]::before {
display: none;
}

0 comments on commit f455f71

Please sign in to comment.