Skip to content

Commit 7963102

Browse files
authored
Merge pull request #1411 from cproof/master
Add print styling directives
2 parents f311404 + 3b8faa3 commit 7963102

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/plugins/editor/components/editor.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99
}
1010

1111
@import './read-only-watermark.less';
12+
13+
@import './print.less';
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Styling for printing out of the editor
3+
*/
4+
5+
@media print {
6+
//List of elements that should not be rendered for printing
7+
.Pane1, .topbar {
8+
display: none;
9+
}
10+
11+
.SplitPane {
12+
position: relative !important;
13+
display: block !important;
14+
}
15+
16+
//The right-hand preview pane should be the full width of the page
17+
.Pane2 {
18+
overflow-y: auto;
19+
width: 100% !important;
20+
}
21+
}

0 commit comments

Comments
 (0)