_base.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. /*************************************************
  2. * Page Builder: sections and widgets
  3. **************************************************/
  4. .home-section {
  5. // Use `background` rather than `background-color` so it can support gradients in theme packs.
  6. background: $sta-home-section-odd;
  7. position: relative; // Required for component positioning within section.
  8. padding: 110px 0 110px 0;
  9. z-index: 0; // Explicit z-order otherwise `.home-section-bg` can be hidden by any `.home-section` background.
  10. }
  11. // Responsive fullscreen option for widgets
  12. .home-section.fullscreen {
  13. min-height: calc(100vh - 70px);
  14. }
  15. @include media-breakpoint-down(md) {
  16. .home-section.fullscreen {
  17. min-height: calc(100vh - 50px);
  18. }
  19. }
  20. .no-navbar .home-section.fullscreen {
  21. min-height: 100vh;
  22. }
  23. // Section theming
  24. .home-section.light,
  25. .home-section.light h1 {
  26. color: #000;
  27. }
  28. .home-section.light a {
  29. color: $sta-link;
  30. }
  31. .home-section.dark a {
  32. color: $sta-dark-link;
  33. }
  34. /* Override dark colors that may be inherited from body.dark */
  35. .home-section.dark,
  36. .home-section.dark h1,
  37. .home-section.dark h2,
  38. .home-section.dark h3,
  39. .home-section.dark a:not(.btn) {
  40. color: #fff;
  41. }
  42. /* Underline links in dark sections to separate them from text */
  43. .home-section.dark a:not(.btn):not(.hero-cta-alt) {
  44. text-decoration: underline;
  45. }
  46. /* Revert Alert Box Link style (.home-section.dark style above should not be applied to it) */
  47. .home-section.dark .alert a {
  48. color: inherit !important;
  49. text-decoration: inherit !important;
  50. }
  51. /* Big underline style for links in dark sections */
  52. /* Disabled as it's an experimental style that requires CSS NOT Selector Level 4 (only in Safari) */
  53. /*
  54. .home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a) {
  55. text-decoration: none;
  56. position: relative;
  57. }
  58. .home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a):after {
  59. background: #fff;
  60. content: "";
  61. height: 2px;
  62. left: 0;
  63. right: 0;
  64. position: absolute;
  65. top: 100%;
  66. } */
  67. // Fill padding of `.home-section` parent
  68. .home-section-bg {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. height: 100%; // Or fill-available when supported.
  73. width: 100%; // Or fill-available when supported.
  74. z-index: -1; // Place bg div behind content.
  75. }
  76. /* Default background image properties for home sections. */
  77. .home-section-bg.bg-image {
  78. background-position: center;
  79. background-repeat: no-repeat;
  80. background-size: cover;
  81. }
  82. /* Create a parallax-like scrolling effect on desktop browsers. */
  83. .parallax {
  84. background-attachment: fixed;
  85. }
  86. // Workaround issue with mobile browser support for fixed parallax background.
  87. @include media-breakpoint-down(md) {
  88. .parallax {
  89. background-attachment: scroll;
  90. }
  91. }
  92. .home-section:first-of-type {
  93. padding-top: 50px;
  94. }
  95. .home-section:nth-of-type(even) {
  96. background: $sta-home-section-even;
  97. }
  98. .dark .home-section {
  99. background: $sta-dark-home-section-odd;
  100. }
  101. .dark .home-section:nth-of-type(even) {
  102. background: $sta-dark-home-section-even;
  103. }
  104. @media screen and (max-width: 768px) {
  105. .home-section {
  106. padding: 60px 0 60px 0;
  107. }
  108. .home-section:first-of-type {
  109. padding-top: 40px;
  110. }
  111. }
  112. .section-heading h1 {
  113. margin: 0 0 10px 0;
  114. }
  115. .section-subheading {
  116. font-size: 1.25rem;
  117. font-family: $sta-font-heading, sans-serif;
  118. font-weight: bold;
  119. margin-top: 1rem;
  120. margin-bottom: 0.5rem;
  121. }
  122. .section-heading p {
  123. font-weight: 400;
  124. font-size: 1.1rem;
  125. color: rgba(0, 0, 0, 0.54); // Accessible contrast, matching footer text color.
  126. }
  127. .dark .section-heading p {
  128. color: rgb(158, 158, 158);
  129. }
  130. /*************************************************
  131. * Widgets (common)
  132. **************************************************/
  133. .see-all {
  134. margin-top: 2rem;
  135. text-transform: uppercase;
  136. }
  137. /* Reset code highlighting style in Alerts when Alert is child of a `.dark` widget, but Alert should be light.` */
  138. /* But will this affect page which should have dark Alert? */
  139. .dark .alert pre,
  140. .dark .alert code {
  141. color: initial;
  142. background-color: initial;
  143. }
  144. /*************************************************
  145. * Slider Widget
  146. **************************************************/
  147. /* Clear `.home-section` as any padding or animation interferes with Slider's layout and animations. */
  148. .home-section.wg-slider {
  149. padding: 0;
  150. animation: none;
  151. animation-delay: unset;
  152. }
  153. /* The Slider widget reuses the Hero widget's `.wg-hero` class.
  154. * We must remove any `animation` and `clear` (although Hero no longer sets `clear: both`) in this instance or
  155. * multiple slides can be `.active` at once. */
  156. .carousel-inner .wg-hero {
  157. animation: none;
  158. clear: none;
  159. }
  160. /*************************************************
  161. * Talks
  162. **************************************************/
  163. .talk-metadata {
  164. color: #4b4f56;
  165. font-size: 0.8rem;
  166. }
  167. /*************************************************
  168. * Accomplishments
  169. **************************************************/
  170. .card.course {
  171. margin-bottom: 1rem; /* More compact spacing than Experience widget as typically more items here. */
  172. }
  173. .card.course:last-of-type {
  174. margin-bottom: 0;
  175. }
  176. .course .card-subtitle a {
  177. border-bottom: solid 1px transparent;
  178. }
  179. .course .card-subtitle a:hover {
  180. border-bottom: solid 1px;
  181. text-decoration: none;
  182. }