We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 549e9f2 + 853d587 commit 495fdd9Copy full SHA for 495fdd9
1 file changed
assets/scss/_styles_project.scss
@@ -100,6 +100,27 @@ body {
100
border-top-right-radius: 0;
101
}
102
103
+ // Support for plain <code> blocks with filename attribute
104
+ code[filename] {
105
+ display: block;
106
+ margin-top: 2rem;
107
+ }
108
+
109
+ code[filename]::before {
110
+ content: attr(filename);
111
112
+ padding: 0.5rem 0.75rem;
113
+ font-size: 0.85rem;
114
+ font-weight: 600;
115
+ line-height: 1.2;
116
+ color: #5f6b7a;
117
+ background: #eef3fb;
118
+ border: 1px solid var(--bs-border-color);
119
+ border-bottom: 0;
120
+ border-top-left-radius: 0.5rem;
121
+ border-top-right-radius: 0.5rem;
122
123
124
img,
125
.md__image img,
126
img.md-image-responsive {
0 commit comments