Skip to content

Commit b01ee24

Browse files
committed
Update packages and readme
1 parent 73f65ab commit b01ee24

File tree

6 files changed

+20
-23
lines changed

6 files changed

+20
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
__*
33
.DS_Store
4+
dist/min

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,14 @@ Gutenberg.css is the base stylesheet but there is themes available in the `theme
1111
Example 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

3324
To 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

dist/gutenberg.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ select {
242242
* `input` and others.
243243
*/
244244
button,
245-
html input[type="button"], input[type="reset"],
245+
html input[type="button"],
246+
input[type="reset"],
246247
input[type="submit"] {
247248
-webkit-appearance: button;
248249
/* 2 */

dist/themes/classy.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var 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

66
gulp.task('build-css', function() {
@@ -11,7 +11,7 @@ gulp.task('build-css', function() {
1111

1212
gulp.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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -14,8 +14,8 @@
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
}

0 commit comments

Comments
 (0)