_navigation-fixed.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /*--------------------------------------------------------------*/
  2. /* !## Fixed Post Navigation */
  3. /*--------------------------------------------------------------*/
  4. .post-navigation-fixed {
  5. display: none;
  6. }
  7. @include breakpoint( desktop ) {
  8. .post-navigation-fixed {
  9. clip: rect( 0, auto, auto, 0 );
  10. display: block;
  11. height: 100%;
  12. position: absolute;
  13. width: 100%;
  14. top: 0;
  15. .nav-links {
  16. position: fixed;
  17. bottom: ( $baseline * 2 );
  18. width: 100%;
  19. z-index: 2;
  20. .nav-previous,
  21. .nav-next {
  22. display: block;
  23. float: left;
  24. margin-left: $gutter;
  25. overflow: visible;
  26. }
  27. .nav-next {
  28. float: right;
  29. margin-left: inherit;
  30. margin-right: $gutter;
  31. }
  32. a {
  33. @include font-size(1.5);
  34. display: block;
  35. height: 40px;
  36. width: 40px;
  37. -webkit-transition: all 0.3s ease;
  38. -moz-transition: all 0.3s ease;
  39. -o-transition: all 0.3s ease;
  40. -ms-transition: all 0.3s ease;
  41. transition: all 0.3s ease;
  42. .meta-nav {
  43. display: block;
  44. height: 40px;
  45. width: 40px;
  46. .arrow-icon {
  47. @include prefix( filter, drop-shadow( 1px 3px 2px rgba(0, 0, 0, 0.33) ) );
  48. overflow: visible;
  49. .circle,
  50. .arrow {
  51. stroke-miterlimit: 10;
  52. -webkit-transition: all 0.3s ease;
  53. -moz-transition: all 0.3s ease;
  54. -o-transition: all 0.3s ease;
  55. -ms-transition: all 0.3s ease;
  56. transition: all 0.3s ease;
  57. }
  58. .circle {
  59. fill: $color__background-body;
  60. stroke: $color__border-transparent;
  61. stroke-width: 1px;
  62. }
  63. .arrow {
  64. fill: none;
  65. stroke: $color__text-main;
  66. stroke-width: 2px;
  67. }
  68. }
  69. }
  70. &:active,
  71. &:hover,
  72. &:focus {
  73. @include animation('bounce-reveal 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)');
  74. opacity: 1;
  75. .meta-nav .arrow-icon .circle {
  76. fill: $color__link;
  77. stroke: $color__link
  78. }
  79. .meta-nav .arrow-icon .arrow {
  80. stroke: $color__background-body;
  81. }
  82. }
  83. }
  84. .nav-next a .meta-nav {
  85. margin-left: -3px;
  86. }
  87. }
  88. }
  89. }