Skip to content

Commit 3aebca2

Browse files
committed
Use ::before pseudo-element for the shell prompt
Of the `git --version` code snippet.
1 parent 0d27ffd commit 3aebca2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/assets/stylesheets/reference.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ h3.plumbing {
146146

147147
code {
148148
user-select: all;
149-
}
150149

151-
span.prompt {
152-
user-select: none;
153-
font-weight: bold;
150+
&::before {
151+
content: '$ ';
152+
font-weight: bold;
153+
}
154154
}
155155
}
156156
}

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><span class="prompt">$ </span>git --version</code>
38+
<code>git --version</code>
3939
</footer>
4040
</div>

0 commit comments

Comments
 (0)