-
Notifications
You must be signed in to change notification settings - Fork 4
/
terminal.css
81 lines (71 loc) · 1.41 KB
/
terminal.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: #FFF;
}
body {
color: #000;
font-family: 'Open Sans', arial, sans-serif;
overflow: hidden;
}
.terminal
{
font-family: Fixed, monospace;
font-size: 12px;
tab-size: 4;
background-color: #222;
color: white;
display: block;
border: 0;
padding: 10px;
overflow: auto; /* adds scrollbar if needed */
position: absolute;
left: 0px;
top: 0px;
bottom: 0px;
right: 0px;
-o-user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
user-select: text;
}
.terminal.focus
{
background-color: #333;
}
.terminal__focus
{
position: absolute;
top: -100px; /* hide it */
}
.terminal--connected.focus .terminal__cursor
{
-webkit-animation: blink 1s step-end 0s infinite;
animation: blink 1s step-end 0s infinite;
}
@keyframes blink {
0%, 100% {
background-color: #fff; /* not #aaa because it's seem there is Google Chrome bug */
color: #000;
}
50% {
background-color: transparent;
color: #aaa;
}
}
@-webkit-keyframes blink {
0%, 100% {
background-color: #ffffff; /* not #aaa because it's seem there is Google Chrome bug */
color: #000000;
}
50% {
background-color: transparent;
color: #aaaaaa;
}
}