Skip to content

Commit

Permalink
Merge pull request #13351 from Cecchi/nested-kbd
Browse files Browse the repository at this point in the history
Add nested kbd element styles for actual keys or inputs
  • Loading branch information
mdo committed Jun 11, 2014
2 parents cb85f2a + f18bff0 commit ed2da1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_includes/css/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ <h2 id="code-inline">Inline</h2>
<h2 id="code-user-input">User input</h2>
<p>Use the <code>&lt;kbd&gt;</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.
Expand Down
6 changes: 6 additions & 0 deletions less/code.less
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed2da1c

Please sign in to comment.