mdc.menu-surface.css 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE
  7. */
  8. .mdc-menu-surface {
  9. display: none;
  10. position: absolute;
  11. box-sizing: border-box;
  12. margin: 0;
  13. padding: 0;
  14. -webkit-transform: scale(1);
  15. transform: scale(1);
  16. -webkit-transform-origin: top left;
  17. transform-origin: top left;
  18. opacity: 0;
  19. overflow: auto;
  20. will-change: transform, opacity;
  21. box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
  22. /* @noflip */
  23. /*rtl:ignore*/
  24. transform-origin-left: top left;
  25. /* @noflip */
  26. /*rtl:ignore*/
  27. transform-origin-right: top right;
  28. }
  29. .mdc-menu-surface:focus {
  30. outline: none;
  31. }
  32. .mdc-menu-surface--animating-open {
  33. display: inline-block;
  34. -webkit-transform: scale(0.8);
  35. transform: scale(0.8);
  36. opacity: 0;
  37. }
  38. .mdc-menu-surface--open {
  39. display: inline-block;
  40. -webkit-transform: scale(1);
  41. transform: scale(1);
  42. opacity: 1;
  43. }
  44. .mdc-menu-surface--animating-closed {
  45. display: inline-block;
  46. opacity: 0;
  47. }
  48. [dir=rtl] .mdc-menu-surface, .mdc-menu-surface[dir=rtl] {
  49. /*rtl:begin:ignore*/
  50. /* @noflip */
  51. /*rtl:ignore*/
  52. transform-origin-left: top right;
  53. /* @noflip */
  54. /*rtl:ignore*/
  55. transform-origin-right: top left;
  56. /*rtl:end:ignore*/
  57. }
  58. .mdc-menu-surface--anchor {
  59. position: relative;
  60. overflow: visible;
  61. }
  62. .mdc-menu-surface--fixed {
  63. position: fixed;
  64. }
  65. .mdc-menu-surface--fullwidth {
  66. width: 100%;
  67. }
  68. .mdc-menu-surface {
  69. max-width: calc(100vw - 32px);
  70. /* @alternate */
  71. max-width: var(--mdc-menu-max-width, calc(100vw - 32px));
  72. max-height: calc(100vh - 32px);
  73. /* @alternate */
  74. max-height: var(--mdc-menu-max-height, calc(100vh - 32px));
  75. z-index: 8;
  76. transition: opacity 0.03s linear, height 250ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.12s cubic-bezier(0, 0, 0.2, 1);
  77. transition: opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-bezier(0, 0, 0.2, 1);
  78. transition: opacity 0.03s linear, transform 0.12s cubic-bezier(0, 0, 0.2, 1), height 250ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 0.12s cubic-bezier(0, 0, 0.2, 1);
  79. background-color: #fff;
  80. /* @alternate */
  81. background-color: var(--mdc-theme-surface, #fff);
  82. color: #000;
  83. /* @alternate */
  84. color: var(--mdc-theme-on-surface, #000);
  85. border-radius: 4px;
  86. /* @alternate */
  87. border-radius: var(--mdc-shape-medium, 4px);
  88. }
  89. .mdc-menu-surface--animating-closed {
  90. transition: opacity 0.075s linear;
  91. }
  92. /*# sourceMappingURL=mdc.menu-surface.css.map*/