Skip to content

Commit

Permalink
(less) Fixes twbs#11193: Add kbd element styles to indicate user inpu…
Browse files Browse the repository at this point in the history
…t via keyboard
  • Loading branch information
mdo committed Dec 7, 2013
1 parent 3b0c819 commit fc35e0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code.less
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ code {
border-radius: @border-radius-base;
}

// User input typically entered via keyboard
kbd {
padding: 2px 4px;
font-size: 90%;
color: @kbd-color;
background-color: @kbd-bg;
border-radius: @border-radius-small;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
}

// Blocks of code
pre {
display: block;
Expand Down
3 changes: 3 additions & 0 deletions variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,9 @@
@code-color: #c7254e;
@code-bg: #f9f2f4;

@kbd-color: #fff;
@kbd-bg: #333;

@pre-bg: #f5f5f5;
@pre-color: @gray-dark;
@pre-border-color: #ccc;
Expand Down

0 comments on commit fc35e0a

Please sign in to comment.