_navigation.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Needed until this is merged: https://github.com/WordPress/gutenberg/issues/35040
  2. .is-vertical.items-justified-right ul.wp-block-navigation__container {
  3. align-items: flex-end;
  4. }
  5. .wp-block-navigation.is-style-blockbase-navigation-improved-responsive {
  6. &.is-responsive .is-menu-open.wp-block-navigation__responsive-container {
  7. font-size: var(--wp--preset--font-size--large);
  8. font-weight: 200;
  9. .wp-block-navigation__container {
  10. row-gap: 1rem;
  11. }
  12. .wp-block-navigation__responsive-container-content { // Needed for specificity to beat the navigation block CSS
  13. align-items: flex-start;
  14. margin: 0 auto;
  15. max-width: 800px; // This should match the content width
  16. .wp-block-navigation-item {
  17. row-gap: 0rem;
  18. > a:hover {
  19. text-decoration-line: underline;
  20. }
  21. &.current-menu-item > a {
  22. text-decoration: underline;
  23. }
  24. }
  25. }
  26. .wp-block-navigation__responsive-container-content {
  27. flex-wrap: nowrap;
  28. justify-content: center;
  29. }
  30. ul.wp-block-social-links {
  31. padding-bottom: calc( var(--wp--custom--gap--vertical) * 2 );
  32. }
  33. .wp-block-navigation__responsive-container-content .has-child { // Needed for specificity to beat the navigation block CSS
  34. .wp-block-navigation__submenu-container {
  35. font-size: var(--wp--preset--font-size--medium);
  36. }
  37. }
  38. }
  39. }