base.css 4.4 KB

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