3 body, .s-dark .s-light {
11 text-decoration: underline;
15 text-decoration: none;
36 font-size: 91%; /* 100% */
37 margin-top: .3ex; /* align with 110% baseline */
58 position: relative; /* prevents buggy hovering in table if caption present in gecko */
65 margin: -0.5ex 0 1ex; /* headers provide sufficient spacing already */
85 background: rgba(255, 0, 0, .8);
87 border: 2px solid #000;
110 white-space: pre-wrap;
111 overflow-wrap: break-word;
121 font-size: 1.9vmin; /* cover full width at most */
130 position: absolute; /* side note; do not influence alignment */
133 font-size: 50%; /* 1rem */
134 padding-top: 1.75ex; /* align baseline with container */
143 grid: auto-flow / 1fr 1fr;
160 @media (max-width: 42em) {
162 grid: auto-flow / minmax(8em, 1fr) minmax(10em, 3fr);
165 margin-bottom: 1ex; /* distinguish rows more as dts can wrap */
168 display: inline-block;
175 /* "keyboard" (list of keys) */
177 .row0 {margin-top: -5ex} /* top (esc) row fits besides header */
178 .row2 {margin-left: 7em} /* row offsets relative to ~6em key width */
179 .row3 {margin-left: 8em}
180 .row4 {margin-left: 10em} /* should actually align to next key on row1 */
181 /* ...however rows>=1 are shifted a bit, to make space */
184 display: none; /* semantic details (non-css/js) */
188 @at-root #{selector-unify(table, &)} {
191 border-collapse: collapse;
196 clear: both; /* start new row (screen row) */
200 /* start new row block (keyboard row) */
210 /* individual keys */
213 @extend h3; /* initially hidden (only show interactively (js)) */
218 display: inline-block;
221 line-height: 2.25ex; /* a little terser (seems to be gecko's default anyway) */
222 height: 4.5ex; /* 2 lines */
227 border: 1px solid #000;
229 -moz-border-radius: 4px;
230 text-transform-variation: text;
236 line-height: 2.5ex; /* inherits otherwise */
239 .row0 td { /* omni-present esc */
243 /* fine tuning of special occurrences */
245 td b[title] { /* mnemonic hover */
248 td[onclick]:hover { /* link */
251 td a { /* key link */
253 text-decoration: none;
258 .meta, .ctrl, .lead {
259 td b { /* char with ctrl or leading key */
260 font-size: 100%; /* space is too limited for 2+ double-sized chars */
261 line-height: 5ex; /* keep double height though */
265 td b small { /* meta key indicator */
267 font-weight: normal; /* nice and subtle */
279 font-size: calc(7vmin - 4px); /* fit 12 keys to page */
286 /* override row alignments */
288 font-size: calc(1.4vmin); /* enlarged td conversion */
290 .row2 {margin-left: 7em}
291 .row3 {margin-left: 8em}
292 .row4 {margin-left: 10em}
294 display: none; /* headerless */
298 position: absolute; /* overlay */
300 top: -1.2ex; /* halfway over shift */
308 &.cmp, .ctrl, .meta, .shift {
319 border-collapse: collapse;
323 border: 1px solid #888;
334 /* first cell determines border width for entire row */
335 border-top-color: transparent;
350 /* character table */
354 width: 1.6em; /* regular interval */
363 margin: 0.5ex 0; /* nested in legend */
371 min-width: 2.5ex; /* square cells */
380 background: transparent;
383 width: auto; /* no glyph cells in header */
386 margin-left: 2.2em; /* 1ex + offset head column (1.6em + 0.4em) / 110% */
387 /* adjusted insignificant -.2em to fit wide contents on /charset/mac */
393 font-size: 50%; /* mostly insignificant here */
397 text-align: right; /* variable width so keep near cells */
402 text-transform: uppercase;
405 border-top: 1px solid #888;
413 border: 1px solid #555;
418 margin: 0 -8px 0 8px;
419 font-family: inherit;
425 font: 100% monospace;
434 table-layout: fixed; /* prevent resizing, notably in msie6 */
438 /* below-maximum size (but still average enough to be regular) so we can fit more */
439 width: 1.2em; /* msie only looks at the first row */
440 min-width: 1em; /* prevents gecko from restricting to page width */
443 text-align: center; /* row headers are also glyph-sized */
450 border: 2px double #888; /* major character group grid */
453 border-width: 2px 0; /* horizontal group dividers */
456 border-width: 0 2px; /* vertical divides */
460 /* digraph selection */
463 -moz-column-width: 24em;
464 -webkit-column-width: 24em;
469 column-break-inside: avoid;
470 -webkit-column-break-inside: avoid;
471 position: relative; z-index: 1; /* webkit bug */
475 /* glyph cell overlay (digraph labels) */
480 padding-bottom: 1.1ex; /* reserve space for label */
481 vertical-align: bottom;
487 margin-bottom: -2.2ex; /* take cell padding */
501 /* character properties */
503 .X {background: #FFF} /* unidentified */
504 .Mc, .Me, .Zl, .Zp {background: #F00} /* unstyled */
505 .X > span {background: #898; background: rgba(0, 0, 0, .25)} /* invisible contents */
509 .Greek {background: #FFE8CF}
510 .Cyrillic {background: #FFDDA8}
511 .Latin {background: #FFB}
513 .Hebrew {background: #FFD}
514 .Arabic {background: #EFE}
515 .African {background: #DED}
516 .Brahmic {background: #FBB} /* same as number */
517 .Khmer {background: #FBA}
519 .Syllabic {background: #DEA}
520 .Katakana {background: #DFA}
521 .Hiragana {background: #DFC}
522 .Bopomofo {background: #BFC}
523 .Han {background: #CFD}
524 .Alpha {background: #ADA} /* other scripts */
526 /* other categories */
527 .Nd, .Nl, .No {background: #FDD} /* number */
528 .Sc {background: #FCD} /* currency */
529 .Sm {background: #ECE} /* math */
530 .So {background: #DCF} /* symbol */
531 .Pd, .Po, .Pc {background: #CDF} /* punctuation */
532 .Ps, .Pe, .Pi, .Pf {background: #BEF} /* quote */
533 .Lm, .Sk {background: #CEE} /* spacing modifier */
534 .Mn {background: #ACC} /* modifier */
535 .Cc, .Cf {color: #666; background: #BBB} /* control */
536 .Zs {background: #ACB} /* space */
537 .Co, .Xi.Co {background: #DCC} /* private */
538 .Xi, .Cs {background: #CCC} /* invalid */
539 .Xd {color: #844} /* deprecated */
540 .Xr {color: #888} /* reserved (digraph reverse or proposal) */
541 .dimap .Xr {background: #EEE} /* reversed digraph */
542 .ccmap .Xr {opacity:.4}
545 .l1 {background: #FDD} /* no, unsupported, other */
546 .l2 {background: #FED} /* partial, restricted, unofficial */
547 /* default u-prop, u-bmp */
548 .l3 {background: #FFD} /* almost, imperfect, common */
549 /* default u-di, u-lat1 */
550 .l4 {background: #EFD} /* yes, supported, ubiquitous, native */
551 /* default u-ascii */
552 .l5 {background: #DFD} /* complete, perfect */
553 .l0 {background: #EEE} /* unknown, omitted */
554 .ex { color: #888; color: rgba(0, 0, 0, .5)} /* experimental, disfavoured */
555 .u-invalid {background: #BBB} /* invalid, impossible */
557 /* foreground representation */
559 .u-l4 {color: #080} /* partial */
560 .u-l5 {color: #4C0} /* experimental */
561 .u-l2 {color: #A44; color: rgba(128, 0, 0, .6)} /* unofficial */
562 .u-l1 {color: #D00; color: rgba(255, 0, 0, .8)} /* missing */
565 /* support percentage (browser cells) */
568 .p::after {content: '!'; color: #F00}
569 .p4::after {color: #C00}
570 .p3::after {color: #A00}
571 .p2::after {color: #800}
573 .p0::after {color: #000}
574 .p09::after {opacity: .9}
575 .p08::after {opacity: .8}
576 .p07::after {opacity: .7}
577 .p06::after {opacity: .6}
578 .p05::after {opacity: .5}
579 .p04::after {opacity: .4}
580 .p03::after {opacity: .3}
581 .p02::after {opacity: .2}
582 .p01::after {opacity: .1}
583 .p00::after {display: none}
586 .sy-comment { color: #888 }
587 .sy-constant { color: #008 }
588 .sy-identifier { color: #804 }
592 .sy-special { color: #408 }
593 .sy-error { font-weight: bold; background-color: #F00; color: #FFF }
594 .sy-todo { background-color: #FF0 }
596 /* boolean alternate */
597 .glyphs b { font-weight: normal; color: #800 }
600 .X:hover {cursor: help}
601 body { // precedence in dark
602 .X:hover > span {background: #FFF} /* whitespace marker */
603 .Greek:hover, .Armenian:hover {background: #FA8}
604 .Cyrillic:hover {background: #FB7}
605 .Latin:hover {background: #EE4}
606 .Hebrew:hover, .Aramaic:hover {background: #FFA}
607 .Arabic:hover {background: #CFD}
608 .African:hover {background: #BDB}
609 .Syllabic:hover, .Hangul:hover {background: #CE6}
610 .Katakana:hover {background: #BF7}
611 .Hiragana:hover {background: #AF8}
612 .Bopomofo:hover {background: #8FA}
613 .Brahmic:hover {background: #F77}
614 .Khmer:hover {background: #F87}
615 .Han:hover {background: #5EB}
616 .Alpha:hover {background: #5C5}
617 .Nd:hover, .Nl:hover, .No:hover {background: #F99} /* number */
618 .Sc:hover {background: #F8C} /* currency */
619 .Sm:hover {background: #F8F} /* math */
620 .So:hover {background: #A8F} /* symbol */
621 .Pd:hover, .Po:hover, .Pc:hover {background: #8AF} /* punctuation */
622 .Ps:hover, .Pe:hover, .Pi:hover, .Pf:hover {background: #8DF} /* quote */
623 .Lm:hover, .Sk:hover {background: #BFF} /* spacing modifier */
624 .Mn:hover {background: #CDE} /* modifier */
625 .Zs:hover {background: #CED} /* space */
626 .Cc:hover, .Cf:hover {background: #DDD} /* control */
627 .Co:hover {background: #A77} /* private */
628 .Xr:hover {background: #FFF} /* reserved */
629 .Xi:hover {background: #DDD} /* invalid */
630 .l0:hover {background: #888}
631 .l1:hover {background: #F88}
632 .l2:hover {background: #FC8}
633 .l3:hover {background: #FF8}
634 .l4:hover {background: #CF8}
635 .l5:hover {background: #8F8}
637 .u-l4:hover {outline: 1px solid #080}
638 .u-l5:hover {outline: 1px solid #8F0}
639 .u-l2:hover {outline: 1px solid #800}
640 .u-l1:hover {outline: 1px solid #F00}
642 /* key type colorization */
645 .g1 {background: #BFE} /* cyan: info */
647 .g2 {background: #BFB} /* green: motion */
648 .g3 {background: #DFA} /* greenish: jump (g2+) */
650 .g4 {background: #FFA} /* yellow: command */
652 .g5 {background: #FDA} /* orangish: open (g6-) */
653 .g6 {background: #FCA} /* orange: insert */
655 .g7 {background: #FCC} /* red: mode */
657 .g8 {background: #ECE} /* purple: visual (g7+) */
659 .g9 {background: #CCF} /* blue: prefix */
662 .g1 a:hover, .g1[onclick]:hover {background: #5ED}
664 .g2 a:hover, .g2[onclick]:hover {background: #7E7}
665 .g3 a:hover, .g3[onclick]:hover {background: #CE6}
667 .g4 a:hover, .g4[onclick]:hover {background: #EE4}
669 .g5 a:hover, .g5[onclick]:hover {background: #FA6}
670 .g6 a:hover, .g6[onclick]:hover {background: #F97}
672 .g7 a:hover, .g7[onclick]:hover {background: #F88}
674 .g8 a:hover, .g8[onclick]:hover {background: #D9D}
676 .g9 a:hover, .g9[onclick]:hover {background: #99F}
679 background: #EEE; /* unassigned */
683 padding: 1px; /* same size as borderlessless keys */
689 outline: 3px solid #0006;
690 outline-offset: -3px; /* inside */
694 border-style: dashed;
702 /* l/r help columns */
718 margin-left: 6.4em; /* a bit over 6.2em to allow for borders+padding (border-sizing would work too) */
721 margin-left: -6.4em; /* msie<=6 multiply this by two for some reason */
726 float: left; /* align next to dt (except msie<=7 does just the opposite) */
736 margin-right: -6.4em;
753 margin: 0 0 1px; /* distinct keys */
754 height: auto; /* not key-height */
758 margin: 3px 0.4em 0; /* align text (add dt border+padding height) */
763 dl.legend-options dt {
772 margin: 6px 0; /* similar to dl legends */
794 vertical-align: bottom;
799 @media (min-width: 60em) {
803 background: rgba(255, 255, 255, .66);
808 box-sizing: border-box;
810 .gallery li.parent:hover > figure > figcaption,
811 .gallery figure:hover > figcaption {
812 /* highlight title of current and parents */
816 transform: translate(50%, 50%);
817 margin-left: -60%; /* keep width */
825 grid: auto-flow dense / repeat(auto-fit, minmax(200px, 1fr));
833 box-sizing: border-box;
838 display: inline-block;
841 @media (min-width: 403px) and (min-height: 266px) {
842 /* able to fit 2 cells of 200x133 */
848 @media (min-width: 603px) and (min-height: 400px) {
849 /* fit 3 cells of 200x133 */
850 > li:first-child > figure,
858 transition: all .5s ease-in;
860 figure:hover ~ ul figcaption {
861 /* mark all children */
863 background: rgba(0, 0, 0, .5);
866 $oversup: 'figure[data-sup]:after'; // select parent overlays
870 content: attr(data-sup);
877 .expand > #{$oversup} {
878 content: '+' attr(data-sup);
881 border: 2px solid #FFF8;
885 /* specialised galleries */
894 grid-template-columns: repeat(auto-fit, minmax(2em, max-content)); /* 1fr */
903 margin: auto; /* vertical-align: middle */
906 grid-column: 2; /* in case 1st is missing */
909 border: 0; /* does not collapse */
910 outline: 1px solid #888; /* over grid-gap */
918 text-decoration: none;
922 text-decoration: underline;
928 -webkit-transition: all 1s ease-in;
929 -o-transition: all 1s ease-in;
930 -moz-transition: all 1s ease-in;
931 transition: height 1s ease-in;
937 tr.target, tr:target {
943 white-space: nowrap; /* some browsers break on dashes */
946 tr:target, tr.focus {
947 & > td:first-of-type {
952 border-bottom-color: #000;
963 font-variant: small-caps;
973 -webkit-column-break-inside: avoid; /* webkit */
974 page-break-inside: avoid; /* moz */
975 overflow: hidden; /* webkit workaround */
978 display: inline-block;
990 ul.legend-set {display: none} /* current options only relevant on dynamic media */
993 /* terse optimisation */
995 @media (min-height: 112ex) and (min-width: 90em) {
997 padding: 1ex 0 1ex .1em;
1002 @media (max-width: 79em) {
1004 position: relative; /* hides overflow */
1007 min-width: calc(7.7vw - 8px);
1012 .keys .lead td b { /* leading chars always fit */
1013 position: absolute; /* background */
1014 right: 0; /* least overlap in corner */
1021 .row2 {margin-left: 5.3em} /* 7em / Δtd(6em : 4.5em) */
1022 .row3 {margin-left: 6em} /* 8em / Δtd */
1023 .row4 {margin-left: 7.5em} /* 10em / Δtd */
1025 /* letter scripts columns to rows */
1029 vertical-align: baseline;
1036 &:first-child td td {
1038 display: inline-block;
1043 @media (max-width: 61em) {
1046 height: 6.75ex; /* 3 lines */
1056 .row2 {margin-left: 3.5em} /* 7em / Δtd(6em : 3em) */
1057 .row3 {margin-left: 4em} /* 8em / Δtd */
1058 .row4 {margin-left: 5em} /* 10em / Δtd */
1061 @media (max-width: 42em) {
1062 /* flatten right legend column on mobile */
1077 margin-left: -6.4em;
1089 @media screen and (orientation: portrait) and (max-width: 62em) {
1093 transform: rotate(90deg);
1094 transform-origin: top left;
1096 margin-bottom: 30em;