2
0

_layout.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @import "variables";
  2. body {
  3. display: flex;
  4. flex-flow: row nowrap;
  5. align-items: stretch;
  6. justify-content: space-between;
  7. @media (max-width: $mobile-breakpoint) {
  8. flex-flow: column nowrap;
  9. }
  10. }
  11. #sidebar {
  12. @media (min-width: $mobile-breakpoint) {
  13. flex: 0 0 auto;
  14. height: 100vh;
  15. }
  16. @media (max-width: $mobile-breakpoint) {
  17. flex: 1 0 auto;
  18. width: 100vw;
  19. }
  20. }
  21. #sidebar-links {
  22. display: flex;
  23. flex-flow: column nowrap;
  24. justify-content: space-between;
  25. align-items: stretch;
  26. @media (max-width: $mobile-breakpoint) {
  27. flex-flow: row nowrap;
  28. }
  29. }
  30. .post-header {
  31. h1 {
  32. margin-top: 0;
  33. }
  34. .byline {
  35. display: flex;
  36. justify-content: space-between;
  37. margin-bottom: 1.375rem;
  38. @media (max-width: $tablet-breakpoint) {
  39. margin-bottom: 1.375rem;
  40. }
  41. @media (max-width: $mobile-breakpoint) {
  42. margin-bottom: 1.25rem;
  43. }
  44. }
  45. }
  46. #main {
  47. flex: 1 1 0;
  48. @media (min-width: $mobile-breakpoint) {
  49. height: 100vh;
  50. overflow-y: scroll;
  51. }
  52. }
  53. #prev-next {
  54. display: flex;
  55. align-items: center;
  56. flex-flow: row nowrap;
  57. justify-content: space-between;
  58. .prev, .next {
  59. display: flex;
  60. align-items: center;
  61. flex-flow: row nowrap;
  62. flex: 1 1 50%;
  63. fill: currentColor;
  64. text-decoration: none;
  65. .icon {
  66. flex: 0 0 1em;
  67. height: 1em;
  68. width: 1em;
  69. }
  70. .nav-text {
  71. flex: 1 1 0;
  72. margin-left: 1em;
  73. margin-right: 1em;
  74. text-align: center;
  75. }
  76. }
  77. }