_next-previous.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* Next/Previous navigation */
  2. // Singular navigation
  3. .post-navigation {
  4. @extend %responsive-aligndefault;
  5. .meta-nav {
  6. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  7. }
  8. .post-title {
  9. font-family: #{map-deep-get($config-global, "font", "family", "primary")}; // For browsers without support for CSS variables.
  10. font-family: var( --font-headings, #{map-deep-get($config-global, "font", "family", "primary")} );
  11. font-size: #{map-deep-get($config-global, "font", "size", "lg")};
  12. font-weight: 600;
  13. }
  14. .nav-next,
  15. .nav-previous {
  16. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  17. margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
  18. &:first-child {
  19. margin-top: 0;
  20. }
  21. &:last-child {
  22. margin-bottom: 0;
  23. }
  24. }
  25. }
  26. // Index/archive navigation
  27. .pagination {
  28. @extend %responsive-aligndefault;
  29. .nav-links {
  30. justify-content: start;
  31. margin: 0 calc(-0.66 * #{map-deep-get($config-global, "spacing", "unit")});
  32. & > * {
  33. font-family: #{map-deep-get($config-global, "font", "family", "primary")}; // For browsers without support for CSS variables.
  34. font-family: var( --font-headings, #{map-deep-get($config-global, "font", "family", "primary")} );
  35. font-size: #{map-deep-get($config-global, "font", "size", "md")};
  36. font-weight: 600;
  37. padding-left: calc(0.66 * #{map-deep-get($config-global, "spacing", "unit")};
  38. padding-right: calc(0.66 * #{map-deep-get($config-global, "spacing", "unit")};
  39. }
  40. .svg-icon {
  41. display: inline-block;
  42. vertical-align: middle;
  43. }
  44. }
  45. }
  46. @include media(mobile) {
  47. .nav-links {
  48. display: flex;
  49. justify-content: space-between;
  50. .nav-next,
  51. .nav-previous {
  52. flex: 0 1 auto;
  53. margin-bottom: inherit;
  54. margin-top: inherit;
  55. max-width: calc(50% - (0.5 * #{map-deep-get($config-global, "spacing", "unit")}));
  56. }
  57. .nav-next {
  58. text-align: right;
  59. }
  60. }
  61. }