-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input History: add icons for mouse, ENTER and BACKSPACE (#332)
* Input History: add icons for mouse, ENTER and BACKSPACE ### CSS - Apply top margin to `p.key-combination` directly, so it doesn't have to be computed per inner element. - Add `vertical-align: middle` to every element inside `p.key-combination`. - Add CSS for divs grouping text and icons and margins in-between them. ### SVG - Make usage of `<symbol>` and `<use>` tags to reuse inlined SVG icons. - Replace multiple arrow icon SVGs with CSS-rotated versions of a single arrow. - Add icons for mouse inputs, ENTER and BACKSPACE. ### Script Move javascript icons class setup before `MOUSECODES` to use `outerHTML` of icon elements with classes already applied to them, without having to call `cloneNode` on each usage. This allows mouse inputs to use icons without any changes to `getKeyHTML`. ### Fix Remove bit masks for extra mouse buttons 3 and 4, that don't exist and actually map to `NUM_LOCK` and `CAPS_LOCK`. * History Input: fix visible icons; misaligned keys and labels Icons are hidden again. Keys are vertically centered to each other and they all have the same height. Labels and icons inside the keys are vertically centered. * Input History: add unique icons for each mouse input Instead of a combo of icon and text, mouse inputs have a unique icon for each input. Left click and left wheel scroll are reused, mirrored via css, for their right counterparts. * Input History: mouse scroll icons are more readable They look less like the middle click icon, with a bigger arrow and just a dot in the middle instead of the whole wheel.
- Loading branch information
Showing
1 changed file
with
240 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters