mirror of
https://github.com/less/less.js.git
synced 2026-02-03 19:45:00 -05:00
move error message css back in error function
This commit is contained in:
@@ -159,6 +159,33 @@ function error(e, href) {
|
||||
'<span class="error">' +
|
||||
e.extract[1].slice(e.column) +
|
||||
'</span>');
|
||||
// CSS for error messages
|
||||
createCSS([
|
||||
'#less-error-message span {',
|
||||
'margin-right: 15px;',
|
||||
'}',
|
||||
'#less-error-message pre {',
|
||||
'color: #ee4444;',
|
||||
'padding: 4px 0;',
|
||||
'margin: 0;',
|
||||
'}',
|
||||
'#less-error-message pre.ctx {',
|
||||
'color: #dd7777;',
|
||||
'}',
|
||||
'#less-error-message h3 {',
|
||||
'padding: 15px 0 5px 0;',
|
||||
'margin: 0;',
|
||||
'}',
|
||||
'#less-error-message a {',
|
||||
'color: #10a',
|
||||
'}',
|
||||
'#less-error-message .error {',
|
||||
'color: red;',
|
||||
'font-weight: bold;',
|
||||
'padding-bottom: 2px;',
|
||||
'border-bottom: 1px dashed red;',
|
||||
'}'
|
||||
].join(''));
|
||||
|
||||
elem.style.cssText = [
|
||||
"font-family: Arial, sans-serif",
|
||||
@@ -180,32 +207,4 @@ function error(e, href) {
|
||||
}
|
||||
}
|
||||
|
||||
// CSS for error messages
|
||||
createCSS([
|
||||
'#less-error-message span {',
|
||||
'margin-right: 15px;',
|
||||
'}',
|
||||
'#less-error-message pre {',
|
||||
'color: #ee4444;',
|
||||
'padding: 4px 0;',
|
||||
'margin: 0;',
|
||||
'}',
|
||||
'#less-error-message pre.ctx {',
|
||||
'color: #dd7777;',
|
||||
'}',
|
||||
'#less-error-message h3 {',
|
||||
'padding: 15px 0 5px 0;',
|
||||
'margin: 0;',
|
||||
'}',
|
||||
'#less-error-message a {',
|
||||
'color: #10a',
|
||||
'}',
|
||||
'#less-error-message .error {',
|
||||
'color: red;',
|
||||
'font-weight: bold;',
|
||||
'padding-bottom: 2px;',
|
||||
'border-bottom: 1px dashed red;',
|
||||
'}'
|
||||
].join(''));
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user