_widgets.scss 11 KB

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