_base.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. .bg-video {
  83. position: absolute;
  84. top: 0;
  85. max-height: initial; // Override general `video` selector's max-height.
  86. }
  87. .bg-video.flip {
  88. transform: rotateY(180deg);
  89. }
  90. /* Create a parallax-like scrolling effect on desktop browsers. */
  91. .parallax {
  92. background-attachment: fixed;
  93. }
  94. // Workaround issue with mobile browser support for fixed parallax background.
  95. @include media-breakpoint-down(md) {
  96. .parallax {
  97. background-attachment: scroll;
  98. }
  99. }
  100. .home-section:first-of-type {
  101. padding-top: 50px;
  102. }
  103. .home-section:nth-of-type(even) {
  104. background: $sta-home-section-even;
  105. }
  106. .dark .home-section {
  107. background: $sta-dark-home-section-odd;
  108. }
  109. .dark .home-section:nth-of-type(even) {
  110. background: $sta-dark-home-section-even;
  111. }
  112. @media screen and (max-width: 768px) {
  113. .home-section {
  114. padding: 60px 0 60px 0;
  115. }
  116. .home-section:first-of-type {
  117. padding-top: 40px;
  118. }
  119. }
  120. .section-heading h1 {
  121. margin: 0 0 10px 0;
  122. }
  123. .section-subheading {
  124. font-size: 1.25rem;
  125. font-family: $sta-font-heading, sans-serif;
  126. font-weight: bold;
  127. margin-top: 1rem;
  128. margin-bottom: 0.5rem;
  129. }
  130. .section-heading p {
  131. font-weight: 400;
  132. font-size: 1.1rem;
  133. color: rgba(0, 0, 0, 0.54); // Accessible contrast, matching footer text color.
  134. }
  135. .dark .section-heading p {
  136. color: rgb(158, 158, 158);
  137. }
  138. /*************************************************
  139. * Widgets (common)
  140. **************************************************/
  141. .see-all {
  142. margin-top: 2rem;
  143. text-transform: uppercase;
  144. }
  145. /* Reset code highlighting style in Alerts when Alert is child of a `.dark` widget, but Alert should be light.` */
  146. /* But will this affect page which should have dark Alert? */
  147. .dark .alert pre,
  148. .dark .alert code {
  149. color: initial;
  150. background-color: initial;
  151. }
  152. /*************************************************
  153. * Slider Widget
  154. **************************************************/
  155. /* Clear `.home-section` as any padding or animation interferes with Slider's layout and animations. */
  156. .home-section.wg-slider {
  157. padding: 0;
  158. animation: none;
  159. animation-delay: unset;
  160. }
  161. /* The Slider widget reuses the Hero widget's `.wg-hero` class.
  162. * We must remove any `animation` and `clear` (although Hero no longer sets `clear: both`) in this instance or
  163. * multiple slides can be `.active` at once. */
  164. .carousel-inner .wg-hero {
  165. animation: none;
  166. clear: none;
  167. }
  168. /*************************************************
  169. * Talks
  170. **************************************************/
  171. .talk-metadata {
  172. color: #4b4f56;
  173. font-size: 0.8rem;
  174. }
  175. /*************************************************
  176. * Accomplishments
  177. **************************************************/
  178. .card.course {
  179. margin-bottom: 1rem; /* More compact spacing than Experience widget as typically more items here. */
  180. }
  181. .card.course:last-of-type {
  182. margin-bottom: 0;
  183. }
  184. .course .card-subtitle a {
  185. border-bottom: solid 1px transparent;
  186. }
  187. .course .card-subtitle a:hover {
  188. border-bottom: solid 1px;
  189. text-decoration: none;
  190. }