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.

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