mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
133 lines
3.8 KiB
CSS
133 lines
3.8 KiB
CSS
/*****************************************************************************
|
|
# #
|
|
# KVMD - The main PiKVM daemon. #
|
|
# #
|
|
# Copyright (C) 2018-2022 Maxim Devaev <mdevaev@gmail.com> #
|
|
# #
|
|
# 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-window {
|
|
min-width: 400px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
div#stream-info {
|
|
display: none;
|
|
}
|
|
|
|
div#stream-ocr-window {
|
|
cursor: crosshair;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
background-color: unset !important;
|
|
border-radius: unset !important;
|
|
border: unset !important;
|
|
padding: 0px !important;
|
|
background: radial-gradient(transparent 15%, black);
|
|
}
|
|
div#stream-ocr-selection {
|
|
position: relative;
|
|
background-color: #5b90bb50;
|
|
box-shadow: inset 0 0 0px 1px #e8e8e8cd;
|
|
}
|
|
|
|
div#stream-box {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
position: relative;
|
|
display: inline-block;
|
|
border: var(--border-window-thin);
|
|
}
|
|
div.stream-box-offline {
|
|
-webkit-filter: grayscale(100%) brightness(75%) sepia(75%);
|
|
filter: grayscale(100%) brightness(75%) sepia(75%);
|
|
}
|
|
div.stream-box-offline::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") 5 5, pointer;
|
|
}
|
|
|
|
img#stream-image,
|
|
video#stream-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
display: block;
|
|
background-color: black;
|
|
}
|
|
div#stream-window.window-active:fullscreen {
|
|
border: 0px !important;
|
|
border-radius: 0px !important;
|
|
}
|
|
div#stream-window.window-active:fullscreen div#stream-box div#stream-fullscreen-active {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
border: 0;
|
|
box-shadow: var(--shadow-window-fullscreen-active);
|
|
}
|
|
|
|
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-left: 0 !important;
|
|
border-right: 0 !important;
|
|
border-radius: 0 !important;
|
|
top: 50px !important;
|
|
left: 50% !important;
|
|
width: 100% !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;
|
|
}
|
|
}
|