Created
December 31, 2011 15:00
-
-
Save Carreau/1544221 to your computer and use it in GitHub Desktop.
Quick hack for horizontal layout for IPython notebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 966540aed78e2f748832412c78d535e8b0951eaf Mon Sep 17 00:00:00 2001 | |
From: Matthias BUSSONNIER <bussonniermatthias@gmail.com> | |
Date: Sat, 31 Dec 2011 15:56:56 +0100 | |
Subject: [PATCH] horizontal split | |
--- | |
.../frontend/html/notebook/static/css/notebook.css | 12 ++++++++++++ | |
1 files changed, 12 insertions(+), 0 deletions(-) | |
diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css | |
index 36c0ca4..8d96f5b 100644 | |
--- a/IPython/frontend/html/notebook/static/css/notebook.css | |
+++ b/IPython/frontend/html/notebook/static/css/notebook.css | |
@@ -210,6 +210,17 @@ div.cell { | |
padding: 5px 5px 5px 0px; | |
/* This acts as a spacer between cells, that is outside the border */ | |
margin: 2px 0px 2px 0px; | |
+ display: -webkit-box; | |
+ -webkit-box-orient: horizontal; | |
+ -webkit-box-align: stretch; | |
+ | |
+ display: -moz-box; | |
+ -moz-box-orient: horizontal; | |
+ -moz-box-align: stretch; | |
+ | |
+ display: box; | |
+ box-orient: horizontal; | |
+ box-align: stretch; | |
} | |
div.code_cell { | |
@@ -231,6 +242,7 @@ div.prompt { | |
div.input { | |
page-break-inside: avoid; | |
+ min-width:50%; | |
} | |
/* input_area and input_prompt must match in top border and margin for alignment */ | |
-- | |
1.7.4.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment