content-script.css 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. #jfContent {
  2. -webkit-user-select: text;
  3. margin: 0;
  4. }
  5. .xjf-btn {
  6. cursor: pointer;
  7. -webkit-border-radius: 2px;
  8. -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  9. -webkit-user-select: none;
  10. background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
  11. outline: none;
  12. border: 1px solid #aaa;
  13. color: #444;
  14. font-size: 12px;
  15. margin-bottom: 0px;
  16. min-width: 4em;
  17. position: relative;
  18. z-index: 10;
  19. display: inline-block;
  20. padding: 2px 10px;
  21. text-shadow: 1px 1px rgba(255, 255, 255, 0.3)
  22. }
  23. .xjf-btn-mid,.xjf-btn-right {
  24. margin-left: 0;
  25. border-top-left-radius: 0;
  26. border-bottom-left-radius: 0;
  27. }
  28. .xjf-btn-mid,.xjf-btn-left {
  29. margin-right: 0;
  30. border-top-right-radius: 0;
  31. border-bottom-right-radius: 0;
  32. border-right: none
  33. }
  34. .xjf-btn:hover {
  35. -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  36. background: #ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9);
  37. border-color: #999;
  38. color: #222
  39. }
  40. .xjf-btn:active {
  41. -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.2);
  42. background: #ebebeb -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc);
  43. color: #333
  44. }
  45. .xjf-btn.selected {
  46. -webkit-box-shadow: inset 0px 1px 5px rgba(0, 0, 0, 0.2);
  47. background: #ebebeb -webkit-linear-gradient(#e4e4e4, #dfdfdf 40%, #dcdcdc);
  48. color: #333
  49. }
  50. #jsonpOpener, #jsonpCloser {
  51. padding: 4px 0 0 8px;
  52. color: black;
  53. margin-bottom: -6px
  54. }
  55. #jsonpCloser {
  56. margin-top: 0
  57. }
  58. #formattedJson {
  59. padding-left: 21px;
  60. padding-top: 6px
  61. }
  62. pre {
  63. padding: 36px 5px 5px 5px
  64. }
  65. .kvov {
  66. display: block;
  67. padding-left: 20px;
  68. margin-left: -20px;
  69. position: relative;
  70. padding-top: 2px;
  71. }
  72. #jfContent {
  73. margin-bottom: 25px;
  74. }
  75. #jfContent .kvov .s a {
  76. color: #00b;
  77. text-decoration: underline;
  78. }
  79. #jfContent .kvov .s a:hover {
  80. color: #b00;
  81. }
  82. .collapsed {
  83. white-space: nowrap
  84. }
  85. .collapsed > .blockInner {
  86. display: none
  87. }
  88. .collapsed > .ell:after {
  89. content: "\2026";
  90. font-weight: bold
  91. }
  92. .collapsed > .ell {
  93. margin: 0 4px;
  94. color: #888
  95. }
  96. .collapsed .kvov {
  97. display: inline
  98. }
  99. .e {
  100. width: 20px;
  101. height: 18px;
  102. display: block;
  103. position: absolute;
  104. left: -2px;
  105. top: 4px;
  106. z-index: 5;
  107. opacity: 0.35;
  108. -webkit-user-select: none;
  109. cursor: pointer;
  110. }
  111. .e:after {
  112. content: "\25bc";
  113. }
  114. .collapsed > .e {
  115. -webkit-transform: rotate(-90deg);
  116. top: -1px
  117. }
  118. .e:hover {
  119. opacity: 0.35
  120. }
  121. .e:active {
  122. opacity: 0.5
  123. }
  124. .collapsed .kvov .e {
  125. display: none
  126. }
  127. .blockInner {
  128. display: block;
  129. padding-left: 24px;
  130. border-left: 1px dotted #bbb;
  131. margin-left: 2px
  132. }
  133. #formattedJson, #jsonpOpener, #jsonpCloser {
  134. color: #333;
  135. font: 13px/18px monospace
  136. }
  137. #formattedJson {
  138. color: #444
  139. }
  140. .b {
  141. font-weight: bold
  142. }
  143. .s {
  144. color: #0B7500;
  145. word-wrap: break-word
  146. }
  147. #jfContent a:link, #jfContent a:visited {
  148. text-decoration: none;
  149. color: inherit
  150. }
  151. #jfContent a:hover, #jfContent a:active {
  152. text-decoration: underline;
  153. color: #050
  154. }
  155. .bl, .nl, .n {
  156. font-weight: bold;
  157. color: #1A01CC
  158. }
  159. .k {
  160. color: black
  161. }
  162. #formattingMsg {
  163. position: absolute;
  164. top: calc(40vh);
  165. left: calc(45vw);
  166. z-index: 100;
  167. display: none;
  168. }
  169. #formattingMsg .x-loading {
  170. width: 12px;
  171. height: 12px;
  172. border: 1px solid #f00;
  173. border-radius: 50%;
  174. box-shadow: 0 0 10px 2px;
  175. color: #cc0000;
  176. border-right-color: transparent;
  177. border-top-color: transparent;
  178. animation: spin-right 1s linear infinite normal;
  179. animation-delay: 0s;
  180. margin: 0 5px 0 0;
  181. display: inline-block;
  182. }
  183. #formattingMsg .x-loading:before {
  184. display: block;
  185. width: 8px;
  186. height: 8px;
  187. margin: 1px;
  188. border: 2px solid #f00;
  189. content: " ";
  190. border-radius: 50%;
  191. border-left-color: transparent;
  192. border-bottom-color: transparent;
  193. }
  194. @keyframes spin-right {
  195. from {
  196. transform: rotate(0deg);
  197. opacity: 0.2;
  198. }
  199. 50% {
  200. transform: rotate(180deg);
  201. opacity: 1.0;
  202. }
  203. to {
  204. transform: rotate(360deg);
  205. opacity: 0.2;
  206. }
  207. }
  208. [hidden] {
  209. display: none !important
  210. }
  211. #jfContentspan {
  212. white-space: pre-wrap
  213. }
  214. @-webkit-keyframes spin {
  215. from {
  216. -webkit-transform: rotate(0deg)
  217. }
  218. to {
  219. -webkit-transform: rotate(360deg)
  220. }
  221. }
  222. #spinner {
  223. -webkit-animation: spin 1s 0 infinite
  224. }
  225. * {
  226. -webkit-font-smoothing: antialiased
  227. }
  228. #jfContent .x-json-tips {
  229. color: red;
  230. }
  231. #jfContent_pre {
  232. padding: 0;
  233. margin: 0;
  234. word-break: break-all;
  235. }
  236. html {
  237. font-size: 14px;
  238. color: #333;
  239. direction: ltr;
  240. }
  241. html body {
  242. direction: inherit;
  243. margin: 0;
  244. }
  245. body {
  246. padding: 0 8px;
  247. }
  248. /* 工具栏 */
  249. .x-toolbar {
  250. background-color: #f5f5f5;
  251. background: -webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);
  252. margin: 10px 0;
  253. border: 1px solid #ddd;
  254. border-bottom-color: #ccc;
  255. border-radius: 4px;
  256. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  257. box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  258. padding: 5px 15px;
  259. position: sticky;
  260. top: 0;
  261. z-index: 10000;
  262. font-size: 12px;
  263. user-select: none;
  264. }
  265. .x-toolbar .x-sort input {
  266. margin-right: 10px;
  267. }
  268. .x-toolbar .x-sort input#sort_desc {
  269. margin-right: 0;
  270. }
  271. .x-toolbar .x-sort {
  272. display: inline;
  273. margin: 0;
  274. }
  275. .x-toolbar .x-split {
  276. margin: 0 15px;
  277. color: #ccc;
  278. display: inline;
  279. }
  280. .x-toolbar label {
  281. font-weight: normal;
  282. margin-bottom: 0;
  283. }
  284. .x-toolbar img {
  285. vertical-align: middle;
  286. }
  287. .x-toolbar .x-a-title {
  288. font-size: 14px;
  289. color: blue;
  290. text-decoration: none;
  291. font-weight: bold;
  292. }
  293. .x-toolbar .x-b-title {
  294. font-size: 14px;
  295. font-weight: bold;
  296. }
  297. .x-toolbar.t-collapse {
  298. position: absolute;
  299. left: 100%;
  300. margin-left: -24px;
  301. width: 10000px;
  302. }
  303. .x-toolbar.t-collapse .fe-feedback {
  304. float: left;
  305. margin-left: -10px;
  306. margin-right: 20px;
  307. }
  308. .mod-json .format-item button {
  309. width: 80px;
  310. height: 30px;
  311. float: right;
  312. }
  313. .mod-contentscript {
  314. width: auto;
  315. }
  316. #formatTips {
  317. color: #888;
  318. font-size: 14px;
  319. display: block;
  320. position: absolute;
  321. top: 0px;
  322. left: 0px;
  323. }
  324. #jsonSource {
  325. height: 120px;
  326. }
  327. .mod-json .callback-name {
  328. font-weight: bolder;
  329. color: #a00;
  330. }
  331. #jfContent .x-hover {
  332. outline: 1px solid #cdc;
  333. background: #fff;
  334. }
  335. #jfContent .x-outline {
  336. outline: 1px solid #8ac;
  337. box-shadow: rgba(100, 100, 100, 0.4) -3px 3px 5px;
  338. font-weight: bold;
  339. background-color: #fffff8;
  340. }
  341. #errorMsg {
  342. margin-top: 10px;
  343. float: left;
  344. color: #f00;
  345. }
  346. #boxOpt {
  347. position: absolute;
  348. z-index: 1024;
  349. }
  350. #boxOpt a {
  351. cursor: pointer;
  352. margin: 0 5px;
  353. font-size: 12px;
  354. color: #00f;
  355. }
  356. #boxOpt a:hover {
  357. color: #f00;
  358. }
  359. .fe-feedback {
  360. font-size: 12px;
  361. padding-top: 3px;
  362. color: #888;
  363. float: right;
  364. cursor: pointer;
  365. font-weight:bold;
  366. }
  367. .fe-feedback a {
  368. color: #888;
  369. text-decoration: none;
  370. text-align: left;
  371. margin-right: 5px;
  372. }
  373. .fe-feedback a:hover {
  374. color: #c00;
  375. }
  376. svg:not(:root) {
  377. overflow: hidden;
  378. }
  379. .fe-feedback svg {
  380. vertical-align: text-bottom;
  381. display: inline-block;
  382. fill: currentColor;
  383. }
  384. .fe-feedback img {
  385. opacity: 0.6;
  386. position: relative;
  387. top: 1px;
  388. }
  389. .fe-feedback a:focus {
  390. outline: none;
  391. }
  392. .fe-feedback a:hover img {
  393. opacity: 1.0;
  394. }
  395. .fe-feedback .x-settings {
  396. float: right;
  397. cursor: pointer;
  398. margin-left: 5px;
  399. }
  400. .fe-feedback .x-settings:hover {
  401. color: #c00;
  402. }