docs.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. /*
  2. * Component: Docs
  3. * Description: Defines styles for the UIkit documentation
  4. ========================================================================== */
  5. /* Fonts
  6. ========================================================================== */
  7. @font-face {
  8. font-weight: 300;
  9. font-style: normal;
  10. }
  11. @font-face {
  12. font-weight: 400;
  13. font-style: normal;
  14. }
  15. body, h1, h2, h3, h4, h5, h6,
  16. .uk-navbar-nav > li > a { font-family: "Microsoft YaHei"; }
  17. /* Base
  18. ========================================================================== */
  19. html {
  20. overflow-y: scroll;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. }
  24. /* Layout
  25. ========================================================================== */
  26. .tm-background { background: #252525; }
  27. /*
  28. * Blocks
  29. */
  30. .tm-middle,
  31. .tm-section,
  32. .tm-footer { padding: 50px 0; }
  33. /* Tablet and bigger */
  34. @media (min-width: 768px) {
  35. .tm-middle,
  36. .tm-section,
  37. .tm-footer { padding: 90px 0; }
  38. }
  39. /* Large screen and bigger */
  40. @media (min-width: 1220px) {
  41. .tm-middle,
  42. .tm-section,
  43. .tm-footer { padding: 120px 0; }
  44. }
  45. /*
  46. * Middle
  47. */
  48. .tm-middle { background: #fff; }
  49. /* Tablet and bigger */
  50. @media (min-width: 768px) {
  51. .tm-sidebar {
  52. margin-right: -1px !important;
  53. border-right: 1px solid #E5E5E5;
  54. }
  55. .tm-main {
  56. padding-left: 50px !important;
  57. border-left: 1px solid #E5E5E5;
  58. }
  59. .tm-sidebar .uk-panel { padding-right: 20px; }
  60. }
  61. /*
  62. * Sections
  63. */
  64. .tm-section .uk-heading-large { margin-bottom: 20px; }
  65. .tm-section .uk-text-large { margin-bottom: 60px; letter-spacing: 2px;}
  66. .tm-section-color-bg{background: #2ba3d4; }
  67. .tm-section-color-1 {
  68. background: #178d7d url("../img/head_pic_1.png") no-repeat; background-size: contain ; background-position: 20px 20px;}
  69. /* Desktop and bigger */
  70. @media (max-width: 959px) {
  71. .tm-section-color-1 { background-image: none; }
  72. .tm-section-color-white{display: none; }
  73. }
  74. .tm-section-color-2 { background: #50aca0; }
  75. .tm-section-colored,
  76. .tm-section-colored h1,
  77. .tm-section-colored h2,
  78. .tm-section-colored a:not([class]) { color: #fff !important; }
  79. .tm-section-color-2 a { text-decoration: underline; }
  80. .tm-section-color-white { background: #fff; }
  81. /* Tablet and bigger */
  82. @media (min-width: 768px) {
  83. .tm-section-color-white .uk-grid-divider:not(:empty) > [class*='uk-width-medium-']:not(.uk-width-medium-1-1):nth-child(n+2) { border-left: 1px dashed #ddd; }
  84. .tm-section-color-2 .uk-grid-divider:not(:empty) > [class*='uk-width-medium-']:not(.uk-width-medium-1-1):nth-child(n+2) { border-left: 1px dashed rgba(255,255,255,0.4); }
  85. }
  86. /*
  87. * Header section
  88. */
  89. .tm-logo {
  90. margin: 10px 0 20px 0;
  91. width:281px;
  92. background-size: 281px;
  93. }
  94. .tel-demo {display: none;}
  95. @media (max-width: 414px){
  96. .tm-logo {
  97. margin: 10px 0 20px 0;
  98. width:180px;
  99. background-size: 180px;
  100. }
  101. .tel-demo {display: list-item;}
  102. .pc-demo{ display: none; }
  103. }
  104. .tm-button-download {
  105. margin: -30px 0 15px 0;
  106. /* Style */
  107. box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  108. background: #fff;
  109. border: none;
  110. color: #2ba3d4 !important;
  111. /* Size */
  112. min-height: 50px;
  113. padding: 0 30px;
  114. line-height: 50px;
  115. font-size: 18px;
  116. }
  117. .tm-button-download:hover {
  118. background: #82cff0;
  119. color: #fff !important;
  120. text-shadow: 0 1px 0 rgba(0,0,0,0.1);
  121. -webkit-transition: background-color .15s ease-in-out;
  122. transition: background-color .15s ease-in-out;
  123. }
  124. .tm-button-download:focus,
  125. .tm-button-download:active {
  126. background: #2e93bc;
  127. color: #fff !important;
  128. text-shadow: 0 1px 0 rgba(0,0,0,0.1);
  129. box-shadow: inset 0 1px 1px rgba(0,0,0,0.15),
  130. inset 0 -1px 0px rgba(0,0,0,0.05),
  131. inset 1px 0px 0px rgba(0,0,0,0.05),
  132. inset -1px 0px 0px rgba(0,0,0,0.05);
  133. -webkit-transition: background-color .05s ease-in-out;
  134. transition: background-color .05s ease-in-out;
  135. }
  136. .tm-image-pull { margin-bottom: -10px; }
  137. /*
  138. * Community
  139. */
  140. .tm-margin-large-bottom { margin-bottom: 80px; }
  141. .tm-panel-link,
  142. .tm-panel-link:hover {
  143. text-decoration: none;
  144. color: #444;
  145. }
  146. .tm-panel-link {
  147. padding: 30px 30px 60px 30px;
  148. border: 1px solid #e5e5e5;
  149. }
  150. .tm-panel-link:after {
  151. content: "";
  152. display: none;
  153. position: absolute;
  154. height: 5px;
  155. right: -1px;
  156. left: -1px;
  157. bottom: -1px;
  158. background: #0BA1D8;
  159. }
  160. .tm-panel-link:hover:after { display: block; }
  161. .tm-panel-link:hover h2 { color: #0BA1D8; }
  162. /* Only phones */
  163. .tm-grid-margin-large .uk-grid-margin { margin-top: 50px; }
  164. .tm-icon {
  165. position: relative;
  166. width: 80px;
  167. margin: -60px auto 0 auto;
  168. border-radius: 5px;
  169. background: #0BA1D8;
  170. line-height: 80px;
  171. color: #fff;
  172. }
  173. .tm-icon:after {
  174. content: "";
  175. display: block;
  176. position: absolute;
  177. bottom: -10px;
  178. left: 50%;
  179. width: 0;
  180. height: 0;
  181. margin-left: -10px;
  182. border: 10px solid #0BA1D8;
  183. border-right-color: transparent;
  184. border-left-color: transparent;
  185. border-bottom: none;
  186. }
  187. .tm-panel-link { -webkit-backface-visibility: hidden; }
  188. .tm-panel-link:hover .tm-icon {
  189. transform: translateY(5px);
  190. -webkit-transform: translateY(5px);
  191. transition: all 0.1s ease-out;
  192. -webkit-transition: all 0.1s ease-out;
  193. }
  194. /*
  195. * Footer
  196. */
  197. .tm-footer .uk-subnav-line > li:before { border-color: #ddd; }
  198. .tm-footer,
  199. .tm-footer a { color: #ddd !important; }
  200. .tm-footer a:hover { color: #fff !important; }
  201. /* UIkit component modifiers
  202. ========================================================================== */
  203. /*
  204. * Navbar
  205. */
  206. .tm-navbar {
  207. padding: 15px 0;
  208. border: none;
  209. background: #000;
  210. }
  211. .tm-navbar .uk-navbar-content,
  212. .tm-navbar .uk-navbar-brand,
  213. .tm-navbar .uk-navbar-toggle {
  214. height: 40px;
  215. margin-top: 0;
  216. text-shadow: none;
  217. }
  218. .tm-navbar .uk-navbar-nav > li > a {
  219. height: 40px;
  220. margin: 0;
  221. border: none;
  222. border-radius: 3px !important;
  223. text-shadow: none;
  224. font-size: 15px;
  225. }
  226. .tm-navbar .uk-navbar-nav > li { margin-left: 20px; }
  227. /* Hover */
  228. .tm-navbar .uk-navbar-nav > li:hover > a,
  229. .tm-navbar .uk-navbar-nav > li > a:focus,
  230. .tm-navbar .uk-navbar-nav > li.uk-open > a {
  231. border: none;
  232. color: #FFF;
  233. }
  234. /* Active */
  235. .tm-navbar .uk-navbar-nav > li.uk-active > a {
  236. background-color: #2BA3D4;
  237. color: #FFF;
  238. }
  239. /* OnClick */
  240. .tm-navbar .uk-navbar-nav > li > a:active { background-color: transparent; }
  241. /*
  242. * Nav
  243. */
  244. .tm-nav > li > a { color: #777; }
  245. /* Hover */
  246. .tm-nav > li > a:hover,
  247. .tm-nav > li > a:focus,
  248. .tm-nav > li.uk-active > a {
  249. background: #F5F5F5;
  250. color: #444;
  251. }
  252. /* Sub-object: `nav-header` */
  253. .tm-nav .uk-nav-header {
  254. color: #222;
  255. font-weight: normal;
  256. }
  257. /*
  258. * Nav
  259. */
  260. .tm-subnav > li:nth-child(n+2) { margin-left: 20px; }
  261. /*
  262. * Article
  263. */
  264. .tm-article-subtitle {
  265. padding-left: 6px;
  266. border-left: 3px solid #1FA2D6;
  267. font-size: 16px;
  268. line-height: 16px;
  269. }
  270. /*
  271. * Showcase Overlay
  272. */
  273. .tm-overlay-icon:empty:before {
  274. content: "\f064";
  275. width: 60px;
  276. height: 60px;
  277. margin-top: -30px;
  278. margin-left: -30px;
  279. font-size: 60px;
  280. }
  281. /* Custom content
  282. ========================================================================== */
  283. /*
  284. * Style grid for showcase purpose
  285. */
  286. .tm-grid-truncate code {
  287. /* Truncate */
  288. overflow: hidden;
  289. text-overflow: ellipsis;
  290. white-space: nowrap;
  291. /* Nedded */
  292. max-width: 80%;
  293. display: inline-block;
  294. vertical-align: middle;
  295. line-height: 16px;
  296. }
  297. .tm-icons > [class*="uk-width-"] {
  298. padding-bottom: 5px;
  299. padding-top: 5px;
  300. }
  301. /*
  302. * Generate different grid panel colors
  303. */
  304. .tm-grid-colors > * > * { padding: 20px; }
  305. .tm-grid-colors > :nth-child(8n-7) > * { background: rgba(130,200,240,0.1); }
  306. .tm-grid-colors > :nth-child(8n-6) > * { background: rgba(130,200,240,0.15); }
  307. .tm-grid-colors > :nth-child(8n-5) > * { background: rgba(130,200,240,0.2); }
  308. .tm-grid-colors > :nth-child(8n-4) > * { background: rgba(130,200,240,0.25); }
  309. .tm-grid-colors > :nth-child(8n-3) > * { background: rgba(130,200,240,0.3); }
  310. .tm-grid-colors > :nth-child(8n-2) > * { background: rgba(130,200,240,0.35); }
  311. .tm-grid-colors > :nth-child(8n-1) > * { background: rgba(130,200,240,0.40); }
  312. .tm-grid-colors > :nth-child(8n) > * { background: rgba(130,200,240,0.45); }
  313. /*
  314. * Generate different grid panel heights
  315. */
  316. .tm-grid-heights > :nth-child(8n-7) > * { height: 80px; }
  317. .tm-grid-heights > :nth-child(8n-6) > * { height: 100px; }
  318. .tm-grid-heights > :nth-child(8n-5) > * { height: 160px; }
  319. .tm-grid-heights > :nth-child(8n-4) > * { height: 120px; }
  320. .tm-grid-heights > :nth-child(8n-3) > * { height: 180px; }
  321. .tm-grid-heights > :nth-child(8n-2) > * { height: 130px; }
  322. .tm-grid-heights > :nth-child(8n-1) > * { height: 150px; }
  323. .tm-grid-heights > :nth-child(8n) > * { height: 110px; }
  324. /*
  325. * Add a fixed height to grid items
  326. */
  327. .tm-grid-height-250 > * > * { height: 250px; }
  328. /* Customizer
  329. ========================================================================== */
  330. .cm-customizer,
  331. .cm-customizer body {
  332. height: 100%;
  333. overflow: hidden;
  334. }
  335. /*
  336. * Sidebar
  337. */
  338. .cm-sidebar {
  339. position: fixed;
  340. top: 0;
  341. bottom: 0;
  342. left: 0;
  343. z-index: 1;
  344. width: 310px;
  345. border-right: 1px solid rgba(0,0,0,0.1);
  346. }
  347. .cm-sidebar-header {
  348. position: absolute;
  349. top: 0;
  350. left: 0;
  351. right: 0;
  352. height: 110px;
  353. padding: 20px 30px;
  354. border-bottom: 1px solid rgba(0,0,0,0.1);
  355. }
  356. .cm-sidebar-content {
  357. position: absolute;
  358. top: 151px;
  359. bottom: 116px;
  360. left: 0;
  361. right: 0;
  362. padding: 20px 20px 0 30px;
  363. overflow-y: scroll;
  364. }
  365. .cm-sidebar-footer {
  366. position: absolute;
  367. bottom: 0;
  368. left: 0;
  369. right: 0;
  370. height: 75px;
  371. padding: 20px 30px;
  372. border-top: 1px solid rgba(0,0,0,0.1);
  373. }
  374. .cm-sidebar-footer .uk-grid + .uk-grid { margin-top: 15px; }
  375. .cm-file-import {
  376. display: inline-block;
  377. position: relative;
  378. overflow: hidden;
  379. }
  380. .cm-file-import input[type=file] {
  381. position: absolute;
  382. right: 0;
  383. top: 0;
  384. font-size: 500px;
  385. opacity: 0;
  386. cursor: pointer;
  387. }
  388. /*
  389. * Iframe wrapper
  390. */
  391. .cm-wrapper {
  392. position: absolute;
  393. top: 0;
  394. bottom: 0;
  395. left: 310px;
  396. right: 0;
  397. }
  398. .cm-wrapper > iframe {
  399. -moz-box-sizing: border-box;
  400. box-sizing: border-box;
  401. width: 100%;
  402. height: 100%;
  403. padding-top: 70px;
  404. margin-top: -70px;
  405. }
  406. /* Fixed links in navbar not clickable caused by iframe overlay */
  407. .tm-navbar { position: relative; }
  408. /*
  409. * Sidebar content
  410. */
  411. .cm-vars {
  412. padding-bottom: 20px;
  413. font-size: 12px;
  414. }
  415. .cm-form-title .more-link:after {
  416. content: "(more)";
  417. font-size: 12px;
  418. text-transform: none;
  419. }
  420. .show-more .cm-form-title .more-link:after { content: "(hide)"; }
  421. /*
  422. * Variables form
  423. */
  424. .cm-form fieldset + fieldset { margin-top: 25px; }
  425. .cm-form-title {
  426. font-size: 16px !important;
  427. line-height: 22px !important;
  428. text-transform: capitalize !important;
  429. }
  430. .cm-form .uk-form-row + .uk-form-row { margin-top: 5px; }
  431. .cm-form .uk-form-label {
  432. float: left;
  433. line-height: 25px;
  434. /* Text truncate */
  435. max-width: 180px;
  436. overflow: hidden;
  437. text-overflow: ellipsis;
  438. text-transform: capitalize;
  439. white-space: nowrap;
  440. }
  441. .cm-form .uk-form-controls { float: right; }
  442. .cm-form select,
  443. .cm-form.uk-form input {
  444. width: 60px;
  445. border: 0;
  446. box-shadow: none;
  447. }
  448. .cm-form.uk-form input { text-align: right; }
  449. .cm-form select:focus,
  450. .cm-form.uk-form input:focus { background: none; }
  451. .cm-form :-ms-input-placeholder { color: #ddd !important; }
  452. .cm-form ::-moz-placeholder { color: #ddd; }
  453. .cm-form ::-webkit-input-placeholder { color: #ddd; }
  454. /*
  455. * Advanced mode
  456. */
  457. .cm-more-link,
  458. .cm-advanced,
  459. .cm-more { display: none; }
  460. .cm-show-advanced .cm-advanced,
  461. .cm-show-advanced .cm-show-more .cm-more { display: block; }
  462. .cm-show-advanced .cm-more-link { display: inline; }
  463. .cm-more-link:after {
  464. content: "(more)";
  465. font-size: 12px;
  466. text-transform: none;
  467. line-height: 1;
  468. }
  469. .cm-show-more .cm-more-link:after { content: "(hide)"; }
  470. /*
  471. * Download modal
  472. */
  473. .cm-modal textarea {
  474. height: 400px;
  475. resize: none;
  476. font-family: 'Microsoft YaHei';
  477. }
  478. /*
  479. * Loading spinner
  480. */
  481. .cm-spinner {
  482. position: absolute;
  483. left: 50%;
  484. top: 50%;
  485. margin-top: -15px;
  486. margin-left: -15px;
  487. font-size: 30px;
  488. z-index: 1000;
  489. }
  490. /*
  491. * Error
  492. */
  493. .cm-error {
  494. position: absolute;
  495. left: 50%;
  496. top: 40%;
  497. width: 300px;
  498. margin-left: -176px;
  499. display: none;
  500. z-index: 1000;
  501. }
  502. /*
  503. * Responsive behavior
  504. */
  505. /* Fix sidebar position if offcanvas appears */
  506. .uk-offcanvas-page .cm-sidebar { left: auto; }
  507. /* Colorpicker
  508. ========================================================================== */
  509. .sp-placeholder {
  510. width: 15px;
  511. height: 15px;
  512. margin: 5px;
  513. border-radius: 2px;
  514. float: right;
  515. cursor: pointer;
  516. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
  517. }
  518. .sp-placeholder-color {
  519. width: 15px;
  520. height: 15px;
  521. border-radius: 2px;
  522. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  523. }
  524. .sp-replacer {
  525. padding: 5px;
  526. background: transparent;
  527. float: right;
  528. border: 0;
  529. }
  530. .sp-preview {
  531. height: 15px;
  532. width: 15px;
  533. margin: 0;
  534. border: none;
  535. border-radius: 2px;
  536. }
  537. .sp-preview-inner {
  538. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
  539. border-radius: 2px;
  540. }
  541. .sp-dd { display: none; }
  542. .sp-container {
  543. border: 1px solid #d3d3d3;
  544. background-color: #fff;
  545. border-radius: 4px;
  546. box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  547. }
  548. input.sp-input {
  549. -moz-box-sizing: border-box !important;
  550. box-sizing: border-box !important;
  551. height: auto;
  552. padding: 5px 6px;
  553. border: 1px solid #e5e5e5;
  554. background: #fff;
  555. border-radius: 4px;
  556. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08) inset;
  557. color: #444;
  558. transition: all 0.2s linear 0s;
  559. }
  560. .sp-input:focus {
  561. border-color: #99BACA;
  562. background-color: #f5fBfE;
  563. }
  564. .sp-picker-container { border-left: none; }
  565. .sp-dragger {
  566. height: 10px;
  567. width: 10px;
  568. border: none;
  569. background: #fff;
  570. border-radius: 10px;
  571. box-shadow: 0 0 3px rgba(0,0,0,0.5);
  572. }
  573. .sp-color,
  574. .sp-hue { border-color: #ccc; }
  575. .sp-slider {
  576. left: -4px;
  577. right: -4px;
  578. height: 8px;
  579. border-color: #ccc;
  580. }
  581. .sp-alpha-enabled .sp-top { margin-bottom: 28px; }
  582. .sp-alpha {
  583. bottom: -23px;
  584. height: 12px;
  585. }
  586. .sp-alpha-handle { border-color: #d3d3d3; }
  587. .sp-alpha-inner { border-color: #ddd; }
  588. .sp-container button {
  589. min-height: 30px;
  590. padding: 0 12px;
  591. border: 1px solid rgba(0,0,0,0.2);
  592. border-bottom-color: rgba(0,0,0,0.3);
  593. border-radius: 4px;
  594. background-color: #eee;
  595. background-image: -webkit-linear-gradient(top, #fff, #eee);
  596. background-image: linear-gradient(to bottom, #fff, #eee);
  597. color: #666;
  598. line-height: 28px;
  599. text-shadow: 0 1px 0 #fff;
  600. }
  601. .sp-container button:hover {
  602. border: 1px solid rgba(0,0,0,0.2);
  603. border-bottom-color: rgba(0,0,0,0.3);
  604. background-color: #f5f5f5;
  605. background-image: none;
  606. text-shadow: 0 1px 0 #fff;
  607. }
  608. .sp-container button:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
  609. .sp-cancel, .sp-reset { color: #0077DD !important; }
  610. .sp-cancel:hover, .sp-reset:hover {
  611. color: #005599 !important;
  612. text-decoration: underline;
  613. }
  614. .sp-container,
  615. .sp-container button,
  616. .sp-container input,
  617. .sp-color,
  618. .sp-cancel, .sp-reset,
  619. .sp-hue { font: inherit; }
  620. .sp-input-container { margin-bottom: 10px; }
  621. #uk-link li a{
  622. border-bottom: 1px solid #178d7d;
  623. }
  624. #uk-link li a:hover{
  625. border-bottom: 1px solid #fff;
  626. }