base.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. html {
  2. font-family: 'Open Sans', sans-serif;
  3. scroll-margin-top: var(--xxl);
  4. }
  5. .icon {
  6. align-self: center;
  7. fill: var(--foreground);
  8. }
  9. .active {
  10. font: 600 1.1em Poppins, sans-serif;
  11. }
  12. .anchor-hidden {
  13. height: 1px;
  14. overflow: hidden;
  15. width: 1px;
  16. }
  17. .accessibility-menu {
  18. background-color: var(--background-hard) !important;
  19. border: 2px solid var(--border);
  20. border-radius: var(--s);
  21. display: block;
  22. height: min-content;
  23. left: -90%;
  24. padding: var(--s);
  25. position: absolute;
  26. top: -90%;
  27. width: 30%;
  28. z-index: 999;
  29. }
  30. .accessibility-menu ul {
  31. list-style-type: disc;
  32. margin-left: var(--m);
  33. }
  34. .accessibility-menu:focus-within:not(:active) {
  35. left: var(--s);
  36. top: var(--s);
  37. }
  38. .heading-no-margin {
  39. margin-bottom: initial;
  40. }
  41. .page-header {
  42. align-items: baseline;
  43. background: var(--gradient) !important;
  44. box-shadow: var(--shadow);
  45. display: flex;
  46. height: var(--xxl);
  47. padding: var(--s);
  48. position: fixed;
  49. top: 0;
  50. z-index: 1;
  51. }
  52. .header-instance {
  53. flex: 1;
  54. text-align: center;
  55. }
  56. .header-instance * {
  57. margin: unset;
  58. }
  59. .page-content-wrapper {
  60. justify-content: center;
  61. margin-left: auto;
  62. margin-right: auto;
  63. padding: var(--s) var(--s) 0;
  64. position: relative;
  65. top: var(--xxl);
  66. }
  67. .page-content {
  68. display: flex;
  69. flex-direction: column;
  70. margin-top: var(--s);
  71. width: 100%;
  72. }
  73. .markdown-blocks {
  74. background-color: var(--background-card) !important;
  75. border-radius: 0 0 var(--s) var(--s);
  76. padding: var(--s);
  77. }
  78. .markdown-blocks ul {
  79. list-style: disc;
  80. margin-left: 1em;
  81. }
  82. .markdown-blocks ul li {
  83. margin-bottom: .2em;
  84. }
  85. .doc-navigation {
  86. background-color: var(--background-card) !important;
  87. border-bottom: 0;
  88. border-radius: var(--s) var(--s) 0 0;
  89. padding: var(--s);
  90. }
  91. .doc-navigation ul {
  92. display: flex;
  93. justify-content: space-evenly;
  94. }
  95. .section-panel {
  96. padding: var(--s);
  97. position: fixed;
  98. top: var(--xxl);
  99. }
  100. .section-panel-left {
  101. left: 0;
  102. }
  103. .section-panel-right {
  104. right: 0;
  105. }
  106. .section-panel .panel-content {
  107. background: var(--background-hard);
  108. display: block;
  109. height: 100vh;
  110. }
  111. @media only screen and (max-width: 1280px) {
  112. .page-header {
  113. width: 100%;
  114. }
  115. .page-content-wrapper {
  116. width: 100%;
  117. }
  118. .page-content {
  119. max-width: 100%;
  120. }
  121. label[for|="toggle-panel"] {
  122. cursor: pointer;
  123. }
  124. input[id|="toggle-panel"] {
  125. position: absolute;
  126. top: -100%;
  127. }
  128. #toggle-panel-left:not(:checked) ~ .section-panel-left, #toggle-panel-right:not(:checked) ~ .section-panel-right {
  129. display: none;
  130. }
  131. #toggle-panel-left:checked ~ .section-panel-left, #toggle-panel-right:checked ~ .section-panel-right {
  132. left: 0;
  133. overflow-y: auto;
  134. width: 100vw;
  135. z-index: 1;
  136. }
  137. }
  138. @media only screen and (min-width: 1281px) {
  139. .page-header {
  140. width: 100%;
  141. }
  142. label[for|="toggle-panel"], input[id|="toggle-panel"] {
  143. display: none !important;
  144. }
  145. .section-panel {
  146. width: 17vw;
  147. }
  148. .page-content-wrapper {
  149. width: 66vw;
  150. }
  151. a[id|="anchor"]:target + .accessibility-target {
  152. animation-duration: 600ms;
  153. animation-name: highlight;
  154. animation-timing-function: ease-in-out;
  155. }
  156. }
  157. @media only screen and (min-width: 1921px) {
  158. .page-header {
  159. align-self: center;
  160. width: 66vw;
  161. }
  162. label[for|="toggle-panel"], input[id|="toggle-panel"] {
  163. display: none !important;
  164. }
  165. .section-panel {
  166. width: 11vw;
  167. }
  168. .section-panel-left {
  169. left: 17vw;
  170. }
  171. .section-panel-right {
  172. right: 17vw;
  173. }
  174. .page-content-wrapper {
  175. width: 44vw;
  176. }
  177. }
  178. @keyframes fadeIn {
  179. 0% {
  180. opacity: 0;
  181. transform: translateY(-10px);
  182. }
  183. 100% {
  184. opacity: unset;
  185. transform: none;
  186. }
  187. }
  188. @keyframes fadeOut {
  189. 100% {
  190. opacity: 0;
  191. transform: translateY(-10px);
  192. }
  193. 0% {
  194. opacity: unset;
  195. transform: none;
  196. }
  197. }
  198. @keyframes highlight {
  199. 0% {
  200. border-radius: var(--s);
  201. box-shadow: initial;
  202. }
  203. 50% {
  204. border-radius: var(--s);
  205. box-shadow: inset 0 20px 40px #FFF;
  206. transition: box-shadow .3s ease-in-out;
  207. z-index: 666;
  208. }
  209. 100% {
  210. border-radius: var(--s);
  211. box-shadow: initial;
  212. }
  213. 0% {
  214. border-radius: var(--s);
  215. box-shadow: initial;
  216. }
  217. 50% {
  218. border-radius: var(--s);
  219. box-shadow: inset 0 20px 40px #000;
  220. transition: box-shadow .3s ease-in-out;
  221. }
  222. 100% {
  223. border-radius: var(--s);
  224. box-shadow: initial;
  225. }
  226. }