pandorafms/pandora_console/include/styles/menu.css

492 lines
9.8 KiB
CSS

/*
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2004-2010 Artica Soluciones Tecnológicas S.L
// 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.
*/
.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: #282828;
padding-left: 1.5em;
}
.menu ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.menu li.selected,
.menu li.not_selected {
margin: 0;
}
.menu li a {
color: #ffffff;
text-decoration: none;
width: 100%;
}
li:hover ul {
display: block;
}
.submenu_text {
margin-left: 0px;
width: 100%;
color: #b9b9b9;
font-family: "lato", "Open Sans", sans-serif;
font-size: 9.4pt;
}
.menu a:hover {
text-decoration: none;
border: 0px;
}
.submenu {
margin: 0px 0px 0px 0px;
position: absolute;
z-index: 999;
width: 240px;
}
.submenu2 {
position: absolute;
z-index: 999;
left: 240px;
width: 240px;
}
.sub_subMenu {
font-weight: normal;
background-color: #202020;
padding-left: 1.5em;
}
.sub_subMenu.selected {
font-weight: 600;
}
.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 {
background: url(../../images/arrow.png) no-repeat 95% 50%;
z-index: 1; /* Positions it on top of the rest */
}
.menu li.submenu_not_selected a,
.menu li.submenu2_not_selected a {
font-weight: normal;
}
.submenu_selected {
margin-bottom: 0px;
box-shadow: inset 4px 0 #82b92e;
}
.selected.submenu_selected {
background-color: #202020;
}
li.submenu_selected.selected {
background-color: #202020;
font-weight: 600;
}
li.sub_subMenu.selected {
background-color: #161616;
}
.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;
}
/* Icons specified here */
#icon_oper-networkconsole {
background-image: url(../../images/op_network.menu_gray.png);
}
#icon_oper-agents {
background-image: url(../../images/op_monitoring.menu_gray.png);
}
#icon_oper-events {
background-image: url(../../images/op_events.menu_gray.png);
}
/* users */
#icon_oper-users {
background-image: url(../../images/op_workspace.menu_gray.png);
}
/* trap console */
#icon_oper-snmpc,
#icon_god-snmpc {
background-image: url(../../images/op_snmp.menu.png);
}
#icon_oper-reporting {
background-image: url(../../images/op_reporting.menu_gray.png);
}
#icon_oper-gismaps {
background-image: url(../../images/op_gis.menu.png);
}
#icon_oper-netflow {
background-image: url(../../images/op_netflow.menu.png);
}
#icon_oper-extensions {
background-image: url(../../images/extensions.menu_gray.png);
}
/* Godmode images */
#icon_god-discovery {
background-image: url(../../images/gm_discovery.menu.png);
}
#icon_god-resources {
background-image: url(../../images/gm_resources.menu_gray.png);
}
#icon_god-configuration {
background-image: url(../../images/gm_configuration.menu_gray.png);
}
#icon_god-alerts {
background-image: url(../../images/gm_alerts.menu_gray.png);
}
#icon_god-users {
background-image: url(../../images/gm_users.menu_gray.png);
}
#icon_god-reporting {
background-image: url(../../images/reporting_edit.menu.png);
}
#icon_god-servers {
background-image: url(../../images/gm_servers.menu_gray.png);
}
#icon_god-setup {
background-image: url(../../images/gm_setup.menu_gray.png);
}
#icon_god-events {
background-image: url(../../images/gm_events.menu_gray.png);
}
#icon_god-extensions {
background-image: url(../../images/builder.menu_gray.png);
}
#icon_god-links {
background-image: url(../../images/links.menu_gray.png);
}
#icon_god-um_messages {
background-image: url(../../images/um_messages.menu_gray.png);
}
#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;
font-family: sans-serif;
}
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: #282828;
}
.submenu_not_selected:hover {
background-color: #202020;
}
.submenu_selected:hover {
background-color: #202020;
}
.sub_subMenu:hover {
background-color: #161616;
}
.menu li.selected {
box-shadow: inset 4px 0 #82b92e;
}
.operation {
background-color: #3d3d3d;
padding-top: 20px;
}
.operation .selected,
.godmode .selected {
background-color: #282828;
}
.operation .selected #title_menu,
.godmode .selected #title_menu {
color: #fff;
font-weight: 600;
}
.menu > .operation {
padding-top: 2em;
}
.menu li,
.menu li a,
.menu li div {
min-height: 35px;
display: flex;
align-items: center;
}
.menu li div {
background-clip: text; /* Very important to fix a bug in Firefox */
}
.godmode {
padding-bottom: 4px;
background-color: #343434;
}
/* Menu icons active */
.selected#icon_oper-networkconsole {
background-image: url(../../images/op_network.menu_white.png);
}
.selected#icon_oper-agents {
background-image: url(../../images/op_monitoring.menu_white.png);
}
.selected#icon_oper-events {
background-image: url(../../images/op_events.menu_white.png);
}
.selected#icon_oper-users {
background-image: url(../../images/op_workspace.menu_white.png);
}
.selected#icon_oper-reporting {
background-image: url(../../images/op_reporting.menu_white.png);
}
.selected#icon_oper-extensions {
background-image: url(../../images/extensions.menu_white.png);
}
.selected#icon_god-discovery {
background-image: url(../../images/gm_discovery.menu_white.png);
}
.selected#icon_god-resources {
background-image: url(../../images/gm_resources.menu_white.png);
}
.selected#icon_god-configuration {
background-image: url(../../images/gm_configuration.menu_white.png);
}
.selected#icon_god-alerts {
background-image: url(../../images/gm_alerts.menu_white.png);
}
.selected#icon_god-users {
background-image: url(../../images/gm_users.menu_white.png);
}
.selected#icon_god-servers {
background-image: url(../../images/gm_servers.menu_white.png);
}
.selected#icon_god-setup {
background-image: url(../../images/gm_setup.menu_white.png);
}
.selected#icon_god-events {
background-image: url(../../images/gm_events.menu_white.png);
}
.selected#icon_god-extensions {
background-image: url(../../images/builder.menu_white.png);
}
.selected#icon_god-links {
background-image: url(../../images/links.menu_white.png);
}
.selected#icon_god-um_messages {
background-image: url(../../images/um_messages.menu_white.png);
}
#menu_full {
height: 100%;
display: flex;
flex-direction: column;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #343434;
}
.button_collapse {
margin-top: auto;
height: 38px;
background-color: #505050;
text-align: center;
color: #fff;
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
}
.logo_green {
height: 60px;
display: flex;
justify-content: center;
align-items: center;
}
.operation div,
.operation a,
.godmode div,
.godmode a {
font-family: "lato", "Open Sans", sans-serif;
}
.menu_full_classic,
.button_classic {
width: 215px;
}
.menu_full_collapsed,
.button_collapsed {
width: 60px;
}
.menu_full_classic .title_menu_classic {
display: flex;
}
.menu_full_collapsed .title_menu_collapsed {
display: none;
}
.button_classic {
width: 215px;
background-image: url(../../images/button_collapse_menu.png);
background-repeat: no-repeat;
background-position: center;
}
.button_collapsed {
background-image: url(../../images/button_classic_menu.png);
background-repeat: no-repeat;
background-position: center;
}
/* Menu height: 601px, 720px, 735px */
@media screen and (max-height: 720px) {
.menu li,
.menu li a,
.menu li div {
min-height: 28px;
}
}
@media screen and (max-height: 735px) {
.operation {
padding-top: 10px;
}
.button_collapse {
margin-top: 10px;
}
}
/*
* ---------------------------------------------------------------------
* - STYLES TO CHANGE CLASSIC MENU AND COLLAPSED MENU -
* ---------------------------------------------------------------------
*/
.page_classic {
padding-left: 215px;
}
.page_collapsed {
padding-left: 60px;
}
.header_table_classic {
padding-left: 235px; /* 215 + 35 */
}
.header_table_collapsed {
padding-left: 80px; /* 60 + 35 */
}
.title_menu_classic {
display: flex;
}
.title_menu_collapsed {
display: none;
}
.menu_icon_collapsed {
background-position: 50% 50%;
}