mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Make terminal pretty
This commit is contained in:
parent
3969f0ec84
commit
79fe99d124
@ -29,7 +29,7 @@ require([
|
||||
var header = $("#header")[0]
|
||||
function calculate_size() {
|
||||
height = window.innerHeight - header.offsetHeight;
|
||||
width = window.innerWidth;
|
||||
width = $('#terminado-container').width();
|
||||
var rows = Math.min(1000, Math.max(20, Math.floor(height/termRowHeight())-1));
|
||||
var cols = Math.min(1000, Math.max(40, Math.floor(width/termColWidth())-1));
|
||||
console.log("resize to :", rows , 'rows by ', cols, 'columns');
|
||||
|
@ -1,10 +1,19 @@
|
||||
.terminal {
|
||||
float: left;
|
||||
border: black solid 5px;
|
||||
font-family: "DejaVu Sans Mono", "Liberation Mono", monospace;
|
||||
font-family: monospace;
|
||||
font-size: 11px;
|
||||
color: white;
|
||||
background: black;
|
||||
border-radius: 2px;
|
||||
box-shadow: 0px 4px 11px 0px gray;
|
||||
border: 0px;
|
||||
padding: @code_padding;
|
||||
|
||||
&, dummy-screen {
|
||||
line-height: @code_line_height;
|
||||
font-size: @notebook_font_size;
|
||||
}
|
||||
}
|
||||
|
||||
.terminal-cursor {
|
||||
@ -13,5 +22,5 @@
|
||||
}
|
||||
|
||||
#terminado-container {
|
||||
margin: 8px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
@ -3,5 +3,5 @@ This is only required when different pages style the same element differently. T
|
||||
a hack to deal with our current css styles and no new styling should be added in this file.*/
|
||||
|
||||
#ipython-main-app {
|
||||
margin: 28px auto 0px auto;
|
||||
margin: 20px auto 0px auto;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ data-ws-path="{{ws_path}}"
|
||||
|
||||
{% block site %}
|
||||
|
||||
<div id="terminado-container"></div>
|
||||
<div id="terminado-container" class="container"></div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user