-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #54. Switch to using Pretty Diff for LESS support.
- Loading branch information
Showing
5 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
a { | ||
line-height: @headerHeight; | ||
|
||
display: block; | ||
padding: 0px 15px; | ||
font-size: 16px; | ||
button { | ||
font-size: 16px; | ||
} | ||
&:link { | ||
color: @white; | ||
|
||
text-decoration: none; | ||
} | ||
&:visited { | ||
color: @white; | ||
|
||
} | ||
&:hover { | ||
color: @orange; | ||
|
||
} | ||
&.green { | ||
color: @green; | ||
|
||
&:hover { | ||
color: @white; | ||
|
||
background-color: @green; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
var prettydiff = require('prettydiff'); | ||
|
||
module.exports = function (text, options, callback) { | ||
var args = { | ||
source: text, | ||
lang: 'less', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
seaside98
|
||
mode: 'beautify' | ||
}, | ||
output = prettydiff.api(args); | ||
var result = output[0]; | ||
callback(result); | ||
return result; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Stack Overflow question suggests that the lang parameter takes a number instead of a string. Since it is using 'auto' and not 'less', that would probably be worth checking. Per #54