UNPKG

@uportal/app-framework

Version:
238 lines (196 loc) 4.74 kB
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a * copy of the License at the following location: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /* Styles for content that is generated by angular material directives and that does not include the material theme (i.e. elements outside of the <uw-body> element) */ md-menu-content { a { color: @black; &:hover, &:active, &:focus { color: @black; text-decoration: none; } } md-menu-item { color: @black; .md-button { font-weight: 400; &:hover { background-color: transparent; } } } &.widget-menu { max-width: 290px; .widget-description { height: auto; .material-icons { width: auto; margin: auto 24px auto 0; padding: 0 0 0 16px; } > span { padding-left: 0; } &:focus { outline: none; } } } } div.md-dialog-container { z-index: @dialog-depth-1; md-dialog { background: @white; } } body > md-backdrop { background-color: @grayscale10; opacity: 0; &.md-dialog-backdrop { z-index: @dialog-depth-2; } } .md-open-menu-container.md-whiteframe-z2 { box-shadow: none; > md-menu-content { box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12); } } md-menu-content.top-bar-menu-content { min-width: 275px; padding: 0; position: relative; &.notifications-menu { min-width: 400px; md-menu-item { &.top-bar-menu-item { max-width: 505px; .compact-buttons { .md-button:not([disabled]), .md-button:disabled { text-transform: none; line-height: 28px; min-width: 60px; min-height: 28px; font-size: 12px; font-weight: 500; margin-left: 0; } } &.notifications-empty { min-height: 140px; color: @grayscale8; } @media (min-width: @xs) { width: 505px; } } } } md-menu-item { a.link__see-all { max-width: 110px; color: @color1; text-decoration: underline; text-align: right; md-icon { transition: @transition-color; } &:hover { color: darken(@color1, 15%); cursor: pointer; } } &.top-bar-menu-item { height: auto; max-width: 275px; padding: 0; background-color: @grayscale1; border-bottom: 1px solid @grayscale2; &:hover { background: @grayscale2; } .menu-item-content { padding: 8px 0 8px 16px; cursor: default; .menu-item-description { color: @grayscale8; } .menu-item__high-priority { color: @grayscale8; font-size: 12px; .material-icons { min-height: 16px; min-width: 16px; height: 16px; width: 16px; font-size: 16px; line-height: 14px; } } } .md-icon-button.button__mark-seen { max-width: 40px; background: transparent; .material-icons { transition: @background-transition; } &:not([disabled]):hover { background: transparent; .material-icons { color: @grayscale10; } } .md-ripple-container { width: 40px; } } } } } md-tooltip { &.widget-action-tooltip { max-width: 250px; .md-content { background: rgba(0, 0, 0, 0.85); white-space: normal; height: auto; line-height: 18px; font-size: 12px; padding: 4px 8px; @media (max-width: @xs) { line-height: 20px; padding: 4px 8px; } } } &.top-bar-tooltip { .md-content { background: rgba(0, 0, 0, 0.95); } } } // Adjust z-index of tooltips .md-panel-outer-wrapper.md-panel-is-showing { z-index: 54 !important; }