Skip to content

Commit d66ad32

Browse files
committed
Add class for code blocks that represent a command
1 parent 3aebca2 commit d66ad32

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/assets/stylesheets/reference.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,6 @@ h3.plumbing {
143143
display: block;
144144
color: $light-font-color;
145145
}
146-
147-
code {
148-
user-select: all;
149-
150-
&::before {
151-
content: '$ ';
152-
font-weight: bold;
153-
}
154-
}
155146
}
156147
}
157148

@@ -360,3 +351,12 @@ p.quickref {
360351
margin-bottom: 20px;
361352
background-color: $callout-color;
362353
}
354+
355+
code.command {
356+
user-select: all;
357+
358+
&::before {
359+
content: '$ ';
360+
font-weight: bold;
361+
}
362+
}

app/views/doc/_versions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
</ol>
3636
<footer>
3737
<p>Check your version of git by running</p>
38-
<code>git --version</code>
38+
<code class="command">git --version</code>
3939
</footer>
4040
</div>

0 commit comments

Comments
 (0)