From 8b72f09d216106edc22fc484af5943d007c6bedf Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 19 Dec 2023 19:36:45 +0100 Subject: [PATCH] keyboard/altgr: resize row indentation for vmin scaling --- keyboard/altgr.css | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/keyboard/altgr.css b/keyboard/altgr.css index bc3d7a7..8414110 100644 --- a/keyboard/altgr.css +++ b/keyboard/altgr.css @@ -1,16 +1,26 @@ -.keys .row0 { - display: none; /* headerless */ -} .keys td { width: 1em; min-width: auto; height: 2.25ex; font-size: 200%; - font-size: calc(7.5vmin - 9px); /* fit 12 keys to page */ + font-size: calc(7vmin - 4px); /* fit 12 keys to page */ overflow: visible; position: relative; padding: 0; + margin: 0 .2vw -1px; +} + +/* row alignments */ +.keys tbody { + font-size: calc(1.4vmin); /* enlarged td conversion */ +} +.row2 {margin-left: 7em} +.row3 {margin-left: 8em} +.row4 {margin-left: 10em} +.keys .row0 { + display: none; /* headerless */ } + .keys td b { position: absolute; /* overlay */ z-index: 1; -- 2.30.0