You are here

navbar.css in Open Social 8.9

.nav {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.nav > li > a,
.nav > li > button {
  position: relative;
  display: block;
  padding: 0.5em 10px;
  border: none;
}

.nav > li > a:hover, .nav > li > a:focus,
.nav > li > button:hover,
.nav > li > button:focus {
  text-decoration: none;
}

.nav > li > button {
  background-color: transparent;
}

.nav > li.disabled > a:hover, .nav > li.disabled > a:focus,
.nav > li.disabled > button:hover,
.nav > li.disabled > button:focus {
  text-decoration: none;
  background-color: transparent;
  cursor: not-allowed;
}

.page-preview .navbar-default {
  position: relative;
  z-index: 10;
}

.page-preview .main-container {
  padding-top: 0;
}

.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.container--navbar {
  display: flex;
}

.navbar-user {
  margin-left: auto;
  order: 1;
}

.navbar-header {
  order: 0;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
}

.navbar-nav > li > a, .navbar-nav > li > button {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 24px;
}

.navbar-nav > li > ul > li.expanded {
  position: relative;
}

.navbar-nav > li > ul > li.expanded .caret {
  transform: rotate(0);
}

.navbar-nav > li > ul > li.expanded > .dropdown-menu {
  margin-top: 0;
  padding-top: 5px;
}

.navbar-nav > li > ul > li.expanded > .dropdown-menu.open {
  display: none;
}

.navbar-user > li > a,
.navbar-user > li > button,
.navbar-user .navbar-nav > li > a,
.navbar-user .navbar-nav > li > button {
  padding: 13px 10px 8px;
  height: 50px;
}

.navbar-collapse {
  overflow-x: visible;
  border-top: 1px solid transparent;
  -webkit-overflow-scrolling: touch;
  order: 2;
  max-height: 340px;
}

.navbar-collapse.in {
  overflow-y: auto;
}

.navbar-fixed-top {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-fixed-top .navbar-user .dropdown-menu {
  right: 0;
  left: auto;
}

.navbar-brand {
  display: inline-block;
  vertical-align: top;
  height: 50px;
  max-width: 200px;
  overflow: hidden;
}

.navbar-brand > img {
  display: block;
  pointer-events: none;
  width: auto;
  height: 50px;
}

.navbar-toggle {
  position: relative;
  display: inline-block;
  background-color: transparent;
  background-image: none;
  border: 0;
  color: white;
  font-weight: 500;
  padding: 8px 10px;
  height: 50px;
  min-width: 50px;
  line-height: 32px;
}

.navbar-toggle:focus {
  outline: 0;
}

.navbar-nav__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  pointer-events: none;
}

.navbar-nav__icon + .badge {
  position: absolute;
  top: 8px;
  right: 0;
}

.navbar-nav > .dropdown > .dropdown-menu {
  margin-top: 0;
}

.navbar-nav > .dropup > .dropdown-menu {
  margin-bottom: 0;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > button, .navbar-default .navbar-nav > .open > button:focus, .navbar-default .navbar-nav > .open > button:hover {
  transition: color .2s ease, background-color .2s ease;
}

.navbar__open-search-control {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;
}

.navbar__open-search-block {
  display: block;
  border: 0;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  padding: 0;
  transform-origin: 50%;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.navbar-nav__icon--search {
  position: absolute;
  top: 14px;
  left: 13px;
  transition: 0.2s ease-in-out;
  pointer-events: none;
}

.navbar-search .search-content-form {
  padding: 10px 10px 5px;
  border: 0;
  position: relative;
}

.navbar-search .search-content-form .form-group {
  margin-bottom: 0;
}

.navbar-search .form-control {
  padding: 6px 38px 6px 12px;
  max-width: none;
  border: 0;
}

.navbar-search .form-submit {
  width: 38px;
  height: 38px;
  display: block;
  position: absolute;
  overflow: hidden;
  right: 0;
  top: 0;
  line-height: 38px;
  cursor: pointer;
  font-size: 0;
  padding: 0;
  background-color: transparent;
}

.navbar-search .form-submit svg {
  width: 30px;
  height: 30px;
}

.navbar-secondary {
  box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  z-index: 1;
  min-height: 46px;
}

.navbar-secondary .navbar-nav {
  justify-content: center;
  flex-wrap: nowrap;
  font-size: 16px;
}

.navbar-secondary .navbar-nav a, .navbar-secondary .navbar-nav button {
  transition: all 0.3s;
  white-space: nowrap;
  opacity: 0.75;
  border-bottom: 2px solid transparent;
}

.navbar-secondary .navbar-nav li.active a, .navbar-secondary .navbar-nav li.active button {
  border-bottom: 2px solid transparent;
  opacity: 1;
}

.navbar-secondary .navbar-nav li.active a:hover, .navbar-secondary .navbar-nav li.active a:focus, .navbar-secondary .navbar-nav li.active button:hover, .navbar-secondary .navbar-nav li.active button:focus {
  cursor: default;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
    padding-left: 30px;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
    background: #fff;
  }
}

@media (min-width: 900px) {
  .navbar-user {
    order: 10;
  }
  .block-social-language,
  .block-language {
    order: 4;
    margin-left: auto;
  }
  .block-social-language a.dropdown-toggle,
  .block-language a.dropdown-toggle {
    height: 50px;
  }
  .block-social-language ~ .navbar-user,
  .block-language ~ .navbar-user {
    margin-left: 0;
  }
  .navbar-search {
    display: none;
  }
  .navbar-nav > li > a, .navbar-nav > li > button {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .navbar-collapse {
    width: auto;
    border-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .navbar-collapse.collapse {
    display: flex !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
  }
  .navbar-collapse.in {
    overflow-y: visible;
  }
  .navbar-fixed-top .navbar-nav {
    padding-left: 10px;
  }
  .navbar-toggle {
    display: none;
  }
  .not-logged-in.dropdown.profile .dropdown-toggle {
    display: none;
  }
  .search-take-over {
    display: none;
    height: 50px;
    position: fixed;
    top: 20%;
    left: 0;
    width: 100%;
    z-index: 1050;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
  }
  .search-take-over .form-group {
    margin: auto;
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
  }
  .search-take-over .form-text {
    font-size: 1.625em;
    height: 54px;
    border: 0;
    background: transparent;
    -webkit-appearance: none;
    outline: 0;
    border-radius: 0;
    border-bottom: 2px solid;
    font-weight: 500;
    max-width: none;
    flex: 1 1 80%;
    min-width: 0;
  }
  .search-take-over .form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: transparent;
    margin-left: 20px;
    padding: 0;
    font-size: 0;
    text-indent: -9999px;
    cursor: pointer;
    flex: 0 0 60px;
  }
  .search-take-over .form-submit svg {
    width: 50px;
    height: 50px;
  }
  .search-take-over .social-search-suggestions {
    flex-basis: 100%;
  }
  .btn--close-search-take-over {
    background-color: transparent;
    border: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    position: fixed;
    top: 80px;
    right: 80px;
    opacity: 0;
    transform: translate(10px, 0) rotate(90deg);
    transition: all 0.5s ease-in-out 0.5s;
    outline: 0;
  }
  .btn--close-search-take-over svg {
    height: 48px;
    width: 100%;
  }
  .mode-search {
    overflow: hidden;
  }
  .mode-search .search-take-over {
    display: initial;
    pointer-events: all;
  }
  .mode-search .navbar__open-search-block {
    transform: scale(70);
    -moz-transform: scale(70) rotate(0.02deg);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  }
  .mode-search .navbar-nav__icon {
    opacity: 0;
  }
  .mode-search .main-container {
    z-index: auto;
    pointer-events: none;
  }
  .mode-search .btn--close-search-take-over {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
}

@media (min-width: 976px) {
  .toolbar-fixed[data-toolbar-menu='open'] .navbar-fixed-top {
    left: 240px;
  }
  .gin--vertical-toolbar.user-logged-in .navbar-fixed-top {
    left: 80px;
  }
}

@media (min-width: 1025px) {
  .navbar-nav > li > ul > li.expanded > a:hover:not(.is-active) + .dropdown-menu {
    display: block;
  }
  .navbar-nav > li > ul > li.expanded .caret {
    position: absolute;
    top: 44%;
    right: 10px;
    transform: rotate(-90deg) translateY(-50%);
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu {
    display: none;
    top: 0;
    left: 100%;
    padding-top: 0;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu:hover {
    display: block;
  }
}

@media (max-width: 599px) {
  .nav > li.desktop {
    display: none;
  }
  .navbar-scrollable {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 46px;
  }
  .navbar-scrollable .navbar-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    justify-content: flex-start;
  }
  .navbar-scrollable .navbar-nav::-webkit-scrollbar {
    display: none;
  }
  .navbar-scrollable:after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 2;
  }
}

@media (max-width: 899px) {
  .container--navbar {
    flex-wrap: wrap;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
    padding-left: 45px;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
    background: #e6e6e6;
    color: #4d4d4d;
  }
  .navbar-fixed-top .navbar-nav .open .dropdown-menu {
    background-color: #fff;
    border: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
    position: fixed;
    top: auto;
    margin: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: calc(100% - 50px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  .navbar-collapse {
    flex: 1 0 100%;
  }
  .navbar-collapse .navbar-nav {
    margin: 6.5px 0;
    flex-direction: column;
    order: 1;
  }
  .navbar-collapse .navbar-nav > li > a {
    padding: 5px 15px;
  }
  .navbar-collapse .navbar-nav > li > a.dropdown-toggle {
    pointer-events: none;
  }
  .navbar-collapse .dropdown-menu {
    display: block;
    position: relative;
    width: 100%;
    background-color: transparent;
    float: none;
    max-width: none;
    padding-top: 0;
    box-shadow: none;
  }
  .navbar-collapse .dropdown-menu li a,
  .navbar-collapse .dropdown-menu li button {
    padding: 5px 15px 5px 30px;
  }
  .navbar__open-search-control {
    display: none;
  }
  .region--content-top .search-take-over,
  .btn--close-search-take-over {
    display: none;
  }
  html:not(.js) .navbar-header:focus + .navbar-collapse, html:not(.js) .navbar-header:hover + .navbar-collapse {
    display: block;
  }
  html:not(.js) .navbar-collapse:focus, html:not(.js) .navbar-collapse:hover {
    display: block;
  }
}

@media (max-width: 1024px) {
  .navbar-nav > li > ul > li.expanded > .dropdown-menu {
    position: static !important;
    display: block !important;
    box-shadow: none;
    background: #f5f5f5;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  .navbar-nav > li > ul > li.expanded > .dropdown-menu {
    position: static !important;
    display: block !important;
    box-shadow: none;
    background: #f5f5f5;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
    padding-left: 30px;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
    background: #fff;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .navbar-nav > li > ul > li.expanded > .dropdown-menu {
    position: static !important;
    display: block !important;
    box-shadow: none;
    background: #f5f5f5;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
    padding-left: 30px;
  }
  .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
    background: #fff;
  }
}

@media screen and (max-height: 480px) {
  .navbar-collapse {
    max-height: 420px;
  }
}

File

themes/socialbase/assets/css/navbar.css
View source
  1. .nav {
  2. margin-bottom: 0;
  3. padding-left: 0;
  4. list-style: none;
  5. }
  6. .nav > li > a,
  7. .nav > li > button {
  8. position: relative;
  9. display: block;
  10. padding: 0.5em 10px;
  11. border: none;
  12. }
  13. .nav > li > a:hover, .nav > li > a:focus,
  14. .nav > li > button:hover,
  15. .nav > li > button:focus {
  16. text-decoration: none;
  17. }
  18. .nav > li > button {
  19. background-color: transparent;
  20. }
  21. .nav > li.disabled > a:hover, .nav > li.disabled > a:focus,
  22. .nav > li.disabled > button:hover,
  23. .nav > li.disabled > button:focus {
  24. text-decoration: none;
  25. background-color: transparent;
  26. cursor: not-allowed;
  27. }
  28. .page-preview .navbar-default {
  29. position: relative;
  30. z-index: 10;
  31. }
  32. .page-preview .main-container {
  33. padding-top: 0;
  34. }
  35. .navbar {
  36. position: relative;
  37. min-height: 50px;
  38. margin-bottom: 0;
  39. font-size: 0.875rem;
  40. }
  41. .container--navbar {
  42. display: flex;
  43. }
  44. .navbar-user {
  45. margin-left: auto;
  46. order: 1;
  47. }
  48. .navbar-header {
  49. order: 0;
  50. }
  51. .navbar-nav {
  52. display: flex;
  53. flex-wrap: wrap;
  54. }
  55. .navbar-nav > li > a, .navbar-nav > li > button {
  56. padding-top: 10px;
  57. padding-bottom: 10px;
  58. line-height: 24px;
  59. }
  60. .navbar-nav > li > ul > li.expanded {
  61. position: relative;
  62. }
  63. .navbar-nav > li > ul > li.expanded .caret {
  64. transform: rotate(0);
  65. }
  66. .navbar-nav > li > ul > li.expanded > .dropdown-menu {
  67. margin-top: 0;
  68. padding-top: 5px;
  69. }
  70. .navbar-nav > li > ul > li.expanded > .dropdown-menu.open {
  71. display: none;
  72. }
  73. .navbar-user > li > a,
  74. .navbar-user > li > button,
  75. .navbar-user .navbar-nav > li > a,
  76. .navbar-user .navbar-nav > li > button {
  77. padding: 13px 10px 8px;
  78. height: 50px;
  79. }
  80. .navbar-collapse {
  81. overflow-x: visible;
  82. border-top: 1px solid transparent;
  83. -webkit-overflow-scrolling: touch;
  84. order: 2;
  85. max-height: 340px;
  86. }
  87. .navbar-collapse.in {
  88. overflow-y: auto;
  89. }
  90. .navbar-fixed-top {
  91. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  92. position: fixed;
  93. top: 0;
  94. right: 0;
  95. left: 0;
  96. z-index: 1030;
  97. }
  98. .navbar-fixed-top .navbar-user .dropdown-menu {
  99. right: 0;
  100. left: auto;
  101. }
  102. .navbar-brand {
  103. display: inline-block;
  104. vertical-align: top;
  105. height: 50px;
  106. max-width: 200px;
  107. overflow: hidden;
  108. }
  109. .navbar-brand > img {
  110. display: block;
  111. pointer-events: none;
  112. width: auto;
  113. height: 50px;
  114. }
  115. .navbar-toggle {
  116. position: relative;
  117. display: inline-block;
  118. background-color: transparent;
  119. background-image: none;
  120. border: 0;
  121. color: white;
  122. font-weight: 500;
  123. padding: 8px 10px;
  124. height: 50px;
  125. min-width: 50px;
  126. line-height: 32px;
  127. }
  128. .navbar-toggle:focus {
  129. outline: 0;
  130. }
  131. .navbar-nav__icon {
  132. width: 24px;
  133. height: 24px;
  134. display: inline-block;
  135. pointer-events: none;
  136. }
  137. .navbar-nav__icon + .badge {
  138. position: absolute;
  139. top: 8px;
  140. right: 0;
  141. }
  142. .navbar-nav > .dropdown > .dropdown-menu {
  143. margin-top: 0;
  144. }
  145. .navbar-nav > .dropup > .dropdown-menu {
  146. margin-bottom: 0;
  147. }
  148. .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:focus, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > button, .navbar-default .navbar-nav > .open > button:focus, .navbar-default .navbar-nav > .open > button:hover {
  149. transition: color .2s ease, background-color .2s ease;
  150. }
  151. .navbar__open-search-control {
  152. width: 50px;
  153. height: 50px;
  154. position: relative;
  155. cursor: pointer;
  156. }
  157. .navbar__open-search-block {
  158. display: block;
  159. border: 0;
  160. border-radius: 100%;
  161. width: 50px;
  162. height: 50px;
  163. padding: 0;
  164. transform-origin: 50%;
  165. transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  166. z-index: 10;
  167. }
  168. .navbar-nav__icon--search {
  169. position: absolute;
  170. top: 14px;
  171. left: 13px;
  172. transition: 0.2s ease-in-out;
  173. pointer-events: none;
  174. }
  175. .navbar-search .search-content-form {
  176. padding: 10px 10px 5px;
  177. border: 0;
  178. position: relative;
  179. }
  180. .navbar-search .search-content-form .form-group {
  181. margin-bottom: 0;
  182. }
  183. .navbar-search .form-control {
  184. padding: 6px 38px 6px 12px;
  185. max-width: none;
  186. border: 0;
  187. }
  188. .navbar-search .form-submit {
  189. width: 38px;
  190. height: 38px;
  191. display: block;
  192. position: absolute;
  193. overflow: hidden;
  194. right: 0;
  195. top: 0;
  196. line-height: 38px;
  197. cursor: pointer;
  198. font-size: 0;
  199. padding: 0;
  200. background-color: transparent;
  201. }
  202. .navbar-search .form-submit svg {
  203. width: 30px;
  204. height: 30px;
  205. }
  206. .navbar-secondary {
  207. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  208. z-index: 1;
  209. min-height: 46px;
  210. }
  211. .navbar-secondary .navbar-nav {
  212. justify-content: center;
  213. flex-wrap: nowrap;
  214. font-size: 16px;
  215. }
  216. .navbar-secondary .navbar-nav a, .navbar-secondary .navbar-nav button {
  217. transition: all 0.3s;
  218. white-space: nowrap;
  219. opacity: 0.75;
  220. border-bottom: 2px solid transparent;
  221. }
  222. .navbar-secondary .navbar-nav li.active a, .navbar-secondary .navbar-nav li.active button {
  223. border-bottom: 2px solid transparent;
  224. opacity: 1;
  225. }
  226. .navbar-secondary .navbar-nav li.active a:hover, .navbar-secondary .navbar-nav li.active a:focus, .navbar-secondary .navbar-nav li.active button:hover, .navbar-secondary .navbar-nav li.active button:focus {
  227. cursor: default;
  228. }
  229. @media (min-width: 768px) and (max-width: 1024px) {
  230. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
  231. padding-left: 30px;
  232. }
  233. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
  234. background: #fff;
  235. }
  236. }
  237. @media (min-width: 900px) {
  238. .navbar-user {
  239. order: 10;
  240. }
  241. .block-social-language,
  242. .block-language {
  243. order: 4;
  244. margin-left: auto;
  245. }
  246. .block-social-language a.dropdown-toggle,
  247. .block-language a.dropdown-toggle {
  248. height: 50px;
  249. }
  250. .block-social-language ~ .navbar-user,
  251. .block-language ~ .navbar-user {
  252. margin-left: 0;
  253. }
  254. .navbar-search {
  255. display: none;
  256. }
  257. .navbar-nav > li > a, .navbar-nav > li > button {
  258. padding-top: 13px;
  259. padding-bottom: 13px;
  260. }
  261. .navbar-collapse {
  262. width: auto;
  263. border-top: 0;
  264. padding-left: 0;
  265. padding-right: 0;
  266. }
  267. .navbar-collapse.collapse {
  268. display: flex !important;
  269. height: auto !important;
  270. padding-bottom: 0;
  271. overflow: visible !important;
  272. }
  273. .navbar-collapse.in {
  274. overflow-y: visible;
  275. }
  276. .navbar-fixed-top .navbar-nav {
  277. padding-left: 10px;
  278. }
  279. .navbar-toggle {
  280. display: none;
  281. }
  282. .not-logged-in.dropdown.profile .dropdown-toggle {
  283. display: none;
  284. }
  285. .search-take-over {
  286. display: none;
  287. height: 50px;
  288. position: fixed;
  289. top: 20%;
  290. left: 0;
  291. width: 100%;
  292. z-index: 1050;
  293. pointer-events: none;
  294. transition: all 0.3s ease-in-out;
  295. }
  296. .search-take-over .form-group {
  297. margin: auto;
  298. width: 80%;
  299. max-width: 600px;
  300. display: flex;
  301. flex-wrap: wrap;
  302. }
  303. .search-take-over .form-text {
  304. font-size: 1.625em;
  305. height: 54px;
  306. border: 0;
  307. background: transparent;
  308. -webkit-appearance: none;
  309. outline: 0;
  310. border-radius: 0;
  311. border-bottom: 2px solid;
  312. font-weight: 500;
  313. max-width: none;
  314. flex: 1 1 80%;
  315. min-width: 0;
  316. }
  317. .search-take-over .form-submit {
  318. display: flex;
  319. align-items: center;
  320. justify-content: center;
  321. width: 60px;
  322. height: 60px;
  323. min-width: 60px;
  324. background-color: transparent;
  325. margin-left: 20px;
  326. padding: 0;
  327. font-size: 0;
  328. text-indent: -9999px;
  329. cursor: pointer;
  330. flex: 0 0 60px;
  331. }
  332. .search-take-over .form-submit svg {
  333. width: 50px;
  334. height: 50px;
  335. }
  336. .search-take-over .social-search-suggestions {
  337. flex-basis: 100%;
  338. }
  339. .btn--close-search-take-over {
  340. background-color: transparent;
  341. border: 0;
  342. width: 48px;
  343. height: 48px;
  344. padding: 0;
  345. position: fixed;
  346. top: 80px;
  347. right: 80px;
  348. opacity: 0;
  349. transform: translate(10px, 0) rotate(90deg);
  350. transition: all 0.5s ease-in-out 0.5s;
  351. outline: 0;
  352. }
  353. .btn--close-search-take-over svg {
  354. height: 48px;
  355. width: 100%;
  356. }
  357. .mode-search {
  358. overflow: hidden;
  359. }
  360. .mode-search .search-take-over {
  361. display: initial;
  362. pointer-events: all;
  363. }
  364. .mode-search .navbar__open-search-block {
  365. transform: scale(70);
  366. -moz-transform: scale(70) rotate(0.02deg);
  367. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  368. }
  369. .mode-search .navbar-nav__icon {
  370. opacity: 0;
  371. }
  372. .mode-search .main-container {
  373. z-index: auto;
  374. pointer-events: none;
  375. }
  376. .mode-search .btn--close-search-take-over {
  377. transform: none;
  378. opacity: 1;
  379. pointer-events: all;
  380. }
  381. }
  382. @media (min-width: 976px) {
  383. .toolbar-fixed[data-toolbar-menu='open'] .navbar-fixed-top {
  384. left: 240px;
  385. }
  386. .gin--vertical-toolbar.user-logged-in .navbar-fixed-top {
  387. left: 80px;
  388. }
  389. }
  390. @media (min-width: 1025px) {
  391. .navbar-nav > li > ul > li.expanded > a:hover:not(.is-active) + .dropdown-menu {
  392. display: block;
  393. }
  394. .navbar-nav > li > ul > li.expanded .caret {
  395. position: absolute;
  396. top: 44%;
  397. right: 10px;
  398. transform: rotate(-90deg) translateY(-50%);
  399. }
  400. .navbar-nav > li > ul > li.expanded > .dropdown-menu {
  401. display: none;
  402. top: 0;
  403. left: 100%;
  404. padding-top: 0;
  405. }
  406. .navbar-nav > li > ul > li.expanded > .dropdown-menu:hover {
  407. display: block;
  408. }
  409. }
  410. @media (max-width: 599px) {
  411. .nav > li.desktop {
  412. display: none;
  413. }
  414. .navbar-scrollable {
  415. overflow: hidden;
  416. position: relative;
  417. width: 100%;
  418. height: 46px;
  419. }
  420. .navbar-scrollable .navbar-nav {
  421. position: absolute;
  422. left: 0;
  423. top: 0;
  424. width: 100%;
  425. -webkit-overflow-scrolling: touch;
  426. -webkit-user-select: none;
  427. -moz-user-select: none;
  428. -ms-user-select: none;
  429. user-select: none;
  430. overflow-x: scroll;
  431. overflow-y: hidden;
  432. display: flex;
  433. justify-content: flex-start;
  434. }
  435. .navbar-scrollable .navbar-nav::-webkit-scrollbar {
  436. display: none;
  437. }
  438. .navbar-scrollable:after {
  439. content: '';
  440. display: block;
  441. position: absolute;
  442. width: 24px;
  443. height: 100%;
  444. top: 0;
  445. right: 0;
  446. z-index: 2;
  447. }
  448. }
  449. @media (max-width: 899px) {
  450. .container--navbar {
  451. flex-wrap: wrap;
  452. }
  453. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
  454. padding-left: 45px;
  455. }
  456. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
  457. background: #e6e6e6;
  458. color: #4d4d4d;
  459. }
  460. .navbar-fixed-top .navbar-nav .open .dropdown-menu {
  461. background-color: #fff;
  462. border: 0;
  463. box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  464. position: fixed;
  465. top: auto;
  466. margin: 0;
  467. left: 0;
  468. right: 0;
  469. width: 100%;
  470. max-width: none;
  471. max-height: 100%;
  472. height: calc(100% - 50px);
  473. overflow-x: hidden;
  474. overflow-y: auto;
  475. -webkit-backface-visibility: hidden;
  476. backface-visibility: hidden;
  477. }
  478. .navbar-collapse {
  479. flex: 1 0 100%;
  480. }
  481. .navbar-collapse .navbar-nav {
  482. margin: 6.5px 0;
  483. flex-direction: column;
  484. order: 1;
  485. }
  486. .navbar-collapse .navbar-nav > li > a {
  487. padding: 5px 15px;
  488. }
  489. .navbar-collapse .navbar-nav > li > a.dropdown-toggle {
  490. pointer-events: none;
  491. }
  492. .navbar-collapse .dropdown-menu {
  493. display: block;
  494. position: relative;
  495. width: 100%;
  496. background-color: transparent;
  497. float: none;
  498. max-width: none;
  499. padding-top: 0;
  500. box-shadow: none;
  501. }
  502. .navbar-collapse .dropdown-menu li a,
  503. .navbar-collapse .dropdown-menu li button {
  504. padding: 5px 15px 5px 30px;
  505. }
  506. .navbar__open-search-control {
  507. display: none;
  508. }
  509. .region--content-top .search-take-over,
  510. .btn--close-search-take-over {
  511. display: none;
  512. }
  513. html:not(.js) .navbar-header:focus + .navbar-collapse, html:not(.js) .navbar-header:hover + .navbar-collapse {
  514. display: block;
  515. }
  516. html:not(.js) .navbar-collapse:focus, html:not(.js) .navbar-collapse:hover {
  517. display: block;
  518. }
  519. }
  520. @media (max-width: 1024px) {
  521. .navbar-nav > li > ul > li.expanded > .dropdown-menu {
  522. position: static !important;
  523. display: block !important;
  524. box-shadow: none;
  525. background: #f5f5f5;
  526. }
  527. }
  528. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  529. .navbar-nav > li > ul > li.expanded > .dropdown-menu {
  530. position: static !important;
  531. display: block !important;
  532. box-shadow: none;
  533. background: #f5f5f5;
  534. }
  535. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
  536. padding-left: 30px;
  537. }
  538. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
  539. background: #fff;
  540. }
  541. }
  542. @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  543. .navbar-nav > li > ul > li.expanded > .dropdown-menu {
  544. position: static !important;
  545. display: block !important;
  546. box-shadow: none;
  547. background: #f5f5f5;
  548. }
  549. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button {
  550. padding-left: 30px;
  551. }
  552. .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > a.is-active, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button:hover, .navbar-nav > li > ul > li.expanded > .dropdown-menu > li > button.is-active {
  553. background: #fff;
  554. }
  555. }
  556. @media screen and (max-height: 480px) {
  557. .navbar-collapse {
  558. max-height: 420px;
  559. }
  560. }