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.

460 lines
6.3 KiB

  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: hsl(206deg 47% 9%);
  5. color: hsl(0deg 0% 72%);
  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: hsl(0deg 1% 71%);
  26. }
  27. .ocks-org header,
  28. .ocks-org footer {
  29. color: #999999;
  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: #5f5c5c;
  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: hsl(187deg 100% 33%);
  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. color: hsl(0deg 0% 74%);
  113. }
  114. textarea {
  115. font-size: 100%;
  116. }
  117. pre {
  118. border-left: solid 2px #424242;
  119. padding-left: 18px;
  120. margin: 2em 0 2em 0;
  121. }
  122. .html .value,
  123. .javascript .string,
  124. .javascript .regexp {
  125. color: #756bb1;
  126. }
  127. .html .tag,
  128. .css .tag,
  129. .javascript .keyword {
  130. color: #3182bd;
  131. }
  132. .comment {
  133. color: #636363;
  134. }
  135. .html .doctype,
  136. .javascript .number {
  137. color: #31a354;
  138. }
  139. .html .attribute,
  140. .css .attribute,
  141. .javascript .class,
  142. .javascript .special {
  143. color: #e6550d;
  144. }
  145. svg {
  146. font: 10px sans-serif;
  147. }
  148. .axis path,
  149. .axis line {
  150. fill: none;
  151. stroke: #000;
  152. shape-rendering: crispEdges;
  153. }
  154. sup,
  155. sub {
  156. line-height: 0;
  157. }
  158. q:before {
  159. content: "“";
  160. }
  161. q:after {
  162. content: "”";
  163. }
  164. blockquote q {
  165. line-height: 1.5em;
  166. display: inline;
  167. }
  168. blockquote q:before,
  169. blockquote q:after {
  170. content: "";
  171. }
  172. h3,
  173. h4,
  174. p,
  175. ul {
  176. padding-left: 1.2rem;
  177. }
  178. .banner {
  179. padding: 0;
  180. }
  181. #toc {
  182. margin-top: 0;
  183. }
  184. @media only screen and (max-device-width: 1023px) {
  185. .ocks-org body {
  186. font-size: 72%;
  187. padding: 0.5rem;
  188. }
  189. body > p,
  190. div > p {
  191. width: 90vw !important;
  192. }
  193. li {
  194. width: 82vw;
  195. }
  196. h3,
  197. h4,
  198. p,
  199. ul {
  200. padding-left: .7rem;
  201. width: 90vw;
  202. }
  203. h1 {
  204. font-size: 2rem;
  205. }
  206. pre {
  207. padding-left: 0.5rem;
  208. }
  209. .banner,
  210. h1,
  211. img {
  212. max-width: calc(100vw - 2em);
  213. min-width: calc(100vw - 2em);
  214. }
  215. }
  216. /*@import url(web/style.css);*/
  217. @font-face {font-family: "Menlo Regular";
  218. src: url("OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1\\@font-face\\9f94dc20bb2a09c15241d3a880b7ad01.woff2") format("woff2"), /* chrome、firefox */
  219. url("OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1\\@font-face\\9f94dc20bb2a09c15241d3a880b7ad01.woff") format("woff");
  220. }
  221. .join,
  222. .link,
  223. .node rect {
  224. fill: none;
  225. stroke: #636363;
  226. stroke-width: 1.5px;
  227. }
  228. .link {
  229. stroke: #969696;
  230. }
  231. .node rect {
  232. fill: white;
  233. }
  234. .link path,
  235. .node rect,
  236. .node text,
  237. .join {
  238. -webkit-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  239. -moz-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  240. -ms-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  241. -o-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  242. transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  243. }
  244. .node .element rect {
  245. fill: #bdbdbd;
  246. stroke: none;
  247. }
  248. .node .null rect {
  249. fill: none;
  250. stroke: none;
  251. }
  252. .node .null text {
  253. fill: #636363;
  254. }
  255. .node .selection rect {
  256. stroke: #e6550d;
  257. }
  258. .node .data rect {
  259. stroke: #3182bd;
  260. }
  261. .node .datum rect {
  262. fill: #d9d9d9;
  263. stroke: none;
  264. }
  265. .node .code text {
  266. font-family: monospace;
  267. color: hsl(0deg 0% 74%)
  268. }
  269. .node .key rect {
  270. fill: #a1d99b;
  271. stroke: none;
  272. }
  273. .link .to-key,
  274. .join {
  275. stroke: #a1d99b;
  276. }
  277. .join {
  278. stroke-dasharray: 2,2;
  279. }
  280. .link .to-null {
  281. stroke-dasharray: .5,3.5;
  282. stroke-linecap: round;
  283. }
  284. .link .from-data {
  285. stroke: #3182bd;
  286. }
  287. .play circle {
  288. fill: #fff;
  289. stroke: #000;
  290. stroke-width: 3px;
  291. }
  292. .play:hover path {
  293. fill: #f00;
  294. }
  295. .play.mousedown circle {
  296. fill: #f00;
  297. }
  298. .play.mousedown path {
  299. fill: #fff;
  300. }
  301. .play rect {
  302. fill: none;
  303. pointer-events: all;
  304. cursor: pointer;
  305. }
  306. code span {
  307. -webkit-transition: background 250ms linear;
  308. -moz-transition: background 250ms linear;
  309. -ms-transition: background 250ms linear;
  310. -o-transition: background 250ms linear;
  311. transition: background 250ms linear;
  312. }
  313. pre.prettyprint, code.prettyprint {
  314. background-color: #222;
  315. border-radius: 8px;
  316. font-size: 15px;
  317. }
  318. pre.prettyprint {
  319. width: 90%;
  320. margin: 0.5em;
  321. padding: 1em;
  322. white-space: pre-wrap;
  323. }
  324. #return-to-top {
  325. position: fixed;
  326. bottom: 20px;
  327. right: 20px;
  328. background: rgb(0, 0, 0);
  329. background: rgba(0, 0, 0, 0.2);
  330. width: 50px;
  331. height: 50px;
  332. display: block;
  333. text-decoration: none;
  334. -webkit-border-radius: 35px;
  335. -moz-border-radius: 35px;
  336. border-radius: 35px;
  337. display: none;
  338. -webkit-transition: all 0.3s linear;
  339. -moz-transition: all 0.3s ease;
  340. -ms-transition: all 0.3s ease;
  341. -o-transition: all 0.3s ease;
  342. transition: all 0.3s ease;
  343. }
  344. #return-to-top i {
  345. color: #fff;
  346. margin: 0;
  347. position: relative;
  348. left: 16px;
  349. top: 13px;
  350. font-size: 19px;
  351. -webkit-transition: all 0.3s ease;
  352. -moz-transition: all 0.3s ease;
  353. -ms-transition: all 0.3s ease;
  354. -o-transition: all 0.3s ease;
  355. transition: all 0.3s ease;
  356. }
  357. #return-to-top:hover {
  358. background: rgba(0, 0, 0, 0.35);
  359. }
  360. #return-to-top:hover i {
  361. color: #f0f0f0;
  362. }
  363. @media print {
  364. .pagebreak {
  365. page-break-before: always;
  366. }
  367. div {
  368. page-break-inside: avoid;
  369. }
  370. pre {
  371. page-break-inside: avoid;
  372. }
  373. }
  374. .modebar{
  375. display: none !important;
  376. }