main.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. :root {
  2. --color-blue: #049EF4;
  3. --text-color: #444;
  4. --border-style: 1px solid #EEE;
  5. --header-height: 48px;
  6. --panel-padding: 16px;
  7. }
  8. @font-face {
  9. font-family: 'Roboto Mono';
  10. src: local('Roboto Mono'), url('../files/RobotoMono-Regular.woff2') format('woff2');
  11. font-weight: normal;
  12. font-style: normal;
  13. }
  14. * {
  15. box-sizing: border-box; /* don't let padding modify width */
  16. }
  17. html, body {
  18. height: 100%;
  19. }
  20. body {
  21. margin: 0px;
  22. overflow: hidden;
  23. font-family: 'Roboto Mono', monospace;
  24. font-size: 14px;
  25. line-height: 24px;
  26. background-color: #ffffff;
  27. color: var(--text-color);
  28. }
  29. a {
  30. text-decoration: none;
  31. }
  32. h1 {
  33. font-size: 18px;
  34. font-weight: 500;
  35. }
  36. h2 {
  37. padding: 8px 0;
  38. margin: 6px 0 12px 0;
  39. font-size: 14px;
  40. font-weight: normal;
  41. color: var(--color-blue);
  42. }
  43. h3 {
  44. margin: 4px 0;
  45. font-size: 14px;
  46. line-height: 23px;
  47. font-weight: 500;
  48. text-transform: uppercase;
  49. color: #9E9E9E;
  50. }
  51. h1 a {
  52. color: var(--color-blue);
  53. }
  54. #header {
  55. display: flex;
  56. height: 48px;
  57. border-bottom: var(--border-style);
  58. align-items: center;
  59. }
  60. #header h1 {
  61. margin-left: 15px;
  62. flex: 1;
  63. }
  64. #panel {
  65. position: fixed;
  66. left: 0px;
  67. width: 300px;
  68. height: 100%;
  69. overflow: auto;
  70. border-right: var(--border-style);
  71. display: flex;
  72. flex-direction: column;
  73. transition: 0s 0s height;
  74. }
  75. #panel #exitSearchButton {
  76. position: absolute;
  77. width: 40px;
  78. height: 40px;
  79. top: 4px;
  80. right: calc(var(--panel-padding) - 12px);
  81. z-index: 1000;
  82. display: none;
  83. background-size: 20px 20px;
  84. background-position: 50% 50%;
  85. background-repeat: no-repeat;
  86. background-image: url(../files/ic_close_black_24dp.svg);
  87. cursor: pointer;
  88. }
  89. #panel.searchFocused #exitSearchButton {
  90. display: block;
  91. }
  92. #panel.searchFocused #language {
  93. display: none;
  94. }
  95. #panel.searchFocused #filter {
  96. background-image: none;
  97. padding-left: var(--panel-padding);
  98. }
  99. #panel #expandButton {
  100. margin-right: 14px;
  101. margin-left: 4px;
  102. display: none;
  103. }
  104. #panel #sections {
  105. font-weight: 500;
  106. display: flex;
  107. justify-content: center;
  108. z-index: 1000;
  109. position: relative;
  110. height: 100%;
  111. align-items: center;
  112. }
  113. #panel #sections * {
  114. padding: 0 var(--panel-padding);
  115. height: 100%;
  116. position: relative;
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. }
  121. #panel #sections .selected:after {
  122. content: "";
  123. position: absolute;
  124. left: 0;
  125. right: 0;
  126. bottom: -1px;
  127. border-bottom: 1px solid black;
  128. }
  129. #panel #sections a {
  130. color: #9E9E9E;
  131. }
  132. #panel #filter {
  133. width: 100%;
  134. height: 48px;
  135. padding: 0px 44px;
  136. font-weight: 500;
  137. font-size: 14px;
  138. color: var(--text-color);
  139. outline: none;
  140. border: 0px;
  141. border-bottom: var(--border-style);
  142. background-size: 20px 20px;
  143. background-image: url(../files/ic_search_black_24dp.svg);
  144. background-position: 14px 50%;
  145. background-repeat: no-repeat;
  146. }
  147. #panel #language {
  148. font-family: 'Roboto Mono', monospace;
  149. position: absolute;
  150. top: 9px;
  151. right: 8px;
  152. border: 0px;
  153. font-size: 14px;
  154. font-weight: 500;
  155. background: url(ic_arrow_drop_down_black_24dp.svg) no-repeat;
  156. background-position: right center;
  157. background-color: white;
  158. padding: 4px 24px 4px 8px;
  159. -webkit-appearance: none;
  160. -moz-appearance: none;
  161. appearance: none;
  162. }
  163. #panel #language:focus {
  164. outline: none;
  165. }
  166. #contentWrapper {
  167. flex: 1;
  168. overflow: hidden;
  169. display: flex;
  170. flex-direction: column;
  171. transform: translate3d(0,0,0);
  172. }
  173. #panel #content {
  174. flex: 1;
  175. overflow-y: scroll;
  176. padding: 0 var(--panel-padding) 24px var(--panel-padding);
  177. }
  178. #panel #content ul {
  179. list-style-type: none;
  180. padding: 0px;
  181. margin: 0px 0 24px 0;
  182. }
  183. #panel #content ul li {
  184. margin: 2px 0;
  185. }
  186. #panel #content a {
  187. color: var(--text-color);
  188. }
  189. #panel #content a:hover,
  190. #panel #content .selected {
  191. color: var(--color-blue);
  192. }
  193. #panel #content .selected {
  194. text-decoration: underline;
  195. }
  196. #panel #content .hidden {
  197. display: none !important;
  198. }
  199. iframe {
  200. position: absolute;
  201. border: 0px;
  202. left: 300px;
  203. width: calc(100% - 300px);
  204. height: 100%;
  205. overflow: auto;
  206. }
  207. /* mobile */
  208. @media all and ( max-width: 640px ) {
  209. #panel #expandButton {
  210. display: block;
  211. }
  212. #panel {
  213. position: absolute;
  214. left: 0;
  215. top: 0;
  216. width: 100%;
  217. right: 0;
  218. z-index: 100;
  219. overflow-x: hidden;
  220. transition: 0s 0s height;
  221. border: none;
  222. height: var(--header-height);
  223. transition: 0s 0.2s height;
  224. }
  225. #panel.open {
  226. height: 100%;
  227. transition: 0s 0s height;
  228. }
  229. #panelScrim {
  230. pointer-events: none;
  231. background-color: rgba(0,0,0,0);
  232. position: absolute;
  233. left: 0;
  234. right: 0;
  235. top: 0;
  236. bottom: 0;
  237. z-index: 1000;
  238. pointer-events: none;
  239. transition: .2s background-color;
  240. }
  241. #panel.open #panelScrim {
  242. pointer-events: auto;
  243. background-color: rgba(0,0,0,0.4);
  244. }
  245. #contentWrapper {
  246. position: absolute;
  247. right: 0;
  248. top: 0;
  249. bottom: 0;
  250. background: white;
  251. box-shadow: 0 0 8px rgba(0,0,0,.1);
  252. width: calc(100vw - 60px);
  253. max-width: 360px;
  254. z-index: 10000;
  255. transition: .25s transform;
  256. overflow-x: hidden;
  257. margin-right: -380px;
  258. }
  259. #panel.open #contentWrapper {
  260. transform: translate3d(-380px, 0 ,0);
  261. }
  262. iframe {
  263. position: absolute;
  264. left: 0;
  265. top: var(--header-height);
  266. width: 100%;
  267. height: calc(100% - var(--header-height));
  268. }
  269. }