Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tools.html2print
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
osp
tools.html2print
Commits
1b13abe8
Commit
1b13abe8
authored
Apr 07, 2016
by
svilayphiou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
region-break adapted for polyfill
parent
d80025ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
assets/less/html2print.less
assets/less/html2print.less
+3
-0
assets/less/layout.less
assets/less/layout.less
+3
-0
No files found.
assets/less/html2print.less
View file @
1b13abe8
...
...
@@ -109,6 +109,8 @@
width: @page-width;
height: @page-height;
position: relative;
box-sizing: border-box;
overflow: hidden;
}
// TODO: changer le format du papier en spread pour pouvoir imprimer en planche
...
...
@@ -156,4 +158,5 @@
* if you want to put manual page breaks without attaching it to an HTML element
*/
-webkit-region-break-before: always;
break-before: always;
}
assets/less/layout.less
View file @
1b13abe8
...
...
@@ -84,7 +84,9 @@ h6 {
* But it doesn't seem to work
* if the element after has a page-break-inside avoid. It tries its best! */
-webkit-region-break-inside: avoid;
break-inside: avoid;
-webkit-region-break-after: avoid;
break-after: avoid;
}
/* AN EXAMPLE TO AVOID PAGE BREAK INSIDE,
...
...
@@ -92,6 +94,7 @@ h6 {
* BUT YOU MIGHT WANT TO DEACTIVATE THIS */
p {
/*-webkit-region-break-inside: avoid;*/
/* break-inside: avoid;*/
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment