_widgets.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. /*************************************************
  2. * Page Builder: sections and widgets
  3. **************************************************/
  4. @keyframes intro {
  5. 0% {
  6. opacity: 0;
  7. }
  8. 100% {
  9. opacity: 1;
  10. }
  11. }
  12. .home-section {
  13. background-color: $sta-home-section-odd;
  14. padding: 110px 0 110px 0;
  15. animation: intro 0.3s both;
  16. animation-delay: 0.15s;
  17. }
  18. /* Override dark colors that may be inherited from body.dark */
  19. .home-section.dark,
  20. .home-section.dark h1,
  21. .home-section.dark h2,
  22. .home-section.dark h3,
  23. .home-section.dark a:not(.btn) {
  24. color: rgb(248, 248, 242);
  25. }
  26. /* Underline links in dark sections to separate them from text */
  27. .home-section.dark a:not(.btn):not(.hero-cta-alt) {
  28. text-decoration: underline;
  29. }
  30. /* Revert Alert Box Link style (.home-section.dark style above should not be applied to it) */
  31. .home-section.dark .alert a {
  32. color: inherit !important;
  33. text-decoration: inherit !important;
  34. }
  35. /* Big underline style for links in dark sections */
  36. /* Disabled as it's an experimental style that requires CSS NOT Selector Level 4 (only in Safari) */
  37. /*
  38. .home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a) {
  39. text-decoration: none;
  40. position: relative;
  41. }
  42. .home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a):after {
  43. background: #fff;
  44. content: "";
  45. height: 2px;
  46. left: 0;
  47. right: 0;
  48. position: absolute;
  49. top: 100%;
  50. }*/
  51. /* Create the parallax scrolling effect */
  52. .parallax {
  53. height: 100%;
  54. background-attachment: fixed;
  55. background-position: center;
  56. background-repeat: no-repeat;
  57. background-size: cover;
  58. }
  59. .home-section:first-of-type {
  60. padding-top: 50px;
  61. }
  62. .home-section:nth-of-type(even) {
  63. background-color: $sta-home-section-even;
  64. }
  65. .dark .home-section {
  66. background-color: $sta-dark-home-section-odd;
  67. }
  68. .dark .home-section:nth-of-type(even) {
  69. background-color: $sta-dark-home-section-even;
  70. }
  71. @media screen and (max-width: 768px) {
  72. .home-section {
  73. padding: 60px 0 60px 0;
  74. }
  75. .home-section:first-of-type {
  76. padding-top: 40px;
  77. }
  78. }
  79. .section-heading h1 {
  80. margin: 0 0 10px 0;
  81. }
  82. .section-heading p {
  83. font-weight: 400;
  84. font-size: 1.1rem;
  85. color: #b2b2b2;
  86. }
  87. /*************************************************
  88. * Widgets (common)
  89. **************************************************/
  90. .see-all {
  91. margin-top: 2rem;
  92. text-transform: uppercase;
  93. }
  94. /* Reset code highlighting style in Alerts when Alert is child of a `.dark` widget, but Alert should be light.` */
  95. /* But will this affect page which should have dark Alert? */
  96. .dark .alert pre,
  97. .dark .alert code {
  98. color: initial;
  99. background-color: initial;
  100. }
  101. /*************************************************
  102. * Hero Widget
  103. **************************************************/
  104. .wg-hero {
  105. padding: 3em 0;
  106. clear: both;
  107. background-size: cover;
  108. background-repeat: no-repeat;
  109. background-position: center;
  110. animation: intro 0.3s both;
  111. animation-delay: 0s;
  112. animation-delay: 0.25s;
  113. }
  114. .hero-title {
  115. font-size: 2.7rem;
  116. margin-top: 0;
  117. line-height: 1;
  118. }
  119. .hero-lead {
  120. max-width: 768px;
  121. font-size: 1.35rem;
  122. }
  123. .wg-hero.dark .hero-title,
  124. .wg-hero.dark .hero-lead,
  125. .wg-hero.dark .hero-cta-alt,
  126. .wg-hero.dark .hero-note > * {
  127. color: #fff;
  128. /*text-shadow: 1px 1px 4px rgba(0,0,0,0.5);*/ /* Uncomment to standout on complicated backgrounds. */
  129. }
  130. .wg-hero.dark a:not(.wg-hero .btn) {
  131. color: #fff;
  132. }
  133. .wg-hero .hero-lead a {
  134. text-decoration: underline;
  135. }
  136. .wg-hero .cta-btns {
  137. margin-bottom: 16px;
  138. }
  139. .wg-hero .btn {
  140. padding: .6em 2.1em;
  141. }
  142. .wg-hero.dark .btn {
  143. color: $sta-primary-dark;
  144. }
  145. a.hero-cta-alt {
  146. display: inline-block;
  147. position: relative;
  148. transition-duration: .2s;
  149. transition-property: transform;
  150. transition-timing-function: ease-out;
  151. font-size: 1.1rem;
  152. }
  153. a.hero-cta-alt:active,
  154. a.hero-cta-alt:focus,
  155. a.hero-cta-alt:hover {
  156. transform: scale(1.1);
  157. }
  158. .wg-hero .btn-lg {
  159. font-size: 1.1rem;
  160. }
  161. .wg-hero .hero-note {
  162. font-size: 0.8rem;
  163. }
  164. .hero-media {
  165. display: flex;
  166. align-items: center;
  167. justify-content: center;
  168. height: 100%;
  169. text-align: center;
  170. }
  171. /*************************************************
  172. * Slider Widget
  173. **************************************************/
  174. /* The Slider widget reuses the Hero widget's `.wg-hero` class.
  175. * We must remove the `animation` and `clear` in this instance or
  176. * multiple slides can be `.active` at once. */
  177. .carousel-inner .wg-hero {
  178. animation: none;
  179. clear: none;
  180. }
  181. /*************************************************
  182. * Featurette Widget
  183. **************************************************/
  184. .featurette {
  185. font-size: 0.8rem;
  186. line-height: 1.5;
  187. color: #555;
  188. text-align: center;
  189. }
  190. .featurette h3 {
  191. margin-top: 0;
  192. margin-bottom: 5px;
  193. font-weight: 400;
  194. color: #333;
  195. }
  196. .dark .featurette,
  197. .dark .featurette h3 {
  198. color: #fff;
  199. }
  200. .featurette-icon {
  201. display: block;
  202. width: 100%;
  203. color: $sta-primary;
  204. font-size: 3rem;
  205. text-align: center;
  206. }
  207. /*************************************************
  208. * About widget
  209. **************************************************/
  210. #profile {
  211. text-align: center;
  212. padding: 30px 10px;
  213. position: relative;
  214. }
  215. .portrait {
  216. width: 200px;
  217. height: 200px;
  218. margin: 0 auto;
  219. border-radius: 50%;
  220. object-fit: cover;
  221. }
  222. .portrait-title h2 {
  223. font-size: 1.75em;
  224. font-weight: 300;
  225. color: #000000;
  226. margin: 20px 0 10px 0;
  227. }
  228. .portrait-title h3 {
  229. font-size: 1rem;
  230. font-weight: 300;
  231. color: rgba(0,0,0, 0.54);
  232. margin: 0px 0 10px 0;
  233. }
  234. ul.network-icon {
  235. display: inline-flex;
  236. flex-direction: row;
  237. flex-wrap: wrap;
  238. justify-content: center;
  239. list-style: none;
  240. padding: 0;
  241. }
  242. #profile .network-icon {
  243. margin-top: 30px;
  244. }
  245. .network-icon li {
  246. margin-right: 10px;
  247. }
  248. .network-icon li:last-of-type {
  249. margin-right: 0;
  250. }
  251. .network-icon li:hover {
  252. transform: scale(1.2)
  253. }
  254. .big-icon {
  255. font-size: 2rem;
  256. }
  257. ul.ul-interests li {
  258. font-size: 0.9rem;
  259. }
  260. ul.ul-edu {
  261. list-style: none;
  262. }
  263. ul.ul-edu li {
  264. position: relative;
  265. padding: 0px 15px 4px 3px;
  266. }
  267. ul.ul-edu li .description p {
  268. margin: 0;
  269. }
  270. ul.ul-edu li .description p.course {
  271. font-size: 0.9rem;
  272. }
  273. ul.ul-edu li .description p.institution {
  274. font-size: 0.75rem;
  275. color: rgba(0,0,0,0.6);
  276. }
  277. /*************************************************
  278. * Experience
  279. **************************************************/
  280. .exp-title {
  281. text-transform: none !important;
  282. }
  283. .exp-company {
  284. font-weight: normal !important;
  285. text-transform: none !important;
  286. }
  287. .exp-meta {
  288. font-size: 0.8rem;
  289. }
  290. .experience .card-text,
  291. .experience .card-text p {
  292. color: #000 !important;
  293. font-size: 0.75rem !important;
  294. }
  295. .dark .experience .text-muted {
  296. color: rgba(255, 255, 255, 0.8) !important;
  297. }
  298. .dark .experience .card-text,
  299. .dark .experience .card-text p {
  300. color: rgb(248, 248, 242) !important;
  301. }
  302. .card .card-text ul {
  303. margin-top: -1rem;
  304. margin-bottom: 0rem;
  305. }
  306. .experience .m-2 .border,
  307. .experience .col.border-right {
  308. border-color: $sta-primary !important;
  309. }
  310. .experience .m-2 .border.exp-fill {
  311. background-color: $sta-primary !important;
  312. }
  313. /*************************************************
  314. * Talks
  315. **************************************************/
  316. .talk-metadata {
  317. color: #4b4f56;
  318. font-size: 0.8rem;
  319. }
  320. /*************************************************
  321. * Projects
  322. **************************************************/
  323. .project-widget-simple li {
  324. margin-bottom: 1rem;
  325. }
  326. .project-widget-simple li:last-of-type {
  327. margin-bottom: 0;
  328. }
  329. .project-widget-simple .project-title {
  330. margin-bottom: 6px;
  331. }
  332. .project-widget-simple .project-summary {
  333. font-size: 0.9rem;
  334. margin-bottom: 0.4rem;
  335. }
  336. .projects-container {
  337. display: block;
  338. position: relative;
  339. /*margin-top: 5rem;*/
  340. overflow: hidden;
  341. }
  342. .project-toolbar{
  343. margin-bottom: 2rem;
  344. }
  345. .project-card {
  346. position: relative;
  347. width: calc(33.3% - 2*20px); /* Fluid 3 columns (inc. 20px gutter) */
  348. }
  349. @media screen and (max-width: 1199px) {
  350. .project-card {
  351. width: calc(50% - 20px); /* Fluid 2 columns (inc. 20px gutter) */
  352. }
  353. }
  354. @media screen and (max-width: 768px) {
  355. .project-card {
  356. width: 100%; /* 1 column */
  357. }
  358. }
  359. .project-item {
  360. margin-bottom: 1.5rem;
  361. }
  362. .project-card.project-item {
  363. margin: 0 0 20px 0; /* Set to Isotope's gutter size */
  364. }
  365. .project-card .card {
  366. margin: 0; /* Remove default card margin and use Isotope gutter */
  367. }
  368. .project-showcase .project-item {
  369. margin-bottom: 3rem;
  370. }
  371. .project-item:last-of-type {
  372. margin-bottom: 0;
  373. }
  374. .isotope-item {
  375. z-index: 2;
  376. }
  377. .isotope-item:hover{
  378. z-index: 3;
  379. }
  380. /*************************************************
  381. * Accomplishments
  382. **************************************************/
  383. .card.course {
  384. margin-bottom: 1rem; /* More compact spacing than Experience widget as typically more items here. */
  385. }
  386. .card.course:last-of-type {
  387. margin-bottom: 0;
  388. }
  389. .course .card-subtitle a {
  390. border-bottom: solid 1px transparent;
  391. }
  392. .course .card-subtitle a:hover {
  393. border-bottom: solid 1px;
  394. text-decoration: none;
  395. }
  396. /*************************************************
  397. * People widget
  398. **************************************************/
  399. .people-widget {
  400. font-size: 0.8rem;
  401. text-align: center;
  402. }
  403. .people-widget .portrait-title h2 {
  404. font-size: 1rem;
  405. }
  406. .people-widget .portrait-title h3 {
  407. font-size: 0.7rem;
  408. }
  409. .people-widget .portrait {
  410. width: 80%;
  411. max-width: 150px;
  412. height: auto;
  413. }
  414. @media (min-width: 576px) {
  415. .people-widget .col-sm-auto {
  416. max-width: 30% !important;
  417. }
  418. }
  419. @media (min-width: 992px) {
  420. .people-widget .col-sm-auto {
  421. max-width: 20% !important;
  422. }
  423. }
  424. /*************************************************
  425. * Contact
  426. **************************************************/
  427. .contact-widget .fa-ul {
  428. margin-left: 3.14285714rem; /* Must be > `fa-2x` icon size. */
  429. }
  430. .contact-widget .fa-li {
  431. position: absolute;
  432. left: -3.14285714rem; /* Negative of `.contact-widget .fa-ul` margin. */
  433. width: 2rem; /* Match `fa-2x` icon size. */
  434. top: 0.14285714em; /* Default FA value. */
  435. text-align: center;
  436. }
  437. .contact-widget li {
  438. padding-top: 0.8rem; /* Align text with bottom of `fa-2x` icon. */
  439. margin-bottom: 0.3rem;
  440. }
  441. .contact-widget li:last-of-type {
  442. margin-bottom: 0;
  443. }
  444. #map {
  445. height: 350px;
  446. width: 100%;
  447. }