Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d1071ce

Von Sven Schöling vor fast 11 Jahren hinzugefügt

Und Zahlen auch erlauben in Klassennamen.

Unterschiede anzeigen:

SL/Layout/MenuLeft.pm
51 51
    my $menuitem   = $menu->{$item};
52 52
    my $olabel     = apply { s/.*--// } $item;
53 53
    my $ml         = apply { s/--.*// } $item;
54
    my $icon_class = apply { $_ =lc $_; s/[^a-z]/-/g } $item;
54
    my $icon_class = apply { $_ =lc $_; s/[^a-z0-9_-]/-/g } $item;
55 55
    my $spacer     = "s" . (0 + $item =~ s/--/--/g);
56 56

  
57 57
    next if $level && $item ne "$level--$olabel";
css/icons16.css
80 80
.icon16.master-data--reports--services { background-position: -1248px 0px; }
81 81
.icon16.master-data--reports--vendors { background-position: -1264px 0px; }
82 82
.icon16.master-data--update-prices { background-position: -1280px 0px; }
83
.icon16.mdi-text-editor---x-- { background-position: -1296px 0px; }
83
.icon16.mdi-text-editor-16x16 { background-position: -1296px 0px; }
84 84
.icon16.neues-fenster { background-position: -1312px 0px; }
85 85
.icon16.program--logout { background-position: -1328px 0px; }
86 86
.icon16.program { background-position: -1344px 0px; }
css/icons24.css
59 59
.icon24.general-ledger--reports--ar-aging { background-position: -1368px 0px; }
60 60
.icon24.general-ledger--reports--journal { background-position: -1392px 0px; }
61 61
.icon24.general-ledger--reports { background-position: -1416px 0px; }
62
.icon24.leftarrow_-- { background-position: -1440px 0px; }
62
.icon24.leftarrow_24 { background-position: -1440px 0px; }
63 63
.icon24.master-data--add-assembly { background-position: -1464px 0px; }
64 64
.icon24.master-data--add-customer { background-position: -1488px 0px; }
65 65
.icon24.master-data--add-license { background-position: -1512px 0px; }
......
88 88
.icon24.reports--income-statement { background-position: -2064px 0px; }
89 89
.icon24.reports { background-position: -2088px 0px; }
90 90
.icon24.reports--ustva { background-position: -2112px 0px; }
91
.icon24.rightarrow_-- { background-position: -2136px 0px; }
91
.icon24.rightarrow_24 { background-position: -2136px 0px; }
92 92
.icon24.system { background-position: -2160px 0px; }
93 93
.icon24.warehouse { background-position: -2184px 0px; }
scripts/image_maps.pl
83 83
    my $name = fileparse($_->{filename}, ".png");
84 84

  
85 85
    # the full grammar for valid css class names is completely bonkers (to put it mildly).
86
    # so instead of trying to punch filenames into those class names, we'll just reduce them to a nice minimal set of
87
    # a-z _ -
86
    # so instead of trying to punch filenames into those class names, we'll
87
    # just reduce them to a nice minimal set of lower case /[a-z0-9_-]*/
88 88
    $name = lc $name;
89
    $name =~ s/[^a-z_-]/-/g;
89
    $name =~ s/[^a-z0-9_-]/-/g;
90 90
    print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n";
91 91
  }
92 92
}

Auch abrufbar als: Unified diff