Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
f18bff0a
Commit
f18bff0a
authored
10 years ago
by
Cecchi MacNaughton
Browse files
Options
Download
Email Patches
Plain Diff
Add nested kbd element styles for actual keys or inputs
parent
2127eb56
5 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!13351
Add nested kbd element styles for actual keys or inputs
,
!25326
Adjust examples
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/_includes/css/code.html
+2
-1
docs/_includes/css/code.html
less/code.less
+6
-0
less/code.less
with
8 additions
and
1 deletion
+8
-1
docs/_includes/css/code.html
+
2
-
1
View file @
f18bff0a
...
...
@@ -13,7 +13,8 @@ For example, <code><section></code> should be wrapped as inline.
<h2
id=
"code-user-input"
>
User input
</h2>
<p>
Use the
<code>
<
kbd
>
</code>
to indicate input that is typically entered via keyboard.
</p>
<div
class=
"bs-example"
>
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
<br>
To edit settings, press
<kbd><kbd>
ctrl
</kbd>
+
<kbd>
,
</kbd></kbd>
</div>
{% highlight html %}
To switch directories, type
<kbd>
cd
</kbd>
followed by the name of the directory.
...
...
This diff is collapsed.
Click to expand it.
less/code.less
+
6
-
0
View file @
f18bff0a
...
...
@@ -28,6 +28,12 @@ kbd {
background-color: @kbd-bg;
border-radius: @border-radius-small;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
kbd {
padding: 0;
font-size: 100%;
box-shadow: none;
}
}
// Blocks of code
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets