Update _keys.scss

Change to the keys 

    "arrow-down": "\2193", // ↓
    "arrow-left": "\2190", // ←
    "arrow-right": "\2192", // →
    "arrow-up": "\2191", // ↑
    "tab": "\21E5", // ⇥

also makes a few other lowercase hex numerals uppercase for consistency
This commit is contained in:
Adam Twardoch 2020-07-28 18:30:31 +02:00 committed by GitHub
parent 9b6361c0d7
commit 55ceceb3c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,91 +19,98 @@
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER /// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
/// DEALINGS /// DEALINGS
//// ////
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Scoped in typeset content to match specificity of regular content
// Scoped in typesetted content to match specificity of regular content
.md-typeset .keys { .md-typeset .keys {
// Keyboard key icon
kbd::before, // Keyboard key icon
kbd::after { kbd::before,
position: relative; kbd::after {
margin: 0; position: relative;
color: inherit; margin: 0;
-moz-osx-font-smoothing: initial; color: inherit;
-webkit-font-smoothing: initial; -moz-osx-font-smoothing: initial;
} -webkit-font-smoothing: initial;
// Surrounding text }
span {
padding: 0 px2em(3.2px); // Surrounding text
color: var(--md-default-fg-color--light); span {
} padding: 0 px2em(3.2px);
// Build special keys with icon on the left color: var(--md-default-fg-color--light);
@each $name, }
$code in ( // Modifiers
"alt": "\2387", // // Build special keys with left icon
"left-alt": "\2387", // @each $name, $code in (
"right-alt": "\2387", //
"command": "\2318", // // Modifiers
"left-command": "\2318", // "alt": "\2387",
"right-command": "\2318", // "left-alt": "\2387",
"control": "\2303", // "right-alt": "\2387",
"left-control": "\2303", // "command": "\2318",
"right-control": "\2303", // "left-command": "\2318",
"meta": "\25C6", // "right-command": "\2318",
"left-meta": "\25C6", // "control": "\2303",
"right-meta": "\25C6", // "left-control": "\2303",
"option": "\2325", // "right-control": "\2303",
"left-option": "\2325", // "meta": "\25C6",
"right-option": "\2325", // "left-meta": "\25C6",
"shift": "\21E7", // "right-meta": "\25C6",
"left-shift": "\21E7", // "option": "\2325",
"right-shift": "\21E7", // "left-option": "\2325",
"super": "\2756", // "right-option": "\2325",
"left-super": "\2756", // "shift": "\21E7",
"right-super": "\2756", // "left-shift": "\21E7",
"windows": "\229E", // "right-shift": "\21E7",
"left-windows": "\229E", // "super": "\2756",
"right-windows": "\229E", // "left-super": "\2756",
"right-super": "\2756",
"windows": "\229E",
"left-windows": "\229E",
"right-windows": "\229E",
// Other keys // Other keys
"arrow-down": "\2193", // "arrow-down": "\2193",
"arrow-left": "\2190", // "arrow-left": "\2190",
"arrow-right": "\2192", // "arrow-right": "\2192",
"arrow-up": "\2191", // "arrow-up": "\2191",
"backspace": "\232B", // "backspace": "\232B",
"backtab": "\21E4", // "backtab": "\21E4",
"caps-lock": "\21EA", // "caps-lock": "\21EA",
"clear": "\2327", // "clear": "\2327",
"context-menu": "\2630", // "context-menu": "\2630",
"delete": "\2326", // "delete": "\2326",
"eject": "\23CF", // "eject": "\23CF",
"end": "\2913", // "end": "\2913",
"escape": "\238B", // "escape": "\238B",
"home": "\2912", // "home": "\2912",
"insert": "\2380", // "insert": "\2380",
"page-down": "\21DF", // "page-down": "\21DF",
"page-up": "\21DE", // "page-up": "\21DE",
"print-screen": "\2399" // "print-screen": "\2399"
) { ) {
.key-#{$name} { .key-#{$name} {
&::before { &::before {
padding-right: px2em(6.4px); padding-right: px2em(6.4px);
content: $code; content: $code;
} }
}
} }
// Build special keys with icon on the right }
@each $name,
$code in ( // Keys // Build special keys with right icon
"tab": "\21E5", // @each $name, $code in (
"num-enter": "\2324", // "tab": "\21E5",
"enter": "\23CE" // "num-enter": "\2324",
) { "enter": "\23CE"
.key-#{$name} { ) {
&::after { .key-#{$name} {
padding-left: px2em(6.4px); &::after {
content: $code; padding-left: px2em(6.4px);
} content: $code;
} }
} }
} }
}