style.css 2.9 KB

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