index.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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,.x-donate-link>a {
  33. margin-left: 30px;
  34. font-size: 12px;
  35. color: blue;
  36. cursor: pointer;
  37. text-decoration: underline;
  38. }
  39. .x-xdemo:hover, .x-donate-link>a:hover {
  40. text-decoration: underline;
  41. color: #f00;
  42. }
  43. #errorTips {
  44. border-radius: 4px;
  45. box-shadow: 6px 5px 7px rgba(229, 163, 163, 0.4);
  46. background-color: #ffecf1;
  47. border: 1px solid #dbb2b2;
  48. margin-top:10px;
  49. }
  50. #errorCode .errorEm {
  51. background-color:#ff921b;
  52. }
  53. #errorTarget {
  54. color:#000;
  55. background-color:#fff;
  56. }
  57. #errorCode {
  58. padding:0 10px 10px;
  59. word-break: break-all;
  60. }
  61. #errorCode ol {
  62. padding:0 0 0 3em;
  63. }
  64. #errorCode .x-ph {
  65. color: #f00;
  66. font-weight: bold;
  67. }
  68. #tipsBox {
  69. color:#b4465c;
  70. padding: 6px 0 4px 2em;
  71. background-color: #ffecf1;
  72. }
  73. #errorCode ol li {
  74. padding:4px 7px 0;
  75. list-style-type: decimal;
  76. color:#b4465c;
  77. background-color:#fdf7f7;
  78. }
  79. #errorCode ol li div {
  80. color:#000;
  81. }
  82. .x-error {
  83. color:red;
  84. }
  85. /*layout-up-down:上下布局模式*/
  86. .wp-json.layout-up-down .mod-json .panel-txt {
  87. position: static;
  88. width: 100%;
  89. height: 250px;
  90. margin: 0;
  91. }
  92. .wp-json.layout-up-down .CodeMirror {
  93. height: 250px;
  94. }
  95. .wp-json.layout-up-down .mod-json .rst-item {
  96. margin: 0;
  97. }
  98. .wp-json.layout-up-down .mod-json .x-placeholder {
  99. padding-top: 0;
  100. text-align: left;
  101. }
  102. /* layout-left-right: 左右布局 */
  103. .wp-json.layout-left-right .mod-json .panel-txt {
  104. width: 500px;
  105. height: calc(100% - 10px);
  106. float: left;
  107. }
  108. .wp-json.layout-left-right .mod-json .rst-item {
  109. margin: 0 20px 0 30px;
  110. padding-bottom:20px;
  111. float: left;
  112. width: calc(100% - 520px);
  113. }
  114. .wp-json.layout-left-right .mod-json .x-placeholder {
  115. padding-top: 50px;
  116. text-align: center;
  117. }
  118. .wp-json.layout-left-right .panel-body {
  119. height:calc(100% - 95px);
  120. padding-left: 15px;
  121. }
  122. .wp-json.layout-left-right #jsonSource,
  123. .wp-json.layout-left-right .CodeMirror {
  124. height: calc(100% - 10px);
  125. }
  126. .wp-json.layout-left-right #formattedJson {
  127. padding-top: 2px;
  128. }
  129. .wp-json.layout-left-right #errorTips {
  130. margin-top: 0;
  131. }
  132. html.fh-jf .x-toolbar {
  133. padding-top:5px;
  134. padding-bottom: 5px;
  135. }
  136. html.fh-jf .x-toolbar.x-inpage {
  137. margin:10px 20px;
  138. }
  139. .panel-title>a.x-other-tools {
  140. margin: 1px 0 0;
  141. font-size: 13px;
  142. cursor: pointer;
  143. text-decoration: none;
  144. -webkit-user-select: none;
  145. user-select: none;
  146. color: #333;
  147. float: right;
  148. background-color: #f5f8ff;
  149. padding: 5px 10px;
  150. border-radius: 15px;
  151. border: 1px solid #d0d9ff;
  152. transition: all 0.3s ease;
  153. display: flex;
  154. align-items: center;
  155. }
  156. .panel-title>a.x-other-tools .icon-plus-circle {
  157. display: inline-block;
  158. width: 16px;
  159. height: 16px;
  160. background: url(../static/img/plus-circle.svg) no-repeat center center;
  161. background-size: contain;
  162. margin-right: 5px;
  163. }
  164. .panel-title>a.x-other-tools .tool-market-badge {
  165. display: inline-block;
  166. background-color: #4d89fe;
  167. color: white;
  168. padding: 2px 6px;
  169. border-radius: 10px;
  170. margin-left: 5px;
  171. font-size: 12px;
  172. font-weight: bold;
  173. }
  174. .panel-title>a.x-other-tools:hover {
  175. color: #333;
  176. background-color: #e6edff;
  177. box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  178. transform: translateY(-1px);
  179. }
  180. .panel-heading {
  181. padding:5px 15px;
  182. }
  183. #layoutBar {margin-left:30px}
  184. #btnLeftRight,#btnUpDown{
  185. -webkit-border-radius:2px;-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.1);
  186. -webkit-user-select:none;background:-webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);outline: none;
  187. border:1px solid #aaa;color:#444;font-size:12px;margin-bottom:0px;
  188. position:relative;z-index:10;display:inline-block;
  189. padding: 0 10px;
  190. height: 30px;
  191. text-shadow:1px 1px rgba(255,255,255,0.3)}
  192. #btnUpDown{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;}
  193. #btnLeftRight{margin-right:0;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}
  194. #btnLeftRight:hover,#btnUpDown:hover{-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.2);
  195. background:#ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9);border-color:#999;color:#222}
  196. #btnLeftRight.selected, #btnUpDown.selected{-webkit-box-shadow:inset 0px 1px 5px rgba(0,0,0,0.2);
  197. background:#ebebeb -webkit-linear-gradient(#e4e4e4, #dfdfdf 40%, #dcdcdc);color:#333}