-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathterminal.css
More file actions
64 lines (53 loc) · 1.15 KB
/
terminal.css
File metadata and controls
64 lines (53 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
Javascript Shell by Bouke Regnerus
No dependencies bash-like shell in the browser
Based on Javascript Shell by Jesse Ruderman (http://www.squarefree.com/shell/)
Styling based on CodePen by Rafael Rinaldi (http://codepen.io/rafaelrinaldi/pen/uGifm)
*/
body {
margin: 1rem;
padding: 0;
background: #212230;
}
.terminal {
margin: 0;
padding: 0;
font-family: Menlo, Courier New;
font-size: 14px;
text-rendering: optimizeLegibility;
color: white;
font-smoothing: antialiased;
cursor: text;
counter-reset: input;
background: #212230;
}
.terminal .terminal--output {
white-space: pre;
}
.terminal .terminal--input {
counter-increment: input;
}
.terminal .terminal--input:before {
content: "[" counter(input) "] $ ";
}
.terminal .terminal--input input {
background: transparent;
color: inherit;
width: 80%;
border: none;
padding: 0;
margin: 0;
overflow: auto;
font-family: Menlo, Courier New;
font-size: 14px;
}
.terminal .terminal--input input:focus {
outline:none;
}
.terminal .terminal--output.is-console:before {
margin-right: 10px;
content: ">";
}
.terminal .terminal--output.is-not-defined {
color: rgba(255, 255, 255, 0.5);
}