_widgets.scss 10 KB

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