You are here

wide-nav-expand.css in Drupal 10

Same filename and directory in other branches
  1. 9 core/themes/olivero/css/components/navigation/wide-nav-expand.css

Button which expands the navigation at wide viewport widths.

File

core/themes/olivero/css/components/navigation/wide-nav-expand.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. * Button which expands the navigation at wide viewport widths.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .wide-nav-expand {
  20. display: none
  21. }
  22. @media (min-width: 75rem) {
  23. .wide-nav-expand {
  24. display: flex;
  25. visibility: hidden;
  26. flex-shrink: 0;
  27. align-items: center;
  28. justify-content: center;
  29. width: var(--content-left);
  30. height: var(--sp6);
  31. cursor: pointer;
  32. pointer-events: auto;
  33. color: var(--color--white);
  34. border: 0;
  35. background-color: var(--color--primary-50)
  36. }
  37. .wide-nav-expand:focus {
  38. outline: solid 2px currentColor;
  39. outline-offset: -4px;
  40. }
  41. }
  42. @media (min-width: 75rem) {
  43. body:not(.is-always-mobile-nav) .is-fixed .wide-nav-expand {
  44. visibility: visible
  45. }
  46. }
  47. @media (min-width: 75rem) {
  48. body.is-always-mobile-nav .wide-nav-expand {
  49. visibility: hidden
  50. }
  51. }
  52. .wide-nav-expand__icon {
  53. position: relative;
  54. width: var(--sp2);
  55. height: 1.3125rem;
  56. transition: opacity 0.2s;
  57. pointer-events: none;
  58. opacity: 0;
  59. transform-style: preserve-3d
  60. }
  61. .wide-nav-expand__icon > span {
  62. display: block;
  63. height: 0;
  64. /* Intentionally not using CSS logical properties. */
  65. border-top: solid 3px currentColor
  66. }
  67. [dir="ltr"] .wide-nav-expand__icon > span:nth-child(1) {
  68. left: 0
  69. }
  70. [dir="rtl"] .wide-nav-expand__icon > span:nth-child(1) {
  71. right: 0
  72. }
  73. .wide-nav-expand__icon > span:nth-child(1) {
  74. position: absolute;
  75. top: 0;
  76. width: 100%;
  77. height: 0;
  78. transition: transform 0.2s;
  79. background-color: currentColor;
  80. }
  81. [dir="ltr"] .wide-nav-expand__icon > span:nth-child(2) {
  82. left: 0
  83. }
  84. [dir="rtl"] .wide-nav-expand__icon > span:nth-child(2) {
  85. right: 0
  86. }
  87. .wide-nav-expand__icon > span:nth-child(2) {
  88. position: absolute;
  89. top: 0.5625rem;
  90. width: 100%;
  91. height: 0;
  92. transition: opacity 0.2s;
  93. background-color: currentColor;
  94. }
  95. [dir="ltr"] .wide-nav-expand__icon > span:nth-child(3) {
  96. left: 0
  97. }
  98. [dir="rtl"] .wide-nav-expand__icon > span:nth-child(3) {
  99. right: 0
  100. }
  101. .wide-nav-expand__icon > span:nth-child(3) {
  102. position: absolute;
  103. top: auto;
  104. bottom: 0;
  105. width: 100%;
  106. height: 0;
  107. transition: transform 0.2s;
  108. background-color: currentColor;
  109. }
  110. .is-fixed .wide-nav-expand__icon {
  111. opacity: 1;
  112. }
  113. [aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(1) {
  114. top: 0.5625rem;
  115. transform: rotate(-45deg);
  116. }
  117. [aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(2) {
  118. opacity: 0;
  119. }
  120. [aria-expanded="true"] .wide-nav-expand__icon > span:nth-child(3) {
  121. top: 0.5625rem;
  122. transform: rotate(45deg);
  123. }