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.

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