_titles.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Centered page, post titles and subtitles
  2. //-------------------------------
  3. .page-title-container,
  4. .post-title-container {
  5. width: 100%;
  6. margin-bottom: 6rem;
  7. height: 20rem;
  8. text-align: center;
  9. position: relative;
  10. h1 {
  11. font-weight: $base-font-weight-bold;
  12. font-size: $post-title-size;
  13. border: 0; // reset
  14. a {
  15. display: block; // slide border needs to cover the whole heading
  16. @include border-slide(left)
  17. }
  18. }
  19. // heading container
  20. .heading-container {
  21. position: relative;
  22. top: 50%;
  23. transform: translateY(-50%);
  24. }
  25. }
  26. // Post meta under post title
  27. .post-meta {
  28. font-weight: $base-font-weight;
  29. font-size: 22px;
  30. color: var(--text-color-light);
  31. span {
  32. display: inline-block;
  33. margin-top: 0.5rem;
  34. font-size: 0.85em;
  35. a {
  36. color: var(--text-color-light);
  37. text-transform: lowercase;
  38. margin: .2em .25em;
  39. }
  40. }
  41. }
  42. @media (max-width: 48rem) {
  43. .page-title,
  44. .post-title {
  45. height: 10rem;
  46. margin-bottom: 2rem;
  47. h1 {
  48. font-size: 2.5rem;
  49. }
  50. }
  51. .post-meta {
  52. font-size: $mobile-font-size;
  53. }
  54. }
  55. // Hero layout off - blog post titles
  56. //-------------------------------
  57. .post-title-container-nohero {
  58. margin-bottom: 4rem;
  59. text-align: center;
  60. h1 {
  61. margin: 0;
  62. font-size: $blog-title-size;
  63. }
  64. }
  65. .post-meta-nohero {
  66. margin-top: 0.5rem;
  67. color: var(--text-color-light);
  68. font-weight: $base-font-weight;
  69. font-size: 0.75em;
  70. a {
  71. color: var(--text-color-light);
  72. margin: 0 .25em;
  73. text-transform: lowercase;
  74. }
  75. }
  76. .post-meta-link-nohero {
  77. margin: 0 .5em 0 .5em;
  78. }
  79. .no-hero-margin {
  80. margin-bottom: 0rem; // margin reset
  81. }
  82. @media (max-width: 48rem) {
  83. .post-title-container-nohero h1 {
  84. font-size: 2rem;
  85. }
  86. }