From 94a8d09dfce980f36dfca7b9a93a4b6b9341dc43 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Mon, 2 Mar 2015 17:27:23 -0800 Subject: [PATCH 1/5] Move upload to the right and dynamic buttons to the left. --- .../html/static/tree/less/altuploadform.less | 37 +++++++++---------- IPython/html/static/tree/less/tree.less | 1 + IPython/html/templates/tree.html | 29 +++++++-------- 3 files changed, 32 insertions(+), 35 deletions(-) diff --git a/IPython/html/static/tree/less/altuploadform.less b/IPython/html/static/tree/less/altuploadform.less index bc107ff7a..be608cf5b 100644 --- a/IPython/html/static/tree/less/altuploadform.less +++ b/IPython/html/static/tree/less/altuploadform.less @@ -1,29 +1,26 @@ /* We need an invisible input field on top of the sentense*/ /* "Drag file onto the list ..." */ -.alternate_upload -{ +.alternate_upload { background-color:none; display: inline; -} -.alternate_upload.form -{ - padding: 0; - margin:0; -} + &.form + { + padding: 0; + margin:0; + } -.alternate_upload input.fileinput -{ - display: inline; - opacity: 0; - z-index: 2; - width: 12ex; - margin-right: -12ex; -} + input.fileinput + { + display: inline; + opacity: 0; + z-index: 2; + width: 12ex; + margin-right: -12ex; + } -.alternate_upload .input-overlay { - display: inline-block; - font-weight: bold; - line-height:1em; + .btn-upload { + height: @btn_mini_height; + } } diff --git a/IPython/html/static/tree/less/tree.less b/IPython/html/static/tree/less/tree.less index ba2236e81..1d8b2465d 100644 --- a/IPython/html/static/tree/less/tree.less +++ b/IPython/html/static/tree/less/tree.less @@ -49,6 +49,7 @@ ul.breadcrumb { } .dynamic-buttons { + padding-top: @dashboard_tb_pad - 1px; display: inline-block; } diff --git a/IPython/html/templates/tree.html b/IPython/html/templates/tree.html index fa22adccc..c95dc6346 100644 --- a/IPython/html/templates/tree.html +++ b/IPython/html/templates/tree.html @@ -25,24 +25,23 @@ data-terminals-available="{{terminals_available}}"
-
- - To import a notebook, drag the file onto the listing below or - - - click here. - - -
+
+ + + + +
-
- - - - -
+
+ + + + Upload + + +
From a840383a38e8849a34b7b9c325dd3029a5d8f029 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 4 Mar 2015 11:33:32 -0800 Subject: [PATCH 4/5] Add tooltip on the upload button. --- IPython/html/templates/tree.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/templates/tree.html b/IPython/html/templates/tree.html index 853bb8e99..498b7de82 100644 --- a/IPython/html/templates/tree.html +++ b/IPython/html/templates/tree.html @@ -40,7 +40,7 @@ data-terminals-available="{{terminals_available}}"
- + Upload From dfa2804887c2a1a147cf57b876a0cf1cb7a418b9 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 4 Mar 2015 11:35:35 -0800 Subject: [PATCH 5/5] invoke css --- IPython/html/static/style/style.min.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 45c27ff90..f505adbf0 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -8939,6 +8939,10 @@ ul#new-menu { .shutdown-button { display: none; } +.dynamic-instructions { + display: inline-block; + padding-top: 4px; +} /*! * * IPython text editor webapp