Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

952 wiersze
14 KiB

  1. @import url("https://fonts.googleapis.com/css?family=Roboto+Mono|Source+Sans+Pro:300,400,600");
  2. * {
  3. -webkit-font-smoothing: antialiased;
  4. -webkit-overflow-scrolling: touch;
  5. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  6. -webkit-text-size-adjust: none;
  7. -webkit-touch-callout: none;
  8. box-sizing: border-box
  9. }
  10. body:not(.ready) {
  11. overflow: hidden
  12. }
  13. body:not(.ready) .app-nav,
  14. body:not(.ready)>nav,
  15. body:not(.ready) [data-cloak] {
  16. display: none
  17. }
  18. div#app {
  19. font-size: 30px;
  20. font-weight: lighter;
  21. margin: 40vh auto;
  22. text-align: center
  23. }
  24. div#app:empty:before {
  25. content: "Loading..."
  26. }
  27. .emoji {
  28. height: 1.2rem;
  29. vertical-align: middle
  30. }
  31. .progress {
  32. background-color: var(--theme-color, #7b85f2);
  33. height: 2px;
  34. left: 0;
  35. position: fixed;
  36. right: 0;
  37. top: 0;
  38. transition: width .2s, opacity .4s;
  39. width: 0;
  40. z-index: 5
  41. }
  42. .search .search-keyword,
  43. .search a:hover {
  44. color: var(--theme-color, #7b85f2)
  45. }
  46. .search .search-keyword {
  47. font-style: normal;
  48. font-weight: 700
  49. }
  50. body,
  51. html {
  52. height: 100%
  53. }
  54. body {
  55. -moz-osx-font-smoothing: grayscale;
  56. -webkit-font-smoothing: antialiased;
  57. color: #34495e;
  58. font-family: Source Sans Pro, Helvetica Neue, Arial, sans-serif;
  59. font-size: 15px;
  60. letter-spacing: 0;
  61. margin: 0;
  62. overflow-x: hidden
  63. }
  64. img {
  65. max-width: 100%
  66. }
  67. a[disabled] {
  68. cursor: not-allowed;
  69. opacity: .6
  70. }
  71. kbd {
  72. border: 1px solid #ccc;
  73. border-radius: 3px;
  74. display: inline-block;
  75. font-size: 12px !important;
  76. line-height: 12px;
  77. margin-bottom: 3px;
  78. padding: 3px 5px;
  79. vertical-align: middle
  80. }
  81. .task-list-item {
  82. list-style-type: none
  83. }
  84. li input[type=checkbox] {
  85. margin: 0 .2em .25em -1.6em;
  86. vertical-align: middle
  87. }
  88. .app-nav {
  89. margin: 25px 60px 0 0;
  90. position: absolute;
  91. right: 0;
  92. text-align: right;
  93. z-index: 2
  94. }
  95. .app-nav.no-badge {
  96. margin-right: 25px
  97. }
  98. .app-nav p {
  99. margin: 0
  100. }
  101. .app-nav>a {
  102. margin: 0 1rem;
  103. padding: 5px 0
  104. }
  105. .app-nav li,
  106. .app-nav ul {
  107. display: inline-block;
  108. list-style: none;
  109. margin: 0
  110. }
  111. .app-nav a {
  112. color: inherit;
  113. font-size: 16px;
  114. text-decoration: none;
  115. transition: color .3s
  116. }
  117. .app-nav a.active,
  118. .app-nav a:hover {
  119. color: var(--theme-color, #7b85f2)
  120. }
  121. .app-nav a.active {
  122. border-bottom: 2px solid var(--theme-color, #7b85f2)
  123. }
  124. .app-nav li {
  125. display: inline-block;
  126. margin: 0 1rem;
  127. padding: 5px 0;
  128. position: relative
  129. }
  130. .app-nav li ul {
  131. background-color: #fff;
  132. border: 1px solid #ddd;
  133. border-bottom-color: #ccc;
  134. border-radius: 4px;
  135. box-sizing: border-box;
  136. display: none;
  137. max-height: calc(100vh - 61px);
  138. overflow-y: auto;
  139. padding: 10px 0;
  140. position: absolute;
  141. right: -15px;
  142. text-align: left;
  143. top: 100%;
  144. white-space: nowrap
  145. }
  146. .app-nav li ul li {
  147. display: block;
  148. font-size: 14px;
  149. line-height: 1rem;
  150. margin: 0;
  151. margin: 8px 14px;
  152. white-space: nowrap
  153. }
  154. .app-nav li ul a {
  155. display: block;
  156. font-size: inherit;
  157. margin: 0;
  158. padding: 0
  159. }
  160. .app-nav li ul a.active {
  161. border-bottom: 0
  162. }
  163. .app-nav li:hover ul {
  164. display: block
  165. }
  166. .github-corner {
  167. border-bottom: 0;
  168. position: fixed;
  169. right: 0;
  170. text-decoration: none;
  171. top: 0;
  172. z-index: 1
  173. }
  174. .github-corner:hover .octo-arm {
  175. animation: a .56s ease-in-out
  176. }
  177. .github-corner svg {
  178. color: #fff;
  179. fill: var(--theme-color, #7b85f2);
  180. height: 80px;
  181. width: 80px
  182. }
  183. main {
  184. display: block;
  185. position: relative;
  186. width: 100vw;
  187. height: 100%;
  188. z-index: 0
  189. }
  190. main.hidden {
  191. display: none
  192. }
  193. .anchor {
  194. display: inline-block;
  195. text-decoration: none;
  196. transition: all .3s
  197. }
  198. .anchor span {
  199. color: #34495e
  200. }
  201. .anchor:hover {
  202. text-decoration: underline
  203. }
  204. .sidebar {
  205. border-right: 1px solid rgba(0, 0, 0, .07);
  206. overflow-y: auto;
  207. padding: 40px 0 0;
  208. position: absolute;
  209. top: 0;
  210. bottom: 0;
  211. left: 0;
  212. transition: transform .25s ease-out;
  213. width: 300px;
  214. z-index: 3
  215. }
  216. .sidebar>h1 {
  217. margin: 0 auto 1rem;
  218. font-size: 1.5rem;
  219. font-weight: 300;
  220. text-align: center
  221. }
  222. .sidebar>h1 a {
  223. color: inherit;
  224. text-decoration: none
  225. }
  226. .sidebar>h1 .app-nav {
  227. display: block;
  228. position: static
  229. }
  230. .sidebar .sidebar-nav {
  231. line-height: 2em;
  232. padding-bottom: 40px
  233. }
  234. .sidebar li.collapse .app-sub-sidebar {
  235. display: none
  236. }
  237. .sidebar ul {
  238. margin: 0;
  239. padding: 0
  240. }
  241. .sidebar li>p {
  242. font-weight: 700;
  243. margin: 0
  244. }
  245. .sidebar ul,
  246. .sidebar ul li {
  247. list-style: none
  248. }
  249. .sidebar ul li a {
  250. border-bottom: none;
  251. display: block
  252. }
  253. .sidebar ul li ul {
  254. padding-left: 20px
  255. }
  256. .sidebar::-webkit-scrollbar {
  257. width: 4px
  258. }
  259. .sidebar::-webkit-scrollbar-thumb {
  260. background: transparent;
  261. border-radius: 4px
  262. }
  263. .sidebar:hover::-webkit-scrollbar-thumb {
  264. background: hsla(0, 0%, 53%, .4)
  265. }
  266. .sidebar:hover::-webkit-scrollbar-track {
  267. background: hsla(0, 0%, 53%, .1)
  268. }
  269. .sidebar-toggle {
  270. background-color: transparent;
  271. background-color: hsla(0, 0%, 100%, .8);
  272. border: 0;
  273. outline: none;
  274. padding: 10px;
  275. position: absolute;
  276. bottom: 0;
  277. left: 0;
  278. text-align: center;
  279. transition: opacity .3s;
  280. width: 284px;
  281. z-index: 4
  282. }
  283. .sidebar-toggle .sidebar-toggle-button:hover {
  284. opacity: .4
  285. }
  286. .sidebar-toggle span {
  287. background-color: var(--theme-color, #7b85f2);
  288. display: block;
  289. margin-bottom: 4px;
  290. width: 16px;
  291. height: 2px
  292. }
  293. body.sticky .sidebar,
  294. body.sticky .sidebar-toggle {
  295. position: fixed
  296. }
  297. .content {
  298. padding-top: 60px;
  299. position: absolute;
  300. top: 0;
  301. right: 0;
  302. bottom: 0;
  303. left: 300px;
  304. transition: left .25s ease
  305. }
  306. .markdown-section {
  307. margin: 0 auto;
  308. max-width: 800px;
  309. padding: 30px 15px 40px;
  310. position: relative
  311. }
  312. .markdown-section>* {
  313. box-sizing: border-box;
  314. font-size: inherit
  315. }
  316. .markdown-section>:first-child {
  317. margin-top: 0 !important
  318. }
  319. .markdown-section hr {
  320. border: none;
  321. border-bottom: 1px solid #eee;
  322. margin: 2em 0
  323. }
  324. .markdown-section iframe {
  325. border: 1px solid #eee
  326. }
  327. .markdown-section table {
  328. border-collapse: collapse;
  329. border-spacing: 0;
  330. display: block;
  331. margin-bottom: 1rem;
  332. overflow: auto;
  333. width: 100%
  334. }
  335. .markdown-section th {
  336. font-weight: 700
  337. }
  338. .markdown-section td,
  339. .markdown-section th {
  340. border: 1px solid #ddd;
  341. padding: 6px 13px
  342. }
  343. .markdown-section tr {
  344. border-top: 1px solid #ccc
  345. }
  346. .markdown-section p.tip,
  347. .markdown-section tr:nth-child(2n) {
  348. background-color: #f8f8f8
  349. }
  350. .markdown-section p.tip {
  351. border-bottom-right-radius: 2px;
  352. border-left: 4px solid #f66;
  353. border-top-right-radius: 2px;
  354. margin: 2em 0;
  355. padding: 12px 24px 12px 30px;
  356. position: relative
  357. }
  358. .markdown-section p.tip:before {
  359. background-color: #f66;
  360. border-radius: 100%;
  361. color: #fff;
  362. content: "!";
  363. font-family: Dosis, Source Sans Pro, Helvetica Neue, Arial, sans-serif;
  364. font-size: 14px;
  365. font-weight: 700;
  366. left: -12px;
  367. line-height: 20px;
  368. position: absolute;
  369. height: 20px;
  370. width: 20px;
  371. text-align: center;
  372. top: 14px
  373. }
  374. .markdown-section p.tip code {
  375. background-color: #efefef
  376. }
  377. .markdown-section p.tip em {
  378. color: #34495e
  379. }
  380. .markdown-section p.warn {
  381. background: rgba(66, 185, 131, .1);
  382. border-radius: 2px;
  383. padding: 1rem
  384. }
  385. body.close .sidebar {
  386. transform: translateX(-300px)
  387. }
  388. body.close .sidebar-toggle {
  389. width: auto
  390. }
  391. body.close .content {
  392. left: 0
  393. }
  394. @media print {
  395. .app-nav,
  396. .github-corner,
  397. .sidebar,
  398. .sidebar-toggle {
  399. display: none
  400. }
  401. }
  402. @media screen and (max-width:768px) {
  403. .github-corner,
  404. .sidebar,
  405. .sidebar-toggle {
  406. position: fixed
  407. }
  408. .app-nav {
  409. margin-top: 16px
  410. }
  411. .app-nav li ul {
  412. top: 30px
  413. }
  414. main {
  415. height: auto;
  416. overflow-x: hidden
  417. }
  418. .sidebar {
  419. left: -300px;
  420. transition: transform .25s ease-out
  421. }
  422. .content {
  423. left: 0;
  424. max-width: 100vw;
  425. position: static;
  426. padding-top: 20px;
  427. transition: transform .25s ease
  428. }
  429. .app-nav,
  430. .github-corner {
  431. transition: transform .25s ease-out
  432. }
  433. .sidebar-toggle {
  434. background-color: transparent;
  435. width: auto;
  436. padding: 30px 30px 10px 10px
  437. }
  438. body.close .sidebar {
  439. transform: translateX(300px)
  440. }
  441. body.close .sidebar-toggle {
  442. background-color: hsla(0, 0%, 100%, .8);
  443. transition: background-color 1s;
  444. width: 284px;
  445. padding: 10px
  446. }
  447. body.close .content {
  448. transform: translateX(300px)
  449. }
  450. body.close .app-nav,
  451. body.close .github-corner {
  452. display: none
  453. }
  454. .github-corner:hover .octo-arm {
  455. animation: none
  456. }
  457. .github-corner .octo-arm {
  458. animation: a .56s ease-in-out
  459. }
  460. }
  461. @keyframes a {
  462. 0%,
  463. to {
  464. transform: rotate(0)
  465. }
  466. 20%,
  467. 60% {
  468. transform: rotate(-25deg)
  469. }
  470. 40%,
  471. 80% {
  472. transform: rotate(10deg)
  473. }
  474. }
  475. section.cover {
  476. -ms-flex-align: center;
  477. align-items: center;
  478. background-position: 50%;
  479. background-repeat: no-repeat;
  480. background-size: cover;
  481. height: 100vh;
  482. display: none
  483. }
  484. section.cover.show {
  485. display: -ms-flexbox;
  486. display: flex
  487. }
  488. section.cover.has-mask .mask {
  489. background-color: #fff;
  490. opacity: .8;
  491. position: absolute;
  492. top: 0;
  493. height: 100%;
  494. width: 100%
  495. }
  496. section.cover .cover-main {
  497. -ms-flex: 1;
  498. flex: 1;
  499. margin: -20px 16px 0;
  500. text-align: center;
  501. z-index: 1
  502. }
  503. section.cover a {
  504. color: inherit
  505. }
  506. section.cover a,
  507. section.cover a:hover {
  508. text-decoration: none
  509. }
  510. section.cover p {
  511. line-height: 1.5rem;
  512. margin: 1em 0
  513. }
  514. section.cover h1 {
  515. color: inherit;
  516. font-size: 2.5rem;
  517. font-weight: 300;
  518. margin: .625rem 0 2.5rem;
  519. position: relative;
  520. text-align: center
  521. }
  522. section.cover h1 a {
  523. display: block
  524. }
  525. section.cover h1 small {
  526. bottom: -.4375rem;
  527. font-size: 1rem;
  528. position: absolute
  529. }
  530. section.cover blockquote {
  531. font-size: 1.5rem;
  532. text-align: center
  533. }
  534. section.cover ul {
  535. line-height: 1.8;
  536. list-style-type: none;
  537. margin: 1em auto;
  538. max-width: 500px;
  539. padding: 0
  540. }
  541. section.cover .cover-main>p:last-child a {
  542. border: 1px solid var(--theme-color, #7b85f2);
  543. border-radius: 2rem;
  544. box-sizing: border-box;
  545. color: var(--theme-color, #7b85f2);
  546. display: inline-block;
  547. font-size: 1.05rem;
  548. letter-spacing: .1rem;
  549. margin: .5rem 1rem;
  550. padding: .75em 2rem;
  551. text-decoration: none;
  552. transition: all .15s ease
  553. }
  554. section.cover .cover-main>p:last-child a:last-child {
  555. background-color: var(--theme-color, #7b85f2);
  556. color: #fff
  557. }
  558. section.cover .cover-main>p:last-child a:last-child:hover {
  559. color: inherit;
  560. opacity: .8
  561. }
  562. section.cover .cover-main>p:last-child a:hover {
  563. color: inherit
  564. }
  565. section.cover blockquote>p>a {
  566. border-bottom: 2px solid var(--theme-color, #7b85f2);
  567. transition: color .3s
  568. }
  569. section.cover blockquote>p>a:hover {
  570. color: var(--theme-color, #7b85f2)
  571. }
  572. .sidebar,
  573. body {
  574. background-color: #fff
  575. }
  576. .sidebar {
  577. color: #364149
  578. }
  579. .sidebar li {
  580. margin: 6px 0 6px 15px
  581. }
  582. .sidebar ul li a {
  583. color: #505d6b;
  584. font-size: 14px;
  585. font-weight: 400;
  586. overflow: hidden;
  587. text-decoration: none;
  588. text-overflow: ellipsis;
  589. white-space: nowrap
  590. }
  591. .sidebar ul li a:hover {
  592. text-decoration: underline
  593. }
  594. .sidebar ul li ul {
  595. padding: 0
  596. }
  597. .sidebar ul li.active>a {
  598. border-right: 2px solid;
  599. color: var(--theme-color, #7b85f2);
  600. font-weight: 600
  601. }
  602. .app-sub-sidebar li:before {
  603. content: "-";
  604. padding-right: 4px;
  605. float: left
  606. }
  607. .markdown-section h1,
  608. .markdown-section h2,
  609. .markdown-section h3,
  610. .markdown-section h4,
  611. .markdown-section strong {
  612. color: #2c3e50;
  613. font-weight: 600
  614. }
  615. .markdown-section a {
  616. color: var(--theme-color, #7b85f2);
  617. font-weight: 600
  618. }
  619. .markdown-section h1 {
  620. font-size: 2rem;
  621. margin: 0 0 1rem
  622. }
  623. .markdown-section h2 {
  624. font-size: 1.75rem;
  625. margin: 45px 0 .8rem
  626. }
  627. .markdown-section h3 {
  628. font-size: 1.5rem;
  629. margin: 40px 0 .6rem
  630. }
  631. .markdown-section h4 {
  632. font-size: 1.25rem
  633. }
  634. .markdown-section h5 {
  635. font-size: 1rem
  636. }
  637. .markdown-section h6 {
  638. color: #777;
  639. font-size: 1rem
  640. }
  641. .markdown-section figure,
  642. .markdown-section p {
  643. margin: 1.2em 0
  644. }
  645. .markdown-section ol,
  646. .markdown-section p,
  647. .markdown-section ul {
  648. line-height: 1.6rem;
  649. word-spacing: .05rem
  650. }
  651. .markdown-section ol,
  652. .markdown-section ul {
  653. padding-left: 1.5rem
  654. }
  655. .markdown-section blockquote {
  656. border-left: 4px solid var(--theme-color, #7b85f2);
  657. color: #858585;
  658. margin: 2em 0;
  659. padding-left: 20px
  660. }
  661. .markdown-section blockquote p {
  662. font-weight: 600;
  663. margin-left: 0
  664. }
  665. .markdown-section iframe {
  666. margin: 1em 0
  667. }
  668. .markdown-section em {
  669. color: #7f8c8d
  670. }
  671. .markdown-section code {
  672. border-radius: 2px;
  673. color: #e96900;
  674. font-size: .8rem;
  675. margin: 0 2px;
  676. padding: 3px 5px;
  677. white-space: pre-wrap
  678. }
  679. .markdown-section code,
  680. .markdown-section pre {
  681. background-color: #f8f8f8;
  682. font-family: Roboto Mono, Monaco, courier, monospace
  683. }
  684. .markdown-section pre {
  685. -moz-osx-font-smoothing: initial;
  686. -webkit-font-smoothing: initial;
  687. line-height: 1.5rem;
  688. margin: 1.2em 0;
  689. overflow: auto;
  690. padding: 0 1.4rem;
  691. position: relative;
  692. word-wrap: normal
  693. }
  694. .token.cdata,
  695. .token.comment,
  696. .token.doctype,
  697. .token.prolog {
  698. color: #8e908c
  699. }
  700. .token.namespace {
  701. opacity: .7
  702. }
  703. .token.boolean,
  704. .token.number {
  705. color: #c76b29
  706. }
  707. .token.punctuation {
  708. color: #525252
  709. }
  710. .token.property {
  711. color: #c08b30
  712. }
  713. .token.tag {
  714. color: #2973b7
  715. }
  716. .token.string {
  717. color: var(--theme-color, #7b85f2)
  718. }
  719. .token.selector {
  720. color: #6679cc
  721. }
  722. .token.attr-name {
  723. color: #2973b7
  724. }
  725. .language-css .token.string,
  726. .style .token.string,
  727. .token.entity,
  728. .token.url {
  729. color: #22a2c9
  730. }
  731. .token.attr-value,
  732. .token.control,
  733. .token.directive,
  734. .token.unit {
  735. color: var(--theme-color, #7b85f2)
  736. }
  737. .token.keyword {
  738. color: #e96900
  739. }
  740. .token.atrule,
  741. .token.regex,
  742. .token.statement {
  743. color: #22a2c9
  744. }
  745. .token.placeholder,
  746. .token.variable {
  747. color: #3d8fd1
  748. }
  749. .token.deleted {
  750. text-decoration: line-through
  751. }
  752. .token.inserted {
  753. border-bottom: 1px dotted #202746;
  754. text-decoration: none
  755. }
  756. .token.italic {
  757. font-style: italic
  758. }
  759. .token.bold,
  760. .token.important {
  761. font-weight: 700
  762. }
  763. .token.important {
  764. color: #c94922
  765. }
  766. .token.entity {
  767. cursor: help
  768. }
  769. .markdown-section pre>code {
  770. -moz-osx-font-smoothing: initial;
  771. -webkit-font-smoothing: initial;
  772. background-color: #f8f8f8;
  773. border-radius: 2px;
  774. color: #525252;
  775. display: block;
  776. font-family: Roboto Mono, Monaco, courier, monospace;
  777. font-size: .8rem;
  778. line-height: inherit;
  779. margin: 0 2px;
  780. max-width: inherit;
  781. overflow: inherit;
  782. padding: 2.2em 5px;
  783. white-space: inherit
  784. }
  785. .markdown-section code:after,
  786. .markdown-section code:before {
  787. letter-spacing: .05rem
  788. }
  789. code .token {
  790. -moz-osx-font-smoothing: initial;
  791. -webkit-font-smoothing: initial;
  792. min-height: 1.5rem
  793. }
  794. pre:after {
  795. color: #ccc;
  796. content: attr(data-lang);
  797. font-size: .6rem;
  798. font-weight: 600;
  799. height: 15px;
  800. line-height: 15px;
  801. padding: 5px 10px 0;
  802. position: absolute;
  803. right: 0;
  804. text-align: right;
  805. top: 0
  806. }