2 * Copyright 2015 Google Inc. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 @import "../variables";
20 .mdl-menu__container {
41 background: $default-dropdown-bg-color;
52 transform-origin: 0 0;
53 @include shadow-2dp();
54 will-change: transform;
55 transition: transform $menu-expand-duration $animation-curve-default,
56 opacity $menu-fade-duration $animation-curve-default;
59 .mdl-menu__container.is-visible & {
65 &.mdl-menu--bottom-right {
66 transform-origin: 100% 0;
69 &.mdl-menu--top-left {
70 transform-origin: 0 100%;
73 &.mdl-menu--top-right {
74 transform-origin: 100% 100%;
92 .mdl-menu__container.is-visible & {
98 transition: opacity $menu-fade-duration $animation-curve-default,
99 clip $menu-expand-duration $animation-curve-default;
102 &.mdl-menu--bottom-right {
107 &.mdl-menu--top-left {
112 &.mdl-menu--top-right {
119 &.mdl-menu--unaligned {
128 color: $default-item-text-color;
129 background-color: transparent;
133 outline-color: $default-item-outline-color;
136 @include typo-body-1();
137 text-decoration: none;
143 transition: opacity $menu-fade-duration $animation-curve-default;
146 .mdl-menu__container.is-visible & {
150 &::-moz-focus-inner {
154 &--full-bleed-divider {
155 border-bottom: 1px solid $default-item-divider-color;
158 &[disabled], &[data-mdl-disabled] {
159 color: $disabled-item-text-color;
160 background-color: transparent;
164 background-color: transparent;
168 background-color: transparent;
172 background: transparent;
177 background-color: $default-item-hover-bg-color;
182 background-color: $default-item-focus-bg-color;
186 background-color: $default-item-active-bg-color;
191 .mdl-menu__item--ripple-container {