You are here

responsive-menus.css in AT Tools 8.3

/**
 * Responsive menu styles.
 *
 * Mixins provide the basic structure and a base style (not much), the rest
 * is up to you, add colors, borders, padding and so on. Icons such as
 * the hamburger and arrows are set in variables in _variables.scss, and you
 * use the color variables for menus from there also.
 *
 * Menu styles are set in Appearance settings using the Responsive Menus extension.
 * There you select a block, breakpoint, a default style and a responsive style.
 * You can safely remove mixins from this file if you not going to use them later
 * on, and want to save a few bytes in stylesheet size.
 *
 * Each mixin takes one or more parameters. Use these to customize the basic
 * structure of the menu, or call options, for example you can place the
 * offcanvas menu on the left or right.
 *
 * Do not import into breakpoints unless you are not using the Responsive Menu
 * settings in Appearance Extensions, in which case you will need to load the
 * at_core/at.responsivemenus library and provide it's required drupalSettings.
 *
 * Breakpoints are handled in matchMedia using Enquire.
 *
 * Responsive styles are a combination of three things:
 *  1. Sass/CSS defined here (with breakpoints etc).
 *  2. jQuery: at.responsiveMenus.js which adds/toggles classes etc.
 *  3. Theme settings as set in your themes extension settings.
 ============================================================================ */
.rm-row {
  z-index: 100;
}

.rm-region {
  margin: 0;
}

.rm-region .contextual-region {
  position: static;
}

.rm-region .contextual-region .contextual {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  padding: 0;
  word-wrap: normal;
  font: 0/0 a;
}

.rm-toggle {
  font-size: 1rem;
  padding: 0.3125rem 0;
  margin: 0;
}

.rm-toggle__link, .rm-toggle__link:hover, .rm-toggle__link:focus, .rm-toggle__link:active {
  padding: 0.5rem 1rem 0.25rem 0.75rem;
  height: auto;
  border-radius: 2px;
  cursor: pointer;
}

.rm-toggle__icon {
  position: relative;
  height: 1rem;
  width: 1rem;
}

.rm-toggle__label {
  top: -0.125rem;
  position: relative;
}

.rm-block {
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
}

.rm-block__inner {
  width: 100%;
}

.rm-block__content .menu {
  position: relative;
}

.rm-block__content .menu > .menu__item {
  z-index: 490;
  position: relative;
}

.rm-block__content__item {
  position: relative;
  font-size: 1rem;
}

.rm-block__content__item:first-child .menu__link {
  border-top: 0;
}

.rm-block__content .menu__link {
  -webkit-transition: all, 225ms, ease-in-out;
  -o-transition: all, 225ms, ease-in-out;
  transition: all, 225ms, ease-in-out;
  font-weight: 300;
  margin: 0;
  border: 0;
}

.rm-block__content .menu__link:hover, .rm-block__content .menu__link:focus {
  text-decoration: none;
}

.no-js .rm-block .menu__link {
  padding: 0.5rem;
  margin: 0.0625rem 0;
}

.pr-navbar__navbar .rm-block,
.pr-leaderboard__leaderboard .rm-block {
  margin: 0;
  padding: 0;
}
/*# sourceMappingURL=responsive-menus.css.map */

File

at_theme_generator/starterkits/starterkit/styles/css/components/responsive-menus.css
View source
  1. /**
  2. * Responsive menu styles.
  3. *
  4. * Mixins provide the basic structure and a base style (not much), the rest
  5. * is up to you, add colors, borders, padding and so on. Icons such as
  6. * the hamburger and arrows are set in variables in _variables.scss, and you
  7. * use the color variables for menus from there also.
  8. *
  9. * Menu styles are set in Appearance settings using the Responsive Menus extension.
  10. * There you select a block, breakpoint, a default style and a responsive style.
  11. * You can safely remove mixins from this file if you not going to use them later
  12. * on, and want to save a few bytes in stylesheet size.
  13. *
  14. * Each mixin takes one or more parameters. Use these to customize the basic
  15. * structure of the menu, or call options, for example you can place the
  16. * offcanvas menu on the left or right.
  17. *
  18. * Do not import into breakpoints unless you are not using the Responsive Menu
  19. * settings in Appearance Extensions, in which case you will need to load the
  20. * at_core/at.responsivemenus library and provide it's required drupalSettings.
  21. *
  22. * Breakpoints are handled in matchMedia using Enquire.
  23. *
  24. * Responsive styles are a combination of three things:
  25. * 1. Sass/CSS defined here (with breakpoints etc).
  26. * 2. jQuery: at.responsiveMenus.js which adds/toggles classes etc.
  27. * 3. Theme settings as set in your themes extension settings.
  28. ============================================================================ */
  29. .rm-row {
  30. z-index: 100;
  31. }
  32. .rm-region {
  33. margin: 0;
  34. }
  35. .rm-region .contextual-region {
  36. position: static;
  37. }
  38. .rm-region .contextual-region .contextual {
  39. position: absolute !important;
  40. clip: rect(1px, 1px, 1px, 1px);
  41. overflow: hidden;
  42. height: 1px;
  43. width: 1px;
  44. padding: 0;
  45. word-wrap: normal;
  46. font: 0/0 a;
  47. }
  48. .rm-toggle {
  49. font-size: 1rem;
  50. padding: 0.3125rem 0;
  51. margin: 0;
  52. }
  53. .rm-toggle__link, .rm-toggle__link:hover, .rm-toggle__link:focus, .rm-toggle__link:active {
  54. padding: 0.5rem 1rem 0.25rem 0.75rem;
  55. height: auto;
  56. border-radius: 2px;
  57. cursor: pointer;
  58. }
  59. .rm-toggle__icon {
  60. position: relative;
  61. height: 1rem;
  62. width: 1rem;
  63. }
  64. .rm-toggle__label {
  65. top: -0.125rem;
  66. position: relative;
  67. }
  68. .rm-block {
  69. line-height: 1;
  70. display: -webkit-box;
  71. display: -ms-flexbox;
  72. display: flex;
  73. -webkit-box-pack: start;
  74. -ms-flex-pack: start;
  75. justify-content: flex-start;
  76. -webkit-box-align: center;
  77. -ms-flex-align: center;
  78. align-items: center;
  79. height: 100%;
  80. }
  81. .rm-block__inner {
  82. width: 100%;
  83. }
  84. .rm-block__content .menu {
  85. position: relative;
  86. }
  87. .rm-block__content .menu > .menu__item {
  88. z-index: 490;
  89. position: relative;
  90. }
  91. .rm-block__content__item {
  92. position: relative;
  93. font-size: 1rem;
  94. }
  95. .rm-block__content__item:first-child .menu__link {
  96. border-top: 0;
  97. }
  98. .rm-block__content .menu__link {
  99. -webkit-transition: all, 225ms, ease-in-out;
  100. -o-transition: all, 225ms, ease-in-out;
  101. transition: all, 225ms, ease-in-out;
  102. font-weight: 300;
  103. margin: 0;
  104. border: 0;
  105. }
  106. .rm-block__content .menu__link:hover, .rm-block__content .menu__link:focus {
  107. text-decoration: none;
  108. }
  109. .no-js .rm-block .menu__link {
  110. padding: 0.5rem;
  111. margin: 0.0625rem 0;
  112. }
  113. .pr-navbar__navbar .rm-block,
  114. .pr-leaderboard__leaderboard .rm-block {
  115. margin: 0;
  116. padding: 0;
  117. }
  118. /*# sourceMappingURL=responsive-menus.css.map */