mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
cheat-sheet: Add tooltip to copy hex code
[why]
With commit
6e361d40c
cheat-sheet: Allow click to copy on hex value
(on branch gh-pages) we add the possibility to copy the raw hex code by
clicking on the hex number.
It would be more obvious if there is a tooltip.
[how]
Add tooltip via 'title' in cheat-sheet generator script.
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
bd9258d654
commit
643cf84240
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ for var in "${!i@}"; do
|
|||
printf "\\n"
|
||||
printf " <div class=\"nf nf-%s center\"></div>" "$glyph_name"
|
||||
printf "\\n"
|
||||
printf " <div class=\"class-name\">nf-%s</div><div class=\"codepoint\">%s</div>" "$glyph_name" "$glyph_code"
|
||||
printf " <div class=\"class-name\">nf-%s</div><div title=\"Copy Hex Code to Clipboard\" class=\"codepoint\">%s</div>" "$glyph_name" "$glyph_code"
|
||||
printf "\\n"
|
||||
printf " </div>"
|
||||
printf "\\n"
|
||||
|
|
Loading…
Reference in a new issue