diff options
| author | Cecchi MacNaughton <[email protected]> | 2014-04-15 14:12:39 -0700 |
|---|---|---|
| committer | Cecchi MacNaughton <[email protected]> | 2014-04-15 14:12:39 -0700 |
| commit | f18bff0a7c10fe7afe4276029e9eda15e1f0c227 (patch) | |
| tree | 3e69817a7262764a055e4db4d3712c9ae7d64898 | |
| parent | 2127eb563fafdad10d004d33533a44ad023440e5 (diff) | |
| download | bootstrap-f18bff0a7c10fe7afe4276029e9eda15e1f0c227.tar.xz bootstrap-f18bff0a7c10fe7afe4276029e9eda15e1f0c227.zip | |
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 0d1396145..188bd18ca 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 |
