X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/623177b99e1aa90c459e5710df34a8cd33ad2b01..2cfffe473f6c6bdfaa9084bf5f2d3973e7314519:/keyboard/altgr/index.inc.plp diff --git a/keyboard/altgr/index.inc.plp b/keyboard/altgr/index.inc.plp index 7966426..172d931 100644 --- a/keyboard/altgr/index.inc.plp +++ b/keyboard/altgr/index.inc.plp @@ -32,6 +32,14 @@ Html({ .keys.big.cmp tbody { font-size: 150%; } +@media (max-width: 48em) { + .keys.big.cmp tbody { + font-size: 100%; + } + .keys.big.cmp tbody a { + white-space: normal; + } +} .keys.cmp tbody { display: table-row-group; } @@ -47,6 +55,18 @@ Html({ text-align: right; } +@font-face { + font-family: osicons; + src: url(/osicon.ttf); +} +.icon { + font-family: osicons; +} +.keys.cmp tbody .ni { + font-size: 80%; + padding: 0 .2em; +} + .graph { display: block; line-height: 1ex; @@ -98,10 +118,10 @@ require Shiar_Sheet::Keyboard; use List::Util qw( uniq max ); my %caticon = ( - legacy => "\N{TOP HAT}", - windows => "\x{1FA9F}", # \N{WINDOW} - macos => "\N{RED APPLE}", - xorg => "\N{PENGUIN}", + legacy => qq{\N{TOP HAT}}, + windows => qq{\x{1FA9F}}, # \N{WINDOW} + macos => qq{\N{RED APPLE}}, + xorg => qq{\N{PENGUIN}}, ); printf '
', @sample ? 'section' : 'gallery'; @@ -135,7 +155,8 @@ for my $inc (sort { my $keys = Shiar_Sheet::Keyboard->new($table); for my $mode ($keys->{mode} ? sort keys %{ $keys->{mode} } : '') { my %inventory; - $inventory{ s/ (?!ext).*//r }++ for values %{ $keys->{def}{$mode} }; + $inventory{$_}++ for grep { /^g[2-9]/ } map { s/ (?!ext).*//r } + values %{ $keys->{def}{$mode} }; print ''; print "" for $keys->{key}{$mode} =~ s/\s.*//r || (); for my $g (sort keys %inventory) { @@ -148,10 +169,11 @@ for my $inc (sort { } say ''; } - print "\t"; - print join '
', map { $caticon{$_} // () } split m{/}, $keys->{category}; + print "\t"; + print join ' ', map { $caticon{$_} // () } split m{/}, $keys->{category}; say ''; - $keys->print_key('', $_, $keys->{def}{''}{$_} // 'ni') for @sample; + $keys->print_key('', $_, ($keys->{def}{''}{$_} // 'ni') =~ s/ mode\S*//r) + for @sample; say ''; } }