styles.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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: 2rem;
  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. /* List */
  86. main ul {
  87. margin-left: 2.25rem;
  88. }
  89. main ul ul {
  90. margin-top: 0;
  91. }
  92. .wcag ul li {
  93. font-size: 0.85em;
  94. }
  95. /* Buttons */
  96. button {
  97. font-size: inherit;
  98. font-family: inherit;
  99. font-weight: inherit;
  100. }
  101. /* Tables */
  102. table {
  103. text-align: left;
  104. table-layout: fixed;
  105. width: 100%;
  106. border-collapse: collapse;
  107. }
  108. th, td {
  109. border: 2px solid;
  110. padding: 0.5rem;
  111. line-height: 1;
  112. margin: 0;
  113. }
  114. caption {
  115. font-size: 1.125rem;
  116. padding-bottom: 0.25rem;
  117. font-style: italic;
  118. }
  119. th:empty {
  120. border: 0;
  121. }
  122. /* Notes and warnings */
  123. .note {
  124. border-left: 0.5rem solid #FCB316;
  125. font-size: 0.85rem;
  126. }
  127. .note > div {
  128. margin-left: 0.75rem;
  129. }
  130. .note > div > img:first-child {
  131. height: 1.5rem;
  132. }
  133. .note.warning {
  134. border-color: #C83737;
  135. }
  136. .note > div > :first-child + * {
  137. margin-top: 0;
  138. }
  139. /* Code blocks */
  140. pre[class*=language-] {
  141. padding: 1rem;
  142. background: none;
  143. border: 0.125rem solid #eee;
  144. margin-top: 2.25rem;
  145. }
  146. pre[class*=language-][data-line] {
  147. padding: 1em 0 1em 2.25rem;
  148. }
  149. pre[class*=language-] code * {
  150. margin-top: 0 !important;
  151. }
  152. [data-codeblock-shortcode] {
  153. display: block;
  154. margin-top: -1rem;
  155. }
  156. .token.property,
  157. .token.tag,
  158. .token.boolean,
  159. .token.number,
  160. .token.constant,
  161. .token.symbol,
  162. .token.deleted {
  163. color: #38608F;
  164. }
  165. .token.selector,
  166. .token.attr-name,
  167. .token.string,
  168. .token.char,
  169. .token.builtin,
  170. .token.inserted {
  171. color: #EBA205;
  172. }
  173. .token.operator,
  174. .token.entity,
  175. .token.url,
  176. .language-css .token.string,
  177. .style .token.string {
  178. color: #a67f59;
  179. background: hsla(0, 0%, 100%, .5);
  180. }
  181. .token.atrule,
  182. .token.attr-value,
  183. .token.keyword {
  184. color: #07a;
  185. }
  186. .token.function {
  187. color: #375D84;
  188. }
  189. .line-numbers code {
  190. padding-left: 2.25rem;
  191. margin-top: -1rem;
  192. }
  193. .line-numbers {
  194. padding-bottom: 2.25rem !important;
  195. }
  196. .line-numbers .line-numbers-rows {
  197. margin-left: 2.25rem;
  198. top: 1.25rem;
  199. }
  200. /* Expandable sections */
  201. [data-expands] {
  202. text-align: left;
  203. border: 0;
  204. background: none;
  205. display: block;
  206. width: 100%;
  207. padding: 0;
  208. margin: 0;
  209. }
  210. [data-expands] svg {
  211. width: 1em;
  212. height: 1em;
  213. vertical-align: middle;
  214. }
  215. [data-expands][aria-expanded="true"] svg .up-strut {
  216. display: none;
  217. }