From 7b3971e51b45f2ea407d8f52feb06263e3d3e103 2014-02-01 10:26:00 From: Matthias BUSSONNIER Date: 2014-02-01 10:26:00 Subject: [PATCH] make help menu a templates add splitline after keyboard shortcut float external-link icon to the right and move the 'title' to the individual elements, so it follows hover. --- diff --git a/IPython/html/static/notebook/less/menubar.less b/IPython/html/static/notebook/less/menubar.less index fd2f620..373b998 100644 --- a/IPython/html/static/notebook/less/menubar.less +++ b/IPython/html/static/notebook/less/menubar.less @@ -17,4 +17,9 @@ #menubar li.dropdown { line-height: 12px; -} \ No newline at end of file +} + +i.menu-icon { + // add padding to account for float-right + padding-top: 4px; +} diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 8b6c29e..a7e7148 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -1,7 +1,3 @@ -.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0} -.clearfix:after{clear:both} -.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0} -.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block} audio,canvas,video{display:inline-block;*display:inline;*zoom:1} audio:not([controls]){display:none} @@ -856,6 +852,10 @@ a.label:hover,a.label:focus,a.badge:hover,a.badge:focus{color:#fff;text-decorati .show{display:block} .invisible{visibility:hidden} .affix{position:fixed} +.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0} +.clearfix:after{clear:both} +.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0} +.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} @-ms-viewport{width:device-width}.hidden{display:none;visibility:hidden} .visible-phone{display:none !important} .visible-tablet{display:none !important} @@ -1426,6 +1426,7 @@ p{margin-bottom:0} #menubar .navbar{margin-bottom:8px} .nav-wrapper{border-bottom:1px solid #d4d4d4} #menubar li.dropdown{line-height:12px} +i.menu-icon{padding-top:4px} #notification_area{z-index:10} .notification_widget{color:#777;padding:1px 12px;margin:2px 4px;z-index:10;border:1px solid #ccc;border-radius:4px;background:rgba(240,240,240,0.5)} div#pager_splitter{height:8px} diff --git a/IPython/html/templates/notebook.html b/IPython/html/templates/notebook.html index ad0beab..765eab6 100644 --- a/IPython/html/templates/notebook.html +++ b/IPython/html/templates/notebook.html @@ -215,18 +215,35 @@ class="notebook_app"