_masthead.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .masthead {
  2. padding: 3rem 0 7rem;
  3. position: relative;
  4. background-color: $primary;
  5. background-image: url('/assets/img/overlay.svg'), linear-gradient(45deg, $primary 0%, #{darken($primary, 5%)} 100%);
  6. background-size: cover;
  7. z-index: 0;
  8. svg.wave {
  9. position: absolute;
  10. bottom: -1px;
  11. left: 0;
  12. }
  13. h1 {
  14. color: white;
  15. font-weight: 700;
  16. font-size: 2rem;
  17. line-height: 1.1;
  18. z-index: 1;
  19. }
  20. h2 {
  21. color: fade-out($white, 0.4);
  22. font-weight: 600;
  23. z-index: 1;
  24. font-size: 1.2rem;
  25. }
  26. a {
  27. color: fade-out($white, 0.2);
  28. text-decoration: underline;
  29. z-index: 1;
  30. &:hover {
  31. color: $white;
  32. }
  33. &:active {
  34. text-decoration: none;
  35. }
  36. }
  37. @include media-breakpoint-up(lg) {
  38. h1 {
  39. font-size: 3rem;
  40. }
  41. h2 {
  42. font-size: 1.5rem;
  43. }
  44. }
  45. .masthead-cards {
  46. position: relative;
  47. z-index: 1;
  48. .shape {
  49. position: absolute;
  50. height: 100%;
  51. width: 100%;
  52. background-color: fade-out($white, 0.7);
  53. top: 0;
  54. left: 0;
  55. z-index: -1;
  56. border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  57. }
  58. .card {
  59. opacity: 1;
  60. font-size: 0.8rem;
  61. text-transform: uppercase;
  62. font-weight: 800;
  63. letter-spacing: 0.05rem;
  64. color: $gray-900;
  65. transition: 0.15s all;
  66. &:hover {
  67. margin-top: -0.25rem;
  68. margin-bottom: 0.25rem;
  69. }
  70. &:active {
  71. margin-top: inherit;
  72. margin-bottom: inherit;
  73. }
  74. &.border-bottom-blue {
  75. &:hover {
  76. color: $blue;
  77. }
  78. }
  79. &.border-bottom-green {
  80. &:hover {
  81. color: $green;
  82. }
  83. }
  84. &.border-bottom-red {
  85. &:hover {
  86. color: $red;
  87. }
  88. }
  89. &.border-bottom-yellow {
  90. &:hover {
  91. color: $yellow;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. .masthead-page {
  98. padding: 1rem 0 4rem;
  99. @include media-breakpoint-up(lg) {
  100. h1 {
  101. font-size: 2.5rem;
  102. }
  103. }
  104. }
  105. @include media-breakpoint-up(lg) {
  106. .shadow-lg.shadow-hover:hover {
  107. box-shadow: $box-shadow-lg-hover !important;
  108. }
  109. .shadow-lg.shadow-hover:active {
  110. box-shadow: $box-shadow-lg;
  111. }
  112. }