github.com/qubitproducts/logspray@v0.2.14/server/swagger-ui/src/main/less/specs.less (about) 1 .swagger-section { 2 3 .swagger-ui-wrap { 4 5 line-height: 1; 6 font-family: "Droid Sans", sans-serif; 7 min-width: 760px; 8 max-width: 960px; 9 margin-left: auto; 10 margin-right: auto; 11 12 b, strong { 13 font-family: "Droid Sans", sans-serif; 14 font-weight: bold; 15 } 16 17 q, blockquote { 18 quotes: none; 19 } 20 21 p { 22 line-height: 1.4em; 23 padding: 0 0 10px; 24 color: #333333; 25 } 26 27 q:before, q:after, blockquote:before, blockquote:after { 28 content: none; 29 } 30 31 .heading_with_menu { 32 h1, h2, h3, h4, h5, h6 { 33 display: block; 34 clear: none; 35 float: left; 36 -moz-box-sizing: border-box; 37 -webkit-box-sizing: border-box; 38 -ms-box-sizing: border-box; 39 box-sizing: border-box; 40 width: 60%; 41 } 42 } 43 44 table { 45 border-collapse: collapse; 46 border-spacing: 0; 47 thead { 48 tr { 49 th { 50 padding: 5px; 51 font-size: 0.9em; 52 color: #666666; 53 border-bottom: 1px solid #999999; 54 } 55 } 56 } 57 tbody { 58 tr:last-child { 59 td { 60 border-bottom: none; 61 } 62 } 63 tr.offset { 64 background-color: #f0f0f0; 65 } 66 tr { 67 td { 68 padding: 6px; 69 font-size: 0.9em; 70 border-bottom: 1px solid #cccccc; 71 vertical-align: top; 72 line-height: 1.3em; 73 } 74 } 75 } 76 } 77 78 ol { 79 margin: 0px 0 10px; 80 padding: 0 0 0 18px; 81 list-style-type: decimal; 82 li { 83 padding: 5px 0px; 84 font-size: 0.9em; 85 color: #333333; 86 } 87 } 88 89 ol, ul { 90 list-style: none; 91 } 92 93 h1, h2, h3, h4, h5, h6 { 94 a { 95 text-decoration: none; 96 } 97 a:hover { 98 text-decoration: underline; 99 } 100 span.divider { 101 color: #aaaaaa; 102 } 103 } 104 105 a { 106 color: #547f00; 107 img { 108 border: none; 109 } 110 } 111 112 article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { 113 display: block; 114 } 115 116 pre { 117 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 118 background-color: #fcf6db; 119 border: 1px solid #e5e0c6; 120 padding: 10px; 121 code { 122 line-height: 1.6em; 123 background: none; 124 } 125 } 126 127 .content { 128 & > .content-type { 129 & > div { 130 & > label { 131 clear: both; 132 display: block; 133 color: #0F6AB4; 134 font-size: 1.1em; 135 margin: 0; 136 padding: 15px 0 5px; 137 } 138 } 139 } 140 pre { 141 font-size: 12px; 142 margin-top: 5px; 143 padding: 5px; 144 } 145 } 146 147 .icon-btn { 148 cursor: pointer; 149 } 150 151 .info_title { 152 padding-bottom: 10px; 153 font-weight: bold; 154 font-size: 25px; 155 } 156 157 .footer { 158 margin-top: 20px; 159 } 160 161 p.big, div.big p { 162 font-size: 1em; 163 margin-bottom: 10px; 164 } 165 166 form.fullwidth ol { 167 li.string input, li.url input, li.text textarea, li.numeric input { 168 width: 500px !important; 169 } 170 } 171 172 .info_license { 173 padding-bottom: 5px; 174 } 175 176 .info_tos { 177 padding-bottom: 5px; 178 } 179 180 .message-fail { 181 color: #cc0000; 182 } 183 184 .info_url { 185 padding-bottom: 5px; 186 } 187 188 .info_email { 189 padding-bottom: 5px; 190 } 191 192 .info_name { 193 padding-bottom: 5px; 194 } 195 196 .info_description { 197 padding-bottom: 10px; 198 font-size: 15px; 199 } 200 201 .markdown ol li, .markdown ul li { 202 padding: 3px 0px; 203 line-height: 1.4em; 204 color: #333333; 205 } 206 207 form.formtastic fieldset.inputs ol { 208 li.string input, li.url input, li.numeric input { 209 display: block; 210 padding: 4px; 211 width: auto; 212 clear: both; 213 } 214 li.string input.title, 215 li.url input.title, 216 li.numeric input.title { 217 font-size: 1.3em; 218 } 219 } 220 221 table.fullwidth { 222 width: 100%; 223 } 224 225 .model-signature { 226 font-family: "Droid Sans", sans-serif; 227 font-size: 1em; 228 line-height: 1.5em; 229 .signature-nav { 230 a { 231 text-decoration: none; 232 color: #AAA; 233 } 234 a:hover { 235 text-decoration: underline; 236 color: black; 237 } 238 .selected { 239 color: black; 240 text-decoration: none; 241 } 242 } 243 .propType { 244 color: #5555aa; 245 } 246 pre:hover { 247 background-color: #ffffdd; 248 } 249 pre { 250 font-size: .85em; 251 line-height: 1.2em; 252 overflow: auto; 253 max-height: 200px; 254 cursor: pointer; 255 } 256 ul.signature-nav { 257 display: block; 258 min-width: 230px; 259 margin: 0; 260 padding: 0; 261 li:last-child { 262 padding-right: 0; 263 border-right: none; 264 } 265 li { 266 float: left; 267 margin: 0 5px 5px 0; 268 padding: 2px 5px 2px 0; 269 border-right: 1px solid #ddd; 270 } 271 } 272 .propOpt { 273 color: #555; 274 } 275 .snippet { 276 small { 277 font-size: 0.75em; 278 } 279 } 280 .propOptKey { 281 font-style: italic; 282 } 283 .description { 284 .strong { 285 font-weight: bold; 286 color: #000; 287 font-size: .9em; 288 } 289 div { 290 font-size: 0.9em; 291 line-height: 1.5em; 292 margin-left: 1em; 293 } 294 .stronger { 295 font-weight: bold; 296 color: #000; 297 } 298 .propWrap { 299 .optionsWrapper { 300 border-spacing: 0; 301 position: absolute; 302 background-color: #ffffff; 303 border: 1px solid #bbbbbb; 304 display: none; 305 font-size: 11px; 306 max-width: 400px; 307 line-height: 30px; 308 color: black; 309 padding: 5px; 310 margin-left:10px; 311 th { 312 text-align: center; 313 background-color: #eeeeee; 314 border: 1px solid #bbbbbb; 315 font-size: 11px; 316 color: #666666; 317 font-weight: bold; 318 padding: 5px; 319 line-height: 15px; 320 } 321 .optionName { 322 font-weight: bold; 323 } 324 } 325 } 326 .propDesc.markdown { 327 > p:first-child, 328 > p:last-child { 329 display: inline; 330 } 331 > p:not(:first-child):before { 332 display: block; 333 content: ''; 334 } 335 } 336 span:last-of-type.propDesc.markdown > p:only-child { 337 margin-right: -3px; // otherwise there is a gap before the comma 338 } 339 } 340 .propName { 341 font-weight: bold; 342 } 343 .signature-container { 344 clear: both; 345 } 346 } 347 348 .body-textarea { 349 width: 300px; 350 height: 100px; 351 border: 1px solid #aaa; 352 } 353 354 .markdown p code, .markdown li code { 355 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 356 background-color: #f0f0f0; 357 color: black; 358 padding: 1px 3px; 359 } 360 361 .required { 362 font-weight: bold; 363 } 364 365 /* JSONEditor specific styling */ 366 .editor_holder { 367 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 368 font-size: 0.9em; 369 label { 370 font-weight:normal!important; /* JSONEditor uses bold by default for all labels, we revert that back to normal to not give the impression that by default fields are required */ 371 } 372 } 373 374 .editor_holder label.required { 375 font-weight:bold!important; 376 } 377 378 input.parameter { 379 width: 300px; 380 border: 1px solid #aaa; 381 } 382 383 h1 { 384 color: black; 385 font-size: 1.5em; 386 line-height: 1.3em; 387 padding: 10px 0 10px 0; 388 font-family: "Droid Sans", sans-serif; 389 font-weight: bold; 390 } 391 392 .heading_with_menu { 393 float: none; 394 clear: both; 395 overflow: hidden; 396 display: block; 397 ul { 398 display: block; 399 clear: none; 400 float: right; 401 -moz-box-sizing: border-box; 402 -webkit-box-sizing: border-box; 403 -ms-box-sizing: border-box; 404 box-sizing: border-box; 405 margin-top: 10px; 406 } 407 } 408 409 h2 { 410 color: black; 411 font-size: 1.3em; 412 padding: 10px 0 10px 0; 413 a { 414 color: black; 415 } 416 span.sub { 417 font-size: 0.7em; 418 color: #999999; 419 font-style: italic; 420 a { 421 color: #777777; 422 } 423 } 424 } 425 426 span.weak { 427 color: #666666; 428 } 429 430 .message-success { 431 color: #89BF04; 432 } 433 434 caption, th, td { 435 text-align: left; 436 font-weight: normal; 437 vertical-align: middle; 438 } 439 440 .code { 441 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 442 } 443 444 form.formtastic { 445 fieldset.inputs { 446 ol { 447 li.text { 448 textarea { 449 font-family: "Droid Sans", sans-serif; 450 height: 250px; 451 padding: 4px; 452 display: block; 453 clear: both; 454 } 455 } 456 li.select { 457 select { 458 display: block; 459 clear: both; 460 } 461 } 462 li.boolean { 463 float: none; 464 clear: both; 465 overflow: hidden; 466 display: block; 467 label { 468 display: block; 469 float: left; 470 clear: none; 471 margin: 0; 472 padding: 0; 473 } 474 input { 475 display: block; 476 float: left; 477 clear: none; 478 margin: 0 5px 0 0; 479 } 480 } 481 li.required { 482 label { 483 color: black; 484 } 485 } 486 li { 487 label { 488 display: block; 489 clear: both; 490 width: auto; 491 padding: 0 0 3px; 492 color: #666666; 493 abbr { 494 padding-left: 3px; 495 color: #888888; 496 } 497 } 498 p.inline-hints { 499 margin-left: 0; 500 font-style: italic; 501 font-size: 0.9em; 502 margin: 0; 503 } 504 } 505 } 506 } 507 fieldset.buttons { 508 margin: 0; 509 padding: 0; 510 } 511 } 512 513 span.blank, span.empty { 514 color: #888888; 515 font-style: italic; 516 } 517 518 .markdown { 519 h3 { 520 color: #547f00; 521 } 522 h4 { 523 color: #666666; 524 } 525 pre { 526 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 527 background-color: #fcf6db; 528 border: 1px solid #e5e0c6; 529 padding: 10px; 530 margin: 0 0 10px 0; 531 code { 532 line-height: 1.6em; 533 overflow: auto; 534 } 535 } 536 } 537 538 div.gist { 539 margin: 20px 0 25px 0 !important; 540 } 541 542 ul#resources { 543 font-family: "Droid Sans", sans-serif; 544 font-size: 0.9em; 545 546 li.resource { 547 border-bottom: 1px solid #dddddd; 548 549 &:hover div.heading, 550 &.active div.heading { 551 h2 a { 552 color: black; 553 } 554 ul.options li a { 555 color: #555555; 556 } 557 } 558 559 &:last-child { 560 border-bottom: none; 561 } 562 563 div.heading { 564 border: 1px solid transparent; 565 float: none; 566 clear: both; 567 overflow: hidden; 568 display: block; 569 ul.options { 570 overflow: hidden; 571 padding: 0; 572 display: block; 573 clear: none; 574 float: right; 575 margin: 14px 10px 0 0; 576 li { 577 float: left; 578 clear: none; 579 margin: 0; 580 padding: 2px 10px; 581 border-right: 1px solid #dddddd; 582 color: #666666; 583 font-size: 0.9em; 584 a { 585 color: #aaaaaa; 586 text-decoration: none; 587 } 588 a:hover { 589 text-decoration: underline; 590 color: black; 591 } 592 } 593 594 li { 595 a:hover, a:active, a.active { 596 text-decoration: underline; 597 } 598 599 &:first-child, 600 &.first { 601 padding-left: 0; 602 } 603 604 &:last-child, &.last { 605 padding-right: 0; 606 border-right: none; 607 } 608 } 609 &:first-child, &.first { 610 padding-left: 0; 611 } 612 } 613 h2 { 614 color: #999999; 615 padding-left: 0; 616 display: block; 617 clear: none; 618 float: left; 619 font-family: "Droid Sans", sans-serif; 620 font-weight: bold; 621 a { 622 color: #999999; 623 } 624 a:hover { 625 color: black; 626 } 627 } 628 } 629 ul.endpoints { 630 li.endpoint { 631 ul.operations { 632 li.operation { 633 float: none; 634 clear: both; 635 overflow: hidden; 636 display: block; 637 margin: 0 0 10px; 638 padding: 0; 639 div.heading { 640 float: none; 641 clear: both; 642 overflow: hidden; 643 display: block; 644 margin: 0; 645 padding: 0; 646 h3 { 647 display: block; 648 clear: none; 649 float: left; 650 width: auto; 651 margin: 0; 652 padding: 0; 653 line-height: 1.1em; 654 color: black; 655 span.path { 656 padding-left: 10px; 657 a { 658 color: black; 659 text-decoration: none; 660 &.toggleOperation.deprecated { 661 text-decoration: line-through; 662 } 663 } 664 a:hover { 665 text-decoration: underline; 666 } 667 } 668 span.http_method { 669 a { 670 text-transform: uppercase; 671 text-decoration: none; 672 color: white; 673 display: inline-block; 674 width: 50px; 675 font-size: 0.7em; 676 text-align: center; 677 padding: 7px 0 4px; 678 -moz-border-radius: 2px; 679 -webkit-border-radius: 2px; 680 -o-border-radius: 2px; 681 -ms-border-radius: 2px; 682 -khtml-border-radius: 2px; 683 border-radius: 2px; 684 } 685 } 686 span { 687 margin: 0; 688 padding: 0; 689 } 690 } 691 ul.options { 692 overflow: hidden; 693 padding: 0; 694 display: block; 695 clear: none; 696 float: right; 697 margin: 6px 10px 0 0; 698 li { 699 float: left; 700 clear: none; 701 margin: 0; 702 padding: 2px 10px; 703 font-size: 0.9em; 704 a { 705 text-decoration: none; 706 .markdown p { 707 color: inherit; 708 padding: 0; 709 line-height: inherit; 710 } 711 } 712 } 713 } 714 ul.options { 715 li.access { 716 color: black; 717 } 718 } 719 } 720 div.content { 721 border-top: none; 722 padding: 10px; 723 -moz-border-radius-bottomleft: 6px; 724 -webkit-border-bottom-left-radius: 6px; 725 -o-border-bottom-left-radius: 6px; 726 -ms-border-bottom-left-radius: 6px; 727 -khtml-border-bottom-left-radius: 6px; 728 border-bottom-left-radius: 6px; 729 -moz-border-radius-bottomright: 6px; 730 -webkit-border-bottom-right-radius: 6px; 731 -o-border-bottom-right-radius: 6px; 732 -ms-border-bottom-right-radius: 6px; 733 -khtml-border-bottom-right-radius: 6px; 734 border-bottom-right-radius: 6px; 735 margin: 0 0 20px; 736 h4 { 737 font-size: 1.1em; 738 margin: 0; 739 padding: 15px 0 5px; 740 } 741 div.sandbox_header { 742 float: none; 743 clear: both; 744 overflow: hidden; 745 display: block; 746 a { 747 padding: 4px 0 0 10px; 748 display: inline-block; 749 font-size: 0.9em; 750 } 751 input.submit { 752 display: block; 753 clear: none; 754 float: left; 755 padding: 6px 8px; 756 } 757 span.response_throbber { 758 background-image: url('../images/throbber.gif'); 759 width: 128px; 760 height: 16px; 761 display: block; 762 clear: none; 763 float: right; 764 } 765 } 766 form { 767 input[type='text'].error { 768 outline: 2px solid black; 769 outline-color: #cc0000; 770 } 771 select[name='parameterContentType'] { 772 max-width:300px; 773 } 774 } 775 div.response { 776 div.block { 777 pre { 778 font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; 779 padding: 10px; 780 font-size: 0.9em; 781 max-height: 400px; 782 overflow-y: auto; 783 } 784 } 785 } 786 } 787 } 788 li.operation.put { 789 div.heading { 790 background-color: #f9f2e9; 791 border: 1px solid #f0e0ca; 792 h3 { 793 span.http_method { 794 a { 795 background-color: #c5862b; 796 } 797 } 798 } 799 ul.options { 800 li { 801 border-right: 1px solid #dddddd; 802 border-right-color: #f0e0ca; 803 color: #c5862b; 804 a { 805 color: #c5862b; 806 } 807 } 808 } 809 } 810 div.content { 811 background-color: #faf5ee; 812 border: 1px solid #f0e0ca; 813 h4 { 814 color: #c5862b; 815 } 816 div.sandbox_header { 817 a { 818 color: #dcb67f; 819 820 } 821 } 822 } 823 } 824 li.operation.head { 825 div.heading { 826 background-color: #fcffcd; 827 border: 1px solid black; 828 border-color: #ffd20f; 829 h3 { 830 span.http_method { 831 a { 832 text-transform: uppercase; 833 background-color: #ffd20f; 834 } 835 } 836 } 837 ul.options { 838 li { 839 border-right: 1px solid #dddddd; 840 border-right-color: #ffd20f; 841 color: #ffd20f; 842 a { 843 color: #ffd20f; 844 } 845 } 846 } 847 } 848 div.content { 849 background-color: #fcffcd; 850 border: 1px solid black; 851 border-color: #ffd20f; 852 h4 { 853 color: #ffd20f; 854 } 855 div.sandbox_header { 856 a { 857 color: #6fc992; 858 } 859 } 860 } 861 } 862 li.operation.delete { 863 div.heading { 864 background-color: #f5e8e8; 865 border: 1px solid #e8c6c7; 866 h3 { 867 span.http_method { 868 a { 869 text-transform: uppercase; 870 background-color: #a41e22; 871 872 } 873 } 874 } 875 ul.options { 876 li { 877 border-right: 1px solid #dddddd; 878 border-right-color: #e8c6c7; 879 color: #a41e22; 880 a { 881 color: #a41e22; 882 } 883 } 884 } 885 } 886 div.content { 887 background-color: #f7eded; 888 border: 1px solid #e8c6c7; 889 h4 { 890 color: #a41e22; 891 } 892 div.sandbox_header { 893 a { 894 color: #c8787a; 895 } 896 } 897 } 898 } 899 li.operation.post { 900 div.heading { 901 background-color: #e7f6ec; 902 border: 1px solid #c3e8d1; 903 h3 { 904 span.http_method { 905 a { 906 background-color: #10a54a; 907 } 908 } 909 } 910 ul.options { 911 li { 912 border-right: 1px solid #dddddd; 913 border-right-color: #c3e8d1; 914 color: #10a54a; 915 a { 916 color: #10a54a; 917 } 918 } 919 } 920 } 921 div.content { 922 background-color: #ebf7f0; 923 border: 1px solid #c3e8d1; 924 h4 { 925 color: #10a54a; 926 } 927 div.sandbox_header { 928 a { 929 color: #6fc992; 930 } 931 } 932 } 933 } 934 li.operation.patch { 935 div.heading { 936 background-color: #FCE9E3; 937 border: 1px solid #F5D5C3; 938 h3 { 939 span.http_method { 940 a { 941 background-color: #D38042; 942 943 } 944 } 945 } 946 ul.options { 947 li { 948 border-right: 1px solid #dddddd; 949 border-right-color: #f0cecb; 950 color: #D38042; 951 a { 952 color: #D38042; 953 } 954 } 955 } 956 } 957 div.content { 958 background-color: #faf0ef; 959 border: 1px solid #f0cecb; 960 961 h4 { 962 color: #D38042; 963 964 } 965 div.sandbox_header { 966 a { 967 color: #dcb67f; 968 } 969 } 970 } 971 } 972 li.operation.get { 973 div.heading { 974 background-color: #e7f0f7; 975 border: 1px solid #c3d9ec; 976 h3 { 977 span.http_method { 978 a { 979 background-color: #0f6ab4; 980 } 981 } 982 } 983 ul.options { 984 li { 985 border-right: 1px solid #dddddd; 986 border-right-color: #c3d9ec; 987 color: #0f6ab4; 988 a { 989 color: #0f6ab4; 990 } 991 } 992 } 993 } 994 div.content { 995 background-color: #ebf3f9; 996 border: 1px solid #c3d9ec; 997 h4 { 998 color: #0f6ab4; 999 } 1000 div.sandbox_header { 1001 a { 1002 color: #6fa5d2; 1003 } 1004 } 1005 } 1006 } 1007 li.operation.options { 1008 div.heading { 1009 background-color: #e7f0f7; 1010 border: 1px solid #c3d9ec; 1011 h3 { 1012 span.http_method { 1013 a { 1014 background-color: #0f6ab4; 1015 } 1016 } 1017 } 1018 ul.options { 1019 li { 1020 border-right: 1px solid #dddddd; 1021 border-right-color: #c3d9ec; 1022 color: #0f6ab4; 1023 a { 1024 color: #0f6ab4; 1025 } 1026 } 1027 } 1028 } 1029 div.content { 1030 background-color: #ebf3f9; 1031 border: 1px solid #c3d9ec; 1032 h4 { 1033 color: #0f6ab4; 1034 } 1035 div.sandbox_header { 1036 a { 1037 color: #6fa5d2; 1038 } 1039 } 1040 } 1041 } 1042 li.operation { 1043 &.get, &.post, &.head, &.put, &.patch, &.delete { 1044 div.content { 1045 border-top: none; 1046 } 1047 div.heading ul.options li { 1048 &:last-child, &.last { 1049 padding-right: 0; 1050 border-right: none; 1051 } 1052 } 1053 } 1054 } 1055 ul.options li { 1056 a:hover, a:active, a.active { 1057 text-decoration: underline; 1058 } 1059 1060 &:first-child, 1061 &.first { 1062 padding-left: 0; 1063 } 1064 1065 } 1066 &:first-child, &.first { 1067 padding-left: 0; 1068 } 1069 } 1070 } 1071 } 1072 } 1073 } 1074 1075 p#colophon { 1076 margin: 0 15px 40px 15px; 1077 padding: 10px 0; 1078 font-size: 0.8em; 1079 border-top: 1px solid #dddddd; 1080 font-family: "Droid Sans", sans-serif; 1081 color: #999999; 1082 font-style: italic; 1083 a { 1084 text-decoration: none; 1085 color: #547f00; 1086 } 1087 } 1088 1089 h3 { 1090 color: black; 1091 font-size: 1.1em; 1092 padding: 10px 0 10px 0; 1093 } 1094 1095 .markdown ol, .markdown ul { 1096 font-family: "Droid Sans", sans-serif; 1097 margin: 5px 0 10px; 1098 padding: 0 0 0 18px; 1099 list-style-type: disc; 1100 } 1101 1102 form.form_box { 1103 background-color: #ebf3f9; 1104 border: 1px solid #c3d9ec; 1105 padding: 10px; 1106 label { 1107 color: #0f6ab4 !important; 1108 } 1109 input[type=submit] { 1110 display: block; 1111 padding: 10px; 1112 } 1113 p.weak { 1114 font-size: 0.8em; 1115 } 1116 p { 1117 font-size: 0.9em; 1118 padding: 0 0 15px; 1119 color: #7e7b6d; 1120 a { 1121 color: #646257; 1122 } 1123 strong { 1124 color: black; 1125 } 1126 } 1127 } 1128 1129 .operation-status td.markdown > p:last-child { 1130 padding-bottom: 0; 1131 } 1132 } 1133 1134 }