diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css index db3c53e81..04b518f44 100644 --- a/IPython/html/static/style/ipython.min.css +++ b/IPython/html/static/style/ipython.min.css @@ -28,21 +28,23 @@ div.traceback-wrapper{text-align:left;max-width:800px;margin:auto} .center-nav{display:inline-block;margin-bottom:-4px} .alternate_upload{background-color:none;display:inline} .alternate_upload.form{padding:0;margin:0} -.alternate_upload input.fileinput{background-color:#f00;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer} -.list_toolbar{padding:5px;height:25px;line-height:25px} -.toolbar_info{float:left} -.toolbar_buttons{float:right} +.alternate_upload input.fileinput{background-color:#f00;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer;height:26px} +ul#tabs{margin-bottom:4px} +ul#tabs a{padding-top:4px;padding-bottom:4px} +.list_toolbar{padding:4px 0 4px 0} +.list_toolbar [class*="span"]{min-height:26px} .list_header{font-weight:bold} -.list_container{margin-top:16px;margin-bottom:16px;border:1px solid #ababab;border-radius:4px} +.list_container{margin-top:4px;margin-bottom:16px;border:1px solid #ababab;border-radius:4px} .list_container>div{border-bottom:1px solid #ababab}.list_container>div:hover .list-item{background-color:#f00} .list_container>div:last-child{border:none} .list_item:hover .list_item{background-color:#ddd} .list_item a{text-decoration:none} -.list_item .span12{padding:3px} -.item_name{line-height:24px} -.item_icon{font-size:14px;color:#5e5e5e;margin-left:5px;margin-right:8px} -.list_container>div>span,.list_container>div>div{padding:8px} -input.nbname_input{height:15px;margin:0} +.list_header>div,.list_item>div{padding-top:4px;padding-bottom:4px;padding-left:7px;padding-right:7px} +.item_name{line-height:22px} +.item_icon{font-size:14px;color:#5e5e5e;margin-right:7px} +.item_buttons{line-height:1em} +.toolbar_info{height:26px;line-height:26px} +input.nbname_input{padding-top:3px;padding-bottom:3px;height:14px;line-height:14px;margin:0} .highlight_text{color:#00f} #project_name>.breadcrumb{padding:0;margin-bottom:0;background-color:transparent;font-weight:bold} input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:60px} diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 407ac7ed4..c17e62feb 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -1305,21 +1305,23 @@ span#login_widget{float:right} .center-nav{display:inline-block;margin-bottom:-4px} .alternate_upload{background-color:none;display:inline} .alternate_upload.form{padding:0;margin:0} -.alternate_upload input.fileinput{background-color:#f00;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer} -.list_toolbar{padding:5px;height:25px;line-height:25px} -.toolbar_info{float:left} -.toolbar_buttons{float:right} +.alternate_upload input.fileinput{background-color:#f00;position:relative;opacity:0;z-index:2;width:295px;margin-left:163px;cursor:pointer;height:26px} +ul#tabs{margin-bottom:4px} +ul#tabs a{padding-top:4px;padding-bottom:4px} +.list_toolbar{padding:4px 0 4px 0} +.list_toolbar [class*="span"]{min-height:26px} .list_header{font-weight:bold} -.list_container{margin-top:16px;margin-bottom:16px;border:1px solid #ababab;border-radius:4px} +.list_container{margin-top:4px;margin-bottom:16px;border:1px solid #ababab;border-radius:4px} .list_container>div{border-bottom:1px solid #ababab}.list_container>div:hover .list-item{background-color:#f00} .list_container>div:last-child{border:none} .list_item:hover .list_item{background-color:#ddd} .list_item a{text-decoration:none} -.list_item .span12{padding:3px} -.item_name{line-height:24px} -.item_icon{font-size:14px;color:#5e5e5e;margin-left:5px;margin-right:8px} -.list_container>div>span,.list_container>div>div{padding:8px} -input.nbname_input{height:15px;margin:0} +.list_header>div,.list_item>div{padding-top:4px;padding-bottom:4px;padding-left:7px;padding-right:7px} +.item_name{line-height:22px} +.item_icon{font-size:14px;color:#5e5e5e;margin-right:7px} +.item_buttons{line-height:1em} +.toolbar_info{height:26px;line-height:26px} +input.nbname_input{padding-top:3px;padding-bottom:3px;height:14px;line-height:14px;margin:0} .highlight_text{color:#00f} #project_name>.breadcrumb{padding:0;margin-bottom:0;background-color:transparent;font-weight:bold} input.engine_num_input{height:20px;margin-bottom:2px;padding-top:0;padding-bottom:0;width:60px} diff --git a/IPython/html/static/tree/js/clusterlist.js b/IPython/html/static/tree/js/clusterlist.js index 2ece25d8e..9d607d50b 100644 --- a/IPython/html/static/tree/js/clusterlist.js +++ b/IPython/html/static/tree/js/clusterlist.js @@ -100,16 +100,16 @@ var IPython = (function (IPython) { ClusterItem.prototype.state_stopped = function () { var that = this; - var profile_col = $('').addClass('profile_col span4').text(this.data.profile); - var status_col = $('').addClass('status_col span3').text('stopped'); - var engines_col = $('').addClass('engine_col span3'); + var profile_col = $('
').addClass('profile_col span4').text(this.data.profile); + var status_col = $('').addClass('status_col span3').text('stopped'); + var engines_col = $('').addClass('engine_col span3'); var input = $('').attr('type','number') .attr('min',1) .attr('size',3) .addClass('engine_num_input'); engines_col.append(input); var start_button = $('').addClass("btn btn-mini").text("Start"); - var action_col = $('').addClass('action_col span2').append( + var action_col = $('').addClass('action_col span2').append( $("").addClass("item_buttons btn-group").append( start_button ) @@ -151,11 +151,11 @@ var IPython = (function (IPython) { ClusterItem.prototype.state_running = function () { var that = this; - var profile_col = $('').addClass('profile_col span4').text(this.data.profile); - var status_col = $('').addClass('status_col span3').text('running'); - var engines_col = $('').addClass('engines_col span3').text(this.data.n); + var profile_col = $('').addClass('profile_col span4').text(this.data.profile); + var status_col = $('').addClass('status_col span3').text('running'); + var engines_col = $('').addClass('engines_col span3').text(this.data.n); var stop_button = $('').addClass("btn btn-mini").text("Stop"); - var action_col = $('').addClass('action_col span2').append( + var action_col = $('').addClass('action_col span2').append( $("").addClass("item_buttons btn-group").append( stop_button ) diff --git a/IPython/html/static/tree/less/altuploadform.less b/IPython/html/static/tree/less/altuploadform.less index 247dc7ed0..70e865d57 100644 --- a/IPython/html/static/tree/less/altuploadform.less +++ b/IPython/html/static/tree/less/altuploadform.less @@ -22,4 +22,5 @@ width: 295px; margin-left:163px; cursor: pointer; + height: 26px; } diff --git a/IPython/html/static/tree/less/tree.less b/IPython/html/static/tree/less/tree.less index 29b89937d..9a110379d 100644 --- a/IPython/html/static/tree/less/tree.less +++ b/IPython/html/static/tree/less/tree.less @@ -5,21 +5,25 @@ * Author: IPython Development Team */ -#tabs { +@dashboard_tb_pad: 4px; +@dashboard_lr_pad: 7px; + + +ul#tabs { + margin-bottom: @dashboard_tb_pad; } -.list_toolbar { - padding: 5px; - height: 25px; - line-height: 25px; +ul#tabs a { + padding-top: @dashboard_tb_pad; + padding-bottom: @dashboard_tb_pad; } -.toolbar_info { - float: left; +.list_toolbar { + padding: @dashboard_tb_pad 0 @dashboard_tb_pad 0; } -.toolbar_buttons { - float: right; +.list_toolbar [class*="span"] { + min-height: 26px; } .list_header { @@ -27,7 +31,7 @@ } .list_container { - margin-top: 16px; + margin-top: @dashboard_tb_pad; margin-bottom: 16px; border: 1px solid @border_color; border-radius: 4px; @@ -49,38 +53,39 @@ background-color: #ddd; }; a {text-decoration: none;} - .span12 {padding: 3px;} +} + +.list_header>div, .list_item>div { + padding-top: @dashboard_tb_pad; + padding-bottom: @dashboard_tb_pad; + padding-left: @dashboard_lr_pad; + padding-right: @dashboard_lr_pad; } .item_name { - line-height: 24px; + line-height: 22px; } .item_icon { - font-size: 14px; + font-size: 14px; color: darken(@border_color, 30%); - margin-left: 5px; - margin-right: 8px; + margin-right: @dashboard_lr_pad; } -.list_container > div > span, .list_container > div > div { - padding: 8px; +.item_buttons { + line-height: 1em; } -.profile_col { -} - -.status_col { -} - -.engines_col { -} - -.action_col { +.toolbar_info { + height: 26px; + line-height: 26px; } input.nbname_input { - height: 15px; + padding-top: 3px; + padding-bottom: 3px; + height: 14px; + line-height: 14px; margin: 0px; } diff --git a/IPython/html/templates/tree.html b/IPython/html/templates/tree.html index 37d8cea38..652ed13c3 100644 --- a/IPython/html/templates/tree.html +++ b/IPython/html/templates/tree.html @@ -22,25 +22,29 @@ data-base-kernel-url="{{base_kernel_url}}"