pandorafms/pandora_console/include/styles/menu.css

735 lines
13 KiB
CSS

/*
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2004-2023 Pandora FMS
// 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; version 2
// 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, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#div_display {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
#div_display::-webkit-scrollbar {
-webkit-appearance: none;
}
#div_display::-webkit-scrollbar:vertical {
width: 0px;
}
#div_display::-webkit-scrollbar-button:increment,
#div_display::-webkit-scrollbar-button {
display: none;
}
#div_display::-webkit-scrollbar-thumb {
background-color: #6c7587;
border-radius: 2.5px;
opacity: 0.5;
height: 50px;
}
#div_display::-webkit-scrollbar-track {
border-radius: 10px;
}
#div_management {
display: none;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
#div_management::-webkit-scrollbar {
-webkit-appearance: none;
}
#div_management::-webkit-scrollbar:vertical {
width: 0px;
}
#div_management::-webkit-scrollbar-button:increment,
#div_management::-webkit-scrollbar-button {
display: none;
}
#div_management::-webkit-scrollbar-thumb {
background-color: #6c7587;
border-radius: 2.5px;
opacity: 0.5;
height: 50px;
}
#div_management::-webkit-scrollbar-track {
border-radius: 10px;
}
.operation li,
.godmode li {
display: flex;
justify-content: flex-start;
align-items: center;
}
.operation > li.menu_icon.no_hidden_menu,
.godmode > li.menu_icon.no_hidden_menu {
justify-content: flex-end;
}
.operation .menu_icon ul.submenu > li,
.godmode .menu_icon ul.submenu > li {
background-color: #ffffff;
padding-left: 24px !important;
}
.menu {
height: 100%;
}
.menu ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.menu li.selected,
.menu li.not_selected {
margin: 0;
}
.menu li a {
text-decoration: none;
width: 100%;
}
.menu_full li:hover ul {
display: block;
background-color: red;
}
.submenu_text {
margin-left: 0px;
width: 100%;
font-size: 9.4pt;
user-select: none;
}
.menu a:hover {
text-decoration: none;
border: 0px;
}
.submenu {
margin: 0px 0px 0px 0px;
/* position: absolute; */
width: 260px;
margin-left: 20px !important;
}
.submenu2 {
/* position: absolute; */
z-index: 999;
width: 238px;
}
.sub_subMenu {
font-weight: normal;
background-color: #f0f3f3;
padding-left: 1.5em;
color: #161628 !important;
}
.sub_subMenu.selected {
font-weight: 600;
background-color: #002f33 !important;
}
.sub_subMenu.selected a {
color: #fff !important;
}
.submenu2 li a {
margin-left: 0px;
padding-left: 0px;
}
.menu li img.toggle {
visibility: hidden;
float: right;
/* Positions it back where it should be */
border-left: 1px;
}
.menu li.has_submenu {
display: flex;
flex-direction: column;
z-index: 1;
}
.has_submenu {
color: #161628 !important;
}
.span_has_menu_text {
font-weight: normal;
font-size: 9.4pt;
color: #3f3f3f;
}
.menu li.submenu_not_selected a,
.menu li.submenu2_not_selected a {
font-weight: normal;
}
.submenu_selected {
margin-bottom: 0px;
background-color: #eff2f2 !important;
}
.submenu_selected_no_submenu {
background-color: #eff2f2 !important;
background-color: #002f33 !important;
color: #ffffff !important;
}
.element_submenu_selected {
min-height: 0px !important;
height: 20px;
border-left: 4px solid #82b92e;
position: absolute;
left: 4%;
border-radius: 5px;
}
.left_3 {
left: 3%;
}
.menu .menu_icon,
.menu li.links {
background-repeat: no-repeat;
cursor: pointer;
}
.menu li.links {
background-image: url(../../images/link.png);
background-position: 4px 8px;
}
.flex_li {
display: flex;
flex-direction: column;
}
/* Icons specified here */
.icon_oper-networkconsole {
background: url(../../images/menu/network.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_security {
background: url(../../images/menu/security.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-agents {
background: url(../../images/menu/monitoring.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-events {
background: url(../../images/menu/events.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_fav-menu {
background: url(../../images/menu/fav_menu_gray.svg) no-repeat 50% 50%;
background-size: 18px;
}
/* users */
.icon_oper-users {
background: url(../../images/menu/workspace.svg) no-repeat 50% 50%;
background-size: 18px;
}
/* ITSM */
.icon_oper-itsm {
background: url(../../images/menu/itsm.svg) no-repeat 50% 50%;
background-size: 18px;
}
/* trap console */
.icon_oper-snmpc,
.icon_god-snmpc {
background: url(../../images/menu/op_snmp.menu.png) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-reporting {
background: url(../../images/menu/reporting.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-gismaps {
background: url(../../images/menu/op_gis.menu.png) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-netflow {
background: url(../../images/menu/op_netflow.menu.png) no-repeat 50% 50%;
background-size: 18px;
}
.icon_oper-extensions {
background: url(../../images/menu/tools.svg) no-repeat 50% 50%;
background-size: 18px;
}
/* Godmode images */
.icon_god-discovery {
background: url(../../images/menu/discovery.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-resources {
background: url(../../images/menu/resources.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-configuration {
background: url(../../images/menu/configuration.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-alerts {
background: url(../../images/menu/alerts.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-users {
background: url(../../images/menu/users.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-reporting {
background: url(../../images/menu/reporting_edit.menu.png) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-servers {
background: url(../../images/menu/servers.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-setup {
background: url(../../images/menu/settings.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-events {
background: url(../../images/menu/events_2.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-extensions {
background: url(../../images/menu/admin_tools.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-links {
background: url(../../images/menu/links.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-um_messages {
background: url(../../images/menu/warp_update.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-module_library {
background: url(../../images/menu/library.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_about {
background: url(../../images/menu/about.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_about_operation {
background: url(../../images/menu/about.svg) no-repeat 50% 50%;
background-size: 18px;
}
.icon_god-downloads {
background-color: #a6adb2;
mask: url(../../images/export.svg) no-repeat center center;
mask-size: 18px;
}
#menu_container {
z-index: 3;
position: absolute;
left: -80px;
}
.notification_ball {
margin-top: 2px;
margin-left: 29px;
font-size: 6pt;
font-weight: 900;
background: red;
height: 12px;
width: 12px;
border-radius: 50px;
position: absolute;
text-align: center;
color: white;
padding-top: 1px;
}
ul {
margin: 0;
padding: 0;
list-style: none;
}
ul li {
position: relative;
}
.menu li ul {
/* position: absolute; */
/* top: 0; */
display: none;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li {
float: left;
height: 1%;
}
* html ul li a {
height: 1%;
}
/* End */
/*
* ---------------------------------------------------------------------
* - MAIN LEFT MENU and SUBMENU -
* ---------------------------------------------------------------------
*/
.menu_icon:hover {
background-color: #f6f7fb;
}
.submenu_not_selected:hover {
background-color: #eff2f2 !important;
}
.sub_subMenu:hover {
background-color: #d9e0e1;
}
.menu li.selected {
/* box-shadow: inset 4px 0 #82b92e; */
}
.operation {
padding-top: 20px;
}
.operation .selected,
.godmode .selected {
background-color: #f6f7fb;
}
.menu > .operation {
padding-top: 2em;
}
.menu li,
.menu li a,
.menu li div {
min-height: 35px;
display: flex;
align-items: center;
}
.godmode {
padding-top: 2em !important;
}
#menu_full {
height: 100%;
display: flex;
flex-direction: column;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #ffffff;
}
.button_collapse {
margin-top: auto;
min-height: 38px;
background-color: #505050;
text-align: center;
color: #fff;
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
}
.logo_green {
background-color: #fff;
min-height: 61px;
display: flex;
justify-content: space-around;
align-items: center;
}
.menu_full_classic,
.button_classic {
width: 250px;
}
.menu_full_collapsed,
.button_collapsed {
width: 80px;
}
.menu_full_classic .title_menu_classic {
display: flex !important;
}
.submenu_text,
.span_has_menu_text,
.title_menu_classic span {
font-size: 14px;
font-weight: normal;
letter-spacing: -0.3px;
}
.menu_icon_collapsed {
background-position: 50% 50%;
}
.menu_full_collapsed .title_menu_collapsed {
display: flex !important;
}
.button_classic {
background-image: url(../../images/menu/contraer.svg);
background-repeat: no-repeat;
background-position: center;
height: 35px;
width: 35px;
}
.button_collapsed {
background-image: url(../../images/menu/expandir.svg);
background-repeat: no-repeat;
background-position: center;
height: 35px;
width: 35px;
}
#button_collapse {
width: 32px;
height: 32px;
background-color: #f6f7fb;
border-radius: 50%;
}
@media screen and (max-height: 750px) {
.operation {
padding-top: 10px;
}
.button_collapse {
margin-top: 10px;
}
}
/*
* ---------------------------------------------------------------------
* - STYLES TO CHANGE CLASSIC MENU AND COLLAPSED MENU -
* ---------------------------------------------------------------------
*/
.page_classic {
padding-left: 250px;
}
.page_collapsed {
padding-left: 80px;
}
.header_table_classic {
padding-left: 270px;
/* 280 + 35 */
}
.header_table_collapsed {
padding-left: 100px;
/* 80 + 35 */
}
/*
* ---------------------------------------------------------------------
* - TABS styles -
* ---------------------------------------------------------------------
*/
#menu_tabs {
height: 49px;
border-bottom: 1px solid #f6f7fb;
}
.div_border_line {
height: 3px;
width: 100%;
display: flex;
justify-content: space-around;
margin-top: -5px;
}
.border_line {
width: 100px;
height: 100%;
}
.tabs_ul {
height: 100%;
display: flex;
align-items: center;
justify-content: space-evenly;
min-height: 51px;
}
.tabs_li {
width: 100%;
height: 100%;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.tabs_li span {
color: #161628;
font-size: 14px;
font-weight: 400;
user-select: none;
}
.tabs_selected {
background-color: #82b92e;
}
.arrow_menu_down {
background: url(../../images/menu/arrow_down_grey.svg) no-repeat 75% 50%;
z-index: 1;
}
.arrow_menu_up {
background: url(../../images/menu/arrow_up_grey.svg) no-repeat 75% 50%;
z-index: 1;
}
.arrow_menu_right {
background: url(../../images/menu/arrow_down_grey.svg) no-repeat 50% 100%;
z-index: 1;
transform: rotate(-0.25turn);
}
.span_selected {
color: #1d7874 !important;
font-weight: bold !important;
}
.tabs_collapsed {
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.tabs_collapsed_container {
background-color: #002f33;
border-radius: 16px;
width: 60px;
height: 32px;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.tabs_collapsed_div {
height: 21px;
width: 21px;
cursor: pointer;
}
.tabs_collapsed_display {
background-image: url(../../images/menu/display.svg);
background-repeat: no-repeat;
background-position: center;
width: 21px;
height: 21px;
}
.tabs_collapsed_management {
background-image: url(../../images/menu/management.svg);
background-repeat: no-repeat;
background-position: center;
width: 21px;
height: 21px;
}
.tabs_collapsed_oval {
background-color: #ffffff;
border-radius: 100%;
opacity: 0.33;
width: 8px;
height: 8px;
cursor: pointer;
margin: 6px;
}
.logo_icon {
margin-left: 16px;
}
.head_tab_selected span {
color: #161628;
}
.head_tab_unselected span {
color: #95a3bf;
}
.logo_full {
width: 215px !important;
height: auto !important;
}
.fav-menu {
margin-left: 9px;
}