You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

520 lines
9.3 KiB

10 months ago
  1. /**
  2. * apidoc main css file
  3. */
  4. /**
  5. * Define colors
  6. */
  7. :root {
  8. --primary: #0088cc;
  9. --white: #fff;
  10. --light-gray: #ccc;
  11. --main-gray: #777;
  12. --dark-gray: #2d2d2d;
  13. --hover-gray: #666;
  14. --meth-get: green;
  15. --meth-put: #e5c500;
  16. --meth-post: #4070ec;
  17. --meth-delete: #ed0039;
  18. --red: #dc3545;
  19. }
  20. .color-primary {
  21. color: var(--primary);
  22. }
  23. .bg-primary {
  24. background-color: var(--primary);
  25. }
  26. .bg-red {
  27. color: var(--white);
  28. background-color: var(--red);
  29. }
  30. .border-danger {
  31. border: 1px solid var(--red);
  32. }
  33. /** for some reason the iOS safari style is applied on date inputs */
  34. input[type="date"] {
  35. line-height: 1.4 !important;
  36. }
  37. /* ------------------------------------------------------------------------------------------
  38. * Content
  39. * ------------------------------------------------------------------------------------------ */
  40. @font-face {
  41. font-family: 'Glyphicons Halflings';
  42. src: url('./glyphicons-halflings-regular.eot');
  43. src: url('./glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
  44. url('./glyphicons-halflings-regular.woff') format('woff'),
  45. url('./glyphicons-halflings-regular.ttf') format('truetype'),
  46. url('./glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
  47. }
  48. body {
  49. font-family: "Source Sans Pro", sans-serif;
  50. }
  51. a:focus {
  52. background-color: var(--primary);
  53. }
  54. #content {
  55. margin-top: 10px;
  56. margin-left: 20%;
  57. padding-left: 10px;
  58. }
  59. p {
  60. font-size: 130%;
  61. color: var(--main-gray);
  62. }
  63. section {
  64. padding: 30px 0;
  65. }
  66. article {
  67. border-top: 1px solid var(--light-gray);
  68. padding: 14px 0 30px 0;
  69. }
  70. table {
  71. border-collapse: collapse;
  72. width: 100%;
  73. margin: 0 0 20px 0;
  74. }
  75. th {
  76. background-color: var(--main-gray);
  77. color: var(--white);
  78. text-align: left;
  79. padding: 5px 8px;
  80. border: 1px solid var(--main-gray);
  81. }
  82. td {
  83. padding: 5px;
  84. border: 1px solid var(--main-gray);
  85. }
  86. td.code {
  87. font-family: "Source Code Pro", monospace;
  88. font-weight: 600;
  89. }
  90. .label {
  91. float: right;
  92. margin-top: 4px;
  93. user-select: none;
  94. }
  95. .label.optional {
  96. background-color: grey;
  97. }
  98. .label.required {
  99. background-color: var(--red);
  100. }
  101. .default-value,
  102. .type-size {
  103. font-style: italic;
  104. font-size: 95%;
  105. }
  106. .open-left {
  107. right: 0;
  108. left: auto;
  109. }
  110. .invisible {
  111. visibility: hidden;
  112. }
  113. .input-group-addon.sample-request-select {
  114. padding: 0 6px;
  115. }
  116. .input-group-addon.sample-request-select select {
  117. width: auto;
  118. height: 32px;
  119. }
  120. .sample-request-input-Boolean-container {
  121. width: 40px;
  122. height: 34px;
  123. background: var(--white);
  124. border: 1px solid var(--light-gray);
  125. }
  126. .sample-request-input-Boolean-container > div {
  127. margin-top: 7px;
  128. text-align: center;
  129. }
  130. .sample-request-input-Boolean-container > div input {
  131. margin: 0;
  132. }
  133. /* ------------------------------------------------------------------------------------------
  134. * Request method (HTTP verb)
  135. * ------------------------------------------------------------------------------------------ */
  136. .method {
  137. font-weight: 600;
  138. font-size: 15px;
  139. display: inline-block;
  140. margin: 0 0 5px 0;
  141. padding: 4px 5px;
  142. border-radius: 6px;
  143. text-transform: uppercase;
  144. background-color: var(--main-gray);
  145. color: var(--white);
  146. }
  147. .meth-get {
  148. background-color: var(--meth-get);
  149. }
  150. .meth-put {
  151. background-color: var(--meth-put);
  152. }
  153. .meth-post {
  154. background-color: var(--meth-post);
  155. }
  156. .meth-delete {
  157. background-color: var(--meth-delete);
  158. }
  159. /* ------------------------------------------------------------------------------------------
  160. * Sidenav
  161. * ------------------------------------------------------------------------------------------ */
  162. .sidenav {
  163. color: var(--white);
  164. width: 20%;
  165. position: fixed;
  166. top: 50px;
  167. left: 0;
  168. bottom: 0;
  169. overflow-x: hidden;
  170. overflow-y: auto;
  171. background-color: var(--dark-gray);
  172. }
  173. .sidenav > li > a {
  174. color: var(--white);
  175. display: block;
  176. padding: 8px 13px;
  177. }
  178. /* non active sidenav link are highlighted on hover */
  179. .sidenav > li:not(.active) > a:hover {
  180. background-color: var(--hover-gray);
  181. }
  182. .sidenav > li.nav-header {
  183. margin-top: 8px;
  184. margin-bottom: 8px;
  185. }
  186. .sidenav > li.nav-header > a {
  187. padding: 5px 15px;
  188. font-weight: 700;
  189. font-size: 16px;
  190. background-color: var(--main-gray);
  191. }
  192. .sidenav > li.active > a {
  193. position: relative;
  194. background-color: var(--primary);
  195. color: var(--white);
  196. }
  197. /**
  198. * TODO: commented out for the moment
  199. .sidenav > li.has-modifications a {
  200. border-right: 4px solid var(--main-gray);
  201. }
  202. .nav-list-item :not(.is-new) {
  203. border-left: 4px solid var(--main-gray);
  204. }
  205. .sidenav > li.is-new a {
  206. border-left: 4px solid var(--primary);
  207. }
  208. */
  209. /* ------------------------------------------------------------------------------------------
  210. * Side nav search
  211. * ------------------------------------------------------------------------------------------ */
  212. .sidenav-search {
  213. width: 20%;
  214. left: 0px;
  215. position: fixed;
  216. padding: 16px 20px 10px 20px;
  217. background-color: var(--dark-gray);
  218. }
  219. .sidenav-search .search {
  220. height: 26px;
  221. }
  222. .search-reset {
  223. position: absolute;
  224. display: block;
  225. cursor: pointer;
  226. width: 20px;
  227. height: 20px;
  228. text-align: center;
  229. right: 28px;
  230. top: 17px;
  231. background-color: #fff;
  232. }
  233. /* ------------------------------------------------------------------------------------------
  234. * Compare
  235. * ------------------------------------------------------------------------------------------ */
  236. ins {
  237. background: #60d060;
  238. text-decoration: none;
  239. color: #000000;
  240. }
  241. del {
  242. background: #f05050;
  243. color: #000000;
  244. }
  245. .label-ins {
  246. background-color: #60d060;
  247. }
  248. .label-del {
  249. background-color: #f05050;
  250. text-decoration: line-through;
  251. }
  252. pre.ins {
  253. background-color: #60d060;
  254. }
  255. pre.del {
  256. background-color: #f05050;
  257. text-decoration: line-through;
  258. }
  259. table.ins th,
  260. table.ins td {
  261. background-color: #60d060;
  262. }
  263. table.del th,
  264. table.del td {
  265. background-color: #f05050;
  266. text-decoration: line-through;
  267. }
  268. tr.ins td {
  269. background-color: #60d060;
  270. }
  271. tr.del td {
  272. background-color: #f05050;
  273. text-decoration: line-through;
  274. }
  275. /* ------------------------------------------------------------------------------------------
  276. * Spinner
  277. * ------------------------------------------------------------------------------------------ */
  278. #loader {
  279. position: absolute;
  280. width: 100%;
  281. }
  282. #loader p {
  283. padding-top: 80px;
  284. margin-left: -4px;
  285. }
  286. .spinner {
  287. margin: 200px auto;
  288. width: 60px;
  289. height: 60px;
  290. position: relative;
  291. }
  292. .container1 > div, .container2 > div, .container3 > div {
  293. width: 14px;
  294. height: 14px;
  295. background-color: #0088cc;
  296. border-radius: 100%;
  297. position: absolute;
  298. -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  299. animation: bouncedelay 1.2s infinite ease-in-out;
  300. /* Prevent first frame from flickering when animation starts */
  301. -webkit-animation-fill-mode: both;
  302. animation-fill-mode: both;
  303. }
  304. .spinner .spinner-container {
  305. position: absolute;
  306. width: 100%;
  307. height: 100%;
  308. }
  309. .container2 {
  310. -webkit-transform: rotateZ(45deg);
  311. transform: rotateZ(45deg);
  312. }
  313. .container3 {
  314. -webkit-transform: rotateZ(90deg);
  315. transform: rotateZ(90deg);
  316. }
  317. .circle1 { top: 0; left: 0; }
  318. .circle2 { top: 0; right: 0; }
  319. .circle3 { right: 0; bottom: 0; }
  320. .circle4 { left: 0; bottom: 0; }
  321. .container2 .circle1 {
  322. -webkit-animation-delay: -1.1s;
  323. animation-delay: -1.1s;
  324. }
  325. .container3 .circle1 {
  326. -webkit-animation-delay: -1.0s;
  327. animation-delay: -1.0s;
  328. }
  329. .container1 .circle2 {
  330. -webkit-animation-delay: -0.9s;
  331. animation-delay: -0.9s;
  332. }
  333. .container2 .circle2 {
  334. -webkit-animation-delay: -0.8s;
  335. animation-delay: -0.8s;
  336. }
  337. .container3 .circle2 {
  338. -webkit-animation-delay: -0.7s;
  339. animation-delay: -0.7s;
  340. }
  341. .container1 .circle3 {
  342. -webkit-animation-delay: -0.6s;
  343. animation-delay: -0.6s;
  344. }
  345. .container2 .circle3 {
  346. -webkit-animation-delay: -0.5s;
  347. animation-delay: -0.5s;
  348. }
  349. .container3 .circle3 {
  350. -webkit-animation-delay: -0.4s;
  351. animation-delay: -0.4s;
  352. }
  353. .container1 .circle4 {
  354. -webkit-animation-delay: -0.3s;
  355. animation-delay: -0.3s;
  356. }
  357. .container2 .circle4 {
  358. -webkit-animation-delay: -0.2s;
  359. animation-delay: -0.2s;
  360. }
  361. .container3 .circle4 {
  362. -webkit-animation-delay: -0.1s;
  363. animation-delay: -0.1s;
  364. }
  365. @-webkit-keyframes bouncedelay {
  366. 0%, 80%, 100% { -webkit-transform: scale(0.0) }
  367. 40% { -webkit-transform: scale(1.0) }
  368. }
  369. @keyframes bouncedelay {
  370. 0%, 80%, 100% {
  371. transform: scale(0.0);
  372. -webkit-transform: scale(0.0);
  373. } 40% {
  374. transform: scale(1.0);
  375. -webkit-transform: scale(1.0);
  376. }
  377. }
  378. /* ------------------------------------------------------------------------------------------
  379. * Tabs
  380. * ------------------------------------------------------------------------------------------ */
  381. ul.nav-tabs {
  382. margin: 0;
  383. }
  384. p.deprecated span{
  385. color: var(--red);
  386. font-weight: bold;
  387. text-decoration: underline;
  388. }
  389. /**
  390. * Footer
  391. */
  392. #generator {
  393. padding: 10px 0;
  394. }
  395. /* ------------------------------------------------------------------------------------------
  396. * Print
  397. * ------------------------------------------------------------------------------------------ */
  398. @media print {
  399. #sidenav,
  400. #version,
  401. #versions,
  402. section .version,
  403. section .versions {
  404. display: none;
  405. }
  406. #content {
  407. margin-left: 0;
  408. }
  409. a {
  410. text-decoration: none;
  411. color: inherit;
  412. }
  413. a:after {
  414. content: " [" attr(href) "] ";
  415. }
  416. p {
  417. color: #000000
  418. }
  419. pre {
  420. background-color: #ffffff;
  421. color: #000000;
  422. padding: 10px;
  423. border: #808080 1px solid;
  424. border-radius: 6px;
  425. position: relative;
  426. margin: 10px 0 20px 0;
  427. }
  428. } /* /@media print */