recent-posts.scss 535 B

1234567891011121314151617181920212223242526272829303132
  1. .recent-posts-section {
  2. .container {
  3. padding-top: 1rem;
  4. }
  5. h1 > span {
  6. margin-top: -55px; /* Size of fixed header */
  7. padding-bottom: 55px;
  8. display: block;
  9. }
  10. @include media('<medium') {
  11. .post-card {
  12. margin-left: 1%;
  13. margin-right: 1%;
  14. width: 98%;
  15. }
  16. }
  17. @include media('>=medium', '<large') {
  18. .container {
  19. max-width: 100%;
  20. }
  21. .post-card {
  22. width: calc(100% / 2);
  23. }
  24. }
  25. @include media('>=large') {
  26. .post-card {
  27. width: calc(100% / 3);
  28. }
  29. }
  30. }