diff options
| author | Mark Otto <[email protected]> | 2014-06-10 23:09:25 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-06-10 23:09:25 -0700 |
| commit | ed2da1c3544458aa4f113dbf4864b99f803f404d (patch) | |
| tree | 2b8626adfe2c87048546486fb6197332d5fb6968 | |
| parent | cb85f2ad9b7d4e5ca57b9417afc83a60a2274a05 (diff) | |
| parent | f18bff0a7c10fe7afe4276029e9eda15e1f0c227 (diff) | |
| download | bootstrap-ed2da1c3544458aa4f113dbf4864b99f803f404d.tar.xz bootstrap-ed2da1c3544458aa4f113dbf4864b99f803f404d.zip | |
Merge pull request #13351 from Cecchi/nested-kbd
Add nested kbd element styles for actual keys or inputs
| -rw-r--r-- | docs/_includes/css/code.html | 3 | ||||
| -rw-r--r-- | less/code.less | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/_includes/css/code.html b/docs/_includes/css/code.html index 6e15b4c56..675ac10e9 100644 --- a/docs/_includes/css/code.html +++ b/docs/_includes/css/code.html @@ -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. diff --git a/less/code.less b/less/code.less index 4d0eadc6d..baa13df61 100644 --- a/less/code.less +++ b/less/code.less @@ -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 |
