You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

263 lines
3.0 KiB

4 years ago
  1. /* Copyright 2013 Michael Bostock. All rights reserved. Do not copy. */
  2. @import url(https://fonts.googleapis.com/css?family=PT+Serif|PT+Serif:b|PT+Serif:i|PT+Sans|PT+Sans:b);
  3. .ocks-org body {
  4. background: #fcfcfa;
  5. color: #333;
  6. font-family: "PT Serif", serif;
  7. margin: 1em auto 4em auto;
  8. position: relative;
  9. width: 960px;
  10. padding: 1rem;
  11. }
  12. .ocks-org header,
  13. .ocks-org footer,
  14. .ocks-org aside,
  15. .ocks-org h1,
  16. .ocks-org h2,
  17. .ocks-org h3,
  18. .ocks-org h4 {
  19. font-family: "PT Sans", sans-serif;
  20. }
  21. .ocks-org h1,
  22. .ocks-org h2,
  23. .ocks-org h3,
  24. .ocks-org h4 {
  25. color: #000;
  26. }
  27. .ocks-org header,
  28. .ocks-org footer {
  29. color: #636363;
  30. }
  31. h1 {
  32. font-size: 64px;
  33. font-weight: 300;
  34. letter-spacing: -2px;
  35. margin: 0.3em 0 0.1em 0;
  36. }
  37. h2 {
  38. margin-top: 2em;
  39. }
  40. h1,
  41. h2 {
  42. text-rendering: optimizeLegibility;
  43. }
  44. h2 a[name],
  45. h2 a[id] {
  46. color: #ccc;
  47. padding-right: 0.3em;
  48. }
  49. header,
  50. footer {
  51. font-size: small;
  52. }
  53. .ocks-org header aside,
  54. .ocks-org footer aside {
  55. float: left;
  56. margin-right: 0.5em;
  57. }
  58. .ocks-org header aside:after,
  59. .ocks-org footer aside:after {
  60. padding-left: 0.5em;
  61. content: "/";
  62. }
  63. footer {
  64. margin-top: 6em;
  65. }
  66. h1 ~ aside {
  67. font-size: small;
  68. right: 0;
  69. position: absolute;
  70. width: 180px;
  71. }
  72. .attribution {
  73. font-size: small;
  74. margin-bottom: 2em;
  75. }
  76. body > p,
  77. li > p,
  78. div > p {
  79. line-height: 1.5em;
  80. }
  81. body > p,
  82. div > p {
  83. width: 720px;
  84. }
  85. body > blockquote {
  86. width: 640px;
  87. }
  88. blockquote q {
  89. display: block;
  90. font-style: oblique;
  91. }
  92. ul {
  93. padding: 0;
  94. }
  95. li {
  96. width: 690px;
  97. margin-left: 30px;
  98. }
  99. a {
  100. color: steelblue;
  101. }
  102. a:not(:hover) {
  103. text-decoration: none;
  104. }
  105. pre,
  106. code,
  107. textarea {
  108. font-family: "Menlo", "Menlo Regular", monospace;
  109. }
  110. code {
  111. line-height: 1em;
  112. }
  113. textarea {
  114. font-size: 100%;
  115. }
  116. pre {
  117. border-left: solid 2px #ccc;
  118. padding-left: 18px;
  119. margin: 2em 0 2em 0;
  120. }
  121. .html .value,
  122. .javascript .string,
  123. .javascript .regexp {
  124. color: #756bb1;
  125. }
  126. .html .tag,
  127. .css .tag,
  128. .javascript .keyword {
  129. color: #3182bd;
  130. }
  131. .comment {
  132. color: #636363;
  133. }
  134. .html .doctype,
  135. .javascript .number {
  136. color: #31a354;
  137. }
  138. .html .attribute,
  139. .css .attribute,
  140. .javascript .class,
  141. .javascript .special {
  142. color: #e6550d;
  143. }
  144. svg {
  145. font: 10px sans-serif;
  146. }
  147. .axis path,
  148. .axis line {
  149. fill: none;
  150. stroke: #000;
  151. shape-rendering: crispEdges;
  152. }
  153. sup,
  154. sub {
  155. line-height: 0;
  156. }
  157. q:before {
  158. content: "“";
  159. }
  160. q:after {
  161. content: "”";
  162. }
  163. blockquote q {
  164. line-height: 1.5em;
  165. display: inline;
  166. }
  167. blockquote q:before,
  168. blockquote q:after {
  169. content: "";
  170. }
  171. h3,
  172. h4,
  173. p,
  174. ul {
  175. padding-left: 1.2rem;
  176. }
  177. .banner {
  178. padding: 0;
  179. }
  180. #toc {
  181. margin-top: 0;
  182. }
  183. @media only screen and (max-device-width: 1023px) {
  184. .ocks-org body {
  185. font-size: 72%;
  186. padding: 0.5rem;
  187. }
  188. body > p,
  189. div > p {
  190. width: 90vw !important;
  191. }
  192. li {
  193. width: 82vw;
  194. }
  195. h3,
  196. h4,
  197. p,
  198. ul {
  199. padding-left: .7rem;
  200. width: 90vw;
  201. }
  202. h1 {
  203. font-size: 2rem;
  204. }
  205. pre {
  206. padding-left: 0.5rem;
  207. }
  208. .banner,
  209. h1,
  210. img {
  211. max-width: calc(100vw - 2em);
  212. min-width: calc(100vw - 2em);
  213. }
  214. }