_navigation.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. @import "../components/navigation/navigation-top";
  2. @import "../components/navigation/social-menu";
  3. @import "../components/navigation/navigation-fixed";
  4. .comment-navigation,
  5. .posts-navigation,
  6. .post-navigation {
  7. align-items: flex-start;
  8. border-top: 1px solid $color__border-transparent;
  9. clear: both;
  10. display: flex;
  11. flex-wrap: wrap;
  12. overflow: hidden;
  13. padding: ($baseline * 1.5) 0 ($baseline * 1.5);
  14. position: relative;
  15. z-index: 3;
  16. .screen-reader-text {
  17. @include show-screen-reader-text();
  18. @include widget-title();
  19. color: $color__link-hover;
  20. margin: 0 0 ($baseline * .5);
  21. padding: 0 ($gutter / 2);
  22. width: 100%;
  23. flex: 1 1 100%;
  24. }
  25. .nav-links {
  26. flex: 2 1 calc((100% / 8) * 6);
  27. a {
  28. display: block;
  29. padding: 0 ($gutter / 2);
  30. }
  31. }
  32. .nav-previous,
  33. .nav-next {
  34. @include nav-title();
  35. }
  36. .nav-previous {
  37. float: left;
  38. width: 50%;
  39. }
  40. .nav-next {
  41. float: right;
  42. width: 50%;
  43. }
  44. .meta-nav {
  45. @include list-item();
  46. color: #CCC;
  47. display: block;
  48. font-family: $font__main;
  49. font-style: normal;
  50. }
  51. }
  52. .comment-navigation {
  53. border-top: 1px solid $color__border-transparent;
  54. margin: 0;
  55. padding-left: 0;
  56. padding-right: 0;
  57. width: 100%;
  58. }
  59. @include breakpoint( mobileonly ) {
  60. .post-navigation, {
  61. .nav-previous,
  62. .nav-next {
  63. float: none;
  64. width: 100%;
  65. }
  66. .nav-links .nav-previous + .nav-next {
  67. margin-top: $mobile-baseline;
  68. }
  69. }
  70. .comment-navigation {
  71. border-bottom: 1px solid $color__border-transparent;
  72. margin: 0 0 ( $baseline * 1.5 );
  73. .screen-reader-text {
  74. display: none;
  75. }
  76. }
  77. .posts-navigation {
  78. border-top: none;
  79. .screen-reader-text {
  80. display: none;
  81. }
  82. }
  83. }
  84. @include breakpoint( tabletonly ) {
  85. .posts-navigation {
  86. .screen-reader-text {
  87. display: none;
  88. }
  89. }
  90. .comment-navigation {
  91. border-bottom: 1px solid $color__border-transparent;
  92. }
  93. }
  94. @include breakpoint( tablet ) {
  95. .comment-navigation,
  96. .post-navigation {
  97. padding: ($baseline * 1.5) 0 ($baseline * 1.5);
  98. .screen-reader-text {
  99. margin: 0;
  100. padding: 0 ($gutter / 2);
  101. flex: 1 1 calc((100% / 8) * 2);
  102. }
  103. }
  104. .posts-navigation {
  105. padding: ($baseline * 1.5) 0 ($baseline * 1.5);
  106. .screen-reader-text {
  107. margin: 0;
  108. padding: 0 ($gutter / 2);
  109. flex: 1 1 calc((100% / 8) * 2);
  110. }
  111. }
  112. .comment-navigation {
  113. padding: ($baseline * 1.5) 0 ($baseline * 1.5);
  114. }
  115. }