Show More
@@ -17,11 +17,8 b' var IPython = (function (IPython) {' | |||||
17 | }; |
|
17 | }; | |
18 |
|
18 | |||
19 | Page.prototype.style = function () { |
|
19 | Page.prototype.style = function () { | |
20 |
$('div#header').addClass('border-box-sizing') |
|
20 | $('div#header').addClass('border-box-sizing'); | |
21 | css('border-top-style','none'). |
|
21 | $('div#site').addClass('border-box-sizing'); | |
22 | css('border-left-style','none'). |
|
|||
23 | css('border-right-style','none'); |
|
|||
24 | $('div#site').addClass('border-box-sizing') |
|
|||
25 | }; |
|
22 | }; | |
26 |
|
23 | |||
27 |
|
24 |
@@ -17,25 +17,19 b' body {' | |||||
17 | overflow: visible; |
|
17 | overflow: visible; | |
18 | } |
|
18 | } | |
19 |
|
19 | |||
20 |
|
||||
21 | div#header { |
|
20 | div#header { | |
22 | /* Initially hidden to prevent FLOUC */ |
|
21 | /* Initially hidden to prevent FLOUC */ | |
23 | display: none; |
|
22 | display: none; | |
24 | position: relative; |
|
|||
25 | height: 40px; |
|
|||
26 | padding: 5px; |
|
|||
27 | } |
|
23 | } | |
28 |
|
24 | |||
29 |
|
|
25 | #ipython_notebook { | |
30 | position: absolute; |
|
26 | padding: 8px 10px 0px 10px | |
31 | padding: 2px 2px 2px 5px; |
|
|||
32 | } |
|
27 | } | |
33 |
|
28 | |||
34 |
|
|
29 | #ipython_notebook img { | |
35 | font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; |
|
30 | font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif; | |
36 | height: 24px; |
|
31 | height: 24px; | |
37 | text-decoration:none; |
|
32 | text-decoration:none; | |
38 | display: inline; |
|
|||
39 | color: black; |
|
33 | color: black; | |
40 | } |
|
34 | } | |
41 |
|
35 | |||
@@ -44,15 +38,6 b' span#ipython_notebook img {' | |||||
44 | display: none; |
|
38 | display: none; | |
45 | } |
|
39 | } | |
46 |
|
40 | |||
47 | /* We set the fonts by hand here to override the values in the theme */ |
|
|||
48 | .ui-widget { |
|
|||
49 | font-family: "Lucinda Grande", "Lucinda Sans Unicode", Helvetica, Arial, Verdana, sans-serif; |
|
|||
50 | } |
|
|||
51 |
|
||||
52 | .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { |
|
|||
53 | font-family: "Lucinda Grande", "Lucinda Sans Unicode", Helvetica, Arial, Verdana, sans-serif; |
|
|||
54 | } |
|
|||
55 |
|
||||
56 | /* Smaller buttons */ |
|
41 | /* Smaller buttons */ | |
57 | .ui-button .ui-button-text { |
|
42 | .ui-button .ui-button-text { | |
58 | padding: 0.2em 0.8em; |
|
43 | padding: 0.2em 0.8em; | |
@@ -70,4 +55,13 b' span#login_widget {' | |||||
70 |
|
55 | |||
71 | .nav-header { |
|
56 | .nav-header { | |
72 | text-transform: none; |
|
57 | text-transform: none; | |
|
58 | } | |||
|
59 | ||||
|
60 | .navbar-nobg { | |||
|
61 | background-color: transparent; | |||
|
62 | background-image: none; | |||
|
63 | } | |||
|
64 | ||||
|
65 | #header > span { | |||
|
66 | margin-top: 10px; | |||
73 | } No newline at end of file |
|
67 | } |
@@ -46,8 +46,6 b' function (marked) {' | |||||
46 | IPython.read_only = $('body').data('readOnly') === 'True'; |
|
46 | IPython.read_only = $('body').data('readOnly') === 'True'; | |
47 | $('#ipython-main-app').addClass('border-box-sizing'); |
|
47 | $('#ipython-main-app').addClass('border-box-sizing'); | |
48 | $('div#notebook_panel').addClass('border-box-sizing'); |
|
48 | $('div#notebook_panel').addClass('border-box-sizing'); | |
49 | // The header's bottom border is provided by the menu bar so we remove it. |
|
|||
50 | $('div#header').css('border-bottom-style','none'); |
|
|||
51 |
|
49 | |||
52 | var baseProjectUrl = $('body').data('baseProjectUrl') |
|
50 | var baseProjectUrl = $('body').data('baseProjectUrl') | |
53 |
|
51 | |||
@@ -59,7 +57,7 b' function (marked) {' | |||||
59 | IPython.notebook = new IPython.Notebook('div#notebook',{baseProjectUrl:baseProjectUrl, read_only:IPython.read_only}); |
|
57 | IPython.notebook = new IPython.Notebook('div#notebook',{baseProjectUrl:baseProjectUrl, read_only:IPython.read_only}); | |
60 | IPython.save_widget = new IPython.SaveWidget('span#save_widget'); |
|
58 | IPython.save_widget = new IPython.SaveWidget('span#save_widget'); | |
61 | IPython.menubar = new IPython.MenuBar('#menubar',{baseProjectUrl:baseProjectUrl}) |
|
59 | IPython.menubar = new IPython.MenuBar('#menubar',{baseProjectUrl:baseProjectUrl}) | |
62 | IPython.toolbar = new IPython.MainToolBar('#maintoolbar') |
|
60 | IPython.toolbar = new IPython.MainToolBar('#maintoolbar-container') | |
63 | IPython.tooltip = new IPython.Tooltip() |
|
61 | IPython.tooltip = new IPython.Tooltip() | |
64 | IPython.notification_area = new IPython.NotificationArea('#notification_area') |
|
62 | IPython.notification_area = new IPython.NotificationArea('#notification_area') | |
65 | IPython.notification_area.init_notification_widgets(); |
|
63 | IPython.notification_area.init_notification_widgets(); |
@@ -141,7 +141,8 b' var IPython = (function (IPython) {' | |||||
141 | IPython.layout_manager.do_resize(); |
|
141 | IPython.layout_manager.do_resize(); | |
142 | }); |
|
142 | }); | |
143 | this.element.find('#toggle_toolbar').click(function () { |
|
143 | this.element.find('#toggle_toolbar').click(function () { | |
144 |
|
|
144 | $('div#maintoolbar').toggle(); | |
|
145 | IPython.layout_manager.do_resize(); | |||
145 | }); |
|
146 | }); | |
146 | // Insert |
|
147 | // Insert | |
147 | this.element.find('#insert_cell_above').click(function () { |
|
148 | this.element.find('#insert_cell_above').click(function () { |
@@ -24,12 +24,6 b' var IPython = (function (IPython) {' | |||||
24 |
|
24 | |||
25 |
|
25 | |||
26 | SaveWidget.prototype.style = function () { |
|
26 | SaveWidget.prototype.style = function () { | |
27 | this.element.find('span#save_widget').addClass('ui-widget'); |
|
|||
28 | this.element.find('span#notebook_name').addClass('ui-widget'); |
|
|||
29 | this.element.find('span#autosave_status').addClass('ui-widget') |
|
|||
30 | .css({border: 'none'}); |
|
|||
31 | this.element.find('span#checkpoint_status').addClass('ui-widget') |
|
|||
32 | .css({border: 'none', 'margin-left': '20px'}); |
|
|||
33 | }; |
|
27 | }; | |
34 |
|
28 | |||
35 |
|
29 |
@@ -1,28 +1,3 b'' | |||||
1 | .ui-menubar-item .ui-button .ui-button-text { |
|
|||
2 | padding: 0.4em 1.0em; |
|
|||
3 | font-size: 100%; |
|
|||
4 | } |
|
|||
5 |
|
||||
6 | .ui-menu { |
|
|||
7 | .box-shadow(0px 6px 10px -1px #adadad); |
|
|||
8 | } |
|
|||
9 |
|
||||
10 | .ui-menu .ui-menu-item a { |
|
|||
11 | border: 1px solid transparent; |
|
|||
12 | padding: 2px 1.6em; |
|
|||
13 | } |
|
|||
14 |
|
||||
15 | .ui-menu .ui-menu-item a.ui-state-focus { |
|
|||
16 | margin: 0; |
|
|||
17 | } |
|
|||
18 |
|
||||
19 | .ui-menu hr { |
|
|||
20 | margin: 0.3em 0; |
|
|||
21 | } |
|
|||
22 |
|
||||
23 | #menubar_container { |
|
|||
24 | } |
|
|||
25 |
|
||||
26 |
|
|
1 | #menubar { | |
27 | margin-bottom: 0px; |
|
2 | margin-bottom: 0px; | |
28 | } |
|
3 | } |
@@ -1,7 +1,6 b'' | |||||
1 | span#save_widget { |
|
1 | span#save_widget { | |
2 | padding: 5px; |
|
2 | padding: 0px 5px; | |
3 | margin: 0px 0px 0px 300px; |
|
3 | margin-top: 12px; | |
4 | display:inline-block; |
|
|||
5 | } |
|
4 | } | |
6 |
|
5 | |||
7 | span#checkpoint_status, span#autosave_status { |
|
6 | span#checkpoint_status, span#autosave_status { |
@@ -25,16 +25,16 b'' | |||||
25 | .end{-webkit-box-pack:end;-moz-box-pack:end;box-pack:end;} |
|
25 | .end{-webkit-box-pack:end;-moz-box-pack:end;box-pack:end;} | |
26 | .center{-webkit-box-pack:center;-moz-box-pack:center;box-pack:center;} |
|
26 | .center{-webkit-box-pack:center;-moz-box-pack:center;box-pack:center;} | |
27 | body{background-color:white;position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:visible;} |
|
27 | body{background-color:white;position:absolute;left:0px;right:0px;top:0px;bottom:0px;overflow:visible;} | |
28 | div#header{display:none;position:relative;height:40px;padding:5px;} |
|
28 | div#header{display:none;} | |
29 |
|
|
29 | #ipython_notebook{padding:8px 10px 0px 10px;} | |
30 |
|
|
30 | #ipython_notebook img{font-family:Verdana,"Helvetica Neue",Arial,Helvetica,Geneva,sans-serif;height:24px;text-decoration:none;color:black;} | |
31 | #site{width:100%;display:none;} |
|
31 | #site{width:100%;display:none;} | |
32 | .ui-widget{font-family:"Lucinda Grande","Lucinda Sans Unicode",Helvetica,Arial,Verdana,sans-serif;} |
|
|||
33 | .ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:"Lucinda Grande","Lucinda Sans Unicode",Helvetica,Arial,Verdana,sans-serif;} |
|
|||
34 | .ui-button .ui-button-text{padding:0.2em 0.8em;font-size:77%;} |
|
32 | .ui-button .ui-button-text{padding:0.2em 0.8em;font-size:77%;} | |
35 | input.ui-button{padding:0.3em 0.9em;} |
|
33 | input.ui-button{padding:0.3em 0.9em;} | |
36 | span#login_widget{float:right;margin-top:2px;} |
|
34 | span#login_widget{float:right;margin-top:2px;} | |
37 | .nav-header{text-transform:none;} |
|
35 | .nav-header{text-transform:none;} | |
|
36 | .navbar-nobg{background-color:transparent;background-image:none;} | |||
|
37 | #header>span{margin-top:10px;} | |||
38 | @font-face{font-family:'FontAwesome';src:url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.eot?v=3.1.0');src:url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.eot?#iefix&v=3.1.0') format('embedded-opentype'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.woff?v=3.1.0') format('woff'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.ttf?v=3.1.0') format('truetype'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.svg#fontawesomeregular?v=3.1.0') format('svg');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;} |
|
38 | @font-face{font-family:'FontAwesome';src:url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.eot?v=3.1.0');src:url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.eot?#iefix&v=3.1.0') format('embedded-opentype'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.woff?v=3.1.0') format('woff'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.ttf?v=3.1.0') format('truetype'),url('../components/font-awesome/build/assets/font-awesome/font/fontawesome-webfont.svg#fontawesomeregular?v=3.1.0') format('svg');font-weight:normal;font-style:normal;}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;} | |
39 | [class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none;} |
|
39 | [class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none;} | |
40 | .icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em;} |
|
40 | .icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em;} | |
@@ -461,11 +461,6 b' pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .j' | |||||
461 | .cm-s-ipython span.cm-error{color:#f00;} |
|
461 | .cm-s-ipython span.cm-error{color:#f00;} | |
462 | .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;} |
|
462 | .cm-s-ipython span.cm-operator{color:#AA22FF;font-weight:bold;} | |
463 | .cm-s-ipython span.cm-meta{color:#AA22FF;} |
|
463 | .cm-s-ipython span.cm-meta{color:#AA22FF;} | |
464 | .ui-menubar-item .ui-button .ui-button-text{padding:0.4em 1.0em;font-size:100%;} |
|
|||
465 | .ui-menu{-webkit-box-shadow:0px 6px 10px -1px #adadad;-moz-box-shadow:0px 6px 10px -1px #adadad;box-shadow:0px 6px 10px -1px #adadad;} |
|
|||
466 | .ui-menu .ui-menu-item a{border:1px solid transparent;padding:2px 1.6em;} |
|
|||
467 | .ui-menu .ui-menu-item a.ui-state-focus{margin:0;} |
|
|||
468 | .ui-menu hr{margin:0.3em 0;} |
|
|||
469 | #menubar{margin-bottom:0px;} |
|
464 | #menubar{margin-bottom:0px;} | |
470 | #menubar .navbar-inner{min-height:28px;} |
|
465 | #menubar .navbar-inner{min-height:28px;} | |
471 | .nav-wrapper{border-bottom:1px solid #d4d4d4;} |
|
466 | .nav-wrapper{border-bottom:1px solid #d4d4d4;} | |
@@ -526,7 +521,7 b' div#pager{padding:15px;overflow:auto;display:none;}div#pager pre{font-size:13px;' | |||||
526 | .rendered_html th{font-weight:bold;} |
|
521 | .rendered_html th{font-weight:bold;} | |
527 | .rendered_html p{text-align:justify;} |
|
522 | .rendered_html p{text-align:justify;} | |
528 | .rendered_html p+p{margin-top:1em;} |
|
523 | .rendered_html p+p{margin-top:1em;} | |
529 |
span#save_widget{padding:5px;margin: |
|
524 | span#save_widget{padding:0px 5px;margin-top:12px;} | |
530 | span#checkpoint_status,span#autosave_status{font-size:small;} |
|
525 | span#checkpoint_status,span#autosave_status{font-size:small;} | |
531 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} |
|
526 | @media (max-width:767px){span#save_widget{font-size:small;} span#checkpoint_status,span#autosave_status{font-size:x-small;}}@media (max-width:767px){span#checkpoint_status,span#autosave_status{display:none;}}@media (min-width:768px) and (max-width:979px){span#checkpoint_status{display:none;} span#autosave_status{font-size:x-small;}}div.text_cell{padding:5px 5px 5px 5px;} | |
532 | div.text_cell_input{color:#000000;border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;} |
|
527 | div.text_cell_input{color:#000000;border:1px solid #cfcfcf;border-radius:4px;background:#f7f7f7;} |
@@ -33,7 +33,7 b' class="notebook_app"' | |||||
33 |
|
33 | |||
34 | {% block header %} |
|
34 | {% block header %} | |
35 |
|
35 | |||
36 | <span id="save_widget"> |
|
36 | <span id="save_widget" class="nav pull-left"> | |
37 | <span id="notebook_name"></span> |
|
37 | <span id="notebook_name"></span> | |
38 | <span id="checkpoint_status"></span> |
|
38 | <span id="checkpoint_status"></span> | |
39 | <span id="autosave_status"></span> |
|
39 | <span id="autosave_status"></span> | |
@@ -44,8 +44,8 b' class="notebook_app"' | |||||
44 |
|
44 | |||
45 | {% block site %} |
|
45 | {% block site %} | |
46 |
|
46 | |||
47 |
<div id="menubar |
|
47 | <div id="menubar"> | |
48 |
<div |
|
48 | <div class="navbar navbar-static-top"> | |
49 | <div class="navbar-inner"> |
|
49 | <div class="navbar-inner"> | |
50 | <div class="container"> |
|
50 | <div class="container"> | |
51 | <ul id="menus" class="nav"> |
|
51 | <ul id="menus" class="nav"> | |
@@ -173,8 +173,10 b' class="notebook_app"' | |||||
173 | <div id="notification_area"> |
|
173 | <div id="notification_area"> | |
174 | </div> |
|
174 | </div> | |
175 | </div> |
|
175 | </div> | |
176 | <div class="nav-wrapper"> |
|
176 | <div id="maintoolbar" class="navbar navbar-static-top"> | |
177 | <div id="maintoolbar" class="container"></div> |
|
177 | <div class="navbar-inner navbar-nobg"> | |
|
178 | <div id="maintoolbar-container" class="container"></div> | |||
|
179 | </div> | |||
178 | </div> |
|
180 | </div> | |
179 |
|
181 | |||
180 | <div id="ipython-main-app" class="container"> |
|
182 | <div id="ipython-main-app" class="container"> |
@@ -42,9 +42,10 b'' | |||||
42 |
|
42 | |||
43 | <body {% block params %}{% endblock %}> |
|
43 | <body {% block params %}{% endblock %}> | |
44 |
|
44 | |||
45 |
<div id="header |
|
45 | <div id="header" class="navbar navbar-static-top"> | |
46 | <div id="header" class="container"> |
|
46 | <div class="navbar-inner navbar-nobg"> | |
47 | <span id="ipython_notebook"><div><a href="{{base_project_url}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div></span> |
|
47 | <div class="container"> | |
|
48 | <div id="ipython_notebook" class="nav brand pull-left"><a href="{{base_project_url}}" alt='dashboard'><img src='{{static_url("base/images/ipynblogo.png") }}' alt='IPython Notebook'/></a></div> | |||
48 |
|
49 | |||
49 | {% block login_widget %} |
|
50 | {% block login_widget %} | |
50 |
|
51 | |||
@@ -61,9 +62,10 b'' | |||||
61 | {% block header %} |
|
62 | {% block header %} | |
62 | {% endblock %} |
|
63 | {% endblock %} | |
63 | </div> |
|
64 | </div> | |
|
65 | </div> | |||
64 | </div> |
|
66 | </div> | |
65 |
|
67 | |||
66 |
<div id="site" |
|
68 | <div id="site"> | |
67 | {% block site %} |
|
69 | {% block site %} | |
68 | {% endblock %} |
|
70 | {% endblock %} | |
69 | </div> |
|
71 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now