Skip to content

Commit e30b60b

Browse files
committed
Fixed #26: Better highlighting for keystrokes
1 parent 016b1a2 commit e30b60b

File tree

8 files changed

+26
-5
lines changed

8 files changed

+26
-5
lines changed

material/assets/stylesheets/application-0dac3e5884.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/application-d83054620e.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/assets/stylesheets/application.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
font-style: normal;
5454
}
5555
</style>
56-
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-d83054620e.css">
56+
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0dac3e5884.css">
5757
{% if config.extra.palette %}
5858
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/palettes-05ab2406df.css">
5959
{% endif %}

material/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"assets/images/favicon.ico": "assets/images/favicon-e565ddfa3b.ico",
33
"assets/javascripts/application.js": "assets/javascripts/application-997097ee0c.js",
44
"assets/javascripts/modernizr.js": "assets/javascripts/modernizr-4ab42b99fd.js",
5-
"assets/stylesheets/application.css": "assets/stylesheets/application-d83054620e.css",
5+
"assets/stylesheets/application.css": "assets/stylesheets/application-0dac3e5884.css",
66
"assets/stylesheets/palettes.css": "assets/stylesheets/palettes-05ab2406df.css"
77
}

src/assets/stylesheets/modules/article/_appearance.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@
5757
background: #eee;
5858
}
5959

60+
/*
61+
* Keyboard tags
62+
*/
63+
kbd {
64+
color: #555;
65+
background-color: #fcfcfc;
66+
border: solid 1px #ccc;
67+
border-bottom-color: #bbb;
68+
border-radius: 3px;
69+
box-shadow: inset 0 -1px 0 #bbb;
70+
}
71+
6072
/*
6173
* Lower border for main headline
6274
*/

src/assets/stylesheets/modules/article/_layout.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,15 @@
193193
padding: 2px 4px;
194194
}
195195

196+
/*
197+
* Keyboard tags
198+
*/
199+
kbd {
200+
display: inline-block;
201+
padding: 3px 5px;
202+
line-height: 10px;
203+
}
204+
196205
/*
197206
* Add spacing at top of separator
198207
*/

src/assets/stylesheets/modules/base/_typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body, input {
4646
/*
4747
* Proportional fonts
4848
*/
49-
pre, code {
49+
pre, code, kbd {
5050
font-family: 'Courier New', 'Courier', monospace;
5151

5252
/*

0 commit comments

Comments
 (0)