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.

464 lines
6.4 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 Regular", 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 Regular";
  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. }
  225. .join,
  226. .link,
  227. .node rect {
  228. fill: none;
  229. stroke: #636363;
  230. stroke-width: 1.5px;
  231. }
  232. .link {
  233. stroke: #969696;
  234. }
  235. .node rect {
  236. fill: white;
  237. }
  238. .link path,
  239. .node rect,
  240. .node text,
  241. .join {
  242. -webkit-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  243. -moz-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  244. -ms-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  245. -o-transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  246. transition: stroke-opacity 500ms linear, fill-opacity 500ms linear;
  247. }
  248. .node .element rect {
  249. fill: #bdbdbd;
  250. stroke: none;
  251. }
  252. .node .null rect {
  253. fill: none;
  254. stroke: none;
  255. }
  256. .node .null text {
  257. fill: #636363;
  258. }
  259. .node .selection rect {
  260. stroke: #e6550d;
  261. }
  262. .node .data rect {
  263. stroke: #3182bd;
  264. }
  265. .node .datum rect {
  266. fill: #d9d9d9;
  267. stroke: none;
  268. }
  269. .node .code text {
  270. font-family: monospace;
  271. color: hsl(0deg 0% 74%)
  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. }