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.

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