X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/8d5262c3baedda02484404f792101aa61702af93..d96b16650836046f79dc76641681445f97bd60ce:/sc.plp diff --git a/sc.plp b/sc.plp index 0c584a7..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,6 @@ Unit properties as seen or measured in Brood War text-align: right; } - .legend dl { - text-align: left; - column-width: 20em; - -moz-column-width: 20em; - -webkit-column-width: 20em; - } .legend dt { float: none; text-align: left; @@ -127,6 +122,15 @@ Unit properties as seen or measured in Brood War break-before: avoid; -webkit-column-break-before: avoid; } + + .units, .legend { + display: table-cell; + } + .legend { + min-width: 15em; + padding-left: 2em; + text-align: left; + } <: @@ -142,8 +146,8 @@ sub coltoggle { <:= coltoggle('name', '') :> - min - gas + min + gas <:= coltoggle(qw'build cost') :> <:= coltoggle(qw'size size') :> HP @@ -270,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},