forked from tensorflow/tensorboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
histogram_card_component.scss
114 lines (96 loc) · 2.34 KB
/
histogram_card_component.scss
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
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
@import 'tensorboard/webapp/theme/tb_theme';
@import '../common';
$_title-to-heading-gap: 12px;
:host {
display: flex;
flex-direction: column;
box-sizing: border-box;
height: 100%;
overflow: auto;
padding: $metrics-preferred-gap;
padding-top: $metrics-preferred-gap - $_title-to-heading-gap;
}
.heading {
$heading-content-gap: 4px;
align-items: center;
display: grid;
grid-template-areas:
'tag controls'
'run spinner';
grid-template-columns: 1fr auto;
font-size: 14px;
margin-bottom: $heading-content-gap;
}
.tag {
align-items: center;
display: flex;
gap: 5px;
grid-area: tag;
overflow: hidden;
vis-selected-time-clipped {
line-height: 0;
}
}
.pin-button mat-icon {
height: 18px;
}
.run {
grid-area: run;
display: flex;
white-space: nowrap;
font-size: 13px;
.dot {
flex: none;
display: inline-block;
width: 13px;
height: 13px;
border-radius: 50%;
margin-right: 4px;
}
.run-text {
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;
}
}
.controls {
@include metrics-card-controls;
grid-area: controls;
justify-self: flex-end;
flex-shrink: 0;
// TODO(psybuzz) do not use negative margin.
margin-right: -1 * $_title-to-heading-gap;
}
.spinner {
display: flex;
grid-area: spinner;
height: 100%;
justify-content: center;
position: relative;
}
mat-spinner {
top: 0;
right: 0;
// mat-spinner has 18px height but the `run` container naturally has 15px
// height. We do not want the histogram area height to change when loading
// so we "lift" the spinner.
position: absolute;
}
tb-histogram {
flex-grow: 1;
}
.empty-message {
margin-top: 1em;
font-size: 13px;
}