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.

462 lines
6.6 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 Web", 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. }
  215. /*@import url(web/style.css);*/
  216. @font-face {font-family: "Menlo web";
  217. src: url("OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1\\@font-face\\9f94dc20bb2a09c15241d3a880b7ad01.woff2") format("woff2"), /* chrome、firefox */
  218. url("OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1\\@font-face\\9f94dc20bb2a09c15241d3a880b7ad01.woff") format("woff");
  219. font-weight: normal;
  220. }
  221. @font-face {font-family: "Menlo web";
  222. src: url("OnlineWebFonts_COM_d6ba633f6ea4cafe1a39ab736fe55e88\\Menlo Bold\\@font-face\\a6ffc5d72a96b65159e710ea6d258ba4.woff2") format("woff2"), /* chrome、firefox */
  223. url("OnlineWebFonts_COM_d6ba633f6ea4cafe1a39ab736fe55e88\\Menlo Bold\\@font-face\\a6ffc5d72a96b65159e710ea6d258ba4.woff") format("woff");
  224. font-weight: bold;
  225. }
  226. .join,
  227. .link,
  228. .node rect {
  229. fill: none;
  230. stroke: #636363;
  231. stroke-width: 1.5px;
  232. }
  233. .link {
  234. stroke: #969696;
  235. }
  236. .node rect {
  237. fill: white;
  238. }
  239. .link path,
  240. .node rect,
  241. .node text,
  242. .join {
  243. -webkit-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  244. -moz-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  245. -ms-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  246. -o-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  247. transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  248. }
  249. .node .element rect {
  250. fill: #bdbdbd;
  251. stroke: none;
  252. }
  253. .node .null rect {
  254. fill: none;
  255. stroke: none;
  256. }
  257. .node .null text {
  258. fill: #636363;
  259. }
  260. .node .selection rect {
  261. stroke: #e6550d;
  262. }
  263. .node .data rect {
  264. stroke: #3182bd;
  265. }
  266. .node .datum rect {
  267. fill: #d9d9d9;
  268. stroke: none;
  269. }
  270. .node .code text {
  271. font-family: monospace;
  272. }
  273. .node .key rect {
  274. fill: #a1d99b;
  275. stroke: none;
  276. }
  277. .link .to-key,
  278. .join {
  279. stroke: #a1d99b;
  280. }
  281. .join {
  282. stroke-dasharray: 2,2;
  283. }
  284. .link .to-null {
  285. stroke-dasharray: .5,3.5;
  286. stroke-linecap: round;
  287. }
  288. .link .from-data {
  289. stroke: #3182bd;
  290. }
  291. .play circle {
  292. fill: #fff;
  293. stroke: #000;
  294. stroke-width: 3px;
  295. }
  296. .play:hover path {
  297. fill: #f00;
  298. }
  299. .play.mousedown circle {
  300. fill: #f00;
  301. }
  302. .play.mousedown path {
  303. fill: #fff;
  304. }
  305. .play rect {
  306. fill: none;
  307. pointer-events: all;
  308. cursor: pointer;
  309. }
  310. code span {
  311. -webkit-transition: background 250ms linear;
  312. -moz-transition: background 250ms linear;
  313. -ms-transition: background 250ms linear;
  314. -o-transition: background 250ms linear;
  315. transition: background 250ms linear;
  316. }
  317. pre.prettyprint, code.prettyprint {
  318. background-color: #222;
  319. border-radius: 8px;
  320. font-size: 15px;
  321. }
  322. pre.prettyprint {
  323. width: 90%;
  324. margin: 0.5em;
  325. padding: 1em;
  326. white-space: pre-wrap;
  327. }
  328. #return-to-top {
  329. position: fixed;
  330. bottom: 20px;
  331. right: 20px;
  332. background: rgb(0, 0, 0);
  333. background: rgba(0, 0, 0, 0.2);
  334. width: 50px;
  335. height: 50px;
  336. display: block;
  337. text-decoration: none;
  338. -webkit-border-radius: 35px;
  339. -moz-border-radius: 35px;
  340. border-radius: 35px;
  341. display: none;
  342. -webkit-transition: all 0.3s linear;
  343. -moz-transition: all 0.3s ease;
  344. -ms-transition: all 0.3s ease;
  345. -o-transition: all 0.3s ease;
  346. transition: all 0.3s ease;
  347. }
  348. #return-to-top i {
  349. color: #fff;
  350. margin: 0;
  351. position: relative;
  352. left: 16px;
  353. top: 13px;
  354. font-size: 19px;
  355. -webkit-transition: all 0.3s ease;
  356. -moz-transition: all 0.3s ease;
  357. -ms-transition: all 0.3s ease;
  358. -o-transition: all 0.3s ease;
  359. transition: all 0.3s ease;
  360. }
  361. #return-to-top:hover {
  362. background: rgba(0, 0, 0, 0.35);
  363. }
  364. #return-to-top:hover i {
  365. color: #f0f0f0;
  366. }
  367. @media print {
  368. .pagebreak {
  369. page-break-before: always;
  370. }
  371. div {
  372. page-break-inside: avoid;
  373. }
  374. pre {
  375. page-break-inside: avoid;
  376. }
  377. }
  378. .modebar{
  379. display: none !important;
  380. }