index.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. -webkit-box-sizing: border-box;
  5. box-sizing: border-box;
  6. }
  7. body,
  8. html {
  9. height: 100%;
  10. width: 100%;
  11. background: white;
  12. font-family: 'Montserrat', serif;
  13. }
  14. body {
  15. background: linear-gradient(to bottom, #f0f8ff, #ffffff);
  16. }
  17. body header {
  18. position: relative;
  19. padding: 10vh 0;
  20. text-align: center;
  21. color: #36425b;
  22. }
  23. body header h1 {
  24. font-size: 3.5em;
  25. font-weight: 300;
  26. font-family: 'Montserrat', sans-serif;
  27. }
  28. body header a {
  29. display: inline-block;
  30. text-decoration: none;
  31. font-weight: 500;
  32. font-size: 0.8em;
  33. color: white;
  34. margin-top: 5vh;
  35. padding: 0.75em 1.25em;
  36. transition: 0.3s all;
  37. background: #4285f4;
  38. border-radius: 50em;
  39. box-shadow: 0 0.15em 0.5em rgba(66, 133, 244, 0.75);
  40. font-family: 'Montserrat', sans-serif;
  41. }
  42. body header a:hover {
  43. background: #4291f6;
  44. }
  45. body main {
  46. margin: 0 auto;
  47. display: flex;
  48. align-items: center;
  49. flex-direction: column;
  50. }
  51. .theme-container button {
  52. font-family: 'Montserrat', sans-serif;
  53. font-weight: 500;
  54. font-size: 0.95em;
  55. color: #36425b;
  56. outline: none;
  57. background: #e4f1ff;
  58. border: none;
  59. border-bottom: 2px solid rgba(80, 139, 234, 0.67);
  60. padding: 0.6em 0.8em 0.5em;
  61. cursor: pointer;
  62. transition: all 0.3s;
  63. margin: 0 0.5em;
  64. opacity: 0.45;
  65. text-transform: capitalize;
  66. }
  67. .theme-container button.active {
  68. opacity: 1;
  69. }
  70. .theme-container h3 {
  71. font-weight: 500;
  72. color: #36425b;
  73. }
  74. .pickr-container {
  75. margin-top: 2em;
  76. }
  77. main > p {
  78. margin-top: 0.35em;
  79. font-size: 0.75em;
  80. font-weight: 500;
  81. color: #42445a;
  82. }
  83. @-webkit-keyframes fadeIn {
  84. from {
  85. opacity: 0;
  86. }
  87. to {
  88. opacity: 1;
  89. }
  90. }
  91. @keyframes fadeIn {
  92. from {
  93. opacity: 0;
  94. }
  95. to {
  96. opacity: 1;
  97. }
  98. }
  99. @media screen and (max-width: 1000px) {
  100. body header {
  101. font-size: 0.6em;
  102. padding: 7vh 0;
  103. }
  104. body header a {
  105. padding: 1em 2em;
  106. font-weight: 600;
  107. font-size: 1.05em;
  108. }
  109. main > section {
  110. min-width: 90%;
  111. }
  112. main > section h2 {
  113. font-size: 1em;
  114. }
  115. main > section pre {
  116. font-size: 0.9em;
  117. }
  118. main section.demo .hint svg {
  119. height: 1.2em;
  120. }
  121. main section.demo .hint span {
  122. transform: translate3d(-3em, -1.4em, 0);
  123. font-size: 0.6em;
  124. }
  125. }