You are here

nav-button-mobile.css in Drupal 9

Nav Button Mobile.

File

core/themes/olivero/css/components/navigation/nav-button-mobile.css
View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Nav Button Mobile.
  10. */
  11. [dir="ltr"] .mobile-nav-button {
  12. margin-left: auto
  13. }
  14. [dir="rtl"] .mobile-nav-button {
  15. margin-right: auto
  16. }
  17. [dir="ltr"] .mobile-nav-button {
  18. margin-right: -0.375rem
  19. }
  20. [dir="rtl"] .mobile-nav-button {
  21. margin-left: -0.375rem
  22. }
  23. [dir="ltr"] .mobile-nav-button {
  24. padding-left: 0.375rem
  25. }
  26. [dir="rtl"] .mobile-nav-button {
  27. padding-right: 0.375rem
  28. }
  29. [dir="ltr"] .mobile-nav-button {
  30. padding-right: 0.375rem
  31. }
  32. [dir="rtl"] .mobile-nav-button {
  33. padding-left: 0.375rem
  34. }
  35. .mobile-nav-button {
  36. position: relative;
  37. z-index: 110; /* Appear above mobile nav. */
  38. display: flex;
  39. align-items: center;
  40. -ms-grid-row-align: center;
  41. align-self: center;
  42. width: 2.25rem;
  43. height: 2.25rem;
  44. padding-top: 0;
  45. padding-bottom: 0;
  46. cursor: pointer;
  47. border: none;
  48. background: transparent;
  49. -webkit-appearance: none;
  50. -moz-appearance: none;
  51. appearance: none
  52. }
  53. .mobile-nav-button:focus {
  54. outline: solid 2px #0d77b5;
  55. }
  56. .mobile-nav-button:active {
  57. color: inherit; /* Override Safari's default UA styles. */
  58. }
  59. @media (min-width: 31.25rem) {
  60. [dir="ltr"] .mobile-nav-button {
  61. padding-left: 1.125rem
  62. }
  63. [dir="rtl"] .mobile-nav-button {
  64. padding-right: 1.125rem
  65. }
  66. .mobile-nav-button {
  67. display: inline-flex;
  68. width: auto
  69. }
  70. }
  71. /* Text that says "menu". */
  72. .mobile-nav-button__label {
  73. position: absolute;
  74. display: block;
  75. overflow: hidden;
  76. clip: rect(1px, 1px, 1px, 1px);
  77. width: 1px;
  78. height: 1px;
  79. word-wrap: normal
  80. }
  81. @media (min-width: 31.25rem) {
  82. [dir="ltr"] .mobile-nav-button__label {
  83. margin-right: 0.75rem
  84. }
  85. [dir="rtl"] .mobile-nav-button__label {
  86. margin-left: 0.75rem
  87. }
  88. .mobile-nav-button__label {
  89. position: static;
  90. overflow: visible;
  91. clip: auto;
  92. width: auto;
  93. height: auto;
  94. letter-spacing: 0.05em;
  95. font-size: 0.875rem;
  96. font-weight: 600
  97. }
  98. }
  99. .mobile-nav-button__icon {
  100. position: relative;
  101. display: block;
  102. width: 2.25rem;
  103. height: 0.1875rem;
  104. background-color: #2494db
  105. }
  106. [dir="ltr"] .mobile-nav-button__icon:before {
  107. left: 0
  108. }
  109. [dir="rtl"] .mobile-nav-button__icon:before {
  110. right: 0
  111. }
  112. .mobile-nav-button__icon:before {
  113. position: absolute;
  114. top: -0.5rem;
  115. width: 100%;
  116. height: 0.1875rem;
  117. content: "";
  118. transition: all 0.2s;
  119. background-color: #2494db;
  120. }
  121. [dir="ltr"] .mobile-nav-button__icon:after {
  122. left: 0
  123. }
  124. [dir="rtl"] .mobile-nav-button__icon:after {
  125. right: 0
  126. }
  127. .mobile-nav-button__icon:after {
  128. position: absolute;
  129. top: auto;
  130. bottom: -0.5rem;
  131. width: 100%;
  132. height: 0.1875rem;
  133. content: "";
  134. transition: all 0.2s;
  135. background-color: #2494db;
  136. }
  137. .mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon {
  138. background-color: transparent
  139. }
  140. .mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon:before {
  141. top: 0;
  142. transform: rotate(-45deg);
  143. }
  144. .mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon:after {
  145. top: 0;
  146. transform: rotate(45deg);
  147. }