_widgets.scss 11 KB

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