index.css 2.6 KB

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