Eliminate unnecessary whitespace in compiled CSS.
This commit is contained in:
parent
24d2f47c52
commit
7b41b3baa3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,4 +5,4 @@
|
||||
.emoji-position-before:not(.emoji-disable):not(.emoji-#{pony}) a.useremail[href*='#{name.toLowerCase()}']:last-of-type::before,
|
||||
.emoji-position-before:not(.emoji-disable):not(.emoji-#{pony}) a.useremail[href*='#{name.toUpperCase()}']:last-of-type::before {
|
||||
content: url('data:image/png;base64,#{icon}');
|
||||
}\n
|
||||
}
|
||||
@ -434,7 +434,7 @@ th {
|
||||
|
||||
.sidebar-location-right.pagination-on-side .pagelist {
|
||||
<%= transform %>: rotate(90deg);
|
||||
<%= transform %>-origin: bottom right;"
|
||||
<%= transform %>-origin: bottom right;
|
||||
}
|
||||
.sidebar-location-right.sidebar-large.pagination-on-side .pagelist {
|
||||
left: auto;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
(if Style.lightTheme then """
|
||||
"""#{if Style.lightTheme then "
|
||||
.prettyprint {
|
||||
background-color: #e7e7e7;
|
||||
border: 1px solid #dcdcdc;
|
||||
@ -26,7 +26,7 @@
|
||||
.lit {
|
||||
color: #368c72;
|
||||
}
|
||||
""" else """
|
||||
"} else {"
|
||||
.prettyprint {
|
||||
background-color: rgba(0,0,0,.1);
|
||||
border: 1px solid rgba(0,0,0,0.5);
|
||||
@ -54,4 +54,4 @@
|
||||
.lit {
|
||||
color: #558773;
|
||||
}
|
||||
""")
|
||||
"}"""
|
||||
@ -10,9 +10,9 @@ Emoji =
|
||||
continue unless Emoji.icons.hasOwnProperty key
|
||||
for name, icon of category
|
||||
continue unless category.hasOwnProperty name
|
||||
css.push """<%= grunt.file.read('src/General/css/emoji.css') %>"""
|
||||
css.push """<%= grunt.file.read('src/General/css/emoji.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
css.push """<%= grunt.file.read('src/General/css/emoji.sage.css') %>"""
|
||||
css.push """<%= grunt.file.read('src/General/css/emoji.sage.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
css.join ""
|
||||
|
||||
icons:
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
JSColor =
|
||||
css: ->
|
||||
"""<%= grunt.file.read('src/General/css/jscolor.css') %>"""
|
||||
"""<%= grunt.file.read('src/General/css/jscolor.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
bind: (el) ->
|
||||
el.color = new JSColor.color(el) if not el.color
|
||||
|
||||
@ -146,7 +146,7 @@ Style =
|
||||
silhouette: ([fg]) ->
|
||||
"0 0 0 0 #{fg.r} 0 0 0 0 #{fg.g} 0 0 0 0 #{fg.b}"
|
||||
|
||||
layout: """<%= grunt.file.read('src/General/css/layout.css') %>"""
|
||||
layout: """<%= grunt.file.read('src/General/css/layout.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
dynamic: ->
|
||||
_conf = Conf
|
||||
@ -165,7 +165,7 @@ Style =
|
||||
left: 0
|
||||
right: 0
|
||||
|
||||
"""<%= grunt.file.read('src/General/css/dynamic.css') %>"""
|
||||
"""<%= grunt.file.read('src/General/css/dynamic.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
theme: (theme) ->
|
||||
bgColor = new Style.color(Style.colorToHex(backgroundC = theme["Background Color"]) or 'aaaaaa')
|
||||
@ -181,10 +181,10 @@ Style =
|
||||
<svg xmlns='http://www.w3.org/2000/svg' height=0><filter id="icons-filter" color-interpolation-filters='sRGB'><feColorMatrix values='-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0' /></filter></svg>
|
||||
"""
|
||||
|
||||
"""<%= grunt.file.read('src/General/css/theme.css') %>""" + <%= grunt.file.read('src/General/css/themeoptions.css') %>
|
||||
"""<%= grunt.file.read('src/General/css/theme.css').replace(/\s+/g, ' ').trim() %>""" + <%= grunt.file.read('src/General/css/themeoptions.css').replace(/\s+/g, ' ').trim() %>
|
||||
|
||||
iconPositions: ->
|
||||
css = """<%= grunt.file.read('src/General/css/icons.base.css') %>"""
|
||||
css = """<%= grunt.file.read('src/General/css/icons.base.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
_conf = Conf
|
||||
i = 0
|
||||
align = _conf['Sidebar Location']
|
||||
@ -241,7 +241,7 @@ Style =
|
||||
|
||||
if iconOffset < 0 then iconOffset = 0
|
||||
|
||||
css += """<%= grunt.file.read('src/General/css/icons.horz.css') %>"""
|
||||
css += """<%= grunt.file.read('src/General/css/icons.horz.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
else
|
||||
|
||||
@ -278,17 +278,17 @@ Style =
|
||||
|
||||
if iconOffset < 0 then iconOffset = 0
|
||||
|
||||
css += """<%= grunt.file.read('src/General/css/icons.vert.css') %>"""
|
||||
css += """<%= grunt.file.read('src/General/css/icons.vert.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
Style.icons.textContent = css
|
||||
|
||||
padding: ->
|
||||
Style.padding.nav = Header.bar
|
||||
Style.padding.pages = $ '.pagelist', d.body
|
||||
css = """<%= grunt.file.read('src/General/css/padding.nav.css') %>"""
|
||||
css = """<%= grunt.file.read('src/General/css/padding.nav.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
if Style.padding.pages
|
||||
css += """<%= grunt.file.read('src/General/css/padding.pages.css') %>"""
|
||||
css += """<%= grunt.file.read('src/General/css/padding.pages.css').replace(/\s+/g, ' ').trim() %>"""
|
||||
|
||||
Style.paddingSheet.textContent = css
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user