Show More
@@ -1,23 +1,36 b'' | |||
|
1 | .terminal { | |
|
2 | float: left; | |
|
3 | font-family: monospace; | |
|
4 | color: white; | |
|
5 | background: black; | |
|
6 | padding: @code_padding; | |
|
7 | border-radius: @border-radius-base; | |
|
8 | .box-shadow(@global-shadow-dark); | |
|
1 | body.terminal-app { | |
|
2 | background: @page-backdrop-color; | |
|
9 | 3 | |
|
10 | &, dummy-screen { | |
|
11 | line-height: 1em; | |
|
12 | font-size: @notebook_font_size; | |
|
4 | #header { | |
|
5 | background: @body-bg; | |
|
6 | .box-shadow(@global-shadow); | |
|
7 | ||
|
8 | .header-bar { | |
|
9 | margin-bottom: -1px; | |
|
10 | } | |
|
13 | 11 | } |
|
14 | } | |
|
15 | 12 | |
|
16 |
.terminal |
|
|
17 | color: black; | |
|
18 | background: white; | |
|
19 | } | |
|
13 | .terminal { | |
|
14 | float: left; | |
|
15 | font-family: monospace; | |
|
16 | color: white; | |
|
17 | background: black; | |
|
18 | padding: @code_padding; | |
|
19 | border-radius: @border-radius-base; | |
|
20 | .box-shadow(@global-shadow-dark); | |
|
21 | ||
|
22 | &, dummy-screen { | |
|
23 | line-height: 1em; | |
|
24 | font-size: @notebook_font_size; | |
|
25 | } | |
|
26 | } | |
|
27 | ||
|
28 | .terminal-cursor { | |
|
29 | color: black; | |
|
30 | background: white; | |
|
31 | } | |
|
20 | 32 | |
|
21 | #terminado-container { | |
|
22 | margin-top: @page-header-padding; | |
|
33 | #terminado-container { | |
|
34 | margin-top: @page-header-padding; | |
|
35 | } | |
|
23 | 36 | } |
@@ -1,62 +1,63 b'' | |||
|
1 | 1 | {% extends "page.html" %} |
|
2 | 2 | |
|
3 | 3 | {% block title %}{{page_title}}{% endblock %} |
|
4 | 4 | |
|
5 | 5 | {% block params %} |
|
6 | 6 | |
|
7 | 7 | data-base-url="{{base_url}}" |
|
8 | 8 | data-ws-path="{{ws_path}}" |
|
9 | class="terminal-app" | |
|
9 | 10 | |
|
10 | 11 | {% endblock %} |
|
11 | 12 | |
|
12 | 13 | {% block stylesheet %} |
|
13 | 14 | {{super()}} |
|
14 | 15 | |
|
15 | 16 | <link rel="stylesheet" href="{{ static_url("terminal/css/override.css") }}" type="text/css" /> |
|
16 | 17 | {% endblock %} |
|
17 | 18 | |
|
18 | 19 | {% block site %} |
|
19 | 20 | |
|
20 | 21 | <div id="terminado-container" class="container"></div> |
|
21 | 22 | |
|
22 | 23 | {% endblock %} |
|
23 | 24 | |
|
24 | 25 | {% block script %} |
|
25 | 26 | |
|
26 | 27 | <!-- Hack: this needs to be outside the display:none block, so we can measure |
|
27 | 28 | its size in JS in setting up the page. It is still invisible. Putting in |
|
28 | 29 | the script block gets it outside the initially undisplayed region. --> |
|
29 | 30 | <!-- test size: 25x80 --> |
|
30 | 31 | <div style='position:absolute; left:-1000em'> |
|
31 | 32 | <pre id="dummy-screen" style="border: solid 5px white;" class="terminal">0 |
|
32 | 33 | 1 |
|
33 | 34 | 2 |
|
34 | 35 | 3 |
|
35 | 36 | 4 |
|
36 | 37 | 5 |
|
37 | 38 | 6 |
|
38 | 39 | 7 |
|
39 | 40 | 8 |
|
40 | 41 | 9 |
|
41 | 42 | 0 |
|
42 | 43 | 1 |
|
43 | 44 | 2 |
|
44 | 45 | 3 |
|
45 | 46 | 4 |
|
46 | 47 | 5 |
|
47 | 48 | 6 |
|
48 | 49 | 7 |
|
49 | 50 | 8 |
|
50 | 51 | 9 |
|
51 | 52 | 0 |
|
52 | 53 | 1 |
|
53 | 54 | 2 |
|
54 | 55 | 3 |
|
55 | 56 | <span id="dummy-screen-rows" style="">01234567890123456789012345678901234567890123456789012345678901234567890123456789</span> |
|
56 | 57 | </pre> |
|
57 | 58 | </div> |
|
58 | 59 | |
|
59 | 60 | {{super()}} |
|
60 | 61 | |
|
61 | 62 | <script src="{{ static_url("terminal/js/main.js") }}" type="text/javascript" charset="utf-8"></script> |
|
62 | 63 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now