main.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  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.woff2') format('woff2'),
  46. url('./glyphicons-halflings-regular.ttf') format('truetype'),
  47. url('./glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg');
  48. }
  49. /* Hide vertical scrollbar on off canvas animation ("left" positioning) */
  50. html {
  51. overflow-x: hidden;
  52. }
  53. body {
  54. font-family: "Source Sans Pro", sans-serif;
  55. }
  56. a:focus {
  57. background-color: var(--primary);
  58. }
  59. #content {
  60. margin-top: 10px;
  61. padding-left: 10px;
  62. }
  63. p {
  64. font-size: 130%;
  65. color: var(--main-gray);
  66. }
  67. section {
  68. padding: 30px 0;
  69. }
  70. article {
  71. border-top: 1px solid var(--light-gray);
  72. padding: 14px 0 30px 0;
  73. }
  74. table {
  75. border-collapse: collapse;
  76. width: 100%;
  77. margin: 0 0 20px 0;
  78. }
  79. th {
  80. background-color: var(--main-gray);
  81. color: var(--white);
  82. text-align: left;
  83. padding: 5px 8px;
  84. border: 1px solid var(--main-gray);
  85. }
  86. td {
  87. padding: 5px;
  88. border: 1px solid var(--main-gray);
  89. }
  90. td.code {
  91. font-family: "Source Code Pro", monospace;
  92. font-weight: 600;
  93. }
  94. .label {
  95. float: right;
  96. margin-top: 4px;
  97. user-select: none;
  98. }
  99. .label.optional {
  100. background-color: grey;
  101. }
  102. .label.required {
  103. background-color: var(--red);
  104. }
  105. .default-value,
  106. .type-size {
  107. font-style: italic;
  108. font-size: 95%;
  109. }
  110. .open-left {
  111. right: 0;
  112. left: auto;
  113. }
  114. .invisible {
  115. visibility: hidden;
  116. }
  117. .input-group-addon.sample-request-select {
  118. padding: 0 6px;
  119. }
  120. .input-group-addon.sample-request-select select {
  121. width: auto;
  122. height: 32px;
  123. }
  124. .sample-request-input-Boolean-container {
  125. width: 40px;
  126. height: 34px;
  127. background: var(--white);
  128. border: 1px solid var(--light-gray);
  129. }
  130. .sample-request-input-Boolean-container > div {
  131. margin-top: 7px;
  132. text-align: center;
  133. }
  134. .sample-request-input-Boolean-container > div input {
  135. margin: 0;
  136. }
  137. /* ------------------------------------------------------------------------------------------
  138. * Request method (HTTP verb)
  139. * ------------------------------------------------------------------------------------------ */
  140. .method {
  141. font-weight: 600;
  142. font-size: 15px;
  143. display: inline-block;
  144. margin: 0 0 5px 0;
  145. padding: 4px 5px;
  146. border-radius: 6px;
  147. text-transform: uppercase;
  148. background-color: var(--main-gray);
  149. color: var(--white);
  150. }
  151. .meth-get {
  152. background-color: var(--meth-get);
  153. }
  154. .meth-put {
  155. background-color: var(--meth-put);
  156. }
  157. .meth-post {
  158. background-color: var(--meth-post);
  159. }
  160. .meth-delete {
  161. background-color: var(--meth-delete);
  162. }
  163. /* ------------------------------------------------------------------------------------------
  164. * Sidenav
  165. * ------------------------------------------------------------------------------------------ */
  166. #scrollingNav {
  167. position: fixed;
  168. top: 0;
  169. left: 0;
  170. bottom: 0;
  171. z-index: 10;
  172. background-color: var(--dark-gray);
  173. box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
  174. }
  175. .sidenav {
  176. color: var(--white);
  177. position: absolute;
  178. top: 50px;
  179. left: 0;
  180. right: 0;
  181. bottom: 0;
  182. overflow-x: hidden;
  183. overflow-y: hidden;
  184. }
  185. .sidenav:hover {
  186. overflow-x: auto;
  187. overflow-y: auto;
  188. }
  189. .sidenav > li > a {
  190. color: var(--white);
  191. display: block;
  192. padding: 8px 13px;
  193. }
  194. /* non active sidenav link are highlighted on hover */
  195. .sidenav > li:not(.active) > a:hover {
  196. background-color: var(--hover-gray);
  197. }
  198. .sidenav > li.nav-header {
  199. margin-top: 8px;
  200. margin-bottom: 8px;
  201. }
  202. .sidenav > li.nav-header > a {
  203. padding: 5px 15px;
  204. font-weight: 700;
  205. font-size: 16px;
  206. background-color: var(--main-gray);
  207. }
  208. .sidenav > li.active > a {
  209. position: relative;
  210. background-color: var(--primary);
  211. color: var(--white);
  212. }
  213. /**
  214. * TODO: commented out for the moment
  215. .sidenav > li.has-modifications a {
  216. border-right: 4px solid var(--main-gray);
  217. }
  218. .nav-list-item :not(.is-new) {
  219. border-left: 4px solid var(--main-gray);
  220. }
  221. .sidenav > li.is-new a {
  222. border-left: 4px solid var(--primary);
  223. }
  224. */
  225. /*
  226. * Off Canvas
  227. * --------------------------------------------------
  228. */
  229. @media screen and (max-width: 767px) {
  230. #content {
  231. margin-top: 58px;
  232. }
  233. .row-offcanvas {
  234. position: relative;
  235. -webkit-transition: all .25s ease-out;
  236. -o-transition: all .25s ease-out;
  237. transition: all .25s ease-out;
  238. left: 0;
  239. }
  240. .row-offcanvas,
  241. .row-offcanvas * {
  242. transition: all 0.5s ease-out;
  243. }
  244. .row-offcanvas .sidebar-offcanvas {
  245. position: absolute;
  246. top: 0;
  247. left: -200px !important; /* 6 columns */
  248. width: 100%; /* 6 columns */
  249. max-width: 200px;
  250. }
  251. .nav-toggle {
  252. position: fixed;
  253. left: 0;
  254. background: var(--dark-gray);
  255. width: 100%;
  256. }
  257. .nav-toggle .btn {
  258. margin: 10px 14px;
  259. }
  260. .nav-toggle .icon-bar {
  261. display: block;
  262. width: 22px;
  263. height: 2px;
  264. border-radius: 1px;
  265. background-color: var(--white);
  266. }
  267. .nav-toggle .icon-bar + .icon-bar {
  268. margin-top: 4px;
  269. }
  270. .row-offcanvas.active .sidebar-offcanvas {
  271. left: 0 !important; /* 6 columns */
  272. }
  273. .row-offcanvas.active, .row-offcanvas.active .nav-toggle {
  274. left: 200px;
  275. }
  276. /* Styling the three lines to make it an X */
  277. .row-offcanvas.active .nav-toggle .btn > .icon-bar {
  278. transform: rotate(45deg) translate(-4px, -4px);
  279. }
  280. .row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(2) {
  281. display: none;
  282. }
  283. .row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(3) {
  284. transform: rotate(-45deg);
  285. }
  286. }
  287. /* ------------------------------------------------------------------------------------------
  288. * Side nav search
  289. * ------------------------------------------------------------------------------------------ */
  290. .sidenav-search {
  291. padding: 16px 10px 10px;
  292. background-color: var(--dark-gray);
  293. }
  294. .sidenav-search .search {
  295. height: 26px;
  296. }
  297. .search-reset {
  298. position: absolute;
  299. display: block;
  300. cursor: pointer;
  301. width: 20px;
  302. height: 20px;
  303. text-align: center;
  304. right: 28px;
  305. top: 18px;
  306. background-color: #fff;
  307. }
  308. /* ------------------------------------------------------------------------------------------
  309. * Prism - Toolbar
  310. * ------------------------------------------------------------------------------------------ */
  311. div.code-toolbar.code-toolbar > .toolbar {
  312. top: .4rem;
  313. right: .4rem;
  314. }
  315. div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:hover,
  316. div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:focus {
  317. color: var(--white);
  318. }
  319. div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button {
  320. color: var(--light-gray);
  321. padding: .5em;
  322. background: var(--hover-gray);
  323. box-shadow: 0 2px 1px 1px rgba(0,0,0,.5);
  324. }
  325. /* ------------------------------------------------------------------------------------------
  326. * Compare
  327. * ------------------------------------------------------------------------------------------ */
  328. ins {
  329. background: #60d060;
  330. text-decoration: none;
  331. color: #000000;
  332. }
  333. del {
  334. background: #f05050;
  335. color: #000000;
  336. }
  337. .label-ins {
  338. background-color: #60d060;
  339. }
  340. .label-del {
  341. background-color: #f05050;
  342. text-decoration: line-through;
  343. }
  344. pre.ins {
  345. background-color: #60d060;
  346. }
  347. pre.del {
  348. background-color: #f05050;
  349. text-decoration: line-through;
  350. }
  351. table.ins th,
  352. table.ins td {
  353. background-color: #60d060;
  354. }
  355. table.del th,
  356. table.del td {
  357. background-color: #f05050;
  358. text-decoration: line-through;
  359. }
  360. tr.ins td {
  361. background-color: #60d060;
  362. }
  363. tr.del td {
  364. background-color: #f05050;
  365. text-decoration: line-through;
  366. }
  367. /* ------------------------------------------------------------------------------------------
  368. * Spinner
  369. * ------------------------------------------------------------------------------------------ */
  370. #loader {
  371. position: absolute;
  372. width: 100%;
  373. }
  374. #loader p {
  375. padding-top: 80px;
  376. margin-left: -4px;
  377. }
  378. .spinner {
  379. margin: 200px auto;
  380. width: 60px;
  381. height: 60px;
  382. position: relative;
  383. }
  384. .container1 > div, .container2 > div, .container3 > div {
  385. width: 14px;
  386. height: 14px;
  387. background-color: #0088cc;
  388. border-radius: 100%;
  389. position: absolute;
  390. -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  391. animation: bouncedelay 1.2s infinite ease-in-out;
  392. /* Prevent first frame from flickering when animation starts */
  393. -webkit-animation-fill-mode: both;
  394. animation-fill-mode: both;
  395. }
  396. .spinner .spinner-container {
  397. position: absolute;
  398. width: 100%;
  399. height: 100%;
  400. }
  401. .container2 {
  402. -webkit-transform: rotateZ(45deg);
  403. transform: rotateZ(45deg);
  404. }
  405. .container3 {
  406. -webkit-transform: rotateZ(90deg);
  407. transform: rotateZ(90deg);
  408. }
  409. .circle1 { top: 0; left: 0; }
  410. .circle2 { top: 0; right: 0; }
  411. .circle3 { right: 0; bottom: 0; }
  412. .circle4 { left: 0; bottom: 0; }
  413. .container2 .circle1 {
  414. -webkit-animation-delay: -1.1s;
  415. animation-delay: -1.1s;
  416. }
  417. .container3 .circle1 {
  418. -webkit-animation-delay: -1.0s;
  419. animation-delay: -1.0s;
  420. }
  421. .container1 .circle2 {
  422. -webkit-animation-delay: -0.9s;
  423. animation-delay: -0.9s;
  424. }
  425. .container2 .circle2 {
  426. -webkit-animation-delay: -0.8s;
  427. animation-delay: -0.8s;
  428. }
  429. .container3 .circle2 {
  430. -webkit-animation-delay: -0.7s;
  431. animation-delay: -0.7s;
  432. }
  433. .container1 .circle3 {
  434. -webkit-animation-delay: -0.6s;
  435. animation-delay: -0.6s;
  436. }
  437. .container2 .circle3 {
  438. -webkit-animation-delay: -0.5s;
  439. animation-delay: -0.5s;
  440. }
  441. .container3 .circle3 {
  442. -webkit-animation-delay: -0.4s;
  443. animation-delay: -0.4s;
  444. }
  445. .container1 .circle4 {
  446. -webkit-animation-delay: -0.3s;
  447. animation-delay: -0.3s;
  448. }
  449. .container2 .circle4 {
  450. -webkit-animation-delay: -0.2s;
  451. animation-delay: -0.2s;
  452. }
  453. .container3 .circle4 {
  454. -webkit-animation-delay: -0.1s;
  455. animation-delay: -0.1s;
  456. }
  457. @-webkit-keyframes bouncedelay {
  458. 0%, 80%, 100% { -webkit-transform: scale(0.0) }
  459. 40% { -webkit-transform: scale(1.0) }
  460. }
  461. @keyframes bouncedelay {
  462. 0%, 80%, 100% {
  463. transform: scale(0.0);
  464. -webkit-transform: scale(0.0);
  465. } 40% {
  466. transform: scale(1.0);
  467. -webkit-transform: scale(1.0);
  468. }
  469. }
  470. /* ------------------------------------------------------------------------------------------
  471. * Tabs
  472. * ------------------------------------------------------------------------------------------ */
  473. ul.nav-tabs {
  474. margin: 0;
  475. }
  476. p.deprecated span{
  477. color: var(--red);
  478. font-weight: bold;
  479. text-decoration: underline;
  480. }
  481. /**
  482. * Footer
  483. */
  484. #generator {
  485. padding: 10px 0;
  486. }
  487. /* ------------------------------------------------------------------------------------------
  488. * Print
  489. * ------------------------------------------------------------------------------------------ */
  490. @media print {
  491. #sidenav,
  492. #version,
  493. #versions,
  494. section .version,
  495. section .versions {
  496. display: none;
  497. }
  498. #content {
  499. margin-left: 0;
  500. }
  501. a {
  502. text-decoration: none;
  503. color: inherit;
  504. }
  505. a:after {
  506. content: " [" attr(href) "] ";
  507. }
  508. p {
  509. color: #000000
  510. }
  511. pre {
  512. background-color: #ffffff;
  513. color: #000000;
  514. padding: 10px;
  515. border: #808080 1px solid;
  516. border-radius: 6px;
  517. position: relative;
  518. margin: 10px 0 20px 0;
  519. }
  520. } /* /@media print */