You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
4.2 KiB

7 years ago
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.3
  6. */
  7. .md-open-menu-container {
  8. position: fixed;
  9. left: 0;
  10. top: 0;
  11. z-index: 100;
  12. opacity: 0;
  13. border-radius: 2px; }
  14. .md-open-menu-container md-menu-divider {
  15. margin-top: 4px;
  16. margin-bottom: 4px;
  17. height: 1px;
  18. min-height: 1px;
  19. max-height: 1px;
  20. width: 100%; }
  21. .md-open-menu-container md-menu-content > * {
  22. opacity: 0; }
  23. .md-open-menu-container:not(.md-clickable) {
  24. pointer-events: none; }
  25. .md-open-menu-container.md-active {
  26. opacity: 1;
  27. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  28. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  29. -webkit-transition-duration: 200ms;
  30. transition-duration: 200ms; }
  31. .md-open-menu-container.md-active > md-menu-content > * {
  32. opacity: 1;
  33. -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  34. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  35. -webkit-transition-duration: 200ms;
  36. transition-duration: 200ms;
  37. -webkit-transition-delay: 100ms;
  38. transition-delay: 100ms; }
  39. .md-open-menu-container.md-leave {
  40. opacity: 0;
  41. -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  42. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  43. -webkit-transition-duration: 250ms;
  44. transition-duration: 250ms; }
  45. md-menu-content {
  46. display: -webkit-box;
  47. display: -webkit-flex;
  48. display: flex;
  49. -webkit-box-orient: vertical;
  50. -webkit-box-direction: normal;
  51. -webkit-flex-direction: column;
  52. flex-direction: column;
  53. padding: 8px 0;
  54. max-height: 304px;
  55. overflow-y: auto; }
  56. md-menu-content.md-dense {
  57. max-height: 208px; }
  58. md-menu-content.md-dense md-menu-item {
  59. height: 32px;
  60. min-height: 0px; }
  61. md-menu-item {
  62. display: -webkit-box;
  63. display: -webkit-flex;
  64. display: flex;
  65. -webkit-box-orient: horizontal;
  66. -webkit-box-direction: normal;
  67. -webkit-flex-direction: row;
  68. flex-direction: row;
  69. min-height: 48px;
  70. height: 48px;
  71. -webkit-align-content: center;
  72. align-content: center;
  73. -webkit-box-pack: start;
  74. -webkit-justify-content: flex-start;
  75. justify-content: flex-start;
  76. /*
  77. * We cannot use flex on <button> elements due to a bug in Firefox, so we also can't use it on
  78. * <a> elements. Add some top padding to fix alignment since buttons automatically align their
  79. * text vertically.
  80. */ }
  81. md-menu-item > * {
  82. width: 100%;
  83. margin: auto 0;
  84. padding-left: 16px;
  85. padding-right: 16px; }
  86. md-menu-item > a.md-button {
  87. padding-top: 5px; }
  88. md-menu-item > .md-button {
  89. text-align: left;
  90. display: inline-block;
  91. border-radius: 0;
  92. margin: auto 0;
  93. font-size: 15px;
  94. text-transform: none;
  95. font-weight: 400;
  96. height: 100%;
  97. padding-left: 16px;
  98. padding-right: 16px;
  99. width: 100%; }
  100. md-menu-item > .md-button::-moz-focus-inner {
  101. padding: 0;
  102. border: 0; }
  103. [dir=rtl] md-menu-item > .md-button {
  104. text-align: right; }
  105. md-menu-item > .md-button md-icon {
  106. margin: auto 16px auto 0; }
  107. [dir=rtl] md-menu-item > .md-button md-icon {
  108. margin: auto 0 auto 16px; }
  109. md-menu-item > .md-button p {
  110. display: inline-block;
  111. margin: auto; }
  112. md-menu-item > .md-button span {
  113. margin-top: auto;
  114. margin-bottom: auto; }
  115. md-menu-item > .md-button .md-ripple-container {
  116. border-radius: inherit; }
  117. md-toolbar .md-menu {
  118. height: auto;
  119. margin: auto;
  120. padding: 0; }
  121. @media (max-width: 959px) {
  122. md-menu-content {
  123. min-width: 112px; }
  124. md-menu-content[width="3"] {
  125. min-width: 168px; }
  126. md-menu-content[width="4"] {
  127. min-width: 224px; }
  128. md-menu-content[width="5"] {
  129. min-width: 280px; }
  130. md-menu-content[width="6"] {
  131. min-width: 336px; }
  132. md-menu-content[width="7"] {
  133. min-width: 392px; } }
  134. @media (min-width: 960px) {
  135. md-menu-content {
  136. min-width: 96px; }
  137. md-menu-content[width="3"] {
  138. min-width: 192px; }
  139. md-menu-content[width="4"] {
  140. min-width: 256px; }
  141. md-menu-content[width="5"] {
  142. min-width: 320px; }
  143. md-menu-content[width="6"] {
  144. min-width: 384px; }
  145. md-menu-content[width="7"] {
  146. min-width: 448px; } }