-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Brightspace/screenshots
Screenshots
- Loading branch information
Showing
15 changed files
with
107 additions
and
235 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 |
---|---|---|
@@ -1 +1 @@ | ||
--ignore=zero-units,adjoining-classes,import | ||
--ignore=adjoining-classes,import |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
bower_components/ | ||
node_modules/ | ||
test/output | ||
test/test.css | ||
typography.css |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
.csslintrc | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
.csslintrc | ||
.travis.yml | ||
bower_components | ||
node_modules | ||
test | ||
typography.css.scss | ||
test/test.scss |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: node_js | ||
node_js: | ||
- 4.1.1 | ||
- 5.6 | ||
before_script: | ||
- gem install percy-cli | ||
after_success: | ||
|
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 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,27 @@ | ||
var page = require('webpage').create(); | ||
page.viewportSize = {width: 750, height: 1000}; | ||
|
||
function capture(name, width) { | ||
|
||
var clipRect = page.evaluate(function(n) { | ||
return document.querySelector('.screenshot-' + n) | ||
.getBoundingClientRect(); | ||
}, name); | ||
|
||
page.clipRect = { | ||
top: clipRect.top, | ||
left: clipRect.left, | ||
width: width || clipRect.width, | ||
height: clipRect.height | ||
}; | ||
page.render('./screenshots/' + name + '.png'); | ||
|
||
} | ||
|
||
page.open('./test/typography.html', function() { | ||
capture('paragraph'); | ||
capture('headings', 200); | ||
capture('small', 200); | ||
capture('small-strong', 200); | ||
phantom.exit(); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.