style: renumber l? classes
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 5 Dec 2010 18:56:02 +0000 (19:56 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 6 Dec 2010 00:04:46 +0000 (01:04 +0100)
.l[90-6] → .l[01-5]

Shiar_Sheet/FormatChar.pm
base.css
browser.plp
circus.css
dark.css
darklite.css
mono.css
red.css
unicode.plp

index c1235065f586929e72803c81948c0fab549ee671..185e0af713889ae2984b3cd531825422a4b37f9a 100644 (file)
@@ -86,13 +86,13 @@ sub cell {
                if ($self->{digraph}) {
                        if (defined $mnem) {
                                push @class, $class =~ /\bXz\b/ ? ('l2', 'u-prop') # unofficial
-                                       : ('l4', 'u-di'); # standard digraph
+                                       : ('l3', 'u-di'); # standard digraph
                        }
                }
                else {
                        my $codepoint = ord(substr $input, 0, 1);
                        if ($codepoint <= 0xFF) {
-                               push @class, 'l4', 'u-lat1';  # latin1
+                               push @class, 'l3', 'u-lat1';  # latin1
                        }
                        elsif ($codepoint <= 0xD7FF) {
                                push @class, 'l2', 'u-bmp';  # bmp
@@ -100,10 +100,10 @@ sub cell {
                }
 
                if ($input =~ /[ -~]/) {
-                       push @class, 'l5', 'u-ascii'; # ascii
+                       push @class, 'l4', 'u-ascii'; # ascii
                }
                else {
-                       push @class, 'l0'; # basic unicode
+                       push @class, 'l1'; # basic unicode
                }
        }
 
index 2a1a6fceae0f1aa47ae8f492929f3d379b07e775..6126193ae95900a3ad0ecbc88934af5c64c8e704 100644 (file)
--- a/base.css
+++ b/base.css
@@ -323,15 +323,15 @@ table.dimap {
 .ccmap .Xr {opacity:.4}
 
 /* support levels */
-.l0 {background: #FDD} /* no, unsupported, other */
+.l1 {background: #FDD} /* no, unsupported, other */
 .l2 {background: #FED} /* partial, restricted, unofficial */
        /* default u-prop, u-bmp */
-.l4 {background: #FFD} /* almost, imperfect, common */
+.l3 {background: #FFD} /* almost, imperfect, common */
        /* default u-di, u-lat1 */
-.l5 {background: #EFD} /* yes, supported, ubiquitous, native */
+.l4 {background: #EFD} /* yes, supported, ubiquitous, native */
        /* default u-ascii */
-.l6 {background: #DFD} /* complete, perfect */
-.l9 {background: #EEE} /* unknown, omitted */
+.l5 {background: #DFD} /* complete, perfect */
+.l0 {background: #EEE} /* unknown, omitted */
 .ex {background: #EEE} /* experimental, disfavoured */
 .u-invalid {background: #BBB} /* invalid, impossible */
 
@@ -397,11 +397,11 @@ table.dimap {
 .Xa:hover {outline: 1px solid #0F0} /* ascii */
 .Xl:hover {outline: 1px solid #0C0} /* latin1 */
 .Xz:hover {outline: 1px solid #F00} /* proposed */
-.l0:hover                                  {background: #F88}
+.l1:hover                                  {background: #F88}
 .l2:hover                                  {background: #FC8}
-.l4:hover                                  {background: #FF8}
-.l5:hover                                  {background: #CF8}
-.l6:hover                                  {background: #8F8}
+.l3:hover                                  {background: #FF8}
+.l4:hover                                  {background: #CF8}
+.l5:hover                                  {background: #8F8}
 .ex:hover                                  {background: #BBB}
 
 /* key type colorization */
index f385042548597e7ad1e79598908515cd1fb7c329..e4e0b2851783581101aed96a39b0d56ec25047ee 100644 (file)
@@ -35,24 +35,24 @@ print "with $_ browser usage statistics." for map {
 my $caniuse = do 'browser-support.inc.pl' or die $! || $@;
 
 my %CSTATS = (
-       'n'   => 'l0',
-       'y'   => 'l6',
-       'y x' => 'l5',
-       'a'   => 'l4',
-       'a x' => 'l4',
+       'n'   => 'l1',
+       'y'   => 'l5',
+       'y x' => 'l4',
+       'a'   => 'l3',
+       'a x' => 'l3',
        'p j' => 'l2',
        'j'   => 'l2',
        'p'   => 'l2',
-       'u'   => 'l9',
+       'u'   => 'l0',
 );
 my %CSTATUS = (
-       unoff => 'l0', # unofficial
-       wd    => 'l4', # draft
-       cr    => 'l5', # candidate
-       pr    => 'l5', # proposed
-       rec   => 'l6', # recommendation
-       other => 'l6', # non-w3
-       ietf  => 'l6', # standard
+       unoff => 'l1', # unofficial
+       wd    => 'l3', # draft
+       cr    => 'l4', # candidate
+       pr    => 'l4', # proposed
+       rec   => 'l5', # recommendation
+       other => 'l5', # non-w3
+       ietf  => 'l5', # standard
 );
 my %versions;
 if (my ($somerow) = values %{ $caniuse->{data} }) {
@@ -235,12 +235,12 @@ sub showversions {
 
 <div class="legend">
        <table class="glyphs"><tr>
-       <td class="X l6">supported
-       <td class="X l5">prefixed
-       <td class="X l4">partial
+       <td class="X l5">supported
+       <td class="X l4">prefixed
+       <td class="X l3">partial
        <td class="X l2">external (js/plugin)
-       <td class="X l0">missing
-       <td class="X l9">unknown
+       <td class="X l1">missing
+       <td class="X l0">unknown
        </table>
 
        <div>
index 329f331e0fa467ddb696404ec5a3307d84072479..4389debd3d11f297fd01b0f2e25a1c73da430c39 100644 (file)
@@ -1,16 +1,16 @@
 @import url(base.css);
 @import url(terse.css) all and (max-width: 80em);
 
-.l0       {background: #F77}
-.l0:hover {     color: #F77; background: #000}
+.l1       {background: #F77}
+.l1:hover {     color: #F77; background: #000}
 .l2       {background: #FC6}
 .l2:hover {     color: #FC6; background: #000}
-.l4       {background: #FF6}
-.l4:hover {     color: #FF6; background: #000}
-.l5       {background: #CF8}
-.l5:hover {     color: #CF8; background: #000}
-.l6       {background: #8F8}
-.l6:hover {     color: #8F8; background: #000}
+.l3       {background: #FF6}
+.l3:hover {     color: #FF6; background: #000}
+.l4       {background: #CF8}
+.l4:hover {     color: #CF8; background: #000}
+.l5       {background: #8F8}
+.l5:hover {     color: #8F8; background: #000}
 .ex       {     color: #D00}
 
 .p:hover::after {color: #F00}
index 60f96e39e5f14f11755a152e877f0483dd74192e..b528633a355f312e686cd3c84ebb25f7948c2b91 100644 (file)
--- a/dark.css
+++ b/dark.css
@@ -55,12 +55,12 @@ th, td {
 .Co {background: #322} /* private */
 
 /* implementation-based alternatives */
-.l0 {background: #411} /* bmp */
+.l1 {background: #411} /* bmp */
 .l2 {background: #321} /* proposed digraph */
-.l4 {background: #330} /* rfc-1345 digraph */
-.l5 {background: #030} /* ascii */
-.l6 {background: #00331D} /* ascii */
-.l9 {background: #222}
+.l3 {background: #330} /* rfc-1345 digraph */
+.l4 {background: #030} /* ascii */
+.l5 {background: #00331D} /* ascii */
+.l0 {background: #222}
 .ex {background: #222} /* disfavoured */
 .u-invalid {background: #333} /* impossible */
 
index f70f12af5786ee7a1acb5bd06986667a9b464d29..908f0903f581c6cc4bfb92bce94cc303f66026a9 100644 (file)
@@ -25,12 +25,12 @@ th, td {
 
 .me, .c-aa  .g8     {background: #102}
 .mv, .c-oc  .g7     {background: #012}
-.mo, .c-as, .g6 .l0 {background: #200}
+.mo, .c-as, .g6 .l1 {background: #200}
 .mi         .g5     {}
 .cp, .c-eu, .g4 .l2 {background: #221400}
-.co, .c-af, .g3 .l4 {background: #1C1C00}
+.co, .c-af, .g3 .l3 {background: #1C1C00}
 .po         .g2     {}
-.pm, .c-na, .g1 .l5 {background: #002200}
+.pm, .c-na, .g1 .l4 {background: #002200}
 .ci, .c-sa  .g0     {background: #001A1A}
 .no                 {}
 .ex                 {background: #181818}
index 19ead32ae11d9c04b8b755c3e1271fed9ec4d16b..5579df92fdc0afe32441457a82654d6105ead7ff 100644 (file)
--- a/mono.css
+++ b/mono.css
@@ -8,24 +8,24 @@ body dl.legend-options dt {background: #EEE}
 
 td,
 .X  {background: #EEE}
-.l9 a, .l9 a:visited,
-.l9 {background: #BBB; color: #FFF; text-shadow: 0 0 4px #000}
 .l0 a, .l0 a:visited,
-.l0 {background: #000; color: #FFF}
+.l0 {background: #BBB; color: #FFF; text-shadow: 0 0 4px #000}
+.l1 a, .l1 a:visited,
+.l1 {background: #000; color: #FFF}
 .l2 a, .l2 a:visited,
 .l2 {background: #444; color: #FFF}
-.l4 {background: #AAA; color: #000}
-.l5 {background: #DDD; color: #000}
-.l6 {background: #EEE; color: #000}
+.l3 {background: #AAA; color: #000}
+.l4 {background: #DDD; color: #000}
+.l5 {background: #EEE; color: #000}
 .ex a, .ex a:visited,
 .ex                   {color: #888}
 
 .p0:not(.p)           {color: #888; opacity: 1}
-.p0:not(.p).l9        {color: #DDD}
+.p0:not(.p).l0        {color: #DDD}
    .p::after {color: #444}
-.l9.p::after,
+.l0.p::after,
 .l2.p::after,
-.l0.p::after {color: #CCC}
+.l1.p::after {color: #CCC}
    .p::after {content: '‼'}
 .p1.p::after,
 .p0.p::after {content: '!'}
diff --git a/red.css b/red.css
index 00230435f7c5ed0ce07916283de69575b9049459..4d31bfbed77b557a782fef37d111ad62f3e3bc1b 100644 (file)
--- a/red.css
+++ b/red.css
@@ -80,7 +80,7 @@ dt.pm, dt.mv,
        color: #FF0;
 } /* mode link */
 
-.l0,
+.l1,
 .X { /* unidentified */
        background: #000;
        border-color: #800;
@@ -109,10 +109,10 @@ tbody, colgroup, th {
 }
 
 /* implementation-based alternatives */
-.l0 {background: #000; color: #DD6}
-.l4 {background: #000; color: #CCC}
+.l1 {background: #000; color: #DD6}
+.l3 {background: #000; color: #CCC}
 .l2 {background: #000; color: #CA8}
-.l5 {background: #000; color: #8BC}
+.l4 {background: #000; color: #8BC}
 .ex {background: #333}
 .u-invalid {background: #200} /* impossible */
 
@@ -124,7 +124,7 @@ tbody, colgroup, th {
 .c-oc     {background: #100; color: #8BC}
 .c-sa     {background: #100; color: #DD6}
 .c-na     {background: #300; color: #DD6}
-.l0:hover,
+.l1:hover,
 .X:hover  {background: #800; color: #FF0}
 
 /* code syntax */
index dd9734467896a91aebebd38973ea3db966696024..8d226dcc15121010bd7e5034c4e81eee8d2aba0a 100644 (file)
@@ -211,10 +211,10 @@ $verbose ? (
 
 <div class="legend">
        <table class="glyphs"><tr>
-       <td class="X l5">ascii
-       <td class="X l4"><:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
+       <td class="X l4">ascii
+       <td class="X l3"><:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
        <td class="X l2"><:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
-       <td class="X l0">other unicode
+       <td class="X l1">other unicode
        <td class="X l2 ex">discouraged
        </table>
 </div>