styles.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. .zt-format {
  2. border: 1px solid var(--background-modifier-border);
  3. padding: 1rem;
  4. background-color: var(--background-primary);
  5. border-radius: 10px;
  6. margin-bottom: 10px;
  7. }
  8. .zt-format__form {
  9. display: flex;
  10. flex-direction: column;
  11. align-items: stretch;
  12. margin-bottom: 1rem;
  13. max-width: 600px;
  14. }
  15. .zt-format__form:last-child {
  16. margin-bottom: 0;
  17. }
  18. .zt-format__label {
  19. font-size: 0.9em;
  20. font-weight: 600;
  21. margin-bottom: 5px;
  22. }
  23. .is-deprecated .zt-format__label {
  24. color: var(--text-error);
  25. }
  26. .zt-format__input-wrapper {
  27. display: flex;
  28. align-items: center;
  29. }
  30. .zt-format__input-wrapper textarea {
  31. resize: vertical;
  32. }
  33. .zt-format__input-wrapper > *:not(.checkbox-container) {
  34. width: 100% !important;
  35. }
  36. .is-deprecated .zt-format__input-wrapper button {
  37. width: auto !important;
  38. flex-grow: 0;
  39. flex-shrink: 0;
  40. margin-left: 5px;
  41. }
  42. .zt-format__delete-btn {
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. line-height: 1;
  47. padding: 7px 9px;
  48. margin-left: 10px;
  49. flex-shrink: 0;
  50. flex-grow: 0;
  51. }
  52. .zt-json-viewer {
  53. font-size: 13px;
  54. }
  55. .zt-json-viewer .react-json-view {
  56. padding: 1em;
  57. border-radius: 10px;
  58. margin-top: 1em;
  59. overflow: auto;
  60. font-family: var(--font-monospace) !important;
  61. }
  62. .zt-json-viewer__btns {
  63. display: flex;
  64. align-items: center;
  65. justify-content: flex-start;
  66. }
  67. .zt-json-viewer__btns label {
  68. display: block;
  69. font-weight: bold;
  70. padding-top: 1em;
  71. }
  72. .zt-json-viewer__btns select {
  73. font-size: 1em;
  74. }
  75. .zt-json-viewer__btns button {
  76. font-size: 1em;
  77. margin-right: 5px;
  78. }
  79. .zt-json-viewer__preview,
  80. .zt-json-viewer__data {
  81. border: 1px solid var(--background-modifier-border);
  82. border-radius: 10px;
  83. padding: 1em;
  84. margin-top: 1em;
  85. }
  86. .zt-json-viewer__preview.error {
  87. background-color: #ff000011;
  88. font-family: var(--font-monospace);
  89. }
  90. .zt-json-viewer__preview pre {
  91. overflow: auto;
  92. white-space: pre-wrap;
  93. margin: 0;
  94. }
  95. .zt-json-viewer__preview pre,
  96. .zt-json-viewer__preview code {
  97. font-family: inherit;
  98. }
  99. .zt-json-viewer__preview:not(.error) pre {
  100. font-family: var(--font-text, --font-default, --default-font);
  101. max-height: 70vh;
  102. min-height: 400px;
  103. }
  104. .zt-multiselect {
  105. width: 300px;
  106. text-align: left;
  107. }
  108. .zt-multiselect input {
  109. outline: none !important;
  110. box-shadow: none !important;
  111. }
  112. .zt-format__input-note {
  113. font-style: italic;
  114. font-size: 0.9em;
  115. padding-top: 10px;
  116. margin-bottom: 10px;
  117. }
  118. .zt-setting-item pre,
  119. .zt-format__input-note pre {
  120. display: inline-block;
  121. margin: 0;
  122. padding: 0 6px;
  123. background-color: var(--background-secondary-alt);
  124. border-radius: 4px;
  125. }
  126. .zt-asset-success {
  127. text-align: left;
  128. display: flex;
  129. }
  130. .zt-asset-success__icon {
  131. color: var(--interactive-success);
  132. font-size: 24px;
  133. margin-right: 5px;
  134. }
  135. .zt-asset-success__icon svg {
  136. width: 1em !important;
  137. height: 1em !important;
  138. }
  139. .zt-asset-success__message {
  140. font-size: 0.9em;
  141. }
  142. .zt-suggest-title {
  143. font-size: var(--font-ui-small);
  144. color: var(--text-muted);
  145. display: block;
  146. overflow: hidden;
  147. text-overflow: ellipsis;
  148. white-space: nowrap;
  149. padding-top: var(--size-4-1);
  150. }
  151. .zt-suggest-loading-wrapper {
  152. display: flex;
  153. position: relative;
  154. align-items: center;
  155. justify-content: center;
  156. padding: var(--size-4-2) 0;
  157. }
  158. .zt-suggest-loading,
  159. .zt-suggest-loading:before,
  160. .zt-suggest-loading:after {
  161. border-radius: 999px;
  162. width: 1em;
  163. height: 1em;
  164. animation-fill-mode: both;
  165. animation: bblFadInOut 1.6s infinite ease-in-out;
  166. }
  167. .zt-suggest-loading {
  168. display: block;
  169. color: var(--text-muted);
  170. font-size: 7px;
  171. position: relative;
  172. animation-delay: -0.16s;
  173. top: -1em;
  174. }
  175. .zt-suggest-loading:before,
  176. .zt-suggest-loading:after {
  177. content: '';
  178. position: absolute;
  179. }
  180. .zt-suggest-loading:before {
  181. left: -2em;
  182. animation-delay: -0.32s;
  183. }
  184. .zt-suggest-loading:after {
  185. left: 2em;
  186. }
  187. .zt-color-chip {
  188. display: inline-block;
  189. width: 1em;
  190. height: 1em;
  191. border: 1px solid var(--background-modifier-border);
  192. border-radius: var(--radius-s);
  193. margin-right: var(--size-4-1);
  194. }
  195. @keyframes bblFadInOut {
  196. 0%,
  197. 80%,
  198. 100% {
  199. box-shadow: 0 1em 0 -1.3em;
  200. }
  201. 40% {
  202. box-shadow: 0 1em 0 0;
  203. }
  204. }