Revision 343d80b6
Von Sven Schöling vor fast 11 Jahren hinzugefügt
scripts/image_maps.pl | ||
---|---|---|
81 | 81 |
|
82 | 82 |
for (@gd_images) { |
83 | 83 |
my $name = fileparse($_->{filename}, ".png"); |
84 |
$name =~ s/ /-/g; |
|
84 |
|
|
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 _ - |
|
88 |
$name = lc $name; |
|
89 |
$name =~ s/[^a-z_-]/-/g; |
|
85 | 90 |
print $file ".$class_for_map.$name { background-position: -$_->{h_offset}px 0px; }\n"; |
86 | 91 |
} |
87 | 92 |
} |
Auch abrufbar als: Unified diff
Rechnungsicon umbenannt, Icon class names normalisiert
Ausserdem iconmaps neu generiert.
behebt #2202