demo.css 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. body{font-family: helvetica neue,arial,hiragino sans gb,stheiti,wenquanyi micro hei,\5FAE\8F6F\96C5\9ED1,\5B8B\4F53,sans-serif;}
  2. /* tabs */
  3. .nav-tabs {
  4. position: relative;
  5. }
  6. .nav-tabs .nav-more {
  7. position: absolute;
  8. right: 0;
  9. bottom: 0;
  10. height: 42px;
  11. line-height: 42px;
  12. color: #666;
  13. }
  14. #tabs {
  15. border-bottom: 1px solid #eee;
  16. }
  17. #tabs li {
  18. cursor: pointer;
  19. width: 100px;
  20. height: 40px;
  21. line-height: 40px;
  22. text-align: center;
  23. font-size: 16px;
  24. border-bottom: 2px solid transparent;
  25. position: relative;
  26. z-index: 1;
  27. margin-bottom: -1px;
  28. color: #666;
  29. }
  30. #tabs .active {
  31. border-bottom-color: #f00;
  32. color: #222;
  33. }
  34. .tab-container .content {
  35. display: none;
  36. }
  37. /* 页面布局 */
  38. .main {
  39. padding: 10px 100px;
  40. width: 960px;
  41. margin: 0 auto;
  42. }
  43. .main .logo {
  44. color: #333;
  45. text-align: left;
  46. margin-bottom: 30px;
  47. line-height: 1;
  48. height: 110px;
  49. margin-top: -50px;
  50. overflow: hidden;
  51. *zoom: 1;
  52. }
  53. .main .logo a {
  54. font-size: 160px;
  55. color: #333;
  56. }
  57. .helps {
  58. margin-top: 40px;
  59. }
  60. .helps pre {
  61. padding: 20px;
  62. margin: 10px 0;
  63. border: solid 1px #e7e1cd;
  64. background-color: #fffdef;
  65. overflow: auto;
  66. }
  67. .icon_lists {
  68. width: 100% !important;
  69. overflow: hidden;
  70. *zoom: 1;
  71. }
  72. .icon_lists li {
  73. width: 100px;
  74. margin-bottom: 10px;
  75. margin-right: 20px;
  76. text-align: center;
  77. list-style: none !important;
  78. cursor: default;
  79. display: inline-block;
  80. vertical-align: top;
  81. font-size: 12px;
  82. letter-spacing: normal;
  83. word-spacing: normal;
  84. line-height: inherit;
  85. cursor:pointer;
  86. }
  87. .icon_lists li .code-name {
  88. line-height: 1.2;
  89. }
  90. .icon_lists .icon {
  91. display: block;
  92. height: 100px;
  93. line-height: 100px;
  94. font-size: 42px;
  95. margin: 10px auto;
  96. color: #333;
  97. -webkit-transition: font-size 0.25s linear, width 0.25s linear;
  98. -moz-transition: font-size 0.25s linear, width 0.25s linear;
  99. transition: font-size 0.25s linear, width 0.25s linear;
  100. }
  101. .icon_lists .icon:hover {
  102. font-size: 100px;
  103. }
  104. .icon_lists .svg-icon {
  105. /* 通过设置 font-size 来改变图标大小 */
  106. width: 1em;
  107. /* 图标和文字相邻时,垂直对齐 */
  108. vertical-align: -0.15em;
  109. /* 通过设置 color 来改变 SVG 的颜色/fill */
  110. fill: currentColor;
  111. /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
  112. normalize.css 中也包含这行 */
  113. overflow: hidden;
  114. }
  115. .icon_lists li .name,
  116. .icon_lists li .code-name {
  117. color: #666;
  118. }
  119. /* markdown 样式 */
  120. .markdown {
  121. color: #666;
  122. font-size: 14px;
  123. line-height: 1.8;
  124. }
  125. .highlight {
  126. line-height: 1.5;
  127. }
  128. .markdown img {
  129. vertical-align: middle;
  130. max-width: 100%;
  131. }
  132. .markdown h1 {
  133. color: #404040;
  134. font-weight: 500;
  135. line-height: 40px;
  136. margin-bottom: 24px;
  137. }
  138. .markdown h2,
  139. .markdown h3,
  140. .markdown h4,
  141. .markdown h5,
  142. .markdown h6 {
  143. color: #404040;
  144. margin: 1.6em 0 0.6em 0;
  145. font-weight: 500;
  146. clear: both;
  147. }
  148. .markdown h1 {
  149. font-size: 28px;
  150. }
  151. .markdown h2 {
  152. font-size: 22px;
  153. }
  154. .markdown h3 {
  155. font-size: 16px;
  156. }
  157. .markdown h4 {
  158. font-size: 14px;
  159. }
  160. .markdown h5 {
  161. font-size: 12px;
  162. }
  163. .markdown h6 {
  164. font-size: 12px;
  165. }
  166. .markdown hr {
  167. height: 1px;
  168. border: 0;
  169. background: #e9e9e9;
  170. margin: 16px 0;
  171. clear: both;
  172. }
  173. .markdown p {
  174. margin: 1em 0;
  175. }
  176. .markdown>p,
  177. .markdown>blockquote,
  178. .markdown>.highlight,
  179. .markdown>ol,
  180. .markdown>ul {
  181. width: 80%;
  182. }
  183. .markdown ul>li {
  184. list-style: circle;
  185. }
  186. .markdown>ul li,
  187. .markdown blockquote ul>li {
  188. margin-left: 20px;
  189. padding-left: 4px;
  190. }
  191. .markdown>ul li p,
  192. .markdown>ol li p {
  193. margin: 0.6em 0;
  194. }
  195. .markdown ol>li {
  196. list-style: decimal;
  197. }
  198. .markdown>ol li,
  199. .markdown blockquote ol>li {
  200. margin-left: 20px;
  201. padding-left: 4px;
  202. }
  203. .markdown code {
  204. margin: 0 3px;
  205. padding: 0 5px;
  206. background: #eee;
  207. border-radius: 3px;
  208. }
  209. .markdown strong,
  210. .markdown b {
  211. font-weight: 600;
  212. }
  213. .markdown>table {
  214. border-collapse: collapse;
  215. border-spacing: 0px;
  216. empty-cells: show;
  217. border: 1px solid #e9e9e9;
  218. width: 95%;
  219. margin-bottom: 24px;
  220. }
  221. .markdown>table th {
  222. white-space: nowrap;
  223. color: #333;
  224. font-weight: 600;
  225. }
  226. .markdown>table th,
  227. .markdown>table td {
  228. border: 1px solid #e9e9e9;
  229. padding: 8px 16px;
  230. text-align: left;
  231. }
  232. .markdown>table th {
  233. background: #F7F7F7;
  234. }
  235. .markdown blockquote {
  236. font-size: 90%;
  237. color: #999;
  238. border-left: 4px solid #e9e9e9;
  239. padding-left: 0.8em;
  240. margin: 1em 0;
  241. }
  242. .markdown blockquote p {
  243. margin: 0;
  244. }
  245. .markdown .anchor {
  246. opacity: 0;
  247. transition: opacity 0.3s ease;
  248. margin-left: 8px;
  249. }
  250. .markdown .waiting {
  251. color: #ccc;
  252. }
  253. .markdown h1:hover .anchor,
  254. .markdown h2:hover .anchor,
  255. .markdown h3:hover .anchor,
  256. .markdown h4:hover .anchor,
  257. .markdown h5:hover .anchor,
  258. .markdown h6:hover .anchor {
  259. opacity: 1;
  260. display: inline-block;
  261. }
  262. .markdown>br,
  263. .markdown>p>br {
  264. clear: both;
  265. }
  266. .hljs {
  267. display: block;
  268. background: white;
  269. padding: 0.5em;
  270. color: #333333;
  271. overflow-x: auto;
  272. }
  273. .hljs-comment,
  274. .hljs-meta {
  275. color: #969896;
  276. }
  277. .hljs-string,
  278. .hljs-variable,
  279. .hljs-template-variable,
  280. .hljs-strong,
  281. .hljs-emphasis,
  282. .hljs-quote {
  283. color: #df5000;
  284. }
  285. .hljs-keyword,
  286. .hljs-selector-tag,
  287. .hljs-type {
  288. color: #a71d5d;
  289. }
  290. .hljs-literal,
  291. .hljs-symbol,
  292. .hljs-bullet,
  293. .hljs-attribute {
  294. color: #0086b3;
  295. }
  296. .hljs-section,
  297. .hljs-name {
  298. color: #63a35c;
  299. }
  300. .hljs-tag {
  301. color: #333333;
  302. }
  303. .hljs-title,
  304. .hljs-attr,
  305. .hljs-selector-id,
  306. .hljs-selector-class,
  307. .hljs-selector-attr,
  308. .hljs-selector-pseudo {
  309. color: #795da3;
  310. }
  311. .hljs-addition {
  312. color: #55a532;
  313. background-color: #eaffea;
  314. }
  315. .hljs-deletion {
  316. color: #bd2c00;
  317. background-color: #ffecec;
  318. }
  319. .hljs-link {
  320. text-decoration: underline;
  321. }
  322. /* 代码高亮 */
  323. /* PrismJS 1.15.0
  324. https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
  325. /**
  326. * prism.js default theme for JavaScript, CSS and HTML
  327. * Based on dabblet (http://dabblet.com)
  328. * @author Lea Verou
  329. */
  330. code[class*="language-"],
  331. pre[class*="language-"] {
  332. color: black;
  333. background: none;
  334. text-shadow: 0 1px white;
  335. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  336. text-align: left;
  337. white-space: pre;
  338. word-spacing: normal;
  339. word-break: normal;
  340. word-wrap: normal;
  341. line-height: 1.5;
  342. -moz-tab-size: 4;
  343. -o-tab-size: 4;
  344. tab-size: 4;
  345. -webkit-hyphens: none;
  346. -moz-hyphens: none;
  347. -ms-hyphens: none;
  348. hyphens: none;
  349. }
  350. pre[class*="language-"]::-moz-selection,
  351. pre[class*="language-"] ::-moz-selection,
  352. code[class*="language-"]::-moz-selection,
  353. code[class*="language-"] ::-moz-selection {
  354. text-shadow: none;
  355. background: #b3d4fc;
  356. }
  357. pre[class*="language-"]::selection,
  358. pre[class*="language-"] ::selection,
  359. code[class*="language-"]::selection,
  360. code[class*="language-"] ::selection {
  361. text-shadow: none;
  362. background: #b3d4fc;
  363. }
  364. @media print {
  365. code[class*="language-"],
  366. pre[class*="language-"] {
  367. text-shadow: none;
  368. }
  369. }
  370. /* Code blocks */
  371. pre[class*="language-"] {
  372. padding: 1em;
  373. margin: .5em 0;
  374. overflow: auto;
  375. }
  376. :not(pre)>code[class*="language-"],
  377. pre[class*="language-"] {
  378. background: #f5f2f0;
  379. }
  380. /* Inline code */
  381. :not(pre)>code[class*="language-"] {
  382. padding: .1em;
  383. border-radius: .3em;
  384. white-space: normal;
  385. }
  386. .token.comment,
  387. .token.prolog,
  388. .token.doctype,
  389. .token.cdata {
  390. color: slategray;
  391. }
  392. .token.punctuation {
  393. color: #999;
  394. }
  395. .namespace {
  396. opacity: .7;
  397. }
  398. .token.property,
  399. .token.tag,
  400. .token.boolean,
  401. .token.number,
  402. .token.constant,
  403. .token.symbol,
  404. .token.deleted {
  405. color: #905;
  406. }
  407. .token.selector,
  408. .token.attr-name,
  409. .token.string,
  410. .token.char,
  411. .token.builtin,
  412. .token.inserted {
  413. color: #690;
  414. }
  415. .token.operator,
  416. .token.entity,
  417. .token.url,
  418. .language-css .token.string,
  419. .style .token.string {
  420. color: #9a6e3a;
  421. background: hsla(0, 0%, 100%, .5);
  422. }
  423. .token.atrule,
  424. .token.attr-value,
  425. .token.keyword {
  426. color: #07a;
  427. }
  428. .token.function,
  429. .token.class-name {
  430. color: #DD4A68;
  431. }
  432. .token.regex,
  433. .token.important,
  434. .token.variable {
  435. color: #e90;
  436. }
  437. .token.important,
  438. .token.bold {
  439. font-weight: bold;
  440. }
  441. .token.italic {
  442. font-style: italic;
  443. }
  444. .token.entity {
  445. cursor: help;
  446. }