##// END OF EJS Templates
movestyling from js to css + deprecation warnign
Matthias BUSSONNIER -
Show More
@@ -8,13 +8,11 b' define(['
8 "use strict";
8 "use strict";
9
9
10 var Page = function () {
10 var Page = function () {
11 this.style();
12 this.bind_events();
11 this.bind_events();
13 };
12 };
14
13
15 Page.prototype.style = function () {
14 Page.prototype.style = function () {
16 $('div#header').addClass('border-box-sizing');
15 console.log('page.style() is know an empty function, plese consider removing call.')
17 $('div#site').addClass('border-box-sizing');
18 };
16 };
19
17
20 Page.prototype.bind_events = function () {
18 Page.prototype.bind_events = function () {
@@ -30,12 +28,14 b' define(['
30 Page.prototype.show_header = function () {
28 Page.prototype.show_header = function () {
31 // The header and site divs start out hidden to prevent FLOUC.
29 // The header and site divs start out hidden to prevent FLOUC.
32 // Main scripts should call this method after styling everything.
30 // Main scripts should call this method after styling everything.
31 // TODO: selector are hardcoded, pass as constructor argument
33 $('div#header').css('display','block');
32 $('div#header').css('display','block');
34 };
33 };
35
34
36 Page.prototype.show_site = function () {
35 Page.prototype.show_site = function () {
37 // The header and site divs start out hidden to prevent FLOUC.
36 // The header and site divs start out hidden to prevent FLOUC.
38 // Main scripts should call this method after styling everything.
37 // Main scripts should call this method after styling everything.
38 // TODO: selector are hardcoded, pass as constructor argument
39 $('div#site').css('display','block');
39 $('div#site').css('display','block');
40 };
40 };
41
41
@@ -24,6 +24,7 b' div#header {'
24 padding-left: 30px;
24 padding-left: 30px;
25 padding-bottom: 5px;
25 padding-bottom: 5px;
26 border-bottom: 1px solid @navbar-default-border;
26 border-bottom: 1px solid @navbar-default-border;
27 .border-box-sizing();
27 }
28 }
28
29
29 #ipython_notebook {
30 #ipython_notebook {
@@ -50,6 +51,7 b' div#header {'
50 #site {
51 #site {
51 width: 100%;
52 width: 100%;
52 display: none;
53 display: none;
54 .border-box-sizing();
53 }
55 }
54
56
55 /* Smaller buttons */
57 /* Smaller buttons */
General Comments 0
You need to be logged in to leave comments. Login now