/
still-image.component.scss
139 lines (112 loc) · 2.15 KB
/
still-image.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
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
// sizes
$max-width: 800px;
$panelSize: 40px;
$osd-height: 460px;
// colors
$dark: #000;
$bright: #ccc;
.still-image-viewer {
display: inline-flex;
width: 100%;
@media (max-height: 636px) {
height: 300px;
}
.caption {
padding: 10px 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.action {
z-index: 1;
position: absolute;
display: flex;
flex-wrap: wrap;
// background: rgba(200, 200, 200, 0.3);
color: $bright;
&.overlay {
background: rgba(0, 0, 0, 0.3);
}
&.vertical {
width: $panelSize;
height: auto;
right: 0;
flex-direction: column;
}
&.horizontal {
height: $panelSize;
width: 100%;
left: 0;
flex-direction: row;
&.top {
top: 0;
}
&.bottom {
bottom: 0;
}
}
}
// first navigation implementation
// on the left resp. on the right hand side of osd viewer
.navigation {
position: absolute;
z-index: 1;
color: $bright;
&.vertical {
height: calc(100% - #{$panelSize});
width: $panelSize;
top: $panelSize;
&.previous {
left: 0;
}
&.next {
right: 0;
}
.mat-button.full-size {
height: 100% !important;
width: $panelSize !important;
padding: 0 !important;
min-width: $panelSize !important;
}
}
&.horizontal {
width: 100%;
height: $panelSize;
background: $dark;
position: inherit;
}
}
.content {
// min-height: $full-height;
height: 100%;
width: 100%;
.osd-container {
color: $bright;
background-color: $dark;
height: $osd-height;
&.fullscreen {
max-width: 100vw;
}
}
}
}
/*
Overlay styling
*/
::ng-deep .roi-svgoverlay {
filter: alpha(opacity=40);
opacity: 0.4;
fill: transparent;
stroke: #00695c;
stroke-width: 2px;
vector-effect: non-scaling-stroke;
}
::ng-deep .roi-svgoverlay:hover,
.roi-svgoverlay:focus {
filter: alpha(opacity=100);
opacity: 1;
}
::ng-deep .roi-svgoverlay.active {
filter: alpha(opacity=100);
opacity: 1;
}