main.css 4.4 KB

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