forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_container-terminal.less
85 lines (82 loc) · 1.78 KB
/
_container-terminal.less
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
82
83
84
85
.terminal-font {
font-family: "Monospace Regular", "DejaVu Sans Mono", Menlo, Monaco, Consolas, monospace;
line-height: 1em;
font-size: 12px;
}
// Control what fonts are used in the container terminal since we need the terminal-font class for row/col character calculations
kubernetes-container-terminal .terminal {
.terminal-font();
}
.pod-container-terminal {
margin-top: 15px;
margin-bottom: 15px;
kubernetes-container-terminal .terminal-wrapper {
max-width: 100%;
overflow-x: auto;
}
}
.container-terminal-wrapper {
.style-terminal-action() {
color: @gray-light;
cursor: pointer;
font-size: 18px;
&:hover, &:active, &:focus {
color: #fff;
text-decoration: none;
}
}
position: relative;
.terminal-actions .btn {
.btn-link();
.style-terminal-action();
background: none;
}
.fullscreen-toggle {
display: none;
position: absolute;
top: 7px;
right: 15px;
z-index: 1;
a {
.style-terminal-action();
}
.exit-fullscreen {
display: none;
}
}
&.disconnected .go-fullscreen {
display: none;
}
.fullscreen() {
width: 100%;
height: 100%;
.go-fullscreen {
display: none;
}
.exit-fullscreen {
display: inline;
}
}
&:-webkit-full-screen {
.fullscreen();
}
&:-moz-full-screen {
.fullscreen();
}
&:-ms-full-screen {
.fullscreen();
}
&:-fullscreen {
.fullscreen();
}
@media(min-width: @screen-sm-min) {
// Fill the extra right border we get when we cant quite fit the last col so it lines up with the Actions dropdown button
background-color: #000;
// Show the expand to fullscreen action when hovering over the terminal.
&:hover {
.fullscreen-toggle {
display: inline-block;
}
}
}
}