Skip to content

Commit 9a23db5

Browse files
authored
Merge pull request #1578 from ugultopu/semantic-html-for-git-version
Use pseudo element to represent shell prompt
2 parents ae8156e + 2fcbc84 commit 9a23db5

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-
151-
span.prompt {
152-
user-select: none;
153-
font-weight: bold;
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><span class="prompt">$ </span>git --version</code>
38+
<code class="command">git --version</code>
3939
</footer>
4040
</div>

0 commit comments

Comments
 (0)