buble.css 15 KB

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