_widgets.scss 10 KB

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