Revision 4d1071ce
Von Sven Schöling vor etwa 11 Jahren hinzugefügt
SL/Layout/MenuLeft.pm | ||
---|---|---|
my $menuitem = $menu->{$item};
|
||
my $olabel = apply { s/.*--// } $item;
|
||
my $ml = apply { s/--.*// } $item;
|
||
my $icon_class = apply { $_ =lc $_; s/[^a-z]/-/g } $item;
|
||
my $icon_class = apply { $_ =lc $_; s/[^a-z0-9_-]/-/g } $item;
|
||
my $spacer = "s" . (0 + $item =~ s/--/--/g);
|
||
|
||
next if $level && $item ne "$level--$olabel";
|
css/icons16.css | ||
---|---|---|
.icon16.master-data--reports--services { background-position: -1248px 0px; }
|
||
.icon16.master-data--reports--vendors { background-position: -1264px 0px; }
|
||
.icon16.master-data--update-prices { background-position: -1280px 0px; }
|
||
.icon16.mdi-text-editor---x-- { background-position: -1296px 0px; }
|
||
.icon16.mdi-text-editor-16x16 { background-position: -1296px 0px; }
|
||
.icon16.neues-fenster { background-position: -1312px 0px; }
|
||
.icon16.program--logout { background-position: -1328px 0px; }
|
||
.icon16.program { background-position: -1344px 0px; }
|
css/icons24.css | ||
---|---|---|
.icon24.general-ledger--reports--ar-aging { background-position: -1368px 0px; }
|
||
.icon24.general-ledger--reports--journal { background-position: -1392px 0px; }
|
||
.icon24.general-ledger--reports { background-position: -1416px 0px; }
|
||
.icon24.leftarrow_-- { background-position: -1440px 0px; }
|
||
.icon24.leftarrow_24 { background-position: -1440px 0px; }
|
||
.icon24.master-data--add-assembly { background-position: -1464px 0px; }
|
||
.icon24.master-data--add-customer { background-position: -1488px 0px; }
|
||
.icon24.master-data--add-license { background-position: -1512px 0px; }
|
||
... | ... | |
.icon24.reports--income-statement { background-position: -2064px 0px; }
|
||
.icon24.reports { background-position: -2088px 0px; }
|
||
.icon24.reports--ustva { background-position: -2112px 0px; }
|
||
.icon24.rightarrow_-- { background-position: -2136px 0px; }
|
||
.icon24.rightarrow_24 { background-position: -2136px 0px; }
|
||
.icon24.system { background-position: -2160px 0px; }
|
||
.icon24.warehouse { background-position: -2184px 0px; }
|
scripts/image_maps.pl | ||
---|---|---|
my $name = fileparse($_->{filename}, ".png");
|
||
|
||
# the full grammar for valid css class names is completely bonkers (to put it mildly).
|
||
# so instead of trying to punch filenames into those class names, we'll just reduce them to a nice minimal set of
|
||
# a-z _ -
|
||
# so instead of trying to punch filenames into those class names, we'll
|
||
# just reduce them to a nice minimal set of lower case /[a-z0-9_-]*/
|
||
$name = lc $name;
|
||
$name =~ s/[^a-z_-]/-/g;
|
||
$name =~ s/[^a-z0-9_-]/-/g;
|
||
print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n";
|
||
}
|
||
}
|
Auch abrufbar als: Unified diff
Und Zahlen auch erlauben in Klassennamen.