X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0083d6fee99e70519ff4770a4f76f02b6937537d..b5b3537710ed9f73e1c867e0cc27d50439eaf4cd:/sc.plp diff --git a/sc.plp b/sc.plp index 31d3555..8251f75 100644 --- a/sc.plp +++ b/sc.plp @@ -28,6 +28,7 @@ Unit properties as seen or measured in Brood War border-collapse: separate; border-spacing: 0; margin: 0 auto; + white-space: nowrap; } .units th, .units td { border: 0; @@ -106,12 +107,9 @@ Unit properties as seen or measured in Brood War text-align: right; } - .legend dl { - text-align: left; - -moz-column-width: 20em; - -webkit-column-width: 20em; - } .legend dt { + float: none; + text-align: left; margin-top: 1ex; font-weight: bold; } @@ -120,11 +118,19 @@ Unit properties as seen or measured in Brood War } .legend dd { text-indent: -1em; - margin-left: 2em; + margin-left: 1em; break-before: avoid; - break-inside: avoid; -webkit-column-break-before: avoid; } + + .units, .legend { + display: table-cell; + } + .legend { + min-width: 15em; + padding-left: 2em; + text-align: left; + } <: @@ -140,8 +146,8 @@ sub coltoggle { <:= coltoggle('name', '') :> - min - gas + min + gas <:= coltoggle(qw'build cost') :> <:= coltoggle(qw'size size') :> HP @@ -268,10 +274,10 @@ sub showrange { '' . join('', $_->{unit} ? $_->{unit} == .5 ? '½' : $_->{unit} : ' ', defined $_->{organic} && sprintf( - '%s', + '%s', $_->{organic} ? 'o' : 'u', - $_->{race} . ($_->{organic} ? 'o' : ''), - $_->{organic} ? 'o' : 'm' + $_->{organic} ? 'organic' : 'mechanic', + $_->{organic} ? 'o' : 'm', ), ), '' . $_->{hp},