fe-jsonformat-content.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #jfContent{-webkit-user-select:text;margin:0;}
  2. #optionBar{-webkit-user-select:none;display:block;position:absolute;top:0px;right:0px}
  3. #buttonFormatted,#buttonPlain,#btnDownload,#buttonCollapseAll{-webkit-border-radius:2px;-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.1);
  4. -webkit-user-select:none;background:-webkit-linear-gradient(#fafafa, #f4f4f4 40%, #e5e5e5);outline: none;
  5. border:1px solid #aaa;color:#444;font-size:12px;margin-bottom:0px;min-width:4em;padding:3px 0;
  6. position:relative;z-index:10;display:inline-block;width:80px;
  7. text-shadow:1px 1px rgba(255,255,255,0.3)}
  8. #buttonCollapseAll{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;}
  9. #buttonFormatted{margin-right:0;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none}
  10. #btnDownload {
  11. padding: 4px 10px;
  12. text-decoration: none;
  13. color: #454545;
  14. margin-right: 10px;
  15. display: inline-block;
  16. }
  17. #buttonFormatted:hover,#buttonPlain:hover,#btnDownload:hover{-webkit-box-shadow:0px 1px 3px rgba(0,0,0,0.2);
  18. background:#ebebeb -webkit-linear-gradient(#fefefe, #f8f8f8 40%, #e9e9e9);border-color:#999;color:#222}
  19. #buttonFormatted:active,#buttonPlain:active{-webkit-box-shadow:inset 0px 1px 3px rgba(0,0,0,0.2);
  20. background:#ebebeb -webkit-linear-gradient(#f4f4f4, #efefef 40%, #dcdcdc);color:#333}
  21. #buttonFormatted.selected,#buttonPlain.selected,#buttonCollapseAll.selected{-webkit-box-shadow:inset 0px 1px 5px rgba(0,0,0,0.2);
  22. background:#ebebeb -webkit-linear-gradient(#e4e4e4, #dfdfdf 40%, #dcdcdc);color:#333}
  23. #jsonpOpener,#jsonpCloser{padding:4px 0 0 8px;color:black;margin-bottom:-6px}
  24. #jsonpCloser{margin-top:0}
  25. #formattedJson{padding-left:28px;padding-top:6px}pre{padding:36px 5px 5px 5px}
  26. .kvov{display:block;padding-left:20px;margin-left:-20px;position:relative;padding-top: 2px;}
  27. #jfContent .kvov .s a {
  28. color:#00b;text-decoration: underline;
  29. }
  30. #jfContent .kvov .s a:hover {
  31. color:#b00;
  32. }
  33. .collapsed{white-space:nowrap}.collapsed>.blockInner{display:none}
  34. .collapsed>.ell:after{content:"\2026";font-weight:bold}
  35. .collapsed>.ell{margin:0 4px;color:#888}
  36. .collapsed .kvov{display:inline}
  37. .e{width:20px;height:18px;display:block;position:absolute;left:-2px;top:1px;z-index:5;
  38. background-image:url("../img/json-down.png");
  39. background-repeat:no-repeat;background-position:center center;display:block;opacity:0.15}
  40. .collapsed>.e{-webkit-transform:rotate(-90deg);width:18px;height:20px;left:0px;top:0px}
  41. .e:hover{opacity:0.35}.e:active{opacity:0.5}.collapsed .kvov .e{display:none}
  42. .blockInner{display:block;padding-left:24px;border-left:1px dotted #bbb;margin-left:2px}
  43. #formattedJson,#jsonpOpener,#jsonpCloser{color:#333;font:13px/18px monospace}
  44. #formattedJson{color:#444}.b{font-weight:bold}.s{color:#0B7500;word-wrap:break-word}
  45. #jfContent a:link,#jfContent a:visited{text-decoration:none;color:inherit}
  46. #jfContent a:hover,#jfContent a:active{text-decoration:underline;color:#050}
  47. .bl,.nl,.n{font-weight:bold;color:#1A01CC}.k{color:black}
  48. #formattingMsg{font:13px "Lucida Grande", "Segoe UI", "Tahoma";padding:10px 0 0 8px;margin:0;color:#333;display:none;}
  49. #formattingMsg>svg{margin:0 7px;position:relative;top:1px}
  50. [hidden]{display:none !important}
  51. #jfContentspan{white-space:pre-wrap}
  52. @-webkit-keyframes spin{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}
  53. #spinner{-webkit-animation:spin 1s 0 infinite}*{-webkit-font-smoothing:antialiased}
  54. #jfContent .x-json-tips {
  55. color:red;
  56. }
  57. #jfContent_pre {padding:0;margin:0;
  58. word-break:break-word;
  59. }
  60. html {
  61. font-size: 14px;
  62. color:#333;
  63. direction: ltr;
  64. }
  65. html body {
  66. direction: inherit;
  67. }
  68. .mod-json .format-item button{
  69. width:80px;
  70. height:30px;
  71. float: right;
  72. }
  73. .mod-json .rst-item {
  74. position: relative;
  75. padding-top:30px;
  76. }
  77. .mod-contentscript {
  78. width: auto;
  79. }
  80. #formatTips {
  81. color: #888;
  82. font-size: 14px;
  83. display: block;
  84. position: absolute;
  85. top: 0px;
  86. left: 0px;
  87. }
  88. #jsonSource {
  89. height: 120px;
  90. }
  91. .mod-json .callback-name {
  92. font-weight: bolder;
  93. color: #a00;
  94. }
  95. #jfContent .x-hover {
  96. outline:1px solid #cdc;
  97. background: #fff;
  98. }
  99. #jfContent .x-outline {
  100. outline:1px solid #8ac;
  101. box-shadow: rgba(100, 100, 100, 0.4) -3px 3px 5px;
  102. font-weight: bold;
  103. background-color: #fffff8;
  104. }
  105. #errorMsg {
  106. margin-top: 10px;
  107. float: left;
  108. color: #f00;
  109. }
  110. #btnDownload{
  111. width: 102px;
  112. }
  113. #boxOpt {
  114. position: absolute;
  115. z-index: 1024;
  116. }
  117. #boxOpt a {
  118. cursor: pointer;
  119. margin: 0 5px;
  120. font-size: 12px;
  121. color: #00f;
  122. }
  123. #boxOpt a:hover {
  124. color:#f00;
  125. }