style.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. @import url('https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900');
  2. body, html {
  3. color: #333538;
  4. font-family: 'Lato', sans-serif;
  5. line-height: 1.6;
  6. padding: 0;
  7. margin: 0;
  8. }
  9. a {
  10. color: #f27173;
  11. text-decoration: none;
  12. }
  13. a:hover {
  14. color: #e25f5f;
  15. text-decoration: underline;
  16. }
  17. .content {
  18. max-width: 800px;
  19. margin: auto;
  20. padding: 16px 32px;
  21. }
  22. .header {
  23. text-align: center;
  24. padding: 32px 0;
  25. }
  26. .wrapper {
  27. min-height: 400px;
  28. padding: 16px 0;
  29. position: relative;
  30. }
  31. .wrapper.col-2 {
  32. display: inline-block;
  33. min-height: 256px;
  34. width: 49%;
  35. }
  36. @media (max-width: 400px) {
  37. .wrapper.col-2 {
  38. width: 100%
  39. }
  40. }
  41. .wrapper canvas {
  42. -moz-user-select: none;
  43. -webkit-user-select: none;
  44. -ms-user-select: none;
  45. }
  46. .toolbar {
  47. display: flex;
  48. }
  49. .toolbar > * {
  50. margin: 0 8px 0 0;
  51. }
  52. .btn {
  53. background-color: #aaa;
  54. border-radius: 4px;
  55. color: white;
  56. padding: 0.25rem 0.75rem;
  57. }
  58. .btn .fa {
  59. font-size: 1rem;
  60. }
  61. .btn:hover {
  62. background-color: #888;
  63. color: white;
  64. text-decoration: none;
  65. }
  66. .btn-chartjs { background-color: #f27173; }
  67. .btn-chartjs:hover { background-color: #e25f5f; }
  68. .btn-docs:hover { background-color: #2793db; }
  69. .btn-docs { background-color: #36A2EB; }
  70. .btn-docs:hover { background-color: #2793db; }
  71. .btn-gh { background-color: #444; }
  72. .btn-gh:hover { background-color: #333; }
  73. .btn-on {
  74. border-style: inset;
  75. }
  76. .chartjs-title {
  77. font-size: 2rem;
  78. font-weight: 600;
  79. white-space: nowrap;
  80. }
  81. .chartjs-title::before {
  82. background-image: url(logo.svg);
  83. background-position: left center;
  84. background-repeat: no-repeat;
  85. background-size: 40px;
  86. content: 'Chart.js | ';
  87. color: #f27173;
  88. font-weight: 600;
  89. padding-left: 48px;
  90. }
  91. .chartjs-caption {
  92. font-size: 1.2rem;
  93. }
  94. .chartjs-links {
  95. display: flex;
  96. justify-content: center;
  97. padding: 8px 0;
  98. }
  99. .chartjs-links a {
  100. align-items: center;
  101. display: flex;
  102. font-size: 0.9rem;
  103. margin: 0.2rem;
  104. }
  105. .chartjs-links .fa:before {
  106. margin-right: 0.5em;
  107. }
  108. .samples-category {
  109. display: inline-block;
  110. margin-bottom: 32px;
  111. vertical-align: top;
  112. width: 25%;
  113. }
  114. .samples-category > .title {
  115. color: #aaa;
  116. font-weight: 300;
  117. font-size: 1.5rem;
  118. }
  119. .samples-category:hover > .title {
  120. color: black;
  121. }
  122. .samples-category > .items {
  123. padding: 8px 0;
  124. }
  125. .samples-entry {
  126. padding: 0 0 4px 0;
  127. }
  128. .samples-entry > .title {
  129. font-weight: 700;
  130. }
  131. @media (max-width: 640px) {
  132. .samples-category { width: 33%; }
  133. }
  134. @media (max-width: 512px) {
  135. .samples-category { width: 50%; }
  136. }
  137. @media (max-width: 420px) {
  138. .chartjs-caption { font-size: 1.05rem; }
  139. .chartjs-title::before { content: ''; }
  140. .chartjs-links a { flex-direction: column; }
  141. .chartjs-links .fa { margin: 0 }
  142. .samples-category { width: 100%; }
  143. }
  144. .analyser table {
  145. color: #333;
  146. font-size: 0.9rem;
  147. margin: 8px 0;
  148. width: 100%
  149. }
  150. .analyser th {
  151. background-color: #f0f0f0;
  152. padding: 2px;
  153. }
  154. .analyser td {
  155. padding: 2px;
  156. text-align: center;
  157. }