_framework.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. html {
  2. height: 100%;
  3. }
  4. #body-wrapper {
  5. .container {
  6. padding: $vert-padding;
  7. }
  8. // Fixed Header solution
  9. .header-fixed & {
  10. padding-top: $header-height-large;
  11. }
  12. }
  13. .header-fixed {
  14. .hero + #start > #body-wrapper {
  15. padding-top: 0;
  16. }
  17. }
  18. section.section {
  19. padding-left: $horiz-padding;
  20. padding-right: $horiz-padding;
  21. position: relative;
  22. }
  23. .overlay-light, .overlay-dark, .overlay-light-gradient, .overlay-dark-gradient {
  24. z-index: 0;
  25. }
  26. // Hero
  27. .hero {
  28. display: flex;
  29. align-items: center;
  30. justify-content: center;
  31. padding-top: 6rem;
  32. padding-bottom: 7rem;
  33. background-size: cover;
  34. background-position: center;
  35. h1 {
  36. color: $header-text-dark;
  37. font-size: 4rem;
  38. }
  39. h2 {
  40. color: rgba($header-text-dark, 0.8);
  41. font-size: 2.5rem;
  42. }
  43. &.hero-fullscreen {
  44. min-height: 100vh;
  45. }
  46. &.hero-large {
  47. min-height: 500px;
  48. }
  49. &.hero-medium {
  50. min-height: 400px;
  51. }
  52. &.hero-small {
  53. min-height: 110px;
  54. }
  55. &.hero-tiny {
  56. min-height: 8rem;
  57. }
  58. .header-fixed & {
  59. background-position: 50% 0;
  60. }
  61. //&.parallax {
  62. // background-attachment: fixed;
  63. //}
  64. @include breakpoint(md) {
  65. h1 {
  66. font-size: 3rem;
  67. }
  68. h2 {
  69. font-size: 1.75rem;
  70. }
  71. }
  72. @include breakpoint(sm) {
  73. h1 {
  74. font-size: 2rem;
  75. }
  76. h2 {
  77. font-size: 1.25rem;
  78. }
  79. }
  80. &.text-light {
  81. h1 {
  82. color: $header-text-light;
  83. }
  84. h2 {
  85. color: rgba($header-text-light, 0.8);
  86. }
  87. }
  88. p {
  89. font-size: .9rem;
  90. font-weight: 300;
  91. }
  92. #to-start {
  93. display: inline-block;
  94. position: absolute;
  95. bottom: 10px;
  96. font-size: 2rem;
  97. cursor: pointer;
  98. }
  99. }
  100. // Overlay
  101. .image-overlay {
  102. position: absolute;
  103. top: 0;
  104. bottom: 0;
  105. left: 0;
  106. right: 0;
  107. z-index: -1;
  108. .overlay-light & {
  109. background: rgba(#fff, 0.4);
  110. }
  111. .overlay-light-gradient & {
  112. background: linear-gradient(to bottom, rgba(#fff,0.5), rgba(#fff,0.2));
  113. }
  114. .overlay-dark & {
  115. background: rgba(#000, 0.4);
  116. }
  117. .overlay-dark-gradient & {
  118. background: linear-gradient(to bottom, rgba(#000,0.5), rgba(#000,0.2));
  119. }
  120. }