Show More
@@ -1,5 +1,5 b'' | |||||
1 |
|
1 | |||
2 |
# |
|
2 | #ipython-main-app { | |
3 | height: 100px; |
|
3 | height: 100px; | |
4 | width: 350px; |
|
4 | width: 350px; | |
5 | margin: 50px auto; |
|
5 | margin: 50px auto; |
@@ -1,5 +1,5 b'' | |||||
1 |
|
1 | |||
2 |
# |
|
2 | #ipython-main-app { | |
3 | height: 100px; |
|
3 | height: 100px; | |
4 | width: 200px; |
|
4 | width: 200px; | |
5 | margin: 50px auto; |
|
5 | margin: 50px auto; |
@@ -92,7 +92,7 b' span#notebook_name {' | |||||
92 | } |
|
92 | } | |
93 |
|
93 | |||
94 |
|
94 | |||
95 |
|
|
95 | #ipython-main-app { | |
96 | width: 100%; |
|
96 | width: 100%; | |
97 | position: relative; |
|
97 | position: relative; | |
98 | } |
|
98 | } |
@@ -5,7 +5,7 b'' | |||||
5 | * Author: IPython Development Team |
|
5 | * Author: IPython Development Team | |
6 | */ |
|
6 | */ | |
7 |
|
7 | |||
8 |
# |
|
8 | #ipython-main-app { | |
9 | width: 920px; |
|
9 | width: 920px; | |
10 | margin: 30px auto 0px auto; |
|
10 | margin: 30px auto 0px auto; | |
11 | } |
|
11 | } |
@@ -43,7 +43,7 b' var IPython = (function (IPython) {' | |||||
43 | LayoutManager.prototype.do_resize = function () { |
|
43 | LayoutManager.prototype.do_resize = function () { | |
44 | var app_height = this.app_height() // content height |
|
44 | var app_height = this.app_height() // content height | |
45 |
|
45 | |||
46 |
$(' |
|
46 | $('#ipython-main-app').height(app_height); // content+padding+border height | |
47 |
|
47 | |||
48 | var pager_height = IPython.pager.percentage_height*app_height; |
|
48 | var pager_height = IPython.pager.percentage_height*app_height; | |
49 | var pager_splitter_height = $('div#pager_splitter').outerHeight(true); |
|
49 | var pager_splitter_height = $('div#pager_splitter').outerHeight(true); |
@@ -14,7 +14,7 b' $(document).ready(function () {' | |||||
14 |
|
14 | |||
15 | IPython.page = new IPython.Page(); |
|
15 | IPython.page = new IPython.Page(); | |
16 | $('input#login_submit').button(); |
|
16 | $('input#login_submit').button(); | |
17 |
$(' |
|
17 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); | |
18 | IPython.page.show(); |
|
18 | IPython.page.show(); | |
19 | $('input#password_input').focus(); |
|
19 | $('input#password_input').focus(); | |
20 |
|
20 |
@@ -13,7 +13,7 b'' | |||||
13 | $(document).ready(function () { |
|
13 | $(document).ready(function () { | |
14 |
|
14 | |||
15 | IPython.page = new IPython.Page(); |
|
15 | IPython.page = new IPython.Page(); | |
16 |
$(' |
|
16 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); | |
17 | IPython.page.show(); |
|
17 | IPython.page.show(); | |
18 |
|
18 | |||
19 | }); |
|
19 | }); |
@@ -273,7 +273,7 b' var IPython = (function (IPython) {' | |||||
273 | }); |
|
273 | }); | |
274 |
|
274 | |||
275 | var collapse_time = function(time){ |
|
275 | var collapse_time = function(time){ | |
276 |
var app_height = $(' |
|
276 | var app_height = $('#ipython-main-app').height(); // content height | |
277 | var splitter_height = $('div#pager_splitter').outerHeight(true); |
|
277 | var splitter_height = $('div#pager_splitter').outerHeight(true); | |
278 | var new_height = app_height - splitter_height; |
|
278 | var new_height = app_height - splitter_height; | |
279 | that.element.animate({height : new_height + 'px'}, time); |
|
279 | that.element.animate({height : new_height + 'px'}, time); | |
@@ -285,7 +285,7 b' var IPython = (function (IPython) {' | |||||
285 | }); |
|
285 | }); | |
286 |
|
286 | |||
287 | var expand_time = function(time) { |
|
287 | var expand_time = function(time) { | |
288 |
var app_height = $(' |
|
288 | var app_height = $('#ipython-main-app').height(); // content height | |
289 | var splitter_height = $('div#pager_splitter').outerHeight(true); |
|
289 | var splitter_height = $('div#pager_splitter').outerHeight(true); | |
290 | var pager_height = $('div#pager').outerHeight(true); |
|
290 | var pager_height = $('div#pager').outerHeight(true); | |
291 | var new_height = app_height - pager_height - splitter_height; |
|
291 | var new_height = app_height - pager_height - splitter_height; |
@@ -34,7 +34,7 b' $(document).ready(function () {' | |||||
34 | IPython.mathjaxutils.init(); |
|
34 | IPython.mathjaxutils.init(); | |
35 |
|
35 | |||
36 | IPython.read_only = $('body').data('readOnly') === 'True'; |
|
36 | IPython.read_only = $('body').data('readOnly') === 'True'; | |
37 |
$(' |
|
37 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); | |
38 | $('div#notebook_panel').addClass('border-box-sizing ui-widget'); |
|
38 | $('div#notebook_panel').addClass('border-box-sizing ui-widget'); | |
39 | // The header's bottom border is provided by the menu bar so we remove it. |
|
39 | // The header's bottom border is provided by the menu bar so we remove it. | |
40 | $('div#header').css('border-bottom-style','none'); |
|
40 | $('div#header').css('border-bottom-style','none'); |
@@ -15,7 +15,7 b' $(document).ready(function () {' | |||||
15 | IPython.mathjaxutils.init(); |
|
15 | IPython.mathjaxutils.init(); | |
16 |
|
16 | |||
17 | IPython.read_only = $('body').data('readOnly') === 'True'; |
|
17 | IPython.read_only = $('body').data('readOnly') === 'True'; | |
18 |
$(' |
|
18 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); | |
19 | $('div#notebook_panel').addClass('border-box-sizing ui-widget'); |
|
19 | $('div#notebook_panel').addClass('border-box-sizing ui-widget'); | |
20 |
|
20 | |||
21 | IPython.page = new IPython.Page(); |
|
21 | IPython.page = new IPython.Page(); |
@@ -19,7 +19,7 b' $(document).ready(function () {' | |||||
19 | var new_url = $('body').data('baseProjectUrl') + '#' + ui.panel.id; |
|
19 | var new_url = $('body').data('baseProjectUrl') + '#' + ui.panel.id; | |
20 | window.history.replaceState({}, '', new_url); |
|
20 | window.history.replaceState({}, '', new_url); | |
21 | }); |
|
21 | }); | |
22 |
$(' |
|
22 | $('#ipython-main-app').addClass('border-box-sizing ui-widget'); | |
23 | $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix'); |
|
23 | $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix'); | |
24 | $('#new_notebook').button().click(function (e) { |
|
24 | $('#new_notebook').button().click(function (e) { | |
25 | window.open($('body').data('baseProjectUrl')+'new'); |
|
25 | window.open($('body').data('baseProjectUrl')+'new'); |
@@ -13,7 +13,7 b'' | |||||
13 |
|
13 | |||
14 | {% block site %} |
|
14 | {% block site %} | |
15 |
|
15 | |||
16 |
<div id=" |
|
16 | <div id="ipython-main-app"> | |
17 |
|
17 | |||
18 | {% if login_available %} |
|
18 | {% if login_available %} | |
19 | <form action="{{base_project_url}}login?next={{next}}" method="post"> |
|
19 | <form action="{{base_project_url}}login?next={{next}}" method="post"> |
@@ -12,7 +12,7 b'' | |||||
12 |
|
12 | |||
13 | {% block site %} |
|
13 | {% block site %} | |
14 |
|
14 | |||
15 |
<div id=" |
|
15 | <div id="ipython-main-app"> | |
16 |
|
16 | |||
17 | {% if message %} |
|
17 | {% if message %} | |
18 | {% for key in message %} |
|
18 | {% for key in message %} |
@@ -161,7 +161,7 b' data-notebook-id={{notebook_id}}' | |||||
161 |
|
161 | |||
162 | <div id="maintoolbar"></div> |
|
162 | <div id="maintoolbar"></div> | |
163 |
|
163 | |||
164 |
<div id=" |
|
164 | <div id="ipython-main-app"> | |
165 |
|
165 | |||
166 | <div id="notebook_panel"> |
|
166 | <div id="notebook_panel"> | |
167 | <div id="notebook"></div> |
|
167 | <div id="notebook"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now