_widgets.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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. margin: 0;
  251. }
  252. #profile .network-icon {
  253. margin-top: 30px;
  254. }
  255. .network-icon li {
  256. margin-right: 10px;
  257. }
  258. .network-icon li:last-of-type {
  259. margin-right: 0;
  260. }
  261. .network-icon li:hover {
  262. transform: scale(1.2)
  263. }
  264. .big-icon {
  265. font-size: 2rem;
  266. }
  267. ul.ul-interests li {
  268. font-size: 0.9rem;
  269. }
  270. ul.ul-edu {
  271. list-style: none;
  272. }
  273. ul.ul-edu li {
  274. position: relative;
  275. padding: 0px 15px 4px 3px;
  276. }
  277. ul.ul-edu li .description p {
  278. margin: 0;
  279. }
  280. ul.ul-edu li .description p.course {
  281. font-size: 0.9rem;
  282. }
  283. ul.ul-edu li .description p.institution {
  284. font-size: 0.75rem;
  285. color: rgba(0,0,0,0.6);
  286. }
  287. /*************************************************
  288. * Experience
  289. **************************************************/
  290. .exp-title {
  291. text-transform: none !important;
  292. }
  293. .exp-company {
  294. font-weight: normal !important;
  295. text-transform: none !important;
  296. }
  297. .exp-meta {
  298. font-size: 0.8rem;
  299. }
  300. .experience .card-text,
  301. .experience .card-text p {
  302. color: #000 !important;
  303. font-size: 0.75rem !important;
  304. }
  305. .dark .experience .text-muted {
  306. color: rgba(255, 255, 255, 0.8) !important;
  307. }
  308. .dark .experience .card-text,
  309. .dark .experience .card-text p {
  310. color: rgb(248, 248, 242) !important;
  311. }
  312. .card .card-text ul {
  313. margin-top: -1rem;
  314. margin-bottom: 0rem;
  315. }
  316. .experience .m-2 .border,
  317. .experience .col.border-right {
  318. border-color: $sta-primary !important;
  319. }
  320. .experience .m-2 .border.exp-fill {
  321. background-color: $sta-primary !important;
  322. }
  323. /*************************************************
  324. * Talks
  325. **************************************************/
  326. .talk-metadata {
  327. color: #4b4f56;
  328. font-size: 0.8rem;
  329. }
  330. /*************************************************
  331. * Projects
  332. **************************************************/
  333. .project-widget-simple li {
  334. margin-bottom: 1rem;
  335. }
  336. .project-widget-simple li:last-of-type {
  337. margin-bottom: 0;
  338. }
  339. .project-widget-simple .project-title {
  340. margin-bottom: 6px;
  341. }
  342. .project-widget-simple .project-summary {
  343. font-size: 0.9rem;
  344. margin-bottom: 0.4rem;
  345. }
  346. .projects-container {
  347. display: block;
  348. position: relative;
  349. /*margin-top: 5rem;*/
  350. overflow: hidden;
  351. }
  352. .project-toolbar{
  353. margin-bottom: 2rem;
  354. }
  355. .project-card {
  356. position: relative;
  357. width: calc(33.3% - 2*20px); /* Fluid 3 columns (inc. 20px gutter) */
  358. }
  359. @media screen and (max-width: 1199px) {
  360. .project-card {
  361. width: calc(50% - 20px); /* Fluid 2 columns (inc. 20px gutter) */
  362. }
  363. }
  364. @media screen and (max-width: 768px) {
  365. .project-card {
  366. width: 100%; /* 1 column */
  367. }
  368. }
  369. .project-item {
  370. margin-bottom: 1.5rem;
  371. }
  372. .project-card.project-item {
  373. margin: 0 0 20px 0; /* Set to Isotope's gutter size */
  374. }
  375. .project-card .card {
  376. margin: 0; /* Remove default card margin and use Isotope gutter */
  377. }
  378. .project-showcase .project-item {
  379. margin-bottom: 3rem;
  380. }
  381. .project-item:last-of-type {
  382. margin-bottom: 0;
  383. }
  384. .isotope-item {
  385. z-index: 2;
  386. }
  387. .isotope-item:hover{
  388. z-index: 3;
  389. }
  390. /*************************************************
  391. * Accomplishments
  392. **************************************************/
  393. .card.course {
  394. margin-bottom: 1rem; /* More compact spacing than Experience widget as typically more items here. */
  395. }
  396. .card.course:last-of-type {
  397. margin-bottom: 0;
  398. }
  399. .course .card-subtitle a {
  400. border-bottom: solid 1px transparent;
  401. }
  402. .course .card-subtitle a:hover {
  403. border-bottom: solid 1px;
  404. text-decoration: none;
  405. }
  406. /*************************************************
  407. * People widget
  408. **************************************************/
  409. .people-widget {
  410. font-size: 0.8rem;
  411. text-align: center;
  412. }
  413. .people-widget .portrait-title h2 {
  414. font-size: 1rem;
  415. }
  416. .people-widget .portrait-title h3 {
  417. font-size: 0.7rem;
  418. }
  419. .people-widget .portrait {
  420. width: 80%;
  421. max-width: 150px;
  422. height: auto;
  423. }
  424. @media (min-width: 576px) {
  425. .people-widget .col-sm-auto {
  426. width: 30%;
  427. }
  428. }
  429. @media (min-width: 992px) {
  430. .people-widget .col-sm-auto {
  431. width: 20%;
  432. }
  433. }
  434. /*************************************************
  435. * Contact
  436. **************************************************/
  437. .contact-widget .fa-ul {
  438. margin-left: 3.14285714rem; /* Must be > `fa-2x` icon size. */
  439. }
  440. .contact-widget .fa-li {
  441. position: absolute;
  442. left: -3.14285714rem; /* Negative of `.contact-widget .fa-ul` margin. */
  443. width: 2rem; /* Match `fa-2x` icon size. */
  444. top: 0.14285714em; /* Default FA value. */
  445. text-align: center;
  446. }
  447. .contact-widget li {
  448. padding-top: 0.8rem; /* Align text with bottom of `fa-2x` icon. */
  449. margin-bottom: 0.3rem;
  450. }
  451. .contact-widget li:last-of-type {
  452. margin-bottom: 0;
  453. }
  454. #map {
  455. height: 350px;
  456. width: 100%;
  457. }