_top-bar.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. // Foundation by ZURB
  2. // foundation.zurb.com
  3. // Licensed under MIT Open Source
  4. @import 'global';
  5. @import 'grid';
  6. @import 'buttons';
  7. @import 'forms';
  8. //
  9. // Top Bar Variables
  10. //
  11. $include-html-top-bar-classes: $include-html-classes !default;
  12. // Background color for the top bar
  13. $topbar-bg-color: $oil !default;
  14. $topbar-bg: $topbar-bg-color !default;
  15. // Height and margin
  16. $topbar-height: rem-calc(45) !default;
  17. $topbar-margin-bottom: 0 !default;
  18. // Controlling the styles for the title in the top bar
  19. $topbar-title-weight: $font-weight-normal !default;
  20. $topbar-title-font-size: rem-calc(17) !default;
  21. // Set the link colors and styles for top-level nav
  22. $topbar-link-color: $white !default;
  23. $topbar-link-color-hover: $white !default;
  24. $topbar-link-color-active: $white !default;
  25. $topbar-link-color-active-hover: $white !default;
  26. $topbar-link-weight: $font-weight-normal !default;
  27. $topbar-link-font-size: rem-calc(13) !default;
  28. $topbar-link-hover-lightness: -10% !default; // Darken by 10%
  29. $topbar-link-bg: $topbar-bg !default;
  30. $topbar-link-bg-hover: $jet !default;
  31. $topbar-link-bg-color-hover: $charcoal !default;
  32. $topbar-link-bg-active: $primary-color !default;
  33. $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
  34. $topbar-link-font-family: $body-font-family !default;
  35. $topbar-link-text-transform: none !default;
  36. $topbar-link-padding: ($topbar-height / 3) !default;
  37. $topbar-back-link-size: rem-calc(18) !default;
  38. $topbar-link-dropdown-padding: rem-calc(20) !default;
  39. $topbar-button-font-size: .75rem !default;
  40. $topbar-button-top: 7px !default;
  41. // Style the top bar dropdown elements
  42. $topbar-dropdown-bg: $oil !default;
  43. $topbar-dropdown-link-color: $white !default;
  44. $topbar-dropdown-link-color-hover: $topbar-link-color-hover !default;
  45. $topbar-dropdown-link-bg: $oil !default;
  46. $topbar-dropdown-link-bg-hover: $jet !default;
  47. $topbar-dropdown-link-weight: $font-weight-normal !default;
  48. $topbar-dropdown-toggle-size: 5px !default;
  49. $topbar-dropdown-toggle-color: $white !default;
  50. $topbar-dropdown-toggle-alpha: .4 !default;
  51. $topbar-dropdown-label-color: $monsoon !default;
  52. $topbar-dropdown-label-text-transform: uppercase !default;
  53. $topbar-dropdown-label-font-weight: $font-weight-bold !default;
  54. $topbar-dropdown-label-font-size: rem-calc(10) !default;
  55. $topbar-dropdown-label-bg: $oil !default;
  56. // Top menu icon styles
  57. $topbar-menu-link-transform: uppercase !default;
  58. $topbar-menu-link-font-size: rem-calc(13) !default;
  59. $topbar-menu-link-weight: $font-weight-bold !default;
  60. $topbar-menu-link-color: $white !default;
  61. $topbar-menu-icon-color: $white !default;
  62. $topbar-menu-link-color-toggled: $jumbo !default;
  63. $topbar-menu-icon-color-toggled: $jumbo !default;
  64. $topbar-menu-icon-position: $opposite-direction !default; // Change to $default-float for a left menu icon
  65. // Transitions and breakpoint styles
  66. $topbar-transition-speed: 300ms !default;
  67. // Using rem-calc for the below breakpoint causes issues with top bar
  68. $topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout
  69. $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})";
  70. // Top-bar input styles
  71. $topbar-input-height: rem-calc(28) !default;
  72. // Divider Styles
  73. $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default;
  74. $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default;
  75. // Sticky Class
  76. $topbar-sticky-class: ".sticky" !default;
  77. $topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item
  78. $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text from dropdown subnavigation li
  79. // Accessibility mixins for hiding and showing the menu dropdown items
  80. @mixin topbar-hide-dropdown {
  81. // Makes an element visually hidden by default, but visible when focused.
  82. display: block;
  83. @include element-invisible();
  84. }
  85. @mixin topbar-show-dropdown {
  86. display: block;
  87. @include element-invisible-off();
  88. position: absolute !important; // Reset the position from static to absolute
  89. }
  90. @include exports("top-bar") {
  91. @if $include-html-top-bar-classes {
  92. // Used to provide media query values for javascript components.
  93. // This class is generated despite the value of $include-html-top-bar-classes
  94. // to ensure width calculations work correctly.
  95. meta.foundation-mq-topbar {
  96. font-family: "/" + unquote($topbar-media-query) + "/";
  97. width: $topbar-breakpoint;
  98. }
  99. /* Wrapped around .top-bar to contain to grid width */
  100. .contain-to-grid {
  101. width: 100%;
  102. background: $topbar-bg;
  103. .top-bar { margin-bottom: $topbar-margin-bottom; }
  104. }
  105. // Wrapped around .top-bar to make it stick to the top
  106. .fixed {
  107. position: fixed;
  108. top: 0;
  109. width: 100%;
  110. z-index: 99;
  111. #{$default-float}: 0;
  112. &.expanded:not(.top-bar) {
  113. height: auto;
  114. max-height: 100%;
  115. overflow-y: auto;
  116. width: 100%;
  117. .title-area {
  118. position: fixed;
  119. width: 100%;
  120. z-index: 99;
  121. }
  122. // Ensure you can scroll the menu on small screens
  123. .top-bar-section {
  124. margin-top: $topbar-height;
  125. z-index: 98;
  126. }
  127. }
  128. }
  129. .top-bar {
  130. background: $topbar-bg;
  131. height: $topbar-height;
  132. line-height: $topbar-height;
  133. margin-bottom: $topbar-margin-bottom;
  134. overflow: hidden;
  135. position: relative;
  136. // Topbar Global list Styles
  137. ul {
  138. list-style: none;
  139. margin-bottom: 0;
  140. }
  141. .row { max-width: none; }
  142. form,
  143. input,
  144. select { margin-bottom: 0; }
  145. input,
  146. select {
  147. font-size: $topbar-button-font-size;
  148. height: $topbar-input-height;
  149. padding-bottom: .35rem;
  150. padding-top: .35rem;
  151. }
  152. .button, button {
  153. font-size: $topbar-button-font-size;
  154. margin-bottom: 0;
  155. padding-bottom: .35rem + rem-calc(1);
  156. padding-top: .35rem + rem-calc(1);
  157. // position: relative;
  158. // top: -1px;
  159. // Corrects a slight misalignment when put next to an input field
  160. @media #{$small-only} {
  161. position: relative;
  162. top: -1px;
  163. }
  164. }
  165. // Title Area
  166. .title-area {
  167. margin: 0;
  168. position: relative;
  169. }
  170. .name {
  171. font-size: $rem-base;
  172. height: $topbar-height;
  173. margin: 0;
  174. // @if $topbar-menu-icon-position == $default-float {float: $opposite-direction;}
  175. h1, h2, h3, h4, p, span {
  176. font-size: $topbar-title-font-size;
  177. line-height: $topbar-height;
  178. margin: 0;
  179. a {
  180. color: $topbar-link-color;
  181. display: block;
  182. font-weight: $topbar-title-weight;
  183. padding: 0 $topbar-link-padding;
  184. width: 75%;
  185. }
  186. }
  187. }
  188. // Menu toggle button on small devices
  189. .toggle-topbar {
  190. position: absolute;
  191. #{$topbar-menu-icon-position}: 0;
  192. top: 0;
  193. a {
  194. color: $topbar-link-color;
  195. display: block;
  196. font-size: $topbar-menu-link-font-size;
  197. font-weight: $topbar-menu-link-weight;
  198. height: $topbar-height;
  199. line-height: $topbar-height;
  200. padding: 0 $topbar-link-padding;
  201. position: relative;
  202. text-transform: $topbar-menu-link-transform;
  203. }
  204. // Adding the class "menu-icon" will add the 3-line icon people love and adore.
  205. &.menu-icon {
  206. margin-top: -16px;
  207. top: 50%;
  208. a {
  209. @if $text-direction == rtl {
  210. text-indent: -58px;
  211. }
  212. color: $topbar-menu-link-color;
  213. height: 34px;
  214. line-height: 33px;
  215. padding: 0 $topbar-link-padding+rem-calc(25) 0 $topbar-link-padding;
  216. position: relative;
  217. & {
  218. // @include hamburger icon
  219. //
  220. // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
  221. // $width - Width of hamburger icon
  222. // $left - If false, icon will be centered horizontally || explicitly set value in rem
  223. // $top - If false, icon will be centered vertically || explicitly set value in rem
  224. // $thickness - thickness of lines in hamburger icon, set value in px
  225. // $gap - spacing between the lines in hamburger icon, set value in px
  226. // $color - icon color
  227. // $hover-color - icon color during hover, here it isn't set b/c it would override $topbar-menu-icon-color-toggled
  228. // $offcanvas - Set to false of @include in topbar
  229. @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
  230. }
  231. }
  232. }
  233. }
  234. // Change things up when the top-bar is expanded
  235. &.expanded {
  236. background: transparent;
  237. height: auto;
  238. .title-area { background: $topbar-bg; }
  239. .toggle-topbar {
  240. a { color: $topbar-menu-link-color-toggled;
  241. span::after {
  242. // Shh, don't tell, but box-shadows create the menu icon :)
  243. // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above
  244. box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled,
  245. 0 7px 0 1px $topbar-menu-icon-color-toggled,
  246. 0 14px 0 1px $topbar-menu-icon-color-toggled;
  247. }
  248. }
  249. }
  250. }
  251. }
  252. // Right and Left Navigation that stacked by default
  253. .top-bar-section {
  254. #{$default-float}: 0;
  255. position: relative;
  256. width: auto;
  257. @include single-transition($default-float, $topbar-transition-speed);
  258. ul {
  259. display: block;
  260. font-size: $rem-base;
  261. height: auto;
  262. margin: 0;
  263. padding: 0;
  264. width: 100%;
  265. }
  266. .divider,
  267. [role="separator"] {
  268. border-top: $topbar-divider-border-top;
  269. clear: both;
  270. height: 1px;
  271. width: 100%;
  272. }
  273. ul li {
  274. background: $topbar-dropdown-bg;
  275. > a {
  276. color: $topbar-link-color;
  277. display: block;
  278. font-family: $topbar-link-font-family;
  279. font-size: $topbar-link-font-size;
  280. font-weight: $topbar-link-weight;
  281. padding-#{$default-float}: $topbar-link-padding;
  282. padding: 12px 0 12px 0;
  283. text-transform: $topbar-link-text-transform;
  284. width: 100%;
  285. &.button {
  286. font-size: $topbar-link-font-size;
  287. padding-#{$default-float}: $topbar-link-padding;
  288. padding-#{$opposite-direction}: $topbar-link-padding;
  289. @include button-style($bg:$primary-color);
  290. }
  291. &.button.secondary { @include button-style($bg:$secondary-color); }
  292. &.button.success { @include button-style($bg:$success-color); }
  293. &.button.alert { @include button-style($bg:$alert-color); }
  294. &.button.warning { @include button-style($bg:$warning-color); }
  295. &.button.info { @include button-style($bg:$info-color); }
  296. }
  297. > button {
  298. font-size: $topbar-link-font-size;
  299. padding-#{$default-float}: $topbar-link-padding;
  300. padding-#{$opposite-direction}: $topbar-link-padding;
  301. @include button-style($bg:$primary-color);
  302. &.secondary { @include button-style($bg:$secondary-color); }
  303. &.success { @include button-style($bg:$success-color); }
  304. &.alert { @include button-style($bg:$alert-color); }
  305. &.warning { @include button-style($bg:$warning-color); }
  306. &.info { @include button-style($bg:$info-color); }
  307. }
  308. // Apply the hover link color when it has that class
  309. &:hover:not(.has-form) > a {
  310. background-color: $topbar-link-bg-color-hover;
  311. @if ($topbar-link-bg-hover) {
  312. background: $topbar-link-bg-hover;
  313. }
  314. color: $topbar-link-color-hover;
  315. }
  316. // Apply the active link color when it has that class
  317. &.active > a {
  318. background: $topbar-link-bg-active;
  319. color: $topbar-link-color-active;
  320. &:hover {
  321. background: $topbar-link-bg-active-hover;
  322. color: $topbar-link-color-active-hover;
  323. }
  324. }
  325. }
  326. // Add some extra padding for list items contains buttons
  327. .has-form { padding: $topbar-link-padding; }
  328. // Styling for list items that have a dropdown within them.
  329. .has-dropdown {
  330. position: relative;
  331. > a {
  332. &:after {
  333. @if ($topbar-arrows) {
  334. @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
  335. }
  336. margin-#{$opposite-direction}: $topbar-link-padding;
  337. margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
  338. position: absolute;
  339. top: 50%;
  340. #{$opposite-direction}: 0;
  341. }
  342. }
  343. &.moved { position: static;
  344. > .dropdown {
  345. @include topbar-show-dropdown();
  346. width: 100%;
  347. }
  348. > a:after {
  349. display: none;
  350. }
  351. }
  352. }
  353. // Styling elements inside of dropdowns
  354. .dropdown {
  355. padding: 0;
  356. position: absolute;
  357. top: 0;
  358. z-index: 99;
  359. @include topbar-hide-dropdown();
  360. #{$default-float}: 100%;
  361. li {
  362. height: auto;
  363. width: 100%;
  364. a {
  365. font-weight: $topbar-dropdown-link-weight;
  366. padding: 8px $topbar-link-padding;
  367. &.parent-link {
  368. font-weight: $topbar-link-weight;
  369. }
  370. }
  371. &.title h5, &.parent-link {
  372. // Back Button
  373. margin-bottom: 0;
  374. margin-top: 0;
  375. font-size: $topbar-back-link-size;
  376. a {
  377. color: $topbar-link-color;
  378. // line-height: ($topbar-height / 2);
  379. display: block;
  380. &:hover { background:none; }
  381. }
  382. }
  383. &.has-form { padding: 8px $topbar-link-padding; }
  384. .button, button { top: auto; }
  385. }
  386. label {
  387. color: $topbar-dropdown-label-color;
  388. font-size: $topbar-dropdown-label-font-size;
  389. font-weight: $topbar-dropdown-label-font-weight;
  390. margin-bottom: 0;
  391. padding: 8px $topbar-link-padding 2px;
  392. text-transform: $topbar-dropdown-label-text-transform;
  393. }
  394. }
  395. }
  396. .js-generated { display: block; }
  397. // Top Bar styles intended for screen sizes above the breakpoint.
  398. @media #{$topbar-media-query} {
  399. .top-bar {
  400. background: $topbar-bg;
  401. @include clearfix;
  402. overflow: visible;
  403. .toggle-topbar { display: none; }
  404. .title-area { float: $default-float; }
  405. .name h1 a,
  406. .name h2 a,
  407. .name h3 a,
  408. .name h4 a,
  409. .name h5 a,
  410. .name h6 a { width: auto; }
  411. input,
  412. select,
  413. .button,
  414. button {
  415. font-size: rem-calc(14);
  416. height: $topbar-input-height;
  417. position: relative;
  418. top: (($topbar-height - $topbar-input-height) / 2);
  419. }
  420. &.expanded { background: $topbar-bg; }
  421. }
  422. .contain-to-grid .top-bar {
  423. margin-bottom: $topbar-margin-bottom;
  424. margin: 0 auto;
  425. max-width: $row-width;
  426. }
  427. .top-bar-section {
  428. @include single-transition(none,0,0);
  429. #{$default-float}: 0 !important;
  430. ul {
  431. display: inline;
  432. height: auto !important;
  433. width: auto;
  434. li {
  435. float: $default-float;
  436. .js-generated { display: none; }
  437. }
  438. }
  439. li {
  440. &.hover {
  441. > a:not(.button) {
  442. background-color: $topbar-link-bg-color-hover;
  443. @if ($topbar-link-bg-hover) {
  444. background: $topbar-link-bg-hover;
  445. }
  446. color: $topbar-link-color-hover;
  447. }
  448. }
  449. &:not(.has-form) {
  450. a:not(.button) {
  451. background: $topbar-link-bg;
  452. line-height: $topbar-height;
  453. padding: 0 $topbar-link-padding;
  454. &:hover {
  455. background-color: $topbar-link-bg-color-hover;
  456. @if ($topbar-link-bg-hover) {
  457. background: $topbar-link-bg-hover;
  458. }
  459. }
  460. }
  461. }
  462. &.active:not(.has-form) {
  463. a:not(.button) {
  464. background: $topbar-link-bg-active;
  465. color: $topbar-link-color-active;
  466. line-height: $topbar-height;
  467. padding: 0 $topbar-link-padding;
  468. &:hover {
  469. background: $topbar-link-bg-active-hover;
  470. color: $topbar-link-color-active-hover;
  471. }
  472. }
  473. }
  474. }
  475. .has-dropdown {
  476. @if($topbar-arrows) {
  477. > a {
  478. padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
  479. &:after {
  480. @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
  481. margin-top: -($topbar-dropdown-toggle-size / 2);
  482. top: ($topbar-height / 2);
  483. }
  484. }
  485. }
  486. &.moved { position: relative;
  487. > .dropdown {
  488. @include topbar-hide-dropdown();
  489. }
  490. }
  491. &.hover, &.not-click:hover {
  492. > .dropdown {
  493. @include topbar-show-dropdown();
  494. }
  495. }
  496. > a:focus + .dropdown {
  497. @include topbar-show-dropdown();
  498. }
  499. .dropdown li.has-dropdown {
  500. > a {
  501. @if ($topbar-dropdown-arrows) {
  502. &:after {
  503. border: none;
  504. content: "\00bb";
  505. line-height: 1.2;
  506. margin-top: -1px;
  507. top: 1rem;
  508. #{$opposite-direction}: 5px;
  509. }
  510. }
  511. }
  512. }
  513. }
  514. .dropdown {
  515. #{$default-float}: 0;
  516. background: transparent;
  517. min-width: 100%;
  518. top: auto;
  519. li {
  520. a {
  521. background: $topbar-dropdown-link-bg;
  522. color: $topbar-dropdown-link-color;
  523. line-height: $topbar-height;
  524. padding: 12px $topbar-link-padding;
  525. white-space: nowrap;
  526. }
  527. &:not(.has-form):not(.active) {
  528. > a:not(.button) {
  529. background: $topbar-dropdown-link-bg;
  530. color: $topbar-dropdown-link-color;
  531. }
  532. &:hover > a:not(.button) {
  533. background-color: $topbar-link-bg-color-hover;
  534. color: $topbar-dropdown-link-color-hover;
  535. @if ($topbar-dropdown-link-bg-hover) {
  536. background: $topbar-dropdown-link-bg-hover;
  537. }
  538. }
  539. }
  540. label {
  541. background: $topbar-dropdown-label-bg;
  542. white-space: nowrap;
  543. }
  544. // Second Level Dropdowns
  545. .dropdown {
  546. #{$default-float}: 100%;
  547. top: 0;
  548. }
  549. }
  550. }
  551. > ul > .divider,
  552. > ul > [role="separator"] {
  553. border-#{$opposite-direction}: $topbar-divider-border-bottom;
  554. border-bottom: none;
  555. border-top: none;
  556. clear: none;
  557. height: $topbar-height;
  558. width: 0;
  559. }
  560. .has-form {
  561. background: $topbar-link-bg;
  562. height: $topbar-height;
  563. padding: 0 $topbar-link-padding;
  564. }
  565. // Position overrides for ul.right and ul.left
  566. .#{$opposite-direction} {
  567. li .dropdown {
  568. #{$default-float}: auto;
  569. #{$opposite-direction}: 0;
  570. li .dropdown { #{$opposite-direction}: 100%; }
  571. }
  572. }
  573. .#{$default-float} {
  574. li .dropdown {
  575. #{$opposite-direction}: auto;
  576. #{$default-float}: 0;
  577. li .dropdown { #{$default-float}: 100%; }
  578. }
  579. }
  580. }
  581. // Degrade gracefully when Javascript is disabled. Displays dropdown and changes
  582. // background & text color on hover.
  583. .no-js .top-bar-section {
  584. ul li {
  585. // Apply the hover link color when it has that class
  586. &:hover > a {
  587. background-color: $topbar-link-bg-color-hover;
  588. @if ($topbar-link-bg-hover) {
  589. background: $topbar-link-bg-hover;
  590. }
  591. color: $topbar-link-color-hover;
  592. }
  593. // Apply the active link color when it has that class
  594. &:active > a {
  595. background: $topbar-link-bg-active;
  596. color: $topbar-link-color-active;
  597. }
  598. }
  599. .has-dropdown {
  600. &:hover {
  601. > .dropdown {
  602. @include topbar-show-dropdown();
  603. }
  604. }
  605. > a:focus + .dropdown {
  606. @include topbar-show-dropdown();
  607. }
  608. }
  609. }
  610. }
  611. }
  612. @media screen and (-webkit-min-device-pixel-ratio:0) {
  613. .top-bar.expanded .top-bar-section {
  614. .has-dropdown.moved > .dropdown {
  615. clip:initial;
  616. }
  617. .dropdown {
  618. clip:initial;
  619. }
  620. // This was needed as parent ul's had padding, which the clip: was allowing content to peak through
  621. .has-dropdown:not(.moved) > ul {
  622. padding: 0;
  623. }
  624. }
  625. }
  626. @media screen and (-webkit-min-device-pixel-ratio:0) {
  627. .top-bar.expanded .top-bar-section {
  628. .has-dropdown.moved > .dropdown {
  629. clip:initial;
  630. }
  631. .dropdown {
  632. clip:initial;
  633. }
  634. // This was needed as parent ul's had padding, which the clip: was allowing content to peak through
  635. .has-dropdown:not(.moved) > ul {
  636. padding: 0;
  637. }
  638. }
  639. }
  640. }