Skip to content

Commit 31cd630

Browse files
authored
fixed css
Using `background` instead of `background-image` will override previously set attributes such as `background-repeat: no-repeat` which is indesirable
1 parent df39a58 commit 31cd630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecstatic/show-dir/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ css += 'td.display-name { padding-left: 1em; }\n';
1111

1212
Object.keys(icons).forEach((key) => {
1313
css += `i.icon-${key} {\n`;
14-
css += ` background: url("data:image/png;base64,${icons[key]}");\n`;
14+
css += ` background-image: url("data:image/png;base64,${icons[key]}");\n`;
1515
css += '}\n\n';
1616
});
1717

0 commit comments

Comments
 (0)