You are here

navbar.css in Open Social 8

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

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

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

.nav > li.disabled > a:hover, .nav > li.disabled > a: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: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.navbar-user {
  margin-left: auto;
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
}

.navbar-header {
  -webkit-box-ordinal-group: 1;
      -ms-flex-order: 0;
          order: 0;
}

.navbar-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

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

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

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

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

.navbar-fixed-top {
  -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
          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;
  background-color: transparent;
  background-image: none;
  border: 0;
  color: white;
  font-weight: 500;
  padding: 8px 10px;
  height: 50px;
  min-width: 50px;
}

.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 {
  -webkit-transition: color .2s ease, background-color .2s ease;
  transition: color .2s ease, background-color .2s ease;
}

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

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

.navbar-nav__icon--search {
  position: absolute;
  top: 14px;
  left: 13px;
  -webkit-transition: 0.2s ease-in-out;
  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;
  text-indent: -9999px;
  background-image: url("../images/icons/icon-search.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #fff;
  background-size: 30px auto;
  padding: 0;
}

.navbar-secondary {
  -webkit-box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
          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 {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  font-size: 16px;
}

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

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

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

@media (min-width: 900px) {
  .navbar-user {
    -webkit-box-ordinal-group: 11;
        -ms-flex-order: 10;
            order: 10;
  }
  .navbar-search {
    display: none;
  }
  .navbar-nav > li > a {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .navbar-collapse {
    width: auto;
    border-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .navbar-collapse.collapse {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    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 {
    height: 50px;
    position: fixed;
    top: 20%;
    left: 0;
    width: 100%;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
  }
  .search-take-over .form-group {
    margin: auto;
    width: 80%;
    max-width: 600px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .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;
  }
  .search-take-over .form-submit {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-image: url("../images/icons/icon-search-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50px auto;
    background-color: transparent;
    margin-left: 20px;
    padding: 0;
    font-size: 0;
    text-indent: -9999px;
    cursor: pointer;
  }
  .btn--close-search-take-over {
    background-color: transparent;
    border: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    position: fixed;
    top: 80px;
    right: 80px;
    opacity: 0;
    -webkit-transform: translate(10px, 0) rotate(90deg);
            transform: translate(10px, 0) rotate(90deg);
    -webkit-transition: all 0.5s ease-in-out 0.5s;
    transition: all 0.5s ease-in-out 0.5s;
    outline: 0;
  }
  .btn--close-search-take-over svg {
    height: 48px;
  }
  .mode-search {
    overflow: hidden;
  }
  .mode-search .search-take-over {
    opacity: 1;
    pointer-events: all;
  }
  .mode-search .navbar__open-search-block {
    -webkit-transform: scale(70);
            transform: scale(70);
    -moz-transform: scale(70) rotate(0.02deg);
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
            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 {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
    pointer-events: all;
  }
}

@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: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            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 {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .navbar-fixed-top .navbar-nav .open .dropdown-menu {
    background-color: #fff;
    border: 0;
    -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
            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 {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 100%;
            flex: 1 0 100%;
  }
  .navbar-collapse .navbar-nav {
    margin: 6.5px 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            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;
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .navbar-collapse .dropdown-menu li a {
    padding: 5px 15px 5px 30px;
  }
  .navbar__open-search-control {
    display: none;
  }
  .region--content-top .search-take-over,
  .btn--close-search-take-over {
    display: none;
  }
}

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