summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/print.less
diff options
context:
space:
mode:
Diffstat (limited to 'theme/stylesheets/print.less')
-rwxr-xr-xtheme/stylesheets/print.less72
1 files changed, 53 insertions, 19 deletions
diff --git a/theme/stylesheets/print.less b/theme/stylesheets/print.less
index 33fe3d8..2f31844 100755
--- a/theme/stylesheets/print.less
+++ b/theme/stylesheets/print.less
@@ -1,8 +1,47 @@
-h1, h2 {
+@import "vendors/bootstrap/bootstrap.less";
+@import "vendors/fontawesome/font-awesome.less";
+
+@import "mixins.less";
+@import "variables.less";
+@import "fonts.less";
+
+@import "page/highlight.less";
+
+
+@font-size-base: 13px;
+
+
+* {
+ -webkit-overflow-scrolling: touch;
+ -webkit-tap-highlight-color: transparent;
+ -webkit-text-size-adjust: none;
+ -webkit-touch-callout: none;
+ -webkit-font-smoothing: antialiased;
+}
+
+html, body {
+ height: 100%;
+}
+
+body {
+ text-rendering: optimizeLegibility;
+ font-smoothing: antialiased;
+ font-family: @font-family-base;
+}
+
+
+h1, h2, h3 {
page-break-after: avoid;
page-break-before: auto;
}
+h1 { font-size: floor(@font-size-base * 2.15); }
+h2 { font-size: floor(@font-size-base * 1.70); }
+h3 { font-size: ceil(@font-size-base * 1.25); }
+h4 { font-size: ceil(@font-size-base * 1); }
+h5 { font-size: ceil(@font-size-base * 0.85); }
+h6 { font-size: ceil(@font-size-base * 0.65); }
+
pre, blockquote {
border: 1px solid #999;
page-break-inside: avoid;
@@ -26,41 +65,36 @@ section {
}
&#summary {
- text-align: center;
+ margin: 1.5cm;
+
+ h1 {
+ text-align: center;
+ }
- ul {
- font-size: 0.5cm;
- line-height: 1.8em;
+ ol {
+ list-style: none;
padding: 0px;
margin: 0px;
- list-style: none;
+ margin-left: 1cm;
}
- > ul {
+ > ol {
> li {
- margin-bottom: 1cm;
-
- > a {
- font-size: 0.6cm;
- }
}
}
}
article {
- margin: 1.5cm;
-
- /* Big centered title */
+ margin-bottom: 1.5cm;
+
&.new-chapter {
page-break-after: always;
font-size: 0.6cm;
text-align: center;
padding: 3cm 0cm;
- border-top: 1px solid #ccc;
-
- @media print {
- border: none;
+ h1 {
+ font-size: floor(@font-size-base * 2.7);
}
}