/*****************************************************************************
#                                                                            #
#    KVMD - The main PiKVM daemon.                                           #
#                                                                            #
#    Copyright (C) 2018-2024  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/>.  #
#                                                                            #
*****************************************************************************/


/* ===== main.css ===== */

button:active,
select:active,
input[type=file]:active::-webkit-file-selector-button,
input[type=file]:active::file-selector-button {
	color: var(--cs-control-hovered-fg);
	background-color: var(--cs-control-hovered-bg);
}

@media only screen and (orientation: portrait) {
	button,
	select,
	input[type=text],
	input[type=password],
	input[type=file]::-webkit-file-selector-button,
	input[type=file]::file-selector-button {
		height: 45px !important;
	}
}


/* ===== window.css ===== */

div.window:not(.window-full-tab) {
	padding-top: 45px !important;
}
div.window.window-elegant:not(.window-full-tab) {
	padding-top: 38px !important;
}
div.window div.window-header {
	height: 35px !important;
}
div.window div.window-header div.window-grab {
	height: 35px !important;
}
div.window div.window-header div.window-buttons button {
	height: 40px !important;
}
div.window div.window-header div.window-buttons button img {
	height: 30px !important;
}


/* ===== modal.css ===== */

@media only screen and (orientation: portrait) {
	div.modal-buttons button {
		height: 50px !important;
	}
}


/* ===== navbar.css ===== */

button#navbar-show-button {
	width: 50px !important;
}

ul#navbar li .menu-action:hover {
	background-color: var(--cs-navbar-item-hovered-bg);
}

ul#navbar li .menu-button:hover:not(.menu-button-pressed) {
	background-color: var(--cs-navbar-default-bg);
}


/* ===== radio.css ===== */

/*@media only screen and (orientation: portrait) {
	div.radio-box input[type=radio] + label {
		height: 30px !important;
	}
}*/


/* ===== slider.css ===== */

/*@media only screen and (orientation: portrait) {
	@supports (-webkit-locale: auto) {
		input[type=range] {
			margin: 20px 0 20px 0 !important;
		}
	}
}*/


/* ===== tabs.css ===== */

@media only screen and (orientation: portrait) {
	div.tabs-box label {
		height: 30px !important;
	}
}


/* ===== keypad.css ===== */

div.keypad {
	zoom: 1.28 !important;
}
