summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-09-23 10:00:28 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-09-23 10:00:28 +0200
commite95d91e826bc11af9aa42db45861d68211edd347 (patch)
treeeccfe7306d4f7a864fa833280092c12f2e3eaa53 /spec
parent3a72a9d1109e995b9c4de70f260ac3b5ac8f73b9 (diff)
downloadscala-e95d91e826bc11af9aa42db45861d68211edd347.tar.gz
scala-e95d91e826bc11af9aa42db45861d68211edd347.tar.bz2
scala-e95d91e826bc11af9aa42db45861d68211edd347.zip
spec: a print stylesheet to remove the TOC when printing
Diffstat (limited to 'spec')
-rw-r--r--spec/_layouts/default.yml1
-rw-r--r--spec/public/stylesheets/print.css15
2 files changed, 16 insertions, 0 deletions
diff --git a/spec/_layouts/default.yml b/spec/_layouts/default.yml
index fbbab3a1a0..e777b8f14c 100644
--- a/spec/_layouts/default.yml
+++ b/spec/_layouts/default.yml
@@ -49,6 +49,7 @@
</script>
<link rel="stylesheet" type="text/css" href="public/stylesheets/screen.css">
+ <link rel="stylesheet" type="text/css" media="print" href="public/stylesheets/print.css">
<title>{{ page.title }}</title>
</head>
diff --git a/spec/public/stylesheets/print.css b/spec/public/stylesheets/print.css
new file mode 100644
index 0000000000..3fbc5596c0
--- /dev/null
+++ b/spec/public/stylesheets/print.css
@@ -0,0 +1,15 @@
+/* This removes a few things from screen.css for printing */
+
+body {
+ padding: 0px;
+ margin: 0.5em;
+}
+
+.anchor, #navigation, .to_top {
+ display: none;
+}
+
+#content-container {
+ width: 100%;
+ float: none;
+}