_framework.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. &.hero-fullscreen {
  36. height: 100vh;
  37. }
  38. &.hero-large {
  39. height: 500px;
  40. }
  41. &.hero-medium {
  42. height: 400px;
  43. }
  44. &.hero-small {
  45. height: 110px;
  46. }
  47. &.hero-tiny {
  48. height: 8rem;
  49. }
  50. .header-fixed & {
  51. background-position: 50% 0;
  52. }
  53. //&.parallax {
  54. // background-attachment: fixed;
  55. //}
  56. h1 {
  57. color: $header-text-dark;
  58. font-size: 4rem !important;
  59. }
  60. h2 {
  61. color: rgba($header-text-dark, 0.8);
  62. font-size: 2.5rem !important;
  63. }
  64. h1 + h2 {
  65. margin-top: -45px !important;
  66. }
  67. &.text-light {
  68. h1 {
  69. color: $header-text-light;
  70. }
  71. h2 {
  72. color: rgba($header-text-light, 0.8);
  73. }
  74. }
  75. p {
  76. font-size: 130%;
  77. font-weight: 300;
  78. }
  79. #to-start {
  80. display: inline-block;
  81. position: absolute;
  82. bottom: 10px;
  83. font-size: 2rem;
  84. cursor: pointer;
  85. }
  86. }
  87. // Overlay
  88. .image-overlay {
  89. position: absolute;
  90. top: 0;
  91. bottom: 0;
  92. left: 0;
  93. right: 0;
  94. z-index: -1;
  95. .overlay-light & {
  96. background: rgba(#fff, 0.4);
  97. }
  98. .overlay-light-gradient & {
  99. background: linear-gradient(to bottom, rgba(#fff,0.5), rgba(#fff,0.2));
  100. }
  101. .overlay-dark & {
  102. background: rgba(#000, 0.4);
  103. }
  104. .overlay-dark-gradient & {
  105. background: linear-gradient(to bottom, rgba(#000,0.5), rgba(#000,0.2));
  106. }
  107. }