style.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. body, html {
  2. height: 100%;
  3. }
  4. .book{
  5. position: relative;
  6. width: 100%;
  7. height: 100%;
  8. }
  9. .book.with-summary .book-summary {
  10. left: 0;
  11. }
  12. .book-summary {
  13. position: absolute;
  14. top: 0;
  15. left: -300px;
  16. bottom: 0;
  17. z-index: 1;
  18. overflow-y: auto;
  19. width: 300px;
  20. color: #364149;
  21. background: #fafafa;
  22. border-right: 1px solid rgba(0,0,0,.07);
  23. -webkit-transition: left 250ms ease;
  24. -moz-transition: left 250ms ease;
  25. -o-transition: left 250ms ease;
  26. transition: left 250ms ease;
  27. }
  28. .book-body {
  29. position: absolute;
  30. top: 0;
  31. right: 0;
  32. left: 0;
  33. bottom: 0;
  34. overflow-y: auto;
  35. color: #333;
  36. background: #fff;
  37. -webkit-transition: left 250ms ease;
  38. -moz-transition: left 250ms ease;
  39. -o-transition: left 250ms ease;
  40. transition: left 250ms ease;
  41. }
  42. .book-body .body-inner {
  43. position: absolute;
  44. top: 0;
  45. right: 0;
  46. left: 0;
  47. bottom: 0;
  48. overflow-y: auto;
  49. padding-top: 10px;
  50. }
  51. .book-header {
  52. overflow: visible;
  53. height: 50px;
  54. z-index: 2;
  55. font-size: .85em;
  56. color: #7e888b;
  57. background: 0 0;
  58. }
  59. .book-header a.header-menu{
  60. font-size: 18px;
  61. color: #555555;
  62. padding: 10px;
  63. text-decoration: none;
  64. }
  65. .book-header a.header-menu:hover{
  66. text-decoration: none;
  67. color: #5cb85c;
  68. }
  69. .page-wrapper {
  70. position: relative;
  71. outline: 0;
  72. }
  73. .book .book-body .page-wrapper .page-inner {
  74. position: relative;
  75. left: 0px;
  76. transition: 300ms ease left;
  77. }
  78. .page-inner {
  79. position: relative;
  80. max-width: 900px;
  81. margin: 0 auto;
  82. padding: 20px 15px 40px 15px;
  83. }
  84. @media (min-width: 600px){
  85. .book.with-summary .book-body {
  86. left: 300px;
  87. }
  88. }
  89. @media (max-width: 600px){
  90. .book-summary {
  91. width: calc(100% - 60px);
  92. bottom: 0;
  93. left: -100%;
  94. }
  95. .book.with-summary .book-body {
  96. -webkit-transform: translate(calc(100% - 60px),0);
  97. -moz-transform: translate(calc(100% - 60px),0);
  98. -ms-transform: translate(calc(100% - 60px),0);
  99. -o-transform: translate(calc(100% - 60px),0);
  100. transform: translate(calc(100% - 60px),0);
  101. }
  102. }
  103. @media (max-width: 1240px){
  104. .book-body {
  105. -webkit-transition: -webkit-transform 250ms ease;
  106. -moz-transition: -moz-transform 250ms ease;
  107. -o-transition: -o-transform 250ms ease;
  108. transition: transform 250ms ease;
  109. padding-bottom: 20px;
  110. }
  111. }
  112. @media (max-width: 1240px){
  113. .book-body .body-inner {
  114. position: static;
  115. min-height: calc(100% - 50px);
  116. }
  117. }
  118. .navbar{
  119. background: #5cb85c;
  120. color: #FFF;
  121. }
  122. .navbar a{
  123. color: #FFF;
  124. }
  125. .navbar-brand{
  126. font-weight: 600;
  127. }
  128. @media (min-width: 768px){
  129. .navbar {
  130. border-radius: 0;
  131. }
  132. }
  133. .catalog .panel{
  134. margin-bottom: 0;
  135. border-radius: 0;
  136. border: none;
  137. box-shadow: none;
  138. -webkit-box-shadow: none;
  139. }
  140. .catalog .catalog-title {
  141. border-bottom: 1px solid #EAEAEA;
  142. padding: 1rem 1.25rem;
  143. background: rgba(0, 0, 0, .03);
  144. cursor: pointer;
  145. color: #333;
  146. font-weight: 600;
  147. font-size: 16px;
  148. }
  149. .catalog-item{
  150. padding: 8px 15px;
  151. margin-left: 15px;
  152. color: #888;
  153. border-bottom: solid #EEE 1px;
  154. display: block;
  155. }
  156. .action-item h2 a{
  157. color: #5cb85c;
  158. }
  159. a:hover{
  160. color: #449d44;
  161. }
  162. .search-box{
  163. position: relative;
  164. margin: 10px;
  165. }
  166. .navbar{
  167. margin-bottom: 0;
  168. }
  169. .main-content{
  170. display: flex;
  171. flex-direction: column;
  172. justify-content: center;
  173. align-items: center;
  174. margin-top: 20px;
  175. }
  176. .text-bold{
  177. font-weight: bold;
  178. }
  179. /**third part*/
  180. .algolia-autocomplete {
  181. width: 100%;
  182. }
  183. .algolia-autocomplete .aa-input, .algolia-autocomplete .aa-hint {
  184. width: 100%;
  185. }
  186. .algolia-autocomplete .aa-hint {
  187. color: #888;
  188. }
  189. .algolia-autocomplete .aa-dropdown-menu {
  190. width: 100%;
  191. background-color: #fff;
  192. border: 1px solid #EEE;
  193. border-top: none;
  194. }
  195. .algolia-autocomplete .aa-dropdown-menu .aa-suggestion {
  196. cursor: pointer;
  197. padding: 5px 4px;
  198. }
  199. .algolia-autocomplete .aa-dropdown-menu .aa-suggestion.aa-cursor {
  200. background-color: #449d44;
  201. color: #FFF;
  202. }
  203. .algolia-autocomplete .aa-dropdown-menu .aa-suggestion em {
  204. font-weight: bold;
  205. font-style: normal;
  206. }
  207. /* Doxy pretty-printing styles. Used with prettify.js. */
  208. pre .str, code .str { color: #fec243; } /* string - eggyolk gold */
  209. pre .kwd, code .kwd { color: #8470FF; } /* keyword - light slate blue */
  210. pre .com, code .com { color: #32cd32; font-style: italic; } /* comment - green */
  211. pre .typ, code .typ { color: #6ecbcc; } /* type - turq green */
  212. pre .lit, code .lit { color: #d06; } /* literal - cherry red */
  213. pre .pun, code .pun { color: #8B8970; } /* punctuation - lemon chiffon4 */
  214. pre .pln, code .pln { color: #f0f0f0; } /* plaintext - white */
  215. pre .tag, code .tag { color: #9c9cff; } /* html/xml tag (bluey) */
  216. pre .htm, code .htm { color: #dda0dd; } /* html tag light purply*/
  217. pre .xsl, code .xsl { color: #d0a0d0; } /* xslt tag light purply*/
  218. pre .atn, code .atn { color: #46eeee; font-weight: normal;} /* html/xml attribute name - lt turquoise */
  219. pre .atv, code .atv { color: #EEB4B4; } /* html/xml attribute value - rosy brown2 */
  220. pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
  221. a {
  222. text-decoration: none;
  223. }
  224. pre.prettyprint, code.prettyprint {
  225. font-family:'Droid Sans Mono','CPMono_v07 Bold','Droid Sans';
  226. font-weight: bold;
  227. font-size: 11pt;
  228. background-color: #0f0f0f;
  229. -moz-border-radius: 8px;
  230. -webkit-border-radius: 8px;
  231. -o-border-radius: 8px;
  232. -ms-border-radius: 8px;
  233. -khtml-border-radius: 8px;
  234. border-radius: 8px;
  235. } /* background is black (well, just a tad less dark ) */
  236. pre.prettyprint {
  237. padding: 1em;
  238. white-space: pre-wrap;
  239. }
  240. pre.prettyprint a, code.prettyprint a {
  241. text-decoration:none;
  242. }
  243. /* Specify class=linenums on a pre to get line numbering; line numbers themselves are the same color as punctuation */
  244. ol.linenums { margin-top: 0; margin-bottom: 0; color: #8B8970; } /* IE indents via margin-left */
  245. li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
  246. /* Alternate shading for lines */
  247. li.L1,li.L3,li.L5,li.L7,li.L9 { }
  248. /* print is mostly unchanged from default at present */
  249. @media print {
  250. pre.prettyprint, code.prettyprint { background-color: #fff; }
  251. pre .str, code .str { color: #088; }
  252. pre .kwd, code .kwd { color: #006; font-weight: bold; }
  253. pre .com, code .com { color: #oc3; font-style: italic; }
  254. pre .typ, code .typ { color: #404; font-weight: bold; }
  255. pre .lit, code .lit { color: #044; }
  256. pre .pun, code .pun { color: #440; }
  257. pre .pln, code .pln { color: #000; }
  258. pre .tag, code .tag { color: #b66ff7; font-weight: bold; }
  259. pre .htm, code .htm { color: #606; font-weight: bold; }
  260. pre .xsl, code .xsl { color: #606; font-weight: bold; }
  261. pre .atn, code .atn { color: #c71585; font-weight: normal; }
  262. pre .atv, code .atv { color: #088; font-weight: normal; }
  263. }