_hero.scss 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Hero
  2. //-------------------------------
  3. // Hero heading colors
  4. .hero-heading {
  5. &-blog h1 {
  6. font-size: 3.25rem;
  7. margin: auto 5rem;
  8. }
  9. &-post h1 {
  10. font-size: 4.5rem;
  11. margin: auto 5rem;
  12. }
  13. h1 {
  14. color: $hero-heading-color!important;
  15. }
  16. span {
  17. color: $hero-date-color!important;
  18. }
  19. a {
  20. color: $hero-heading-color!important;
  21. }
  22. }
  23. @media (max-width: 48rem) {
  24. .hero-heading
  25. h1 {
  26. font-size: 2rem;
  27. margin: initial;
  28. }
  29. }
  30. // Hero hover dummy class, used only in blog layout
  31. .hero-hov {
  32. background: transparent;
  33. transition: background .25s ease;
  34. &:hover {
  35. background: rgba(0,0,0,.5);
  36. }
  37. }
  38. // Oversized hero in post layout
  39. .bleed-hero-container {
  40. width: 130%;
  41. height: 130%;
  42. margin: 0 -15% 0 -15%;
  43. }
  44. @media (max-width: 48rem) {
  45. .bleed-hero-container {
  46. width: 110%;
  47. margin: 0 -5% 0- 5%;
  48. }
  49. }
  50. // Container for hero image source link
  51. .post-source-img {
  52. background-color: rgba(0,0,0,.5);
  53. position: absolute;
  54. visibility: hidden;
  55. bottom: 0;
  56. left: 0;
  57. span {
  58. font-size: .85em;
  59. padding: .5rem;
  60. }
  61. .source {
  62. color: #fff;
  63. padding: .5rem;
  64. }
  65. .source-text {
  66. color: #ccc;
  67. margin-left: 3rem;
  68. }
  69. &:hover {
  70. visibility: visible;
  71. transition: all 0.5s ease;
  72. }
  73. &:before {
  74. position: absolute;
  75. font-family: 'icomoon';
  76. content: '\e894';
  77. bottom: 0;
  78. left: 0;
  79. padding: .5rem .75rem;
  80. visibility: visible;
  81. }
  82. &:hover:before {
  83. color: #fff;
  84. }
  85. }