Show More
@@ -1,128 +1,129 | |||||
1 | /** |
|
1 | /** | |
2 | * Primary styles |
|
2 | * Primary styles | |
3 | * |
|
3 | * | |
4 | * Author: IPython Development Team |
|
4 | * Author: IPython Development Team | |
5 | */ |
|
5 | */ | |
6 |
|
6 | |||
7 |
|
7 | |||
8 | body { |
|
8 | body { | |
9 | background-color: @body-bg; |
|
9 | background-color: @body-bg; | |
10 | /* This makes sure that the body covers the entire window and needs to |
|
10 | /* This makes sure that the body covers the entire window and needs to | |
11 | be in a different element than the display: box in wrapper below */ |
|
11 | be in a different element than the display: box in wrapper below */ | |
12 | position: absolute; |
|
12 | position: absolute; | |
13 | left: 0px; |
|
13 | left: 0px; | |
14 | right: 0px; |
|
14 | right: 0px; | |
15 | top: 0px; |
|
15 | top: 0px; | |
16 | bottom: 0px; |
|
16 | bottom: 0px; | |
17 | overflow: visible; |
|
17 | overflow: visible; | |
18 | } |
|
18 | } | |
19 |
|
19 | |||
20 | div#header { |
|
20 | div#header { | |
21 | /* Initially hidden to prevent FLOUC */ |
|
21 | /* Initially hidden to prevent FLOUC */ | |
22 | display: none; |
|
22 | display: none; | |
23 | background-color: @body-bg; |
|
23 | background-color: @body-bg; | |
24 |
|
24 | |||
25 | /* Display over codemirror */ |
|
25 | /* Display over codemirror */ | |
26 | z-index: 100; |
|
26 | z-index: 100; | |
27 |
|
27 | |||
28 | #header-container { |
|
28 | #header-container { | |
29 | padding-bottom: 5px; |
|
29 | padding-bottom: 5px; | |
30 | padding-top: 5px; |
|
30 | padding-top: 5px; | |
31 | .border-box-sizing(); |
|
31 | .border-box-sizing(); | |
32 | } |
|
32 | } | |
33 |
|
33 | |||
34 | .header-bar { |
|
34 | .header-bar { | |
35 | width: 100%; |
|
35 | width: 100%; | |
36 | height: 0px; |
|
36 | height: 0px; | |
37 | border-bottom: 1px solid @navbar-default-border; |
|
37 | border-bottom: 1px solid @navbar-default-border; | |
|
38 | margin-bottom: -1px; | |||
38 | } |
|
39 | } | |
39 |
|
40 | |||
40 | @media print { |
|
41 | @media print { | |
41 | display: none !important; |
|
42 | display: none !important; | |
42 | } |
|
43 | } | |
43 | } |
|
44 | } | |
44 |
|
45 | |||
45 | #header-spacer { |
|
46 | #header-spacer { | |
46 | width: 100%; |
|
47 | width: 100%; | |
47 | visibility: hidden; |
|
48 | visibility: hidden; | |
48 |
|
49 | |||
49 | @media print { |
|
50 | @media print { | |
50 | display: none; |
|
51 | display: none; | |
51 | } |
|
52 | } | |
52 | } |
|
53 | } | |
53 |
|
54 | |||
54 | #ipython_notebook { |
|
55 | #ipython_notebook { | |
55 | padding-left: 0px; |
|
56 | padding-left: 0px; | |
56 | padding-top: (@navbar-height - @logo_height) / 2; |
|
57 | padding-top: (@navbar-height - @logo_height) / 2; | |
57 | padding-bottom: (@navbar-height - @logo_height) / 2; |
|
58 | padding-bottom: (@navbar-height - @logo_height) / 2; | |
58 | } |
|
59 | } | |
59 |
|
60 | |||
60 | #noscript { |
|
61 | #noscript { | |
61 | width: auto; |
|
62 | width: auto; | |
62 | padding-top: 16px; |
|
63 | padding-top: 16px; | |
63 | padding-bottom: 16px; |
|
64 | padding-bottom: 16px; | |
64 | text-align: center; |
|
65 | text-align: center; | |
65 | font-size: 22px; |
|
66 | font-size: 22px; | |
66 | color: red; |
|
67 | color: red; | |
67 | font-weight: bold; |
|
68 | font-weight: bold; | |
68 | } |
|
69 | } | |
69 |
|
70 | |||
70 | #ipython_notebook img { |
|
71 | #ipython_notebook img { | |
71 | height: @logo_height; |
|
72 | height: @logo_height; | |
72 | } |
|
73 | } | |
73 |
|
74 | |||
74 | #site { |
|
75 | #site { | |
75 | width: 100%; |
|
76 | width: 100%; | |
76 | display: none; |
|
77 | display: none; | |
77 | .border-box-sizing(); |
|
78 | .border-box-sizing(); | |
78 | } |
|
79 | } | |
79 |
|
80 | |||
80 | /* Smaller buttons */ |
|
81 | /* Smaller buttons */ | |
81 | .ui-button .ui-button-text { |
|
82 | .ui-button .ui-button-text { | |
82 | padding: 0.2em 0.8em; |
|
83 | padding: 0.2em 0.8em; | |
83 | font-size: 77%; |
|
84 | font-size: 77%; | |
84 | } |
|
85 | } | |
85 |
|
86 | |||
86 | input.ui-button { |
|
87 | input.ui-button { | |
87 | padding: 0.3em 0.9em; |
|
88 | padding: 0.3em 0.9em; | |
88 | } |
|
89 | } | |
89 |
|
90 | |||
90 | span#login_widget { |
|
91 | span#login_widget { | |
91 | float: right; |
|
92 | float: right; | |
92 | } |
|
93 | } | |
93 |
|
94 | |||
94 | span#login_widget > .button, |
|
95 | span#login_widget > .button, | |
95 | #logout |
|
96 | #logout | |
96 | { |
|
97 | { | |
97 | .btn-default(); |
|
98 | .btn-default(); | |
98 | } |
|
99 | } | |
99 |
|
100 | |||
100 | .nav-header { |
|
101 | .nav-header { | |
101 | text-transform: none; |
|
102 | text-transform: none; | |
102 | } |
|
103 | } | |
103 |
|
104 | |||
104 | #header > span { |
|
105 | #header > span { | |
105 | margin-top: 10px; |
|
106 | margin-top: 10px; | |
106 | } |
|
107 | } | |
107 |
|
108 | |||
108 | // class for stretching dialogs to fill the screen |
|
109 | // class for stretching dialogs to fill the screen | |
109 | .modal_stretch .modal-dialog { |
|
110 | .modal_stretch .modal-dialog { | |
110 | .vbox(); |
|
111 | .vbox(); | |
111 | min-height: 80%; |
|
112 | min-height: 80%; | |
112 | .modal-body { |
|
113 | .modal-body { | |
113 | max-height: none; |
|
114 | max-height: none; | |
114 | flex: 1; |
|
115 | flex: 1; | |
115 | } |
|
116 | } | |
116 | } |
|
117 | } | |
117 |
|
118 | |||
118 | @media (min-width: 768px) { |
|
119 | @media (min-width: 768px) { | |
119 | .modal .modal-dialog { |
|
120 | .modal .modal-dialog { | |
120 | width: 700px; |
|
121 | width: 700px; | |
121 | } |
|
122 | } | |
122 | } |
|
123 | } | |
123 |
|
124 | |||
124 | // less mixin to be sure to add the right class to get icons with font awesome. |
|
125 | // less mixin to be sure to add the right class to get icons with font awesome. | |
125 | .icon(@ico){ |
|
126 | .icon(@ico){ | |
126 | .fa(); |
|
127 | .fa(); | |
127 | content: @ico; |
|
128 | content: @ico; | |
128 | } |
|
129 | } |
@@ -1,77 +1,78 | |||||
1 | #menubar { |
|
1 | #menubar { | |
2 | .border-box-sizing(); |
|
2 | .border-box-sizing(); | |
|
3 | margin-top: 1px; | |||
3 |
|
4 | |||
4 | .navbar { |
|
5 | .navbar { | |
5 | border-top: 1px; |
|
6 | border-top: 1px; | |
6 | border-radius: 0px 0px @border-radius-base @border-radius-base; |
|
7 | border-radius: 0px 0px @border-radius-base @border-radius-base; | |
7 | margin-bottom: -1px; |
|
8 | margin-bottom: -1px; | |
8 | } |
|
9 | } | |
9 |
|
10 | |||
10 | .navbar-toggle { |
|
11 | .navbar-toggle { | |
11 | float: left; |
|
12 | float: left; | |
12 | } |
|
13 | } | |
13 | .navbar-collapse { |
|
14 | .navbar-collapse { | |
14 | clear: left; |
|
15 | clear: left; | |
15 | } |
|
16 | } | |
16 |
|
17 | |||
17 | } |
|
18 | } | |
18 |
|
19 | |||
19 | .nav-wrapper { |
|
20 | .nav-wrapper { | |
20 | border-bottom: 1px solid @navbar-default-border; |
|
21 | border-bottom: 1px solid @navbar-default-border; | |
21 | } |
|
22 | } | |
22 |
|
23 | |||
23 | i.menu-icon { |
|
24 | i.menu-icon { | |
24 | // add padding to account for float-right |
|
25 | // add padding to account for float-right | |
25 | padding-top: 4px; |
|
26 | padding-top: 4px; | |
26 | } |
|
27 | } | |
27 |
|
28 | |||
28 | ul#help_menu li a{ |
|
29 | ul#help_menu li a{ | |
29 | overflow: hidden; |
|
30 | overflow: hidden; | |
30 | padding-right: 2.2em; |
|
31 | padding-right: 2.2em; | |
31 | i { |
|
32 | i { | |
32 | margin-right: -1.2em; |
|
33 | margin-right: -1.2em; | |
33 | } |
|
34 | } | |
34 | } |
|
35 | } | |
35 |
|
36 | |||
36 | // Make sub menus work in BS3. |
|
37 | // Make sub menus work in BS3. | |
37 | // Credit: http://www.bootply.com/86684 |
|
38 | // Credit: http://www.bootply.com/86684 | |
38 | .dropdown-submenu { |
|
39 | .dropdown-submenu { | |
39 | position: relative; |
|
40 | position: relative; | |
40 | } |
|
41 | } | |
41 |
|
42 | |||
42 | .dropdown-submenu>.dropdown-menu { |
|
43 | .dropdown-submenu>.dropdown-menu { | |
43 | top: 0; |
|
44 | top: 0; | |
44 | left: 100%; |
|
45 | left: 100%; | |
45 | margin-top: -6px; |
|
46 | margin-top: -6px; | |
46 | margin-left: -1px; |
|
47 | margin-left: -1px; | |
47 | } |
|
48 | } | |
48 |
|
49 | |||
49 | // arrow that indicate presence of submenu |
|
50 | // arrow that indicate presence of submenu | |
50 | .dropdown-submenu:hover>.dropdown-menu { |
|
51 | .dropdown-submenu:hover>.dropdown-menu { | |
51 | display: block; |
|
52 | display: block; | |
52 | } |
|
53 | } | |
53 |
|
54 | |||
54 | .dropdown-submenu>a:after { |
|
55 | .dropdown-submenu>a:after { | |
55 | .fa(); |
|
56 | .fa(); | |
56 | display: block; |
|
57 | display: block; | |
57 | content: @fa-var-caret-right; |
|
58 | content: @fa-var-caret-right; | |
58 | float: right; |
|
59 | float: right; | |
59 | color: @dropdown-link-color; |
|
60 | color: @dropdown-link-color; | |
60 | margin-top: 2px; |
|
61 | margin-top: 2px; | |
61 | margin-right: -10px; |
|
62 | margin-right: -10px; | |
62 | } |
|
63 | } | |
63 |
|
64 | |||
64 | .dropdown-submenu:hover>a:after { |
|
65 | .dropdown-submenu:hover>a:after { | |
65 | color: @dropdown-link-hover-color; |
|
66 | color: @dropdown-link-hover-color; | |
66 | } |
|
67 | } | |
67 |
|
68 | |||
68 | .dropdown-submenu.pull-left { |
|
69 | .dropdown-submenu.pull-left { | |
69 | float: none; |
|
70 | float: none; | |
70 | } |
|
71 | } | |
71 |
|
72 | |||
72 | .dropdown-submenu.pull-left>.dropdown-menu { |
|
73 | .dropdown-submenu.pull-left>.dropdown-menu { | |
73 | left: -100%; |
|
74 | left: -100%; | |
74 | margin-left: 10px; |
|
75 | margin-left: 10px; | |
75 | } |
|
76 | } | |
76 |
|
77 | |||
77 | //end submenu |
|
78 | //end submenu |
@@ -1,88 +1,81 | |||||
1 | @media (max-width: 767px) { |
|
1 | @media (max-width: 767px) { | |
2 | // remove bootstrap-responsive's body padding on small screens |
|
2 | // remove bootstrap-responsive's body padding on small screens | |
3 | body.notebook_app { |
|
3 | body.notebook_app { | |
4 | padding-left: 0px; |
|
4 | padding-left: 0px; | |
5 | padding-right: 0px; |
|
5 | padding-right: 0px; | |
6 | } |
|
6 | } | |
7 | } |
|
7 | } | |
8 |
|
8 | |||
9 | #ipython-main-app { |
|
9 | #ipython-main-app { | |
10 | .border-box-sizing(); |
|
10 | .border-box-sizing(); | |
11 | } |
|
11 | } | |
12 |
|
12 | |||
13 | div#notebook_panel { |
|
13 | div#notebook_panel { | |
14 | margin: 0px; |
|
14 | margin: 0px; | |
15 | padding: 0px; |
|
15 | padding: 0px; | |
16 | .border-box-sizing(); |
|
16 | .border-box-sizing(); | |
17 | @media not print { |
|
17 | @media not print { | |
18 | background-color: @page-backdrop-color; |
|
18 | background-color: @page-backdrop-color; | |
19 | min-height: @page-backdrop-height; |
|
19 | min-height: @page-backdrop-height; | |
20 | } |
|
20 | } | |
21 | } |
|
21 | } | |
22 | div#notebook { |
|
22 | div#notebook { | |
23 | font-size: @notebook_font_size; |
|
23 | font-size: @notebook_font_size; | |
24 | line-height: @notebook_line_height; |
|
24 | line-height: @notebook_line_height; | |
25 | overflow-y: hidden; |
|
25 | overflow-y: hidden; | |
26 | overflow-x: auto; |
|
26 | overflow-x: auto; | |
27 | width: 100%; |
|
27 | width: 100%; | |
28 | /* This spaces the page away from the edge of the notebook area */ |
|
28 | /* This spaces the page away from the edge of the notebook area */ | |
29 | padding-top: @page-header-padding; |
|
29 | padding-top: @page-header-padding; | |
30 | padding-bottom: @page-header-padding; |
|
30 | padding-bottom: @page-header-padding; | |
31 | margin: 0px; |
|
31 | margin: 0px; | |
32 | outline: none; |
|
32 | outline: none; | |
33 | .border-box-sizing(); |
|
33 | .border-box-sizing(); | |
34 | } |
|
34 | } | |
35 |
|
35 | |||
36 | #notebook-container{ |
|
36 | #notebook-container{ | |
37 | @media not print{ |
|
37 | @media not print{ | |
38 | padding: @page-padding; |
|
38 | padding: @page-padding; | |
39 | background-color : @page-color; |
|
39 | background-color : @page-color; | |
40 | min-height: @page-min-height; |
|
40 | min-height: @page-min-height; | |
41 | .box-shadow(@global-shadow); |
|
41 | .box-shadow(@global-shadow); | |
42 | } |
|
42 | } | |
43 | } |
|
43 | } | |
44 |
|
44 | |||
45 | div.ui-widget-content { |
|
45 | div.ui-widget-content { | |
46 | border: 1px solid @border_color; |
|
46 | border: 1px solid @border_color; | |
47 | outline: none; |
|
47 | outline: none; | |
48 | } |
|
48 | } | |
49 |
|
49 | |||
50 | pre.dialog { |
|
50 | pre.dialog { | |
51 | background-color: @cell_background; |
|
51 | background-color: @cell_background; | |
52 | border: 1px solid #ddd; |
|
52 | border: 1px solid #ddd; | |
53 | .corner-all; |
|
53 | .corner-all; | |
54 | padding: 0.4em; |
|
54 | padding: 0.4em; | |
55 | padding-left: 2em; |
|
55 | padding-left: 2em; | |
56 | } |
|
56 | } | |
57 |
|
57 | |||
58 | p.dialog { |
|
58 | p.dialog { | |
59 | padding : 0.2em; |
|
59 | padding : 0.2em; | |
60 | } |
|
60 | } | |
61 |
|
61 | |||
62 | /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems |
|
62 | /* Word-wrap output correctly. This is the CSS3 spelling, though Firefox seems | |
63 | to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. |
|
63 | to not honor it correctly. Webkit browsers (Chrome, rekonq, Safari) do. | |
64 | */ |
|
64 | */ | |
65 | pre, code, kbd, samp { white-space: pre-wrap; } |
|
65 | pre, code, kbd, samp { white-space: pre-wrap; } | |
66 |
|
66 | |||
67 | #fonttest { |
|
67 | #fonttest { | |
68 | font-family: @font-family-monospace; |
|
68 | font-family: @font-family-monospace; | |
69 | } |
|
69 | } | |
70 |
|
70 | |||
71 | p { |
|
71 | p { | |
72 | margin-bottom:0; |
|
72 | margin-bottom:0; | |
73 | } |
|
73 | } | |
74 |
|
74 | |||
75 | .end_space { |
|
75 | .end_space { | |
76 | height: 200px; |
|
76 | height: 200px; | |
77 | } |
|
77 | } | |
78 |
|
78 | |||
79 | .lower-header-bar { |
|
|||
80 | width: 100%; |
|
|||
81 | height: 0px; |
|
|||
82 | border-bottom: 1px solid @navbar-default-border; |
|
|||
83 | margin-bottom: -1px; |
|
|||
84 | } |
|
|||
85 |
|
||||
86 | .notebook_app #header { |
|
79 | .notebook_app #header { | |
87 | .box-shadow(@global-shadow); |
|
80 | .box-shadow(@global-shadow); | |
88 | } |
|
81 | } |
@@ -1,36 +1,32 | |||||
1 | .terminal-app { |
|
1 | .terminal-app { | |
2 | background: @page-backdrop-color; |
|
2 | background: @page-backdrop-color; | |
3 |
|
3 | |||
4 | #header { |
|
4 | #header { | |
5 | background: @body-bg; |
|
5 | background: @body-bg; | |
6 | .box-shadow(@global-shadow); |
|
6 | .box-shadow(@global-shadow); | |
7 |
|
||||
8 | .header-bar { |
|
|||
9 | margin-bottom: -1px; |
|
|||
10 | } |
|
|||
11 | } |
|
7 | } | |
12 |
|
8 | |||
13 | .terminal { |
|
9 | .terminal { | |
14 | float: left; |
|
10 | float: left; | |
15 | font-family: monospace; |
|
11 | font-family: monospace; | |
16 | color: white; |
|
12 | color: white; | |
17 | background: black; |
|
13 | background: black; | |
18 | padding: @code_padding; |
|
14 | padding: @code_padding; | |
19 | border-radius: @border-radius-base; |
|
15 | border-radius: @border-radius-base; | |
20 | .box-shadow(@global-shadow-dark); |
|
16 | .box-shadow(@global-shadow-dark); | |
21 |
|
17 | |||
22 | &, dummy-screen { |
|
18 | &, dummy-screen { | |
23 | line-height: 1em; |
|
19 | line-height: 1em; | |
24 | font-size: @notebook_font_size; |
|
20 | font-size: @notebook_font_size; | |
25 | } |
|
21 | } | |
26 | } |
|
22 | } | |
27 |
|
23 | |||
28 | .terminal-cursor { |
|
24 | .terminal-cursor { | |
29 | color: black; |
|
25 | color: black; | |
30 | background: white; |
|
26 | background: white; | |
31 | } |
|
27 | } | |
32 |
|
28 | |||
33 | #terminado-container { |
|
29 | #terminado-container { | |
34 | margin-top: @page-header-padding; |
|
30 | margin-top: @page-header-padding; | |
35 | } |
|
31 | } | |
36 | } |
|
32 | } |
General Comments 0
You need to be logged in to leave comments.
Login now