Show More
@@ -29,7 +29,7 b' require([' | |||||
29 | var header = $("#header")[0] |
|
29 | var header = $("#header")[0] | |
30 | function calculate_size() { |
|
30 | function calculate_size() { | |
31 | height = window.innerHeight - header.offsetHeight; |
|
31 | height = window.innerHeight - header.offsetHeight; | |
32 |
width = |
|
32 | width = $('#terminado-container').width(); | |
33 | var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1)); |
|
33 | var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1)); | |
34 | var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1)); |
|
34 | var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1)); | |
35 | console.log("resize to :", rows , 'rows by ', cols, 'columns'); |
|
35 | console.log("resize to :", rows , 'rows by ', cols, 'columns'); |
@@ -1,10 +1,19 b'' | |||||
1 | .terminal { |
|
1 | .terminal { | |
2 | float: left; |
|
2 | float: left; | |
3 | border: black solid 5px; |
|
3 | border: black solid 5px; | |
4 | font-family: "DejaVu Sans Mono", "Liberation Mono", monospace; |
|
4 | font-family: monospace; | |
5 | font-size: 11px; |
|
5 | font-size: 11px; | |
6 | color: white; |
|
6 | color: white; | |
7 | background: black; |
|
7 | background: black; | |
|
8 | border-radius: 2px; | |||
|
9 | box-shadow: 0px 4px 11px 0px gray; | |||
|
10 | border: 0px; | |||
|
11 | padding: @code_padding; | |||
|
12 | ||||
|
13 | &, dummy-screen { | |||
|
14 | line-height: @code_line_height; | |||
|
15 | font-size: @notebook_font_size; | |||
|
16 | } | |||
8 | } |
|
17 | } | |
9 |
|
18 | |||
10 | .terminal-cursor { |
|
19 | .terminal-cursor { | |
@@ -13,5 +22,5 b'' | |||||
13 | } |
|
22 | } | |
14 |
|
23 | |||
15 | #terminado-container { |
|
24 | #terminado-container { | |
16 | margin: 8px; |
|
25 | padding-top: 20px; | |
17 | } |
|
26 | } |
@@ -3,5 +3,5 b' This is only required when different pages style the same element differently. T' | |||||
3 | a hack to deal with our current css styles and no new styling should be added in this file.*/ |
|
3 | a hack to deal with our current css styles and no new styling should be added in this file.*/ | |
4 |
|
4 | |||
5 | #ipython-main-app { |
|
5 | #ipython-main-app { | |
6 |
margin: 2 |
|
6 | margin: 20px auto 0px auto; | |
7 | } |
|
7 | } |
General Comments 0
You need to be logged in to leave comments.
Login now