Merge branch 'release/v1.2.0-rc7'
3
dist/milligram.css
vendored
@ -193,8 +193,7 @@ pre > code {
|
|||||||
hr {
|
hr {
|
||||||
border: 0;
|
border: 0;
|
||||||
border-top: 0.1rem solid #f4f5f6;
|
border-top: 0.1rem solid #f4f5f6;
|
||||||
margin-bottom: 3.5rem;
|
margin: 3.0rem 0;
|
||||||
margin-top: 3.0rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type='email'],
|
input[type='email'],
|
||||||
|
2
dist/milligram.css.map
vendored
2
dist/milligram.min.css
vendored
2
dist/milligram.min.css.map
vendored
@ -64,10 +64,12 @@
|
|||||||
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
|
"autoprefixer": "postcss -u autoprefixer --no-map.inline --autoprefixer.browsers 'last 1 versions' -r dist/*.css",
|
||||||
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
|
"sass": "node-sass --output-style expanded src/milligram.sass dist/milligram.css && node-sass --output-style compressed src/milligram.sass dist/milligram.min.css",
|
||||||
"lint": "sass-lint -c .sasslintrc 'src/*.sass' --verbose --no-exit",
|
"lint": "sass-lint -c .sasslintrc 'src/*.sass' --verbose --no-exit",
|
||||||
"build": "npm-run-all sass autoprefixer banner",
|
"build": "run-s lint sass autoprefixer banner",
|
||||||
"watch": "onchange src -- npm run build",
|
"watch": "onchange src -- npm run build",
|
||||||
"serve": "browser-sync start -s test --ss dist -f dist",
|
"serve": "browser-sync start -s test --ss dist -f dist",
|
||||||
"start": "npm-run-all -p watch serve",
|
"start": "run-p watch serve",
|
||||||
"test": "cd node_modules/backstopjs && npm run test -- --configPath=../../test/visual/backstop.config.js && cd ../../"
|
"reference": "cd node_modules/backstopjs && npm run reference -- --configPath=../../test/visual/backstop.config.js && cd ../../",
|
||||||
|
"compare": "cd node_modules/backstopjs && npm run test -- --configPath=../../test/visual/backstop.config.js && cd ../../",
|
||||||
|
"test": "run-p serve compare"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,5 +5,4 @@
|
|||||||
hr
|
hr
|
||||||
border: 0
|
border: 0
|
||||||
border-top: .1rem solid $color-tertiary
|
border-top: .1rem solid $color-tertiary
|
||||||
margin-bottom: 3.5rem
|
margin: 3.0rem 0
|
||||||
margin-top: 3.0rem
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
<section class="container" id="typography">
|
<section class="container" id="typography">
|
||||||
<h5 class="title">Typography</h5>
|
<h5 class="title">Typography</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
@ -43,6 +44,7 @@
|
|||||||
|
|
||||||
<section class="container" id="blockquotes">
|
<section class="container" id="blockquotes">
|
||||||
<h5 class="title">Blockquotes</h5>
|
<h5 class="title">Blockquotes</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
@ -59,6 +61,7 @@
|
|||||||
|
|
||||||
<section class="container" id="buttons">
|
<section class="container" id="buttons">
|
||||||
<h5 class="title">Buttons</h5>
|
<h5 class="title">Buttons</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
@ -117,6 +120,7 @@
|
|||||||
|
|
||||||
<section class="container" id="lists">
|
<section class="container" id="lists">
|
||||||
<h5 class="title">Lists</h5>
|
<h5 class="title">Lists</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
@ -167,6 +171,7 @@
|
|||||||
|
|
||||||
<section class="container" id="forms">
|
<section class="container" id="forms">
|
||||||
<h5 class="title">Forms</h5>
|
<h5 class="title">Forms</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<form>
|
<form>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
@ -231,6 +236,7 @@
|
|||||||
|
|
||||||
<section class="container" id="tables">
|
<section class="container" id="tables">
|
||||||
<h5 class="title">Tables</h5>
|
<h5 class="title">Tables</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -291,6 +297,7 @@
|
|||||||
|
|
||||||
<section class="container" id="grids">
|
<section class="container" id="grids">
|
||||||
<h5 class="title">Grids</h5>
|
<h5 class="title">Grids</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column"><span class="column-demo">100%</span></div>
|
<div class="column"><span class="column-demo">100%</span></div>
|
||||||
@ -531,6 +538,7 @@
|
|||||||
|
|
||||||
<section class="container" id="codes">
|
<section class="container" id="codes">
|
||||||
<h5 class="title">Codes</h5>
|
<h5 class="title">Codes</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<pre><code>.milligram {
|
<pre><code>.milligram {
|
||||||
color: #9b4dca;
|
color: #9b4dca;
|
||||||
@ -540,6 +548,7 @@
|
|||||||
|
|
||||||
<section class="container" id="utilities">
|
<section class="container" id="utilities">
|
||||||
<h5 class="title">Utilities</h5>
|
<h5 class="title">Utilities</h5>
|
||||||
|
<hr>
|
||||||
<div class="example">
|
<div class="example">
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<img class="float-left" src="http://placehold.it/320/d1d1d1/?text=float+to+left" alt="float to left">
|
<img class="float-left" src="http://placehold.it/320/d1d1d1/?text=float+to+left" alt="float to left">
|
||||||
@ -550,6 +559,7 @@
|
|||||||
|
|
||||||
<section class="container" id="examples">
|
<section class="container" id="examples">
|
||||||
<h5 class="title">Examples</h5>
|
<h5 class="title">Examples</h5>
|
||||||
|
<hr>
|
||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://milligram.github.io/getting-started.html" title="Getting Started">Getting Started</a></li>
|
<li><a href="https://milligram.github.io/getting-started.html" title="Getting Started">Getting Started</a></li>
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
viewports: [
|
viewports: [
|
||||||
{ name: 'phone', width: 320, height: 480 },
|
{ name: 'phone', width: 320, height: 480 },
|
||||||
{ name: 'tablet', width: 768, height: 1024 },
|
{ name: 'laptop', width: 1280, height: 800 }
|
||||||
{ name: 'laptop', width: 1280, height: 800 },
|
|
||||||
{ name: 'desktop', width: 1920, height: 1080 }
|
|
||||||
],
|
],
|
||||||
scenarios: [{
|
scenarios: [{
|
||||||
label: 'Typography',
|
label: 'Typography',
|
||||||
@ -14,9 +12,9 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
},{
|
}, {
|
||||||
label: 'Blockquotes',
|
label: 'Blockquotes',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
hideSelectors: [],
|
hideSelectors: [],
|
||||||
@ -25,8 +23,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Buttons',
|
label: 'Buttons',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -36,8 +34,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Lists',
|
label: 'Lists',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -47,8 +45,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Forms',
|
label: 'Forms',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -58,8 +56,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Tables',
|
label: 'Tables',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -69,8 +67,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Grids',
|
label: 'Grids',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -80,8 +78,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Codes',
|
label: 'Codes',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -91,8 +89,8 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}, {
|
}, {
|
||||||
label: 'Utilities',
|
label: 'Utilities',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
@ -102,13 +100,13 @@ module.exports = {
|
|||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onReadyScript: null,
|
||||||
onReadyScript: 'onReady.js'
|
onBeforeScript: null
|
||||||
}],
|
}],
|
||||||
paths: {
|
paths: {
|
||||||
bitmaps_reference: '../../test/visual/reference',
|
bitmaps_reference: '../../test/visual/reference',
|
||||||
bitmaps_test: '.tmp',
|
bitmaps_test: '.tmp',
|
||||||
casper_scripts: '../../test/visual/fixtures',
|
casper_scripts: null,
|
||||||
compare_data: '.tmp/compare.json'
|
compare_data: '.tmp/compare.json'
|
||||||
},
|
},
|
||||||
engine: 'phantomjs',
|
engine: 'phantomjs',
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
module.exports = function(casper, scenario, vp) {
|
|
||||||
casper.echo('onBeforeEach.js', 'INFO');
|
|
||||||
casper.wait(50);
|
|
||||||
};
|
|
@ -1,4 +0,0 @@
|
|||||||
module.exports = function(casper, scenario, vp) {
|
|
||||||
casper.echo('onReady.js', 'INFO');
|
|
||||||
casper.wait(50);
|
|
||||||
};
|
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
BIN
test/visual/reference/0_0_typography_1_laptop.png
Normal file
After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
BIN
test/visual/reference/1_0_blockquotes_1_laptop.png
Normal file
After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
BIN
test/visual/reference/2_0_buttons_1_laptop.png
Normal file
After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 84 KiB |
BIN
test/visual/reference/3_0_lists_1_laptop.png
Normal file
After Width: | Height: | Size: 90 KiB |
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
BIN
test/visual/reference/4_0_forms_1_laptop.png
Normal file
After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
BIN
test/visual/reference/5_0_tables_1_laptop.png
Normal file
After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
BIN
test/visual/reference/6_0_grids_1_laptop.png
Normal file
After Width: | Height: | Size: 147 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.3 KiB |
BIN
test/visual/reference/7_0_codes_1_laptop.png
Normal file
After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
BIN
test/visual/reference/8_0_utilities_1_laptop.png
Normal file
After Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.8 KiB |