page.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. :root {
  2. --color-blue: #049EF4;
  3. --text-color: #444;
  4. --border-style: 1px solid #EEE;
  5. --header-height: 56px;
  6. }
  7. @font-face {
  8. font-family: 'Roboto Mono';
  9. src: local('Roboto Mono'), url('../files/RobotoMono-Regular.woff2') format('woff2');
  10. font-weight: normal;
  11. font-style: normal;
  12. }
  13. @font-face {
  14. font-family: 'SF-Pro-Text';
  15. src: local('SF-Pro-Text'), url('../files/SF-Pro-Text-Regular.otf');
  16. font-weight: normal;
  17. font-style: normal;
  18. }
  19. body {
  20. padding: 20px 24px 40px 24px;
  21. margin: 0;
  22. color: var(--text-color);
  23. font-family: 'SF-Pro-Text', sans-serif;
  24. font-size: 16px;
  25. line-height: 24px;
  26. tab-size: 4;
  27. overflow: auto;
  28. }
  29. a {
  30. color: var(--color-blue);
  31. cursor: pointer;
  32. text-decoration: none;
  33. }
  34. h1 {
  35. color: var(--color-blue);
  36. font-size: 2.4em;
  37. font-weight: normal;
  38. line-height: 1.36em;
  39. margin-top: 16px;
  40. margin-bottom: -16px;
  41. text-indent: -2px;
  42. }
  43. h2 {
  44. color: var(--color-blue);
  45. font-size: 1.8em;
  46. line-height: 1.32em;
  47. font-weight: normal;
  48. margin-top: 40px;
  49. margin-bottom: 16px;
  50. text-indent: -1px;
  51. }
  52. h3 {
  53. color: #000;
  54. font-size: 16px;
  55. font-weight: normal;
  56. text-indent: -1px;
  57. margin-top: 40px;
  58. }
  59. p {
  60. margin-top: 24px;
  61. margin-bottom: 24px;
  62. }
  63. ul, ol {
  64. box-sizing: border-box;
  65. padding-left: 20px;
  66. }
  67. ul li,
  68. ol li {
  69. padding-left: 4px;
  70. margin-bottom: 4px;
  71. }
  72. li ul,
  73. li ol {
  74. margin-top: 4px;
  75. }
  76. body {
  77. max-width: 760px;
  78. margin-left: auto;
  79. margin-right: auto;
  80. }
  81. table,
  82. pre,
  83. code {
  84. margin-left: -24px;
  85. margin-right: -24px;
  86. margin-top: 20px;
  87. margin-bottom: 20px;
  88. }
  89. h2 + p {
  90. margin-top: -12px;
  91. }
  92. div {
  93. margin-bottom: 20px;
  94. }
  95. .desc {
  96. padding-left: 0px;
  97. }
  98. br {
  99. display: none;
  100. }
  101. table {
  102. border-spacing: 24px 4px;
  103. }
  104. table,
  105. table tr,
  106. table td {
  107. text-align: left;
  108. }
  109. table th {
  110. text-decoration: none;
  111. padding: 2px 0;
  112. }
  113. code {
  114. display: block;
  115. padding: 20px 24px;
  116. white-space: pre-wrap;
  117. overflow: auto;
  118. box-sizing: border-box;
  119. }
  120. iframe {
  121. width: 100%;
  122. height: 420px;
  123. border:0;
  124. }
  125. th {
  126. padding: 10px;
  127. text-decoration: underline;
  128. }
  129. td {
  130. text-align: center;
  131. }
  132. table code {
  133. padding: 2px;
  134. margin: 0px;
  135. width: auto;
  136. }
  137. strong {
  138. color: #000;
  139. font-weight: normal;
  140. }
  141. #button {
  142. position: fixed;
  143. bottom: 16px;
  144. right: 16px;
  145. padding: 8px;
  146. border-radius: 50%;
  147. margin-bottom: 0px; /* TODO div sets it to 20px */
  148. background-color: #E5E5E5;
  149. opacity: .9;
  150. }
  151. #button:hover {
  152. cursor: pointer;
  153. opacity: 1;
  154. }
  155. #button img {
  156. display: block;
  157. }
  158. a.permalink {
  159. float: right;
  160. margin-left: 5px;
  161. }
  162. a.param,
  163. span.param {
  164. color: #999;
  165. }
  166. a.param:hover {
  167. color: #777;
  168. }
  169. sup, sub {
  170. /* prevent superscript and subscript elements from affecting line-height */
  171. vertical-align: baseline;
  172. position: relative;
  173. top: -0.4em;
  174. }
  175. sub {
  176. top: 0.4em;
  177. }
  178. /* mobile */
  179. @media all and ( max-width: 640px ) {
  180. body {
  181. padding: 16px 20px;
  182. }
  183. h1 {
  184. margin-top: 0;
  185. font-size: 26px;
  186. }
  187. h2 {
  188. margin-top: 20px;
  189. font-size: 18px;
  190. line-height: 25px;
  191. }
  192. }
粤ICP备19079148号