mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
Add nested kbd element styles for actual keys or inputs
This commit is contained in:
@@ -13,7 +13,8 @@ For example, <code><section></code> should be wrapped as inline.
|
|||||||
<h2 id="code-user-input">User input</h2>
|
<h2 id="code-user-input">User input</h2>
|
||||||
<p>Use the <code><kbd></code> to indicate input that is typically entered via keyboard.</p>
|
<p>Use the <code><kbd></code> to indicate input that is typically entered via keyboard.</p>
|
||||||
<div class="bs-example">
|
<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>
|
</div>
|
||||||
{% highlight html %}
|
{% highlight html %}
|
||||||
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.
|
||||||
|
@@ -28,6 +28,12 @@ kbd {
|
|||||||
background-color: @kbd-bg;
|
background-color: @kbd-bg;
|
||||||
border-radius: @border-radius-small;
|
border-radius: @border-radius-small;
|
||||||
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
|
||||||
|
kbd {
|
||||||
|
padding: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Blocks of code
|
// Blocks of code
|
||||||
|
Reference in New Issue
Block a user