/
_log.less
146 lines (142 loc) · 3.05 KB
/
_log.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
.log-title {
margin-top: 0;
}
.log-timestamp, .log-size-warning {
margin-bottom: 10px;
}
.log-view {
background-color: @log-bg-color;
font-family: @font-family-monospace;
min-height: 60px;
padding: 0;
position: relative;
pre, pre code {
background-color: transparent;
border: 0;
margin-bottom: 0;
overflow: visible;
padding: 0 10px;
}
.log-scroll {
background-color: @log-bg-color;
border: 1px solid lighten(@log-bg-color, 10%);
display: inline-block;
&:hover {
border-color: lighten(@log-bg-color, 15%);
}
a {
display: inline-block;
font-family: @font-family-base;
font-size: @font-size-base - 1;
padding: 4px 10px;
}
a:hover,a:focus {
background-color: darken(@log-bg-color, 10%);
color: @link-hover-color-bright;
text-decoration: none;
}
}
.log-scroll-top {
position: absolute;
right: 0;
border-right: 0;
border-top: 0;
}
// starting position
.log-scroll-top.affix-top {
position: absolute;
right: 0;
top: 0;
}
// once affixed, has this position
.log-scroll-top.affix {
position: fixed;
right: 20px;
top: 0;
}
// TODO: hacky, need to encapsulate this better
// '.target-logger-node' is a class indicating the target is not 'window'
// this is toggled in JS
.log-scroll-top.affix.target-logger-node {
position: fixed;
right: 45px;
top: 60px !important;
}
.log-scroll-bottom {
position: absolute;
border-bottom: 0;
border-right: 0;
bottom: 0;
right: 0;
}
.log-view-output {
font-size: 12px;
padding: 30px 0 30px;
.ellipsis-loader {
// Give space between log output and loader
margin-top: 30px;
}
table {
table-layout: fixed;
width: 100%;
}
}
}
// TODO: need to encapsulate this better
.chromeless .log-scroll-top.affix {
right: 0px; // override
}
.chromeless .log-scroll-top.affix.target-logger-node {
right: 10px; // override
}
.log-link-external {
text-align: right;
a {
margin-left: 20px;
margin-right: 10px;
white-space: nowrap;
}
i {
font-size: @font-size-xsmall;
margin-left: 5px;
}
}
.log-line {
color: #d1d1d1;
&:hover {
background-color: lighten(@log-bg-color, 8%);
color: #ededed;
}
}
.log-line-number:before {
content: attr(data-line-number);
}
.log-line-number {
.unselectable();
border-right: 1px lighten(@log-bg-color, 10%) solid;
padding-right: 10px;
text-align: right;
vertical-align: top;
white-space: nowrap;
width: 60px;
}
.log-line-text {
padding: 0 10px;
white-space: pre-wrap;
width: 100%;
.word-break();
// Invert colors on selection in Firefox. Change the background style for
// Firefox only since it's illegible with its defaults and our log colors.
// https://developer.mozilla.org/en-US/docs/Web/CSS/::selection
&::-moz-selection {
color: @log-bg-color;
background: lighten(#d1d1d1, 8%);
}
}
.table-log-pods {
> tbody + tbody {
border-top-width: 1px;
}
background-color: #fff;
border: 1px solid #D1D1D1;
}