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