- commit
- 35c7018b5ca2177114a2f420e0da8f1dc04f50e3
- parent
- 0ae63d3da1f798da90b8c628fe1323043f8c3432
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2016-09-11 11:02
improve print styles
Diffstat
| M | static/scss/bar.scss | 4 | ++++ |
| M | static/scss/base.scss | 6 | ++++-- |
| M | static/scss/layout.scss | 8 | +++++++- |
| M | static/scss/tree.scss | 5 | +++++ |
| M | static/scss/user.scss | 4 | ++++ |
5 files changed, 24 insertions, 3 deletions
diff --git a/static/scss/bar.scss b/static/scss/bar.scss
@@ -10,6 +10,10 @@ 10 10 &:hover { 11 11 background-color: rgba($color-bg, 0.2); 12 12 } -1 13 -1 14 @media print { -1 15 display: none; -1 16 } 13 17 } 14 18 15 19 %bar-item {
diff --git a/static/scss/base.scss b/static/scss/base.scss
@@ -12,6 +12,8 @@ textarea {
12 12 font-size: inherit;
13 13 }
14 14
15 -1 html {
16 -1 background: $color-bg-html;
-1 15 @media screen {
-1 16 html {
-1 17 background: $color-bg-html;
-1 18 }
17 19 }
diff --git a/static/scss/layout.scss b/static/scss/layout.scss
@@ -49,13 +49,19 @@ body > header {
49 49 border-radius: ($padding / 2) ($padding / 2) 0 0;
50 50 }
51 51
-1 52 @media print {
-1 53 #tree, #user {
-1 54 border: 0;
-1 55 }
-1 56 }
-1 57
52 58 #tree {
53 59 background: $color-bg;
54 60 padding: $padding;
55 61 margin-top: $padding;
56 62 }
57 63
58 -1 @media (min-width: 40em) {
-1 64 @media screen and (min-width: 40em) {
59 65 html {
60 66 overflow: auto;
61 67 }
diff --git a/static/scss/tree.scss b/static/scss/tree.scss
@@ -18,6 +18,11 @@ 18 18 19 19 .body { 20 20 background: $color-bg; -1 21 break-inside: avoid; -1 22 -1 23 @media print { -1 24 border: 1px solid; -1 25 } 21 26 } 22 27 23 28 .header {
diff --git a/static/scss/user.scss b/static/scss/user.scss
@@ -18,6 +18,10 @@ 18 18 content: "‒"; 19 19 } 20 20 } -1 21 -1 22 @media print { -1 23 display: none; -1 24 } 21 25 } 22 26 23 27 .statusbar {