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,11 +19,14 @@
/// 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 // Keyboard key icon
kbd::before, kbd::before,
kbd::after { kbd::after {
@ -33,57 +36,61 @@
-moz-osx-font-smoothing: initial; -moz-osx-font-smoothing: initial;
-webkit-font-smoothing: initial; -webkit-font-smoothing: initial;
} }
// Surrounding text // Surrounding text
span { span {
padding: 0 px2em(3.2px); padding: 0 px2em(3.2px);
color: var(--md-default-fg-color--light); color: var(--md-default-fg-color--light);
} }
// Build special keys with icon on the left
@each $name, // Build special keys with left icon
$code in ( // Modifiers @each $name, $code in (
"alt": "\2387", //
"left-alt": "\2387", // // Modifiers
"right-alt": "\2387", // "alt": "\2387",
"command": "\2318", // "left-alt": "\2387",
"left-command": "\2318", // "right-alt": "\2387",
"right-command": "\2318", // "command": "\2318",
"control": "\2303", // "left-command": "\2318",
"left-control": "\2303", // "right-command": "\2318",
"right-control": "\2303", // "control": "\2303",
"meta": "\25C6", // "left-control": "\2303",
"left-meta": "\25C6", // "right-control": "\2303",
"right-meta": "\25C6", // "meta": "\25C6",
"option": "\2325", // "left-meta": "\25C6",
"left-option": "\2325", // "right-meta": "\25C6",
"right-option": "\2325", // "option": "\2325",
"shift": "\21E7", // "left-option": "\2325",
"left-shift": "\21E7", // "right-option": "\2325",
"right-shift": "\21E7", // "shift": "\21E7",
"super": "\2756", // "left-shift": "\21E7",
"left-super": "\2756", // "right-shift": "\21E7",
"right-super": "\2756", // "super": "\2756",
"windows": "\229E", // "left-super": "\2756",
"left-windows": "\229E", // "right-super": "\2756",
"right-windows": "\229E", // "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 {
@ -92,12 +99,12 @@
} }
} }
} }
// Build special keys with icon on the right
@each $name, // Build special keys with right icon
$code in ( // Keys @each $name, $code in (
"tab": "\21E5", // "tab": "\21E5",
"num-enter": "\2324", // "num-enter": "\2324",
"enter": "\23CE" // "enter": "\23CE"
) { ) {
.key-#{$name} { .key-#{$name} {
&::after { &::after {