-
Notifications
You must be signed in to change notification settings - Fork 1
Use sass for styles #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,206 @@ | ||
/* | ||
* | ||
* Diff to HTML (diff2html.css) | ||
* Author: rtfpessoa | ||
* Modified by: codingtwinky | ||
* Date: Friday 29 August 2014 | ||
* Last Update: Saturday 27 September 2014 | ||
* | ||
*/ | ||
|
||
.d2h-wrapper { | ||
display: block; | ||
margin: 0 auto; | ||
text-align: left; | ||
width: 100%; | ||
} | ||
|
||
.d2h-file-wrapper { | ||
border-radius: 3px; | ||
} | ||
|
||
.d2h-file-header { | ||
display: none; | ||
} | ||
|
||
.d2h-file-stats { | ||
display: inline; | ||
font-size: 12px; | ||
text-align: center; | ||
max-width: 15%; | ||
} | ||
|
||
.d2h-lines-added { | ||
background-color: #ceffce; | ||
border: 1px solid #b4e2b4; | ||
color: #FFFFFF; | ||
border-radius: 5px 0 0 5px; | ||
padding: 2px; | ||
width: 25px; | ||
} | ||
|
||
.d2h-lines-deleted { | ||
background-color: #f7c8c8; | ||
border: 1px solid #e9aeae; | ||
color: #000000; | ||
border-radius: 0 5px 5px 0; | ||
padding: 2px; | ||
width: 25px; | ||
} | ||
|
||
.d2h-file-name { | ||
display: inline; | ||
height: 33px; | ||
max-width: 80%; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
} | ||
|
||
.d2h-diff-table { | ||
border-collapse: collapse; | ||
font-family: 'Source Code Pro'; | ||
font-size: 12px; | ||
height: 19px; | ||
width: 100%; | ||
tbody > tr > td { | ||
padding: 0px; | ||
border-spacing: 0px; | ||
height: 105%; | ||
} | ||
} | ||
|
||
.d2h-files-diff { | ||
width: 100%; | ||
display: flex; | ||
} | ||
|
||
.d2h-file-diff { | ||
overflow-x: auto; | ||
overflow-y: hidden; | ||
} | ||
|
||
.d2h-file-side-diff { | ||
display: inline-block; | ||
overflow-x: auto; | ||
width: 50%; | ||
} | ||
|
||
.d2h-code-line { | ||
white-space: pre; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
display: inline-flex; | ||
} | ||
|
||
.d2h-code-side-line { | ||
white-space: pre; | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
display: inline-flex; | ||
} | ||
|
||
.d2h-code-line del, | ||
.d2h-code-side-line del { | ||
display: inline-block; | ||
margin-top: -1px; | ||
text-decoration: none; | ||
background-color: rgba(255, 255, 255, 0.2); | ||
} | ||
|
||
.d2h-code-line ins, | ||
.d2h-code-side-line ins { | ||
display: inline-block; | ||
margin-top: -1px; | ||
text-decoration: none; | ||
background-color: rgba(255, 255, 255, 0.6); | ||
} | ||
|
||
.d2h-code-line-prefix { | ||
display: inline-flex; | ||
margin-right: 10px; | ||
} | ||
|
||
.line-num1 { | ||
display: inline-block; | ||
float: left; | ||
width: 30px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.line-num2 { | ||
display: inline-block; | ||
float: right; | ||
width: 30px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.d2h-code-linenumber { | ||
position: static; | ||
width: 52px; | ||
min-width: 65px; | ||
text-align: center; | ||
background-color: #727a83; | ||
color: rgba(0, 0, 0, 0.5); | ||
border-width: 0 1px 0 1px; | ||
cursor: pointer; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
border-left: 1px solid rgba(0, 0, 0, 0.34); | ||
border-right: 1px solid rgba(0, 0, 0, 0.34); | ||
} | ||
|
||
.d2h-cntx { | ||
color: rgba(255, 255, 255, 0.3); | ||
} | ||
|
||
.d2h-code-side-linenumber { | ||
position: static; | ||
display: table-cell; | ||
width: 52px; | ||
min-width: 65px; | ||
text-align: center; | ||
height: 100%; | ||
background-color: rgba(114, 122, 131, 1); | ||
color: rgba(0, 0, 0, 0.5); | ||
border-width: 0 1px 0 1px; | ||
cursor: pointer; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
border-left: 1px solid rgba(0, 0, 0, 0.34); | ||
border-right: 1px solid rgba(0, 0, 0, 0.34); | ||
} | ||
|
||
.d2h-del { | ||
background-color: #E86756; | ||
color: #FFFFFF; | ||
|
||
&.d2h-code-side-linenumber { | ||
color: rgba(0, 0, 0, 0.5); | ||
} | ||
} | ||
|
||
.d2h-ins { | ||
background-color: #66F27B; | ||
color: #000000; | ||
|
||
&.d2h-code-side-linenumber { | ||
color: rgba(0, 0, 0, 0.5); | ||
} | ||
} | ||
|
||
.d2h-info { | ||
color: rgba(255, 255, 255, 0.3); | ||
} | ||
|
||
.d2h-code-line-ctn { | ||
.word-wrap & { | ||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | ||
white-space: -webkit-pre-wrap; /*Chrome & Safari */ | ||
white-space: -pre-wrap; /* Opera 4-6 */ | ||
white-space: -o-pre-wrap; /* Opera 7 */ | ||
white-space: pre-wrap; /* css-3 */ | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's wired... why eslint allow double quotes
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh... I didn't notice that.
Let me fix it.
BTW, seems that the
react-app
eslint rules allow bothno-semi
andsemi
.(Check line 2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated for single quotes; I also add the
webpack
alias for styles.Besides, let's fix the eslint issue in another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix eslint on another PR,
and I recommend use
resolve.modulesDirectories
to solve all the problem about require() relative path hell.