From 86ae2e6879aab9550f5b403cac62e1319082150b Mon Sep 17 00:00:00 2001 From: Martijn Vermaat <martijn@vermaat.name> Date: Thu, 10 Jul 2014 17:49:07 +0200 Subject: [PATCH] Fix scrolling in nbviewer for slideshows --- 01 - Welcome.ipynb | 8 ++++---- 02 - Introduction to Python (1).ipynb | 12 ++++++------ 02 - Introduction to Python (2).ipynb | 12 ++++++------ 02 - Introduction to Python (3).ipynb | 12 ++++++------ styles/custom.css | 4 ++-- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/01 - Welcome.ipynb b/01 - Welcome.ipynb index 0adb27f..80542ed 100644 --- a/01 - Welcome.ipynb +++ b/01 - Welcome.ipynb @@ -2,7 +2,7 @@ "metadata": { "celltoolbar": "Slideshow", "name": "", - "signature": "sha256:6c570ac428c0fbfa0115d6c05d52e3c05410cd3de42ae35e7ee7feb0f435a641" + "signature": "sha256:a016c0815699df8dae5155425df47f34e59e2aac64d4fa7f4edaa9c43a33ad3f" }, "nbformat": 3, "nbformat_minor": 0, @@ -259,8 +259,8 @@ { "html": [ "<style>/* Remove the vertical scrollbar added by nbconvert. */\n", - "html {\n", - " overflow-y: hidden;\n", + ".reveal {\n", + " overflow: hidden;\n", "}\n", "\n", "/* Workaround some highlight.js bugs in language autodetection. */\n", @@ -287,7 +287,7 @@ "output_type": "pyout", "prompt_number": 1, "text": [ - "<IPython.core.display.HTML at 0x33caa50>" + "<IPython.core.display.HTML at 0x1f71a50>" ] } ], diff --git a/02 - Introduction to Python (1).ipynb b/02 - Introduction to Python (1).ipynb index 2e37bf9..fdc809c 100644 --- a/02 - Introduction to Python (1).ipynb +++ b/02 - Introduction to Python (1).ipynb @@ -2,7 +2,7 @@ "metadata": { "celltoolbar": "Slideshow", "name": "", - "signature": "sha256:06632e3aab84ba95070db9bd6588d5a6fa8e7440ebe85cac2ce1a3c91911db47" + "signature": "sha256:48b5e4d61de5dfa8cebfe8fe0c78f8587586ee15c8ea50fe5c1d67f8ea5caa4a" }, "nbformat": 3, "nbformat_minor": 0, @@ -893,8 +893,8 @@ { "html": [ "<style>/* Remove the vertical scrollbar added by nbconvert. */\n", - "html {\n", - " overflow-y: hidden;\n", + ".reveal {\n", + " overflow: hidden;\n", "}\n", "\n", "/* Workaround some highlight.js bugs in language autodetection. */\n", @@ -919,13 +919,13 @@ ], "metadata": {}, "output_type": "pyout", - "prompt_number": 25, + "prompt_number": 1, "text": [ - "<IPython.core.display.HTML at 0x7f39d4043c90>" + "<IPython.core.display.HTML at 0x3463a50>" ] } ], - "prompt_number": 25 + "prompt_number": 1 } ], "metadata": {} diff --git a/02 - Introduction to Python (2).ipynb b/02 - Introduction to Python (2).ipynb index ff39ed7..d7010ad 100644 --- a/02 - Introduction to Python (2).ipynb +++ b/02 - Introduction to Python (2).ipynb @@ -2,7 +2,7 @@ "metadata": { "celltoolbar": "Slideshow", "name": "", - "signature": "sha256:57d29de0d77287096e49247676a76ea06e3730e1e5f819ecfc6b4b3f6d85e4e9" + "signature": "sha256:7b4c4307ccc127e749bcc6fae78706177f4e98973022d13424e5a50a8325f24e" }, "nbformat": 3, "nbformat_minor": 0, @@ -1842,8 +1842,8 @@ { "html": [ "<style>/* Remove the vertical scrollbar added by nbconvert. */\n", - "html {\n", - " overflow-y: hidden;\n", + ".reveal {\n", + " overflow: hidden;\n", "}\n", "\n", "/* Workaround some highlight.js bugs in language autodetection. */\n", @@ -1868,13 +1868,13 @@ ], "metadata": {}, "output_type": "pyout", - "prompt_number": 60, + "prompt_number": 1, "text": [ - "<IPython.core.display.HTML at 0x24f0cd0>" + "<IPython.core.display.HTML at 0x1873a50>" ] } ], - "prompt_number": 60 + "prompt_number": 1 } ], "metadata": {} diff --git a/02 - Introduction to Python (3).ipynb b/02 - Introduction to Python (3).ipynb index 9360d5c..792c092 100644 --- a/02 - Introduction to Python (3).ipynb +++ b/02 - Introduction to Python (3).ipynb @@ -2,7 +2,7 @@ "metadata": { "celltoolbar": "Slideshow", "name": "", - "signature": "sha256:74676c0cad25c0954fa4f8352dda1c9010bd747de1752b4ccc667d9132427fdd" + "signature": "sha256:255f999074050e52200e04b7179ca89a373daf14311e382c4ab05b4444cf392e" }, "nbformat": 3, "nbformat_minor": 0, @@ -851,8 +851,8 @@ { "html": [ "<style>/* Remove the vertical scrollbar added by nbconvert. */\n", - "html {\n", - " overflow-y: hidden;\n", + ".reveal {\n", + " overflow: hidden;\n", "}\n", "\n", "/* Workaround some highlight.js bugs in language autodetection. */\n", @@ -877,13 +877,13 @@ ], "metadata": {}, "output_type": "pyout", - "prompt_number": 24, + "prompt_number": 1, "text": [ - "<IPython.core.display.HTML at 0x1965a50>" + "<IPython.core.display.HTML at 0x2e0ea50>" ] } ], - "prompt_number": 24 + "prompt_number": 1 } ], "metadata": {} diff --git a/styles/custom.css b/styles/custom.css index 2bfc5ba..b327eff 100644 --- a/styles/custom.css +++ b/styles/custom.css @@ -1,6 +1,6 @@ /* Remove the vertical scrollbar added by nbconvert. */ -html { - overflow-y: hidden; +.reveal { + overflow: hidden; } /* Workaround some highlight.js bugs in language autodetection. */ -- GitLab