Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.46 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800');
  2.  
  3. /*********************/
  4. /* Defaults */
  5. /*********************/
  6.  
  7. * {
  8. font-family: 'Open Sans', sans-serif;
  9. -webkit-tap-highlight-color: transparent;
  10. -webkit-touch-callout: none;
  11. -webkit-user-select: none;
  12. -khtml-user-select: none;
  13. -moz-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. }
  17.  
  18. *:focus {
  19. outline: none !important;
  20. }
  21.  
  22. html {
  23. scroll-behavior: smooth;
  24. font-size: 1em;
  25. }
  26.  
  27. body {
  28. width: 100%;
  29. height: 100%;
  30. padding: 0;
  31. margin: 0;
  32. }
  33.  
  34. b,
  35. strong,
  36. .bold {
  37. text-decoration: inherit;
  38. font-weight: 700;
  39. font-style: inherit;
  40. }
  41.  
  42. i,
  43. em,
  44. .italic {
  45. text-decoration: inherit;
  46. font-weight: inherit;
  47. font-style: italic;
  48. }
  49.  
  50. u,
  51. .underline {
  52. text-decoration: underline;
  53. font-weight: inherit;
  54. font-style: inherit;
  55. }
  56.  
  57. .container {
  58. box-sizing: border-box;
  59. width: 100%;
  60. padding: 0 3rem;
  61. max-width: 1150px;
  62. margin: 0 auto;
  63. }
  64.  
  65. .container-flex {
  66. display: flex;
  67. flex-direction: column;
  68. }
  69.  
  70. .center {
  71. text-align: center;
  72. }
  73.  
  74. /* Remove chrome outline */
  75.  
  76. input:focus,
  77. select:focus,
  78. textarea:focus {
  79. outline: none !important;
  80. }
  81.  
  82. input::placeholder,
  83. select::placeholder,
  84. textarea::placeholder {
  85. color: #9d9d9d;
  86. }
  87.  
  88. /*********************/
  89. /* message */
  90. /*********************/
  91.  
  92. #message {
  93. z-index: 1000;
  94. position: fixed;
  95. top: 0;
  96. left: 0;
  97. right: 0;
  98. width: 100%;
  99. text-align: center;
  100. background-color: darkorchid;
  101. color: #ffffff;
  102. }
  103.  
  104. #message ~ #header {
  105. top: 42px;
  106. }
  107.  
  108. #message p {
  109. color: #ffffff;
  110. margin: 10px 0;
  111. }
  112.  
  113. /*********************/
  114. /* header */
  115. /*********************/
  116.  
  117. #header {
  118. z-index: 999;
  119. position: fixed;
  120. top: 0;
  121. left: 0;
  122. right: 0;
  123. width: 100%;
  124. transition: all 0.2s ease-in-out;
  125. background-color: rgba(255, 255, 255, 0);
  126. /* border-bottom: 1px solid rgba(255,255,255,0); */
  127. box-shadow: 0 0 7px rgba(0, 0, 0, 0);
  128. background-color: #f1efef;
  129. }
  130.  
  131. #header.scrolled {
  132. background-color: #f1efef;
  133. border-bottom: 0.1rem solid #718093;
  134. /* box-shadow: 0 0 7px rgba(0, 0, 0, 0.1); */
  135. }
  136.  
  137. #header.scrolled #brand {
  138. font-size: 30px;
  139. margin: 10px 0;
  140. }
  141.  
  142. #header.scrolled #nav ul {
  143. margin: 19.5px 0;
  144. }
  145.  
  146. #header.scrolled #nav-mobile-open {
  147. top: 15px;
  148. font-size: 25px;
  149. }
  150.  
  151. /* brand */
  152.  
  153. #header #brand {
  154. float: left;
  155. color: #343434;
  156. font-size: 40px;
  157. font-weight: 800;
  158. margin: 20px 0;
  159. transition: all 0.2s ease-in-out;
  160. }
  161.  
  162. /* nav */
  163.  
  164. #header #nav {
  165. float: right;
  166. }
  167.  
  168. #header #nav ul {
  169. float: right;
  170. list-style: none;
  171. margin: 36px 0;
  172. height: 22px;
  173. }
  174.  
  175. #header #nav ul li {
  176. float: left;
  177. font-size: 16px;
  178. font-weight: 600;
  179. box-sizing: border-box;
  180. }
  181.  
  182. #header #nav ul li a {
  183. font-size: 16px;
  184. font-weight: 600;
  185. text-decoration: none;
  186. padding: 0 22.5px;
  187. color: #333333;
  188. }
  189.  
  190. #header #nav ul li a.current {
  191. font-weight: 800;
  192. }
  193.  
  194. #header #nav .switch-language {
  195. padding: 10px;
  196. opacity: 0.6;
  197. cursor: pointer;
  198. transition: opacity 0.2s ease-in;
  199. }
  200.  
  201. #header #nav .switch-language:hover {
  202. opacity: 1;
  203. }
  204.  
  205. /*********************/
  206. /* hero */
  207. /*********************/
  208.  
  209. #hero {
  210. width: 100%;
  211. height: 100vh;
  212. min-height: 500px;
  213. max-height: 1080px;
  214. background-color: #f1efef;
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. }
  219.  
  220. #hero #hero-content {
  221. text-align: center;
  222. width: 100%;
  223. }
  224.  
  225. #hero #hero-content h2 {
  226. font-size: 3.2rem;
  227. font-weight: 300;
  228. margin: 0;
  229. color: #343434;
  230. }
  231.  
  232. #hero #hero-content #hero-vertical-slider {
  233. overflow: hidden;
  234. /* height: 55px; */
  235. }
  236. #hero #hero-content #hero-vertical-slider h3 {
  237. font-weight: 500;
  238. font-size: 3rem;
  239. line-height: 3.2rem;
  240. color: #343434;
  241. margin: 20px 0;
  242. }
  243.  
  244. /*********************/
  245. /* projects */
  246. /*********************/
  247.  
  248. #projects {
  249. width: 100%;
  250. padding: 0 0 6rem 0;
  251. box-sizing: border-box;
  252. background-color: #353b48;
  253. }
  254.  
  255. #projects svg {
  256. padding-bottom: 3rem;
  257. }
  258.  
  259. #projects #projects-title {
  260. text-align: center;
  261. color: #efefef;
  262. font-size: 2.2rem;
  263. margin-bottom: 4rem;
  264. }
  265.  
  266. #projects #projects-container .project {
  267. background-repeat: no-repeat;
  268. background-size: cover;
  269. background-position: center center;
  270. display: flex;
  271. /* padding: 2rem; */
  272. box-sizing: border-box;
  273. background-color: #ffffff;
  274. box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  275. border-radius: 0.2rem;
  276. overflow: hidden;
  277. text-decoration: none;
  278. display: flex;
  279. flex-direction: column;
  280. width: 100%;
  281. }
  282.  
  283. #projects #projects-container .project a .project-image {
  284. background-size: cover;
  285. background-position: center center;
  286. background-repeat: no-repeat;
  287. width: 100%;
  288. height: 260px;
  289. box-sizing: border-box;
  290. display: block;
  291. }
  292.  
  293. #projects #projects-container .project .project-content {
  294. padding: 1.5rem;
  295. text-align: center;
  296. }
  297.  
  298. #projects #projects-container .project .project-content .project-title {
  299. margin: 0;
  300. color: #343434;
  301. font-size: 1.6rem;
  302. text-align: left;
  303. }
  304.  
  305. #projects #projects-container .project .project-content .project-description {
  306. color: #54595f;
  307. text-align: left;
  308. }
  309.  
  310. #projects #projects-container .project .project-content .project-tags {
  311. display: inline-block;
  312. width: 100%;
  313. margin-bottom: 3rem;
  314. text-align: left;
  315. }
  316.  
  317. #projects #projects-container .project .project-content .project-tags .project-tag {
  318. background-color: #45aaf2;
  319. color: #efefef;
  320. padding: 0.3rem 1rem;
  321. margin: 0.5rem 1rem 0.5rem 0;
  322. border-radius: 1rem;
  323. cursor: default;
  324. display: inline-block;
  325. }
  326.  
  327. #projects #projects-container .project .project-content .project-view {
  328. text-decoration: none;
  329. color: #353b48;
  330. background-color: #ffffff;
  331. border: 0.1rem solid #353b48;
  332. padding: 0.4rem 0.6rem;
  333. border-radius: 0.2rem;
  334. margin-right: 1rem;
  335. font-weight: bold;
  336. transition: color 0.2s ease-in, background-color 0.2s ease-in;
  337. box-sizing: border-box;
  338. }
  339.  
  340. #projects #projects-container .project .project-content .project-view:hover {
  341. background-color: #353b48;
  342. color: #ffffff;
  343. }
  344.  
  345. #projects #projects-container .project .project-content .project-source-code {
  346. margin-left: 1rem;
  347. color: #353b48;
  348. text-decoration: none;
  349. color: #353b48;
  350. background-color: #ffffff;
  351. border: 0.1rem solid #ffffff;
  352. padding: 0.4rem 0.6rem;
  353. border-radius: 0.2rem;
  354. font-weight: bold;
  355. box-sizing: border-box;
  356. }
  357.  
  358. #projects #projects-container .project .project-content a.project-source-code {
  359. text-decoration: none;
  360. opacity: 0.8;
  361. transition: opacity 0.2s ease-in;
  362. }
  363.  
  364. #projects #projects-container .project .project-content a.project-source-code:hover {
  365. opacity: 1;
  366. }
  367.  
  368. #projects #projects-container .project .project-content span.project-source-code {
  369. text-decoration: line-through;
  370. opacity: 0.3;
  371. cursor: default;
  372. }
  373.  
  374. /*********************/
  375. /* about-me */
  376. /*********************/
  377.  
  378. #about-me {
  379. width: 100%;
  380. padding: 8rem 0 8rem 0;
  381. box-sizing: border-box;
  382. text-align: center;
  383. border-bottom: 0.08rem solid #353b48;
  384. }
  385.  
  386. #about-me #about-me-container {
  387. display: grid;
  388. grid-template-columns: repeat(2, 1fr);
  389. }
  390.  
  391. #about-me #about-me-container #about-me-info {
  392. text-align: left;
  393. }
  394.  
  395. #about-me #about-me-container #about-me-photo img {
  396. width: 20rem;
  397. border-radius: 10rem;
  398. }
  399.  
  400. #about-me #about-me-container #about-me-info #about-me-info-name {
  401. font-size: 2.1rem;
  402. margin-bottom: 1.1rem;
  403. padding: 0 0.5rem;
  404. }
  405.  
  406. #about-me #about-me-container #about-me-info #about-me-info-description {
  407. display: inline-block;
  408. border-top: 0.08rem solid #9d9d9d;
  409. /* border-bottom: 0.08rem solid #9d9d9d; */
  410. margin-bottom: 1rem;
  411. }
  412.  
  413. #about-me #about-me-container #about-me-info #about-me-info-description p {
  414. margin: 0 0 0.8rem 0;
  415. padding: 0 0.5rem;
  416. }
  417.  
  418. #about-me #about-me-container #about-me-info #about-me-info-description p:first-child {
  419. margin-top: 1.1rem;
  420. }
  421.  
  422. /*********************/
  423. /* contact */
  424. /*********************/
  425.  
  426. #contact {
  427. width: 100%;
  428. padding: 2rem 0;
  429. box-sizing: border-box;
  430. /* height: 880px; */
  431. background-color: #f9f9f9;
  432. }
  433.  
  434. #contact #contact-title {
  435. text-align: center;
  436. font-size: 1.2rem;
  437. font-weight: 500;
  438. margin: 0;
  439. color: #343434;
  440. }
  441.  
  442. #contact #contact-options {
  443. text-align: center;
  444. margin: 3rem auto 0;
  445. max-width: 760px;
  446. }
  447.  
  448. #contact #contact-options .contact-option {
  449. display: flex;
  450. flex-direction: column;
  451. margin-bottom: 2rem;
  452. }
  453.  
  454. #contact #contact-options .contact-option .contact-option-icon {
  455. font-size: 2.8rem;
  456. color: #2f3640;
  457. margin-bottom: 2rem;
  458. }
  459.  
  460. #contact #contact-options .contact-option .contact-option-title {
  461. margin: 1rem 0;
  462. font-weight: 400;
  463. font-size: 1.3rem;
  464. }
  465.  
  466. #contact #contact-options .contact-option .contact-option-link {
  467. text-decoration: none;
  468. font-size: 1.5rem;
  469. color: #353b48;
  470. font-weight: 900;
  471. }
  472.  
  473. /*********************/
  474. /* social media */
  475. /*********************/
  476.  
  477. #social-media {
  478. width: 100%;
  479. padding: 2rem 0;
  480. box-sizing: border-box;
  481. background-color: #353b48;
  482. text-align: center;
  483. }
  484.  
  485. #social-media #social-media-title {
  486. text-transform: uppercase;
  487. font-size: 1.2rem;
  488. margin: 0 0 0.5rem 0;
  489. color: #ffffff;
  490. }
  491.  
  492. #social-media #social-media-description {
  493. color: #efefef;
  494. }
  495.  
  496. #social-media #social-media-links {
  497. text-align: center;
  498. }
  499.  
  500. #social-media #social-media-links a {
  501. font-size: 2.5rem;
  502. margin: 0 1.5rem;
  503. color: #ffffff;
  504. text-decoration: none;
  505. opacity: 0.6;
  506. transition: opacity 0.2s ease-in;
  507. }
  508.  
  509. #social-media #social-media-links a:hover {
  510. opacity: 1;
  511. }
  512.  
  513. /*********************/
  514. /* footer */
  515. /*********************/
  516.  
  517. #footer {
  518. text-align: center;
  519. background-color: #2f3640;
  520. }
  521.  
  522. #footer p {
  523. font-size: 12px;
  524. margin: 0;
  525. padding: 1rem 0;
  526. color: #7f8fa6;
  527. }
  528.  
  529. #footer a {
  530. text-decoration: none;
  531. color: #7f8fa6;
  532. }
  533.  
  534. #footer a:hover {
  535. text-decoration: underline;
  536. }
  537.  
  538. /*********************/
  539. /* Responsive */
  540. /*********************/
  541.  
  542. @media screen and (min-width: 768px) {
  543. #header #nav-mobile-open {
  544. display: none;
  545. }
  546.  
  547. #header #nav #nav-mobile-close {
  548. display: none;
  549. }
  550.  
  551. #header #nav ul {
  552. display: initial;
  553. transition: margin 0.2s ease-in-out;
  554. }
  555.  
  556. #projects #projects-container {
  557. display: grid;
  558. grid-template-columns: repeat(2, 1fr);
  559. grid-gap: 4rem;
  560. }
  561.  
  562. #contact #contact-options {
  563. display: grid;
  564. grid-template-columns: repeat(2, 1fr);
  565. }
  566. }
  567.  
  568. @media screen and (max-width: 880px) {
  569. #header #brand {
  570. width: 100%;
  571. text-align: center;
  572. }
  573.  
  574. #header #nav {
  575. float: initial;
  576. text-align: center;
  577. }
  578.  
  579. #header #nav ul {
  580. float: initial;
  581. margin: 0;
  582. padding: 0;
  583. }
  584.  
  585. #Hero .hero-content h2 {
  586. font-size: 36px;
  587. }
  588. }
  589.  
  590. @media screen and (max-width: 768px) {
  591. #message ~ #header #nav {
  592. top: 42px;
  593. }
  594.  
  595. #header #nav-mobile-open {
  596. position: absolute;
  597. top: 30px;
  598. right: 40px;
  599. font-size: 30px;
  600. text-decoration: none;
  601. color: #343434;
  602. transition: all 0.2s ease-in-out;
  603. cursor: pointer;
  604. }
  605.  
  606. #header #nav {
  607. position: fixed;
  608. top: 0;
  609. left: -220px;
  610. padding-top: 22px;
  611. width: 200px;
  612. height: 100%;
  613. background-color: #343434;
  614. transition: left 0.3s ease-in;
  615. overflow-x: hidden;
  616. box-shadow: 8px 0px 18px -6px rgba(0, 0, 0, 0.3);
  617. }
  618.  
  619. #header #nav.open {
  620. left: 0px;
  621. }
  622.  
  623. #header #nav.open ~ #nav-mobile-overflow {
  624. display: block;
  625. position: fixed;
  626. left: 200px;
  627. top: 0;
  628. width: 100%;
  629. height: 100%;
  630. }
  631.  
  632. #header #nav #nav-mobile-close {
  633. float: right;
  634. margin-right: 22px;
  635. font-size: 25px;
  636. color: rgb(209, 78, 78);
  637. cursor: pointer;
  638. }
  639.  
  640. #header #nav ul li {
  641. text-align: left;
  642. width: 100%;
  643. padding: 10px;
  644. }
  645.  
  646. #header #nav ul li a {
  647. color: #e9e9e9;
  648. }
  649.  
  650. #header #nav .switch-language {
  651. float: left;
  652. width: 100%;
  653. box-sizing: border-box;
  654. text-align: left;
  655. }
  656.  
  657. #header #nav .switch-language img {
  658. padding: 0 22.5px;
  659. }
  660.  
  661. #hero #hero-content h2 {
  662. font-size: 2rem;
  663. }
  664.  
  665. #hero #hero-content #hero-vertical-slider h3 {
  666. font-size: 1.6rem;
  667. line-height: 1.9rem;
  668. }
  669.  
  670. #projects #projects-container {
  671. display: flex;
  672. flex-direction: column;
  673. }
  674.  
  675. #projects #projects-container .project {
  676. margin-bottom: 3rem;
  677. }
  678.  
  679. #projects #projects-container .project:last-of-type {
  680. margin-bottom: 0;
  681. }
  682.  
  683. #about-me #about-me-container {
  684. grid-template-columns: 1fr;
  685. }
  686. }
  687.  
  688. @media screen and (max-width: 514px) {
  689. #message p {
  690. font-size: 0.9rem;
  691. }
  692.  
  693. #message ~ #header {
  694. top: 39px;
  695. }
  696.  
  697. #message ~ #header #nav {
  698. top: 39px;
  699. }
  700.  
  701. #projects #projects-title {
  702. font-size: 1.5rem;
  703. }
  704.  
  705. #projects #projects-container .project a .project-image {
  706. height: 200px;
  707. display: none;
  708. }
  709.  
  710. #projects #projects-container .project .project-content .project-tags {
  711. margin-bottom: 1.5rem;
  712. }
  713.  
  714. #projects #projects-container .project .project-content .project-tags .project-tag {
  715. font-size: 12px;
  716. }
  717.  
  718. #projects #projects-container .project .project-content .project-view {
  719. width: 100%;
  720. display: inline-block;
  721. margin: 0;
  722. }
  723.  
  724. #projects #projects-container .project .project-content .project-source-code {
  725. width: 100%;
  726. display: inline-block;
  727. margin: 1.5rem 0 0 0;
  728. }
  729.  
  730. #about-me #about-me-container #about-me-photo img {
  731. width: 12rem;
  732. }
  733.  
  734. #about-me #about-me-container #about-me-info #about-me-info-name {
  735. text-align: center;
  736. font-size: 1.5rem;
  737. }
  738.  
  739. #about-me #about-me-info #about-me-info-description p {
  740. text-align: left;
  741. font-size: 0.8rem;
  742. }
  743.  
  744. #contact #contact-form #contact-form-submit {
  745. width: 100%;
  746. }
  747. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement