We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 967f1e6 + e022ba5 commit f455f71Copy full SHA for f455f71
sass/_extra.scss
@@ -36,3 +36,19 @@ blockquote > p:first-child {
36
code {
37
font-size: 1rem;
38
}
39
+
40
+/* Remove the padding at the top of a code block to make space for the
41
+ * language/copybutton bar. */
42
+pre {
43
+ padding-top: .3rem;
44
+ /* To ensure that top and bottom padding are definitely the same, even if
45
+ * abridge updates its styles, let's set the padding-bottom to this value
46
+ * too. At the time of writing (2024-09-15), this is the same as abridge's
47
+ * value (and hence doesn't change anything). */
48
+ padding-bottom: .3rem;
49
+}
50
51
+/* Actually remove the language/copybutton bar at the top of a code block. */
52
+pre code[data-lang]::before {
53
+ display: none;
54
0 commit comments