Make CSS class names for link icons lowercase.
This commit is contained in:
parent
f76f9e7bf2
commit
6e9362ca76
@ -1517,8 +1517,9 @@ div.boardTitle {
|
|||||||
}
|
}
|
||||||
/* Link Title Favicons */
|
/* Link Title Favicons */
|
||||||
<%=
|
<%=
|
||||||
'YouTube Vimeo SoundCloud audio LiveLeak Vocaroo pastebin gist image InstallGentoo video gfycat'.split(' ').map(function(key) {
|
grunt.file.expand('src/General/img/links/*.png').map(function(file) {
|
||||||
var data = grunt.file.read('src/General/img/links/' + key.toLowerCase() + '.png', {encoding: 'base64'});
|
var key = file.match(/(\w+)\.png/)[1];
|
||||||
|
var data = grunt.file.read(file, {encoding: 'base64'});
|
||||||
return ".linkify."+key+" {\n" +
|
return ".linkify."+key+" {\n" +
|
||||||
" background: transparent url('data:image/png;base64,"+data+"') center left no-repeat!important;\n" +
|
" background: transparent url('data:image/png;base64,"+data+"') center left no-repeat!important;\n" +
|
||||||
" padding-left: 18px;\n" +
|
" padding-left: 18px;\n" +
|
||||||
|
|||||||
@ -49,7 +49,7 @@ Embedding =
|
|||||||
|
|
||||||
embed.dataset[name] = value for name, value of {key, uid, options}
|
embed.dataset[name] = value for name, value of {key, uid, options}
|
||||||
|
|
||||||
$.addClass link, "#{embed.dataset.key}"
|
$.addClass link, key.toLowerCase()
|
||||||
|
|
||||||
$.on embed, 'click', Embedding.cb.toggle
|
$.on embed, 'click', Embedding.cb.toggle
|
||||||
$.after link, [$.tn(' '), embed]
|
$.after link, [$.tn(' '), embed]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user