Skip to content

Commit

Permalink
Fixed #26: Better highlighting for keystrokes
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 16, 2016
1 parent 016b1a2 commit e30b60b
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 5 deletions.
1 change: 1 addition & 0 deletions material/assets/stylesheets/application-0dac3e5884.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion material/assets/stylesheets/application-d83054620e.css

This file was deleted.

2 changes: 1 addition & 1 deletion material/assets/stylesheets/application.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
font-style: normal;
}
</style>
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d83054620e.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0dac3e5884.css">
{% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/palettes-05ab2406df.css">
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion material/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
"assets/javascripts/application.js": "assets/javascripts/application-997097ee0c.js",
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
"assets/stylesheets/application.css": "assets/stylesheets/application-d83054620e.css",
"assets/stylesheets/application.css": "assets/stylesheets/application-0dac3e5884.css",
"assets/stylesheets/palettes.css": "assets/stylesheets/palettes-05ab2406df.css"
}
12 changes: 12 additions & 0 deletions src/assets/stylesheets/modules/article/_appearance.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
background: #eee;
}

/*
* Keyboard tags
*/
kbd {
color: #555;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}

/*
* Lower border for main headline
*/
Expand Down
9 changes: 9 additions & 0 deletions src/assets/stylesheets/modules/article/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,15 @@
padding: 2px 4px;
}

/*
* Keyboard tags
*/
kbd {
display: inline-block;
padding: 3px 5px;
line-height: 10px;
}

/*
* Add spacing at top of separator
*/
Expand Down
2 changes: 1 addition & 1 deletion src/assets/stylesheets/modules/base/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ body, input {
/*
* Proportional fonts
*/
pre, code {
pre, code, kbd {
font-family: 'Courier New', 'Courier', monospace;

/*
Expand Down

0 comments on commit e30b60b

Please sign in to comment.