_widgets.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  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. /* Clear `.home-section` as padding and animation interferes with Slider's layout and animations. */
  175. .home-section.wg-slider {
  176. padding: 0;
  177. animation: none;
  178. animation-delay: unset;
  179. }
  180. /* The Slider widget reuses the Hero widget's `.wg-hero` class.
  181. * We must remove the `animation` and `clear` in this instance or
  182. * multiple slides can be `.active` at once. */
  183. .carousel-inner .wg-hero {
  184. animation: none;
  185. clear: none;
  186. }
  187. /*************************************************
  188. * Featurette Widget
  189. **************************************************/
  190. .featurette {
  191. font-size: 0.8rem;
  192. line-height: 1.5;
  193. color: #555;
  194. text-align: center;
  195. }
  196. .featurette h3 {
  197. margin-top: 0;
  198. margin-bottom: 5px;
  199. font-weight: 400;
  200. color: #333;
  201. }
  202. .dark .featurette,
  203. .dark .featurette h3 {
  204. color: #fff;
  205. }
  206. .featurette-icon {
  207. display: block;
  208. width: 100%;
  209. color: $sta-primary;
  210. font-size: 3rem;
  211. text-align: center;
  212. }
  213. /*************************************************
  214. * About widget
  215. **************************************************/
  216. #profile {
  217. text-align: center;
  218. padding: 30px 10px;
  219. position: relative;
  220. }
  221. .portrait {
  222. width: 200px;
  223. height: 200px;
  224. margin: 0 auto;
  225. border-radius: 50%;
  226. object-fit: cover;
  227. }
  228. .portrait-title h2 {
  229. font-size: 1.75em;
  230. font-weight: 300;
  231. color: #000000;
  232. margin: 20px 0 10px 0;
  233. }
  234. .portrait-title h3 {
  235. font-size: 1rem;
  236. font-weight: 300;
  237. color: rgba(0,0,0, 0.54);
  238. margin: 0px 0 10px 0;
  239. }
  240. ul.network-icon {
  241. display: inline-flex;
  242. flex-direction: row;
  243. flex-wrap: wrap;
  244. justify-content: center;
  245. list-style: none;
  246. padding: 0;
  247. }
  248. #profile .network-icon {
  249. margin-top: 30px;
  250. }
  251. .network-icon li {
  252. margin-right: 10px;
  253. }
  254. .network-icon li:last-of-type {
  255. margin-right: 0;
  256. }
  257. .network-icon li:hover {
  258. transform: scale(1.2)
  259. }
  260. .big-icon {
  261. font-size: 2rem;
  262. }
  263. ul.ul-interests li {
  264. font-size: 0.9rem;
  265. }
  266. ul.ul-edu {
  267. list-style: none;
  268. }
  269. ul.ul-edu li {
  270. position: relative;
  271. padding: 0px 15px 4px 3px;
  272. }
  273. ul.ul-edu li .description p {
  274. margin: 0;
  275. }
  276. ul.ul-edu li .description p.course {
  277. font-size: 0.9rem;
  278. }
  279. ul.ul-edu li .description p.institution {
  280. font-size: 0.75rem;
  281. color: rgba(0,0,0,0.6);
  282. }
  283. /*************************************************
  284. * Experience
  285. **************************************************/
  286. .exp-title {
  287. text-transform: none !important;
  288. }
  289. .exp-company {
  290. font-weight: normal !important;
  291. text-transform: none !important;
  292. }
  293. .exp-meta {
  294. font-size: 0.8rem;
  295. }
  296. .experience .card-text,
  297. .experience .card-text p {
  298. color: #000 !important;
  299. font-size: 0.75rem !important;
  300. }
  301. .dark .experience .text-muted {
  302. color: rgba(255, 255, 255, 0.8) !important;
  303. }
  304. .dark .experience .card-text,
  305. .dark .experience .card-text p {
  306. color: rgb(248, 248, 242) !important;
  307. }
  308. .card .card-text ul {
  309. margin-top: -1rem;
  310. margin-bottom: 0rem;
  311. }
  312. .experience .m-2 .border,
  313. .experience .col.border-right {
  314. border-color: $sta-primary !important;
  315. }
  316. .experience .m-2 .border.exp-fill {
  317. background-color: $sta-primary !important;
  318. }
  319. /*************************************************
  320. * Talks
  321. **************************************************/
  322. .talk-metadata {
  323. color: #4b4f56;
  324. font-size: 0.8rem;
  325. }
  326. /*************************************************
  327. * Projects
  328. **************************************************/
  329. .project-widget-simple li {
  330. margin-bottom: 1rem;
  331. }
  332. .project-widget-simple li:last-of-type {
  333. margin-bottom: 0;
  334. }
  335. .project-widget-simple .project-title {
  336. margin-bottom: 6px;
  337. }
  338. .project-widget-simple .project-summary {
  339. font-size: 0.9rem;
  340. margin-bottom: 0.4rem;
  341. }
  342. .projects-container {
  343. display: block;
  344. position: relative;
  345. /*margin-top: 5rem;*/
  346. overflow: hidden;
  347. }
  348. .project-toolbar{
  349. margin-bottom: 2rem;
  350. }
  351. .project-card {
  352. position: relative;
  353. width: calc(33.3% - 2*20px); /* Fluid 3 columns (inc. 20px gutter) */
  354. }
  355. @media screen and (max-width: 1199px) {
  356. .project-card {
  357. width: calc(50% - 20px); /* Fluid 2 columns (inc. 20px gutter) */
  358. }
  359. }
  360. @media screen and (max-width: 768px) {
  361. .project-card {
  362. width: 100%; /* 1 column */
  363. }
  364. }
  365. .project-item {
  366. margin-bottom: 1.5rem;
  367. }
  368. .project-card.project-item {
  369. margin: 0 0 20px 0; /* Set to Isotope's gutter size */
  370. }
  371. .project-card .card {
  372. margin: 0; /* Remove default card margin and use Isotope gutter */
  373. }
  374. .project-showcase .project-item {
  375. margin-bottom: 3rem;
  376. }
  377. .project-item:last-of-type {
  378. margin-bottom: 0;
  379. }
  380. .isotope-item {
  381. z-index: 2;
  382. }
  383. .isotope-item:hover{
  384. z-index: 3;
  385. }
  386. /*************************************************
  387. * Accomplishments
  388. **************************************************/
  389. .card.course {
  390. margin-bottom: 1rem; /* More compact spacing than Experience widget as typically more items here. */
  391. }
  392. .card.course:last-of-type {
  393. margin-bottom: 0;
  394. }
  395. .course .card-subtitle a {
  396. border-bottom: solid 1px transparent;
  397. }
  398. .course .card-subtitle a:hover {
  399. border-bottom: solid 1px;
  400. text-decoration: none;
  401. }
  402. /*************************************************
  403. * People widget
  404. **************************************************/
  405. .people-widget {
  406. font-size: 0.8rem;
  407. text-align: center;
  408. }
  409. .people-widget .portrait-title h2 {
  410. font-size: 1rem;
  411. }
  412. .people-widget .portrait-title h3 {
  413. font-size: 0.7rem;
  414. }
  415. .people-widget .portrait {
  416. width: 80%;
  417. max-width: 150px;
  418. height: auto;
  419. }
  420. @media (min-width: 576px) {
  421. .people-widget .col-sm-auto {
  422. max-width: 30% !important;
  423. }
  424. }
  425. @media (min-width: 992px) {
  426. .people-widget .col-sm-auto {
  427. max-width: 20% !important;
  428. }
  429. }
  430. /*************************************************
  431. * Contact
  432. **************************************************/
  433. .contact-widget .fa-ul {
  434. margin-left: 3.14285714rem; /* Must be > `fa-2x` icon size. */
  435. }
  436. .contact-widget .fa-li {
  437. position: absolute;
  438. left: -3.14285714rem; /* Negative of `.contact-widget .fa-ul` margin. */
  439. width: 2rem; /* Match `fa-2x` icon size. */
  440. top: 0.14285714em; /* Default FA value. */
  441. text-align: center;
  442. }
  443. .contact-widget li {
  444. padding-top: 0.8rem; /* Align text with bottom of `fa-2x` icon. */
  445. margin-bottom: 0.3rem;
  446. }
  447. .contact-widget li:last-of-type {
  448. margin-bottom: 0;
  449. }
  450. #map {
  451. height: 350px;
  452. width: 100%;
  453. }