docs.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. * {
  2. box-sizing: border-box;
  3. }
  4. body {
  5. margin: 0;
  6. color: #333;
  7. font-family: 'Open Sans', arial, sans-serif;
  8. min-width: min-content;
  9. min-height: 100vh;
  10. font-size: 18px;
  11. display: flex;
  12. flex-direction: column;
  13. align-items: stretch;
  14. }
  15. #main-wrapper {
  16. flex-grow: 1;
  17. }
  18. main {
  19. max-width: 1024px;
  20. margin: 0 auto;
  21. }
  22. a:visited {
  23. color: inherit;
  24. }
  25. header {
  26. width: 100%;
  27. display: flex;
  28. flex-direction: column;
  29. align-items: center;
  30. justify-content: center;
  31. height: 360px;
  32. margin: 0;
  33. background: linear-gradient(0deg, rgba(9,9,121,1) 0%, rgba(0,212,255,1) 100%);
  34. color: white;
  35. }
  36. footer {
  37. width: 100%;
  38. min-height: 120px;
  39. background: gray;
  40. color: white;
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. padding: 12px;
  45. margin-top: 64px;
  46. }
  47. h1 {
  48. font-size: 2.5em;
  49. font-weight: 400;
  50. }
  51. h2 {
  52. font-size: 1.6em;
  53. font-weight: 300;
  54. margin: 64px 0 12px;
  55. }
  56. h3 {
  57. font-weight: 300;
  58. }
  59. header h1 {
  60. width: auto;
  61. font-size: 2.8em;
  62. margin: 0;
  63. }
  64. header h2 {
  65. width: auto;
  66. margin: 0;
  67. }
  68. nav {
  69. display: grid;
  70. width: 100%;
  71. max-width: 100%;
  72. grid-template-columns: repeat(auto-fit, 240px);
  73. justify-content: center;
  74. border-bottom: 1px solid #efefef;
  75. }
  76. nav > a {
  77. color: #444;
  78. display: block;
  79. flex: 1;
  80. font-size: 18px;
  81. padding: 20px 0;
  82. text-align: center;
  83. text-decoration: none;
  84. }
  85. nav > a:hover {
  86. text-decoration: underline;
  87. }
  88. nav.collection {
  89. border: none;
  90. }
  91. nav.collection > ul {
  92. padding: 0;
  93. list-style: none;
  94. }
  95. nav.collection > ul > li {
  96. padding: 4px 0;
  97. }
  98. nav.collection > ul > li.selected {
  99. font-weight: 600;
  100. }
  101. nav.collection a {
  102. text-decoration: none;
  103. }
  104. nav.collection a:hover {
  105. text-decoration: underline;
  106. }
  107. section.columns {
  108. display: grid;
  109. grid-template-columns: repeat(auto-fit, minmax(400px, 488px));
  110. grid-gap: 48px;
  111. justify-content: center;
  112. }
  113. section.columns > div {
  114. flex: 1;
  115. }
  116. section.examples {
  117. display: grid;
  118. grid-template-columns: 240px minmax(400px, 784px);
  119. grid-gap: 48px;
  120. justify-content: center;
  121. }
  122. section.examples h2:first-of-type {
  123. margin-top: 0;
  124. }
  125. table {
  126. width: 100%;
  127. border-collapse: collapse;
  128. }
  129. th {
  130. font-weight: 600;
  131. }
  132. td, th {
  133. border: solid 1px #aaa;
  134. padding: 4px;
  135. text-align: left;
  136. }