Make CSS readable in compiled script.
This commit is contained in:
parent
de603e6596
commit
015215a629
@ -283,16 +283,14 @@ Main =
|
||||
$.ready ->
|
||||
cb() if Main.isThisPageLegit()
|
||||
|
||||
css: """
|
||||
<%= grunt.file.read('src/General/css/font-awesome.css').replace(/\s+/g, ' ').replace(/\\/g, '\\\\').trim() %>
|
||||
<%= grunt.file.read('src/General/css/style.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/yotsuba.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/yotsuba-b.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/futaba.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/burichan.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/tomorrow.css').replace(/\s+/g, ' ').trim() %>
|
||||
<%= grunt.file.read('src/General/css/photon.css').replace(/\s+/g, ' ').trim() %>
|
||||
"""
|
||||
css: `<%=
|
||||
grunt.template.process(
|
||||
['font-awesome', 'style', 'yotsuba', 'yotsuba-b', 'futaba', 'burichan', 'tomorrow', 'photon'].map(function(name) {
|
||||
return grunt.file.read('src/General/css/'+name+'.css');
|
||||
}).join(''),
|
||||
{data: {type: type}}
|
||||
).trim().replace(/\n+/g, '\n').split(/^/m).map(JSON.stringify).join(' +\n').replace(/`/g, '\\`')
|
||||
%>`
|
||||
|
||||
features: [
|
||||
['Polyfill', Polyfill]
|
||||
|
||||
@ -266,10 +266,10 @@ audio.controls-added {
|
||||
display: none;
|
||||
}
|
||||
.brackets-wrap::before {
|
||||
content: "\\00a0[";
|
||||
content: "\00a0[";
|
||||
}
|
||||
.brackets-wrap::after {
|
||||
content: "]\\00a0";
|
||||
content: "]\00a0";
|
||||
}
|
||||
.dead-thread,
|
||||
.disabled:not(.replies-quoting-you) {
|
||||
@ -773,7 +773,7 @@ span.hide-announcement {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#watched-threads .watcher-unread::after {
|
||||
content: "\\00a0";
|
||||
content: "\00a0";
|
||||
}
|
||||
#watched-threads .watcher-title {
|
||||
overflow: hidden;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user