/** * Licensed Materials - Property of IBM * * IBM Cognos Products: BI ui_commons * * (C) Copyright IBM Corp. 2015, 2018 * * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ .commonMenu { display: none; position: absolute; @include theming(color, text-01); @include theming(background-color, ui-01); border: 1px solid theming(ui-03); z-index: $contextualMenu-layer !important; min-width: 200px; } .glass .popover.glass-menu { z-index: $contextualMenu-layer !important; } .popover.glass-menu .popover-content { padding: 0px; overflow-y: auto; max-height: calc(93vh - #{$appbar-min-height}); } .popover-content .commonMenu{ position: relative; padding: 0px; border: none; box-shadow: none; } .commonMenuActive { display: block; } ul.commonMenuItems { list-style: none; margin: 0; padding: 0; } ul.commonMenuItems:focus { outline: none; } li.commonMenuItem { display: flex; justify-content: space-between; white-space: nowrap; } li.commonMenuItem.divider { height: 1px; @include theming(background-color, ui-03); } li.commonMenuItem:focus { @include theming(background-color, ui-03); outline: 1px dotted transparent; } li.commonMenuItem div.removeItemIcon, li.commonMenuItem div.rightIcon { width: 16px; margin-right: $space-s; cursor: pointer; } li.commonMenuItem div.removeItemIcon:focus { outline: none; } li.commonMenuItem.hasFocus { @include theming(background-color, ui-03); } li.commonMenuItem div.removeItemIcon:focus svg { outline: 1px dotted; @include theming(outline-color, focus); } div.removeItemIcon svg{ height: 16px; width: 16px; margin-top: 5px; } a.commonMenuLink, a.commonMenuLink:visited { flex-grow: 1; line-height: 40px; min-height: 40px; border: none; outline: none; @include theming(color, text-01); padding: 0px $space-s; /* UX */ overflow: hidden; white-space: nowrap; width: 100%; display: inline-block; text-decoration: none; } .glass-menu { a.commonMenuLink, a.commonMenuLink:visited { line-height: 48px; min-height: 48px; } .commonMenuLink .svgIcon { @include theming(fill, icon-01); width: 24px; height: 24px; } &.switcher, &.applicationSwitcher { a.commonMenuLink, a.commonMenuLink:visited { @include theming(color, text-01); } } &.applicationSwitcher, &.createMenuButton { a.commonMenuLink, a.commonMenuLink:visited { padding-left: 12px; padding-right: 12px; } li.commonMenuItem.selected a.commonMenuLink { padding-left: $space-xs; } } } li.commonMenuItem:hover { @include theming(background-color, hover-ui); @include theming(color, text-01); text-decoration: none; outline: 1px dotted transparent; } a.commonMenuLink:hover .webfont::before { @include theming(color, text-01); } a.commonMenuLink:hover{ cursor: pointer; text-decoration: none; } a.commonMenuLink:empty { padding-left: 30px; } a.commonMenuLink .svgIcon { margin-right: $space-xs; vertical-align: middle; } a.commonMenuLink .webfont:before { position: absolute; font-size: $body-size; } a.commonMenuLink span.hasIcon:only-child { padding-left: $space-l; } a.commonMenuLink span:first-child:not(:only-child), a.commonMenuLink img { height: 24px; width: 24px; margin-right: $space-xs; /* UX */ display: inline-block; opacity: $opacity-upper; vertical-align: middle; } .popover.glass-menu.right>.arrow:after { left: 12px; } @media (min-width: 769px) { .appbar .trailing .menu.dropDownImage .svgIcon { margin-left: 20px; } .appbar .trailing button.dropDownImage:after { margin-right: $space-s; } } .glass button.menu.defaultButton { margin-left: 7px; } .glass button.menu.defaultButton > svg { margin-right: 5px; margin-left: 5px; } .glass button.menu.comboBox { margin-right: $space-xs; } .glass button.menu.comboBox > svg{ width: 10px; margin: $space-xs 2px $space-xs 2px; } .commonMenuLink .webfont, .commonMenuLink .svgIcon { @include theming(fill, text-02); height: 16px; width: 16px; opacity: $opacity-max !important; } /* Implement the WACA look */ .popover { padding: 0; border: 1px solid; @include theming(border-color, ui-03); border-radius: 0; box-shadow: none; min-width: 200px; } .popover.medium { min-width: 300px; } .popover.large { min-width: 400px; } .popover.bottom, .popover.top { margin: 0; } .popover .arrow { display: none; } .popover-content, .popover-content .commonMenu { @include theming(background-color, ui-01); } li.commonMenuItem.selected { @include theming(background-color, hover-ui); a.commonMenuLink { border-left: 4px solid; @include theming(border-left-color, hover-ui); padding-left: 12px; } } li.commonMenuItem.disabled { pointer-events: none; opacity: 0.5; }