You are here

navbar.css in Open Social 8.6

.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;
  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 {
  -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 {
  display: 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);
  z-index: 10;
}

.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;
  padding: 0;
  background-color: transparent;
}

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

.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;
  }
  .block-social-language,
  .block-language {
    -webkit-box-ordinal-group: 5;
        -ms-flex-order: 4;
            order: 4;
    margin-left: auto;
  }
  .block-social-language a.dropdown-toggle {
    height: 50px;
  }
  .block-social-language ~ .navbar-user {
    margin-left: 0;
  }
  .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;
    -ms-flex-wrap: wrap;
        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;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 80%;
            flex: 1 1 80%;
    min-width: 0;
  }
  .search-take-over .form-submit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: 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;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 60px;
            flex: 0 0 60px;
  }
  .search-take-over .form-submit svg {
    width: 50px;
    height: 50px;
  }
  .search-take-over .social-search-suggestions {
    -ms-flex-preferred-size: 100%;
        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;
    -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;
    width: 100%;
  }
  .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;
  }
  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 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. display: inline-block;
  106. background-color: transparent;
  107. background-image: none;
  108. border: 0;
  109. color: white;
  110. font-weight: 500;
  111. padding: 8px 10px;
  112. height: 50px;
  113. min-width: 50px;
  114. line-height: 32px;
  115. }
  116. .navbar-toggle:focus {
  117. outline: 0;
  118. }
  119. .navbar-nav__icon {
  120. width: 24px;
  121. height: 24px;
  122. display: inline-block;
  123. pointer-events: none;
  124. }
  125. .navbar-nav__icon + .badge {
  126. position: absolute;
  127. top: 8px;
  128. right: 0;
  129. }
  130. .navbar-nav > .dropdown > .dropdown-menu {
  131. margin-top: 0;
  132. }
  133. .navbar-nav > .dropup > .dropdown-menu {
  134. margin-bottom: 0;
  135. }
  136. .navbar-default .navbar-nav > .open > a,
  137. .navbar-default .navbar-nav > .open > a:focus,
  138. .navbar-default .navbar-nav > .open > a:hover {
  139. -webkit-transition: color .2s ease, background-color .2s ease;
  140. transition: color .2s ease, background-color .2s ease;
  141. }
  142. .navbar__open-search-control {
  143. width: 50px;
  144. height: 50px;
  145. position: relative;
  146. cursor: pointer;
  147. }
  148. .navbar__open-search-block {
  149. display: block;
  150. border: 0;
  151. border-radius: 100%;
  152. width: 50px;
  153. height: 50px;
  154. padding: 0;
  155. -webkit-transform-origin: 50%;
  156. transform-origin: 50%;
  157. -webkit-transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  158. transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  159. z-index: 10;
  160. }
  161. .navbar-nav__icon--search {
  162. position: absolute;
  163. top: 14px;
  164. left: 13px;
  165. -webkit-transition: 0.2s ease-in-out;
  166. transition: 0.2s ease-in-out;
  167. pointer-events: none;
  168. }
  169. .navbar-search .search-content-form {
  170. padding: 10px 10px 5px;
  171. border: 0;
  172. position: relative;
  173. }
  174. .navbar-search .search-content-form .form-group {
  175. margin-bottom: 0;
  176. }
  177. .navbar-search .form-control {
  178. padding: 6px 38px 6px 12px;
  179. max-width: none;
  180. border: 0;
  181. }
  182. .navbar-search .form-submit {
  183. width: 38px;
  184. height: 38px;
  185. display: block;
  186. position: absolute;
  187. overflow: hidden;
  188. right: 0;
  189. top: 0;
  190. line-height: 38px;
  191. cursor: pointer;
  192. font-size: 0;
  193. padding: 0;
  194. background-color: transparent;
  195. }
  196. .navbar-search .form-submit svg {
  197. width: 30px;
  198. height: 30px;
  199. }
  200. .navbar-secondary {
  201. -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);
  202. box-shadow: 0 -1px 0 #e0e0e0, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
  203. z-index: 1;
  204. min-height: 46px;
  205. }
  206. .navbar-secondary .navbar-nav {
  207. -webkit-box-pack: center;
  208. -ms-flex-pack: center;
  209. justify-content: center;
  210. -ms-flex-wrap: nowrap;
  211. flex-wrap: nowrap;
  212. font-size: 16px;
  213. }
  214. .navbar-secondary .navbar-nav a {
  215. -webkit-transition: all 0.3s;
  216. transition: all 0.3s;
  217. white-space: nowrap;
  218. opacity: 0.75;
  219. border-bottom: 2px solid transparent;
  220. }
  221. .navbar-secondary .navbar-nav li.active a {
  222. border-bottom: 2px solid transparent;
  223. opacity: 1;
  224. }
  225. .navbar-secondary .navbar-nav li.active a:hover, .navbar-secondary .navbar-nav li.active a:focus {
  226. cursor: default;
  227. }
  228. @media (min-width: 900px) {
  229. .navbar-user {
  230. -webkit-box-ordinal-group: 11;
  231. -ms-flex-order: 10;
  232. order: 10;
  233. }
  234. .block-social-language,
  235. .block-language {
  236. -webkit-box-ordinal-group: 5;
  237. -ms-flex-order: 4;
  238. order: 4;
  239. margin-left: auto;
  240. }
  241. .block-social-language a.dropdown-toggle {
  242. height: 50px;
  243. }
  244. .block-social-language ~ .navbar-user {
  245. margin-left: 0;
  246. }
  247. .navbar-search {
  248. display: none;
  249. }
  250. .navbar-nav > li > a {
  251. padding-top: 13px;
  252. padding-bottom: 13px;
  253. }
  254. .navbar-collapse {
  255. width: auto;
  256. border-top: 0;
  257. padding-left: 0;
  258. padding-right: 0;
  259. }
  260. .navbar-collapse.collapse {
  261. display: -webkit-box !important;
  262. display: -ms-flexbox !important;
  263. display: flex !important;
  264. height: auto !important;
  265. padding-bottom: 0;
  266. overflow: visible !important;
  267. }
  268. .navbar-collapse.in {
  269. overflow-y: visible;
  270. }
  271. .navbar-fixed-top .navbar-nav {
  272. padding-left: 10px;
  273. }
  274. .navbar-toggle {
  275. display: none;
  276. }
  277. .not-logged-in.dropdown.profile .dropdown-toggle {
  278. display: none;
  279. }
  280. .search-take-over {
  281. height: 50px;
  282. position: fixed;
  283. top: 20%;
  284. left: 0;
  285. width: 100%;
  286. z-index: 1050;
  287. pointer-events: none;
  288. opacity: 0;
  289. -webkit-transition: all 0.3s ease-in-out;
  290. transition: all 0.3s ease-in-out;
  291. }
  292. .search-take-over .form-group {
  293. margin: auto;
  294. width: 80%;
  295. max-width: 600px;
  296. display: -webkit-box;
  297. display: -ms-flexbox;
  298. display: flex;
  299. -ms-flex-wrap: wrap;
  300. flex-wrap: wrap;
  301. }
  302. .search-take-over .form-text {
  303. font-size: 1.625em;
  304. height: 54px;
  305. border: 0;
  306. background: transparent;
  307. -webkit-appearance: none;
  308. outline: 0;
  309. border-radius: 0;
  310. border-bottom: 2px solid;
  311. font-weight: 500;
  312. max-width: none;
  313. -webkit-box-flex: 1;
  314. -ms-flex: 1 1 80%;
  315. flex: 1 1 80%;
  316. min-width: 0;
  317. }
  318. .search-take-over .form-submit {
  319. display: -webkit-box;
  320. display: -ms-flexbox;
  321. display: flex;
  322. -webkit-box-align: center;
  323. -ms-flex-align: center;
  324. align-items: center;
  325. -webkit-box-pack: center;
  326. -ms-flex-pack: center;
  327. justify-content: center;
  328. width: 60px;
  329. height: 60px;
  330. min-width: 60px;
  331. background-color: transparent;
  332. margin-left: 20px;
  333. padding: 0;
  334. font-size: 0;
  335. text-indent: -9999px;
  336. cursor: pointer;
  337. -webkit-box-flex: 0;
  338. -ms-flex: 0 0 60px;
  339. flex: 0 0 60px;
  340. }
  341. .search-take-over .form-submit svg {
  342. width: 50px;
  343. height: 50px;
  344. }
  345. .search-take-over .social-search-suggestions {
  346. -ms-flex-preferred-size: 100%;
  347. flex-basis: 100%;
  348. }
  349. .btn--close-search-take-over {
  350. background-color: transparent;
  351. border: 0;
  352. width: 48px;
  353. height: 48px;
  354. padding: 0;
  355. position: fixed;
  356. top: 80px;
  357. right: 80px;
  358. opacity: 0;
  359. -webkit-transform: translate(10px, 0) rotate(90deg);
  360. transform: translate(10px, 0) rotate(90deg);
  361. -webkit-transition: all 0.5s ease-in-out 0.5s;
  362. transition: all 0.5s ease-in-out 0.5s;
  363. outline: 0;
  364. }
  365. .btn--close-search-take-over svg {
  366. height: 48px;
  367. width: 100%;
  368. }
  369. .mode-search {
  370. overflow: hidden;
  371. }
  372. .mode-search .search-take-over {
  373. opacity: 1;
  374. pointer-events: all;
  375. }
  376. .mode-search .navbar__open-search-block {
  377. -webkit-transform: scale(70);
  378. transform: scale(70);
  379. -moz-transform: scale(70) rotate(0.02deg);
  380. -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  381. box-shadow: 0 0 4px rgba(0, 0, 0, 0.14), 0 4px 8px rgba(0, 0, 0, 0.28);
  382. }
  383. .mode-search .navbar-nav__icon {
  384. opacity: 0;
  385. }
  386. .mode-search .main-container {
  387. z-index: auto;
  388. pointer-events: none;
  389. }
  390. .mode-search .btn--close-search-take-over {
  391. -webkit-transform: none;
  392. transform: none;
  393. opacity: 1;
  394. pointer-events: all;
  395. }
  396. }
  397. @media (max-width: 599px) {
  398. .nav > li.desktop {
  399. display: none;
  400. }
  401. .navbar-scrollable {
  402. overflow: hidden;
  403. position: relative;
  404. width: 100%;
  405. height: 46px;
  406. }
  407. .navbar-scrollable .navbar-nav {
  408. position: absolute;
  409. left: 0;
  410. top: 0;
  411. width: 100%;
  412. -webkit-overflow-scrolling: touch;
  413. -webkit-user-select: none;
  414. -moz-user-select: none;
  415. -ms-user-select: none;
  416. user-select: none;
  417. overflow-x: scroll;
  418. overflow-y: hidden;
  419. display: -webkit-box;
  420. display: -ms-flexbox;
  421. display: flex;
  422. -webkit-box-pack: start;
  423. -ms-flex-pack: start;
  424. justify-content: flex-start;
  425. }
  426. .navbar-scrollable .navbar-nav::-webkit-scrollbar {
  427. display: none;
  428. }
  429. .navbar-scrollable:after {
  430. content: '';
  431. display: block;
  432. position: absolute;
  433. width: 24px;
  434. height: 100%;
  435. top: 0;
  436. right: 0;
  437. z-index: 2;
  438. }
  439. }
  440. @media (max-width: 899px) {
  441. .container--navbar {
  442. -ms-flex-wrap: wrap;
  443. flex-wrap: wrap;
  444. }
  445. .navbar-fixed-top .navbar-nav .open .dropdown-menu {
  446. background-color: #fff;
  447. border: 0;
  448. -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  449. box-shadow: 0 0 6px rgba(0, 0, 0, 0.16), 0 6px 12px rgba(0, 0, 0, 0.32);
  450. position: fixed;
  451. top: auto;
  452. margin: 0;
  453. left: 0;
  454. right: 0;
  455. width: 100%;
  456. max-width: none;
  457. max-height: 100%;
  458. height: calc(100% - 50px);
  459. overflow-x: hidden;
  460. overflow-y: auto;
  461. -webkit-backface-visibility: hidden;
  462. backface-visibility: hidden;
  463. }
  464. .navbar-collapse {
  465. -webkit-box-flex: 1;
  466. -ms-flex: 1 0 100%;
  467. flex: 1 0 100%;
  468. }
  469. .navbar-collapse .navbar-nav {
  470. margin: 6.5px 0;
  471. -webkit-box-orient: vertical;
  472. -webkit-box-direction: normal;
  473. -ms-flex-direction: column;
  474. flex-direction: column;
  475. -webkit-box-ordinal-group: 2;
  476. -ms-flex-order: 1;
  477. order: 1;
  478. }
  479. .navbar-collapse .navbar-nav > li > a {
  480. padding: 5px 15px;
  481. }
  482. .navbar-collapse .navbar-nav > li > a.dropdown-toggle {
  483. pointer-events: none;
  484. }
  485. .navbar-collapse .dropdown-menu {
  486. display: block;
  487. position: relative;
  488. width: 100%;
  489. background-color: transparent;
  490. float: none;
  491. max-width: none;
  492. padding-top: 0;
  493. -webkit-box-shadow: none;
  494. box-shadow: none;
  495. }
  496. .navbar-collapse .dropdown-menu li a {
  497. padding: 5px 15px 5px 30px;
  498. }
  499. .navbar__open-search-control {
  500. display: none;
  501. }
  502. .region--content-top .search-take-over,
  503. .btn--close-search-take-over {
  504. display: none;
  505. }
  506. html:not(.js) .navbar-header:focus + .navbar-collapse, html:not(.js) .navbar-header:hover + .navbar-collapse {
  507. display: block;
  508. }
  509. html:not(.js) .navbar-collapse:focus, html:not(.js) .navbar-collapse:hover {
  510. display: block;
  511. }
  512. }
  513. @media screen and (max-height: 480px) {
  514. .navbar-collapse {
  515. max-height: 420px;
  516. }
  517. }