index.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. @font-face {
  2. font-family: 'inconsolata';
  3. src: url('files/inconsolata.woff') format('woff');
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. * {
  8. box-sizing: border-box;
  9. }
  10. html {
  11. height: 100%;
  12. }
  13. body {
  14. background-color: #ffffff;
  15. margin: 0px;
  16. height: 100%;
  17. color: #555;
  18. font-family: 'inconsolata';
  19. font-size: 15px;
  20. line-height: 18px;
  21. overflow: hidden;
  22. }
  23. h1 {
  24. margin-top: 30px;
  25. margin-bottom: 40px;
  26. font-size: 25px;
  27. font-weight: normal;
  28. }
  29. h2 {
  30. color: #454545;
  31. font-size: 18px;
  32. font-weight: normal;
  33. margin-top: 20px;
  34. }
  35. h3 {
  36. color: #666;
  37. font-size: 16px;
  38. font-weight: normal;
  39. margin-top: 20px;
  40. }
  41. a {
  42. color: #2194CE;
  43. text-decoration: none;
  44. }
  45. #panel {
  46. position: fixed;
  47. left: 0px;
  48. width: 260px;
  49. height: 100%;
  50. overflow: auto;
  51. padding: 0px 20px 0px 20px;
  52. background: #fafafa;
  53. }
  54. #panel ul {
  55. list-style-type: none;
  56. padding: 0px;
  57. }
  58. iframe {
  59. position: absolute;
  60. border: 0px;
  61. left: 260px;
  62. width: calc(100% - 260px);
  63. height: 100%;
  64. overflow: auto;
  65. }
  66. .filterBlock {
  67. position: relative;
  68. }
  69. .filterBlock p {
  70. margin: 0;
  71. }
  72. #filterInput {
  73. width: 100%;
  74. padding: 5px;
  75. font-family: inherit;
  76. font-size: 15px;
  77. outline: none;
  78. border: 1px solid #dedede;
  79. }
  80. #filterInput:focus{
  81. border: 1px solid #2194CE;
  82. }
  83. #clearFilterButton {
  84. position: absolute;
  85. right: 6px;
  86. top: 50%;
  87. margin-top: -8px;
  88. width: 16px;
  89. height: 16px;
  90. font-size: 14px;
  91. color: grey;
  92. text-align: center;
  93. line-height: 0;
  94. padding-top: 7px;
  95. opacity: .5;
  96. }
  97. #clearFilterButton:hover {
  98. opacity: 1;
  99. }
  100. .hidden {
  101. display: none;
  102. }
  103. #panel li b {
  104. font-weight: bold;
  105. }
  106. /* mobile */
  107. #expandButton {
  108. display: none;
  109. position: absolute;
  110. right: 20px;
  111. top: 12px;
  112. width: 32px;
  113. height: 32px;
  114. }
  115. #expandButton span {
  116. height: 2px;
  117. background-color: #2194CE;
  118. width: 16px;
  119. position: absolute;
  120. left: 8px;
  121. top: 10px;
  122. }
  123. #expandButton span:nth-child(1) {
  124. top: 16px;
  125. }
  126. #expandButton span:nth-child(2) {
  127. top: 22px;
  128. }
  129. @media all and ( max-width: 640px ) {
  130. h1 {
  131. margin-top: 20px;
  132. margin-bottom: 20px;
  133. }
  134. #panel {
  135. position: absolute;
  136. left: 0;
  137. top: 0;
  138. height: 100%;
  139. width: 100%;
  140. right: 0;
  141. z-index: 100;
  142. overflow: hidden;
  143. border-bottom: 1px solid #dedede;
  144. }
  145. #content {
  146. position: absolute;
  147. left: 0;
  148. top: 120px;
  149. right: 0;
  150. bottom: 0;
  151. font-size: 17px;
  152. line-height: 22px;
  153. padding-left: 20px;
  154. overflow: auto;
  155. }
  156. #navigation {
  157. position: absolute;
  158. left: 0;
  159. top: 90px;
  160. right: 0;
  161. bottom: 0;
  162. font-size: 17px;
  163. line-height: 22px;
  164. overflow: auto;
  165. }
  166. iframe {
  167. position: absolute;
  168. left: 0;
  169. top: 56px;
  170. width: 100%;
  171. height: calc(100% - 56px);
  172. }
  173. #expandButton {
  174. display: block;
  175. }
  176. #panel.collapsed {
  177. height: 56px;
  178. }
  179. }