_navigation.scss 820 B

12345678910111213141516171819202122232425
  1. .wp-block-navigation__responsive-container {
  2. &.has-modal-open {
  3. .wp-block-navigation-link {
  4. //NOTE: For reasons I cannot explain... if I set this to use the --wp--preset--font-family--headings
  5. //these values (which are what are set) are not respected in the modal.
  6. font-family: var(--wp--preset--font-family--headings);
  7. font-size: 32px;
  8. font-weight: 400;
  9. line-height: 60px;
  10. &.has-child {
  11. .wp-block-navigation-link{
  12. font-style: italic;
  13. font-size: 24px;
  14. line-height: 30px;
  15. }
  16. }
  17. }
  18. }
  19. }
  20. /* NOTE: This can be removed when the rendering of the Navigation block, rendered with a Classic data source (by way of __unstableLocation),
  21. is passed all of the block attributes on the block definition in the template. */
  22. .wp-block-navigation__container {
  23. justify-content: center;
  24. }