demo.css 8.2 KB

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