styles.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. /*
  2. Colors:
  3. Blue color = #38608F
  4. Dark blue color = #153B62
  5. Gold color = #FCB316
  6. Grey color = #707174
  7. Red color = #C83737
  8. */
  9. *, *::before, *::after {
  10. font-family: inherit;
  11. color: inherit;
  12. margin: 0;
  13. padding: 0;
  14. box-sizing: border-box;
  15. }
  16. html {
  17. font-size: calc(1em + 0.33vw);
  18. font-family: PT Sans, sans-serif;
  19. line-height: 1.5;
  20. color: #111;
  21. }
  22. body {
  23. max-width: 30rem;
  24. margin: 0 auto;
  25. }
  26. * + * {
  27. margin-top: 2.25rem;
  28. }
  29. br,
  30. dt,
  31. dd,
  32. th,
  33. td,
  34. option,
  35. [hidden] + *,
  36. li + li {
  37. margin-top: 0;
  38. }
  39. p + p {
  40. margin-top: 0.75rem;
  41. }
  42. a {
  43. text-decoration: none;
  44. border-bottom: 1px solid;
  45. }
  46. img {
  47. max-width: 100%;
  48. }
  49. :focus:not([tabindex="-1"]) {
  50. outline: 2px solid;
  51. }
  52. /* fix for IE :( */
  53. div:not([tabindex]):focus {
  54. outline: none;
  55. }
  56. h1, h2, h3, h4 {
  57. font-family: Miriam Libre, serif;
  58. line-height: 1.125;
  59. }
  60. h1 {
  61. font-size: 2.25rem;
  62. }
  63. h2 {
  64. font-size: 1.66rem;
  65. }
  66. h3 {
  67. font-size: 1.25rem;
  68. }
  69. h4 {
  70. font-size: 1rem;
  71. font-family: PT Sans, sans-serif;
  72. }
  73. kbd {
  74. line-height: 1;
  75. font-size: 0.66rem;
  76. padding: 0.1rem 0.25rem;
  77. border-radius: 0.25rem;
  78. border: 2px solid;
  79. box-shadow: 0.125rem 0.125rem 0 #111;
  80. }
  81. code {
  82. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  83. font-size: 0.85rem;
  84. }
  85. /* Buttons */
  86. button {
  87. font-size: inherit;
  88. font-family: inherit;
  89. font-weight: inherit;
  90. }
  91. /* Tables */
  92. table {
  93. text-align: left;
  94. table-layout: fixed;
  95. width: 100%;
  96. border-collapse: collapse;
  97. }
  98. th, td {
  99. border: 2px solid;
  100. padding: 0.5rem;
  101. line-height: 1;
  102. margin: 0;
  103. }
  104. caption {
  105. font-size: 1.125rem;
  106. padding-bottom: 0.25rem;
  107. font-style: italic;
  108. }
  109. th:empty {
  110. border: 0;
  111. }
  112. /* Notes and warnings */
  113. .note {
  114. border-left: 0.5rem solid #FCB316;
  115. font-size: 0.85rem;
  116. }
  117. .note > div {
  118. margin-left: 0.75rem;
  119. }
  120. .note > div > img:first-child {
  121. height: 1.5rem;
  122. }
  123. .note.warning {
  124. border-color: #C83737;
  125. }
  126. .note > div > :first-child + * {
  127. margin-top: 0;
  128. }
  129. /* Code blocks */
  130. pre[class*=language-] {
  131. padding: 1rem;
  132. background: none;
  133. border: 0.125rem solid #eee;
  134. margin-top: 2.25rem;
  135. }
  136. pre[class*=language-][data-line] {
  137. padding: 1em 0 1em 2.25rem;
  138. }
  139. pre[class*=language-] code * {
  140. margin-top: 0 !important;
  141. }
  142. [data-codeblock-shortcode] {
  143. display: block;
  144. margin-top: -1rem;
  145. }
  146. .token.property,
  147. .token.tag,
  148. .token.boolean,
  149. .token.number,
  150. .token.constant,
  151. .token.symbol,
  152. .token.deleted {
  153. color: #38608F;
  154. }
  155. .token.selector,
  156. .token.attr-name,
  157. .token.string,
  158. .token.char,
  159. .token.builtin,
  160. .token.inserted {
  161. color: #EBA205;
  162. }
  163. .token.operator,
  164. .token.entity,
  165. .token.url,
  166. .language-css .token.string,
  167. .style .token.string {
  168. color: #a67f59;
  169. background: hsla(0, 0%, 100%, .5);
  170. }
  171. .token.atrule,
  172. .token.attr-value,
  173. .token.keyword {
  174. color: #07a;
  175. }
  176. .token.function {
  177. color: #375D84;
  178. }
  179. .line-numbers code {
  180. padding-left: 2.25rem;
  181. margin-top: -1rem;
  182. }
  183. .line-numbers {
  184. padding-bottom: 2.25rem !important;
  185. }
  186. .line-numbers .line-numbers-rows {
  187. margin-left: 2.25rem;
  188. top: 1.25rem;
  189. }
  190. /* Expandable sections */
  191. [data-expands] {
  192. text-align: left;
  193. border: 0;
  194. background: none;
  195. display: block;
  196. width: 100%;
  197. padding: 0;
  198. margin: 0;
  199. }
  200. [data-expands] svg {
  201. width: 1em;
  202. height: 1em;
  203. vertical-align: middle;
  204. }
  205. [data-expands][aria-expanded="true"] svg .up-strut {
  206. display: none;
  207. }