page.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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: 12px;
  50. text-indent: -1px;
  51. }
  52. h3 {
  53. font-size: 1.32em;
  54. line-height: 1.48em;
  55. font-weight: normal;
  56. text-indent: -1px;
  57. margin-top: 24px;
  58. margin-bottom: 12px;
  59. }
  60. p {
  61. margin-top: 24px;
  62. margin-bottom: 24px;
  63. }
  64. ul, ol {
  65. box-sizing: border-box;
  66. padding-left: 20px;
  67. }
  68. ul li,
  69. ol li {
  70. padding-left: 4px;
  71. margin-bottom: 4px;
  72. }
  73. li ul,
  74. li ol {
  75. margin-top: 4px;
  76. }
  77. body {
  78. max-width: 760px;
  79. margin-left: auto;
  80. margin-right: auto;
  81. }
  82. table,
  83. pre,
  84. code:not(.inline) {
  85. margin-left: -24px;
  86. margin-right: -24px;
  87. margin-top: 20px;
  88. margin-bottom: 20px;
  89. }
  90. div {
  91. margin-bottom: 20px;
  92. }
  93. .desc {
  94. padding-left: 0px;
  95. }
  96. br {
  97. display: none;
  98. }
  99. table {
  100. border-spacing: 24px 4px;
  101. }
  102. table,
  103. table tr,
  104. table td {
  105. text-align: left;
  106. }
  107. table th {
  108. text-decoration: none;
  109. padding: 2px 0;
  110. }
  111. code {
  112. display: block;
  113. padding: 20px 24px;
  114. white-space: pre-wrap;
  115. overflow: auto;
  116. box-sizing: border-box;
  117. }
  118. code.inline {
  119. display: inline-block;
  120. vertical-align: middle;
  121. border-radius: 4px;
  122. padding: 2px 5px;
  123. }
  124. iframe {
  125. width: 100%;
  126. height: 420px;
  127. border:0;
  128. }
  129. th {
  130. padding: 10px;
  131. text-decoration: underline;
  132. }
  133. td {
  134. text-align: center;
  135. }
  136. table code {
  137. padding: 2px;
  138. margin: 0px;
  139. width: auto;
  140. }
  141. strong {
  142. color: #000;
  143. font-weight: normal;
  144. }
  145. #button {
  146. position: fixed;
  147. bottom: 12px;
  148. right: 12px;
  149. padding: 8px;
  150. border-radius: 50%;
  151. margin-bottom: 0px;
  152. background-color: #E5E5E5;
  153. opacity: .9;
  154. }
  155. #button:hover {
  156. cursor: pointer;
  157. opacity: 1;
  158. }
  159. #button img {
  160. display: block;
  161. width: 20px;
  162. }
  163. a.permalink {
  164. float: right;
  165. margin-left: 5px;
  166. }
  167. a.param,
  168. span.param {
  169. color: #999;
  170. }
  171. a.param:hover {
  172. color: #777;
  173. }
  174. sup, sub {
  175. /* prevent superscript and subscript elements from affecting line-height */
  176. vertical-align: baseline;
  177. position: relative;
  178. top: -0.4em;
  179. }
  180. sub {
  181. top: 0.4em;
  182. }
  183. /* mobile */
  184. @media all and ( max-width: 640px ) {
  185. body {
  186. padding: 16px 20px;
  187. }
  188. h1 {
  189. margin-top: 0;
  190. font-size: 26px;
  191. }
  192. h2 {
  193. margin-top: 20px;
  194. font-size: 18px;
  195. line-height: 25px;
  196. }
  197. }