1
0

index.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. @import url("../static/vendor/codemirror/codemirror.css");
  2. @import url("../static/css/bootstrap.min.css");
  3. @import url("content-script.css");
  4. body {
  5. background-color: #fff;
  6. }
  7. html,body {
  8. padding: 0;
  9. margin: 0;
  10. height:100%;
  11. }
  12. .wp-json {
  13. width:auto;
  14. }
  15. .wp-json .panel-body {
  16. padding: 0;
  17. }
  18. #jfContent_pre {
  19. display: none;
  20. padding: 10px;
  21. }
  22. #errorMsg {
  23. color: #f00;
  24. margin-left: 10px;
  25. float: right;
  26. }
  27. .x-placeholder img{
  28. width: 400px;
  29. opacity: 0.3;
  30. margin: 5px 0 0 -8px;
  31. }
  32. .x-xdemo,a.x-xdemo {
  33. margin-left: 30px;
  34. font-size: 12px;
  35. color: blue;
  36. cursor: pointer;
  37. text-decoration: underline;
  38. }
  39. .x-xdemo:hover {
  40. text-decoration: underline;
  41. color: #f00;
  42. }
  43. .x-donate-link {
  44. line-height: 18px;
  45. }
  46. #errorTips {
  47. border-radius: 4px;
  48. box-shadow: 6px 5px 7px rgba(229, 163, 163, 0.4);
  49. background-color: #ffecf1;
  50. border: 1px solid #dbb2b2;
  51. margin-top:10px;
  52. }
  53. #errorCode .errorEm {
  54. background-color:#ff921b;
  55. }
  56. #errorTarget {
  57. color:#000;
  58. background-color:#fff;
  59. }
  60. #errorCode {
  61. padding:0 10px 10px;
  62. word-break: break-all;
  63. }
  64. #errorCode ol {
  65. padding:0 0 0 3em;
  66. }
  67. #errorCode .x-ph {
  68. color: #f00;
  69. font-weight: bold;
  70. }
  71. #tipsBox {
  72. color:#b4465c;
  73. padding: 6px 0 4px 2em;
  74. background-color: #ffecf1;
  75. }
  76. #errorCode ol li {
  77. padding:4px 7px 0;
  78. list-style-type: decimal;
  79. color:#b4465c;
  80. background-color:#fdf7f7;
  81. }
  82. #errorCode ol li div {
  83. color:#000;
  84. }
  85. .x-error {
  86. color:red;
  87. }
  88. /*layout-up-down:上下布局模式*/
  89. .wp-json.layout-up-down .mod-json .panel-txt {
  90. position: static;
  91. width: 100%;
  92. height: 250px;
  93. margin: 0;
  94. }
  95. .wp-json.layout-up-down .CodeMirror {
  96. height: 250px;
  97. }
  98. .wp-json.layout-up-down .mod-json .rst-item {
  99. margin: 0;
  100. }
  101. .wp-json.layout-up-down .mod-json .x-placeholder {
  102. padding-top: 0;
  103. text-align: left;
  104. }
  105. /* layout-left-right: 左右布局 */
  106. .wp-json.layout-left-right .mod-json .panel-txt {
  107. width: 500px;
  108. height: calc(100% - 10px);
  109. float: left;
  110. }
  111. .wp-json.layout-left-right .mod-json .rst-item {
  112. margin: 0 20px 0 30px;
  113. padding-bottom:20px;
  114. float: left;
  115. width: calc(100% - 520px);
  116. }
  117. .wp-json.layout-left-right .mod-json .x-placeholder {
  118. padding-top: 50px;
  119. text-align: center;
  120. }
  121. .wp-json.layout-left-right .panel-body {
  122. height:calc(100% - 95px);
  123. padding-left: 15px;
  124. }
  125. .wp-json.layout-left-right #jsonSource,
  126. .wp-json.layout-left-right .CodeMirror {
  127. height: calc(100% - 10px);
  128. }
  129. .wp-json.layout-left-right #formattedJson {
  130. padding-top: 2px;
  131. }
  132. .wp-json.layout-left-right #errorTips {
  133. margin-top: 0;
  134. }
  135. html.fh-jf .x-toolbar {
  136. padding-top:5px;
  137. padding-bottom: 5px;
  138. }
  139. html.fh-jf .x-toolbar.x-inpage {
  140. margin:10px 20px;
  141. }
  142. .panel-title>a.x-other-tools {
  143. top: 0px;
  144. }
  145. .panel-heading {
  146. padding:5px 15px;
  147. }
  148. #layoutBar {margin-left:30px}
  149. #btnLeftRight,#btnUpDown{
  150. -webkit-border-radius:2px;-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.1);
  151. -webkit-user-select:none;background:-webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);outline: none;
  152. border:1px solid #aaa;color:#444;font-size:12px;margin-bottom:0px;
  153. position:relative;z-index:10;display:inline-block;
  154. padding: 0 10px;
  155. height: 30px;
  156. text-shadow:1px 1px rgba(255,255,255,0.3)}
  157. #btnUpDown{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;}
  158. #btnLeftRight{margin-right:0;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}
  159. #btnLeftRight:hover,#btnUpDown:hover{-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.2);
  160. background:#ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9);border-color:#999;color:#222}
  161. #btnLeftRight.selected, #btnUpDown.selected{-webkit-box-shadow:inset 0px 1px 5px rgba(0,0,0,0.2);
  162. background:#ebebeb -webkit-linear-gradient(#e4e4e4, #dfdfdf 40%, #dcdcdc);color:#333}