summaryrefslogtreecommitdiff
path: root/web/share/css/kvm/stream.css
blob: 64ac0e2738e6f52e7020647045481083de0e19e2 (plain)
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
/*****************************************************************************
#                                                                            #
#    KVMD - The main Pi-KVM daemon.                                          #
#                                                                            #
#    Copyright (C) 2018  Maxim Devaev <[email protected]>                    #
#                                                                            #
#    This program is free software: you can redistribute it and/or modify    #
#    it under the terms of the GNU General Public License as published by    #
#    the Free Software Foundation, either version 3 of the License, or       #
#    (at your option) any later version.                                     #
#                                                                            #
#    This program is distributed in the hope that it will be useful,         #
#    but WITHOUT ANY WARRANTY; without even the implied warranty of          #
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           #
#    GNU General Public License for more details.                            #
#                                                                            #
#    You should have received a copy of the GNU General Public License       #
#    along with this program.  If not, see <https://www.gnu.org/licenses/>.  #
#                                                                            #
*****************************************************************************/


div#stream-info {
	display: none;
}

div#stream-box {
	position: relative;
	display: inline-block;
	border: var(--border-window-thin);
}
div.stream-box-inactive::after {
	cursor: wait;
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: inline-block;
	background: radial-gradient(transparent 20%, black);
}
div.stream-box-mouse-enabled {
	cursor: url("../../svg/stream-mouse-cursor.svg"), pointer;
}

img#stream-image {
	width: 640px;
	height: 480px;
	display: block;
	background-color: black;
}

img.stream-image-active {
	-webkit-filter: none;
	filter: none;
}

img.stream-image-inactive {
	-webkit-filter: grayscale(100%) brightness(75%) sepia(75%);
	filter: grayscale(100%) brightness(75%) sepia(75%);
}

div#stream-mouse-buttons {
	display: none;
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
	div#stream-window {
		padding-top: 3px !important;
		border-top: 0 !important;
		border-radius: 0 0 8px 8px !important;
		top: 50px !important;
		left: 50% !important;
		-webkit-transform: translateX(-50%) !important;
		transform: translateX(-50%) !important;
	}
	div#stream-window-header {
		display: none !important;
	}
	div#stream-info {
		display: block !important;
		margin: 0;
		padding: 0;
		padding-bottom: 3px;
		font-size: 0.8em;
		color: var(--cs-window-header-default-fg);
	}
	div#stream-mouse-buttons {
		display: block !important;
	}
}