index.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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-left: 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. margin-right: 20px;
  68. position: relative;
  69. }
  70. .filterBlock p {
  71. margin: 0;
  72. }
  73. #filterInput {
  74. width: 100%;
  75. padding: 5px;
  76. font-family: inherit;
  77. font-size: 15px;
  78. outline: none;
  79. border: 1px solid #dedede;
  80. }
  81. #filterInput:focus{
  82. border: 1px solid #2194CE;
  83. }
  84. #clearFilterButton {
  85. position: absolute;
  86. right: 6px;
  87. top: 50%;
  88. margin-top: -8px;
  89. width: 16px;
  90. height: 16px;
  91. font-size: 14px;
  92. color: grey;
  93. text-align: center;
  94. line-height: 0;
  95. padding-top: 7px;
  96. opacity: .5;
  97. }
  98. #clearFilterButton:hover {
  99. opacity: 1;
  100. }
  101. .hidden {
  102. display: none;
  103. }
  104. #panel li b {
  105. font-weight: bold;
  106. }
  107. /* mobile */
  108. #expandButton {
  109. display: none;
  110. position: absolute;
  111. right: 20px;
  112. top: 12px;
  113. width: 32px;
  114. height: 32px;
  115. }
  116. #expandButton span {
  117. height: 2px;
  118. background-color: #2194CE;
  119. width: 16px;
  120. position: absolute;
  121. left: 8px;
  122. top: 10px;
  123. }
  124. #expandButton span:nth-child(1) {
  125. top: 16px;
  126. }
  127. #expandButton span:nth-child(2) {
  128. top: 22px;
  129. }
  130. @media all and ( max-width: 640px ) {
  131. h1 {
  132. margin-top: 20px;
  133. margin-bottom: 20px;
  134. }
  135. #panel {
  136. position: absolute;
  137. left: 0;
  138. top: 0;
  139. height: 100%;
  140. width: 100%;
  141. right: 0;
  142. z-index: 100;
  143. overflow: hidden;
  144. border-bottom: 1px solid #dedede;
  145. }
  146. #content {
  147. position: absolute;
  148. left: 0;
  149. top: 90px;
  150. right: 0;
  151. bottom: 0;
  152. font-size: 17px;
  153. line-height: 22px;
  154. padding-left: 20px;
  155. overflow: auto;
  156. }
  157. #navigation {
  158. position: absolute;
  159. left: 0;
  160. top: 90px;
  161. right: 0;
  162. bottom: 0;
  163. font-size: 17px;
  164. line-height: 22px;
  165. overflow: auto;
  166. }
  167. iframe {
  168. position: absolute;
  169. left: 0;
  170. top: 56px;
  171. width: 100%;
  172. height: calc(100% - 56px);
  173. }
  174. #expandButton {
  175. display: block;
  176. }
  177. #panel.collapsed {
  178. height: 56px;
  179. }
  180. }