File tree Expand file tree Collapse file tree 6 files changed +20
-23
lines changed
Expand file tree Collapse file tree 6 files changed +20
-23
lines changed Original file line number Diff line number Diff line change 11node_modules
22__ *
33.DS_Store
4+ dist /min
Original file line number Diff line number Diff line change @@ -11,23 +11,14 @@ Gutenberg.css is the base stylesheet but there is themes available in the `theme
1111Example with Gutenberg and "old style" theme :
1212
1313``` HTML
14- <link rel =" stylesheet" href =" dist/gutenberg.css" media =" print" charset = " utf-8 " >
15- <link rel =" stylesheet" href =" dist/themes/oldstyle.css" media =" print" charset = " utf-8 " >
14+ <link rel =" stylesheet" href =" dist/gutenberg.css" media =" print" >
15+ <link rel =" stylesheet" href =" dist/themes/oldstyle.css" media =" print" >
1616```
1717
1818![ comparison] ( https://i.imgur.com/tL5cHhn.png )
1919
2020> Comparison between standard print (left) and Gutenberg (middle, Modern style and right, Old style)
2121
22- ### Force to print background
23-
24- To force backgrounds to be printed (can be useful when you "print" a pdf), add this CSS (compatible with Safari and Chrome) :
25-
26- ``` CSS
27- -webkit-print-color-adjust: exact;
28- print-color-adjust : exact;
29- ```
30-
3122### Hide elements
3223
3324To hide elements to be printed you can simply add the class ` no-print ` .
@@ -43,6 +34,15 @@ Example:
4334<h1 class =" page-break" >My title</h1 >
4435```
4536
37+ ### Force to print background
38+
39+ To force backgrounds to be printed (can be useful when you "print" a pdf), add this CSS (compatible with Safari and Chrome) :
40+
41+ ``` CSS
42+ -webkit-print-color-adjust: exact;
43+ print-color-adjust : exact;
44+ ```
45+
4646## Dev
4747
4848 1. `npm install` to install dependencies
Original file line number Diff line number Diff line change @@ -242,7 +242,8 @@ select {
242242 * `input` and others.
243243 */
244244button ,
245- html input [type = "button" ], input [type = "reset" ],
245+ html input [type = "button" ],
246+ input [type = "reset" ],
246247input [type = "submit" ] {
247248 -webkit-appearance : button;
248249 /* 2 */
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11var gulp = require ( 'gulp' ) ,
22 sass = require ( 'gulp-sass' ) ,
3- minifyCss = require ( 'gulp-minify -css' ) ;
3+ cleanCSS = require ( 'gulp-clean -css' ) ;
44 // sourcemaps = require('gulp-sourcemaps');
55
66gulp . task ( 'build-css' , function ( ) {
@@ -11,7 +11,7 @@ gulp.task('build-css', function() {
1111
1212gulp . task ( 'minify-css' , function ( ) {
1313 return gulp . src ( 'dist/**/*.css' )
14- . pipe ( minifyCss ( { compatibility : 'ie8' } ) )
14+ . pipe ( cleanCSS ( { compatibility : 'ie8' } ) )
1515 . pipe ( gulp . dest ( 'dist/min' ) ) ;
1616} ) ;
1717
Original file line number Diff line number Diff line change 11{
22 "name" : " gutenberg" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.1.0 " ,
44 "description" : " Print your web pages with style" ,
55 "main" : " index.js" ,
66 "scripts" : {
1414 "author" : " Fabien Sa" ,
1515 "license" : " MIT" ,
1616 "devDependencies" : {
17- "gulp" : " ^3.9.0 " ,
18- "gulp-minify -css" : " ^1.2.1 " ,
19- "gulp-sass" : " ^2.0.4 "
17+ "gulp" : " ^3.9.1 " ,
18+ "gulp-clean -css" : " ^2.0.13 " ,
19+ "gulp-sass" : " ^2.3.2 "
2020 }
2121}
You can’t perform that action at this time.
0 commit comments