styles.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. *,
  2. *::before,
  3. *::after {
  4. @apply backface-hidden;
  5. }
  6. :root {
  7. @apply antialiased;
  8. accent-color: var(--accent-color);
  9. font-variant-ligatures: common-ligatures;
  10. }
  11. ::-webkit-scrollbar-track {
  12. @apply bg-transparent;
  13. }
  14. ::-webkit-scrollbar-thumb {
  15. @apply bg-divider bg-clip-content;
  16. @apply rounded-full;
  17. @apply border-solid border-transparent border-4;
  18. @apply hover:(bg-dividerDark bg-clip-content);
  19. }
  20. ::-webkit-scrollbar {
  21. @apply w-4;
  22. @apply h-4;
  23. }
  24. .hide-scrollbar::-webkit-scrollbar {
  25. @apply hidden;
  26. }
  27. ::selection {
  28. @apply bg-divider;
  29. }
  30. .cm-focused {
  31. @apply !outline-none;
  32. }
  33. input::placeholder,
  34. textarea::placeholder,
  35. .CodeMirror-empty {
  36. @apply text-secondary;
  37. @apply opacity-25;
  38. }
  39. input,
  40. textarea {
  41. @apply text-secondaryDark;
  42. @apply font-medium;
  43. }
  44. html {
  45. scroll-behavior: smooth;
  46. }
  47. body {
  48. @apply bg-primary;
  49. @apply text-secondary;
  50. @apply font-medium;
  51. @apply select-none;
  52. @apply overflow-x-hidden;
  53. animation: fade 300ms forwards;
  54. font-size: var(--body-font-size);
  55. line-height: var(--body-line-height);
  56. overflow: overlay;
  57. -webkit-tap-highlight-color: transparent;
  58. -webkit-touch-callout: none;
  59. }
  60. @keyframes fade {
  61. 0% {
  62. @apply opacity-0;
  63. }
  64. 100% {
  65. @apply opacity-100;
  66. }
  67. }
  68. .fade-enter-active,
  69. .fade-leave-active,
  70. .page-enter-active,
  71. .page-leave-active,
  72. .layout-enter-active,
  73. .layout-leave-active {
  74. @apply transition-opacity;
  75. }
  76. .fade-enter,
  77. .fade-leave-to,
  78. .page-enter,
  79. .page-leave-to,
  80. .layout-enter,
  81. .layout-leave-to {
  82. @apply opacity-0;
  83. }
  84. .material-icons {
  85. @apply flex-shrink-0;
  86. font-size: var(--body-line-height) !important;
  87. width: var(--body-line-height);
  88. }
  89. .svg-icons {
  90. @apply flex-shrink-0;
  91. height: var(--body-line-height);
  92. width: var(--body-line-height);
  93. }
  94. a {
  95. @apply inline-flex;
  96. @apply text-current;
  97. @apply no-underline;
  98. @apply outline-none;
  99. @apply transition;
  100. font-size: var(--body-font-size);
  101. line-height: var(--body-line-height);
  102. &.link {
  103. @apply items-center;
  104. @apply py-0.5 px-1;
  105. @apply -my-0.5 -mx-1;
  106. @apply text-accent;
  107. @apply rounded;
  108. @apply hover:text-accentDark;
  109. @apply focus-visible:(ring ring-accent);
  110. }
  111. }
  112. .tippy-popper {
  113. .tooltip-theme {
  114. @apply bg-tooltip;
  115. @apply text-primary;
  116. @apply font-semibold;
  117. @apply py-1 px-2;
  118. @apply truncate;
  119. @apply shadow;
  120. font-size: 88%;
  121. line-height: var(--body-line-height);
  122. kbd {
  123. @apply inline-flex;
  124. @apply font-sans;
  125. @apply bg-gray-500;
  126. @apply bg-opacity-45;
  127. @apply text-primaryLight;
  128. @apply rounded-sm;
  129. @apply px-1;
  130. @apply ml-1;
  131. @apply truncate;
  132. }
  133. }
  134. .popover-theme {
  135. @apply bg-popover;
  136. @apply text-secondary;
  137. @apply p-2;
  138. @apply shadow-lg;
  139. @apply focus:outline-none;
  140. font-size: var(--body-font-size);
  141. line-height: var(--body-line-height);
  142. .tippy-roundarrow svg {
  143. @apply fill-popover;
  144. }
  145. }
  146. }
  147. [interactive] > div {
  148. @apply flex;
  149. @apply flex-1;
  150. @apply h-full;
  151. }
  152. .tippy-content > div {
  153. @apply flex flex-col;
  154. @apply max-h-46;
  155. @apply items-stretch;
  156. @apply overflow-y-auto;
  157. }
  158. hr {
  159. @apply border-b border-dividerLight;
  160. @apply my-2;
  161. }
  162. .heading {
  163. @apply font-bold;
  164. @apply text-secondaryDark text-lg;
  165. }
  166. .input,
  167. .select,
  168. .textarea {
  169. @apply flex;
  170. @apply w-full;
  171. @apply py-2 px-4;
  172. @apply bg-transparent;
  173. @apply rounded;
  174. @apply text-secondaryDark;
  175. @apply border border-divider;
  176. @apply focus-visible:border-dividerDark;
  177. }
  178. input,
  179. select,
  180. textarea,
  181. button {
  182. @apply focus:outline-none;
  183. @apply truncate;
  184. @apply transition;
  185. @apply disabled:cursor-not-allowed;
  186. font-size: var(--body-font-size);
  187. line-height: var(--body-line-height);
  188. }
  189. .input[type="file"],
  190. .input[type="radio"],
  191. #installPWA {
  192. @apply hidden;
  193. }
  194. .floating-input ~ label {
  195. @apply font-medium;
  196. @apply py-0.5;
  197. @apply px-2;
  198. @apply m-2;
  199. @apply rounded;
  200. @apply transition;
  201. @apply absolute;
  202. @apply origin-top-left;
  203. }
  204. .floating-input:focus-within ~ label,
  205. .floating-input:not(:placeholder-shown) ~ label {
  206. @apply bg-primary;
  207. @apply transform;
  208. @apply origin-top-left;
  209. @apply scale-75;
  210. @apply -translate-y-5;
  211. @apply translate-x-1;
  212. }
  213. .floating-input:focus-within ~ label {
  214. @apply text-secondaryDark;
  215. }
  216. pre.ace_editor {
  217. @apply font-mono;
  218. @apply resize-none;
  219. @apply z-0;
  220. }
  221. .select {
  222. @apply appearance-none;
  223. @apply cursor-pointer;
  224. &::-ms-expand {
  225. @apply hidden;
  226. }
  227. }
  228. .select-wrapper {
  229. @apply flex flex-1;
  230. @apply relative;
  231. &::after {
  232. @apply absolute;
  233. @apply flex;
  234. @apply inset-y-0;
  235. @apply items-center;
  236. @apply justify-center;
  237. @apply pointer-events-none;
  238. @apply font-icon;
  239. @apply text-secondaryLight;
  240. @apply right-3;
  241. content: "\e313";
  242. }
  243. }
  244. .info-response {
  245. @apply text-pink-500;
  246. }
  247. .success-response {
  248. @apply text-green-500;
  249. }
  250. .redir-response {
  251. @apply text-yellow-500;
  252. }
  253. .cl-error-response {
  254. @apply text-red-500;
  255. }
  256. .sv-error-response {
  257. @apply text-red-600;
  258. }
  259. .missing-data-response {
  260. @apply text-secondaryLight;
  261. }
  262. .toasted-container {
  263. .toasted {
  264. &.toasted-primary {
  265. @apply bg-tooltip;
  266. @apply text-primary;
  267. @apply justify-start;
  268. @apply shadow;
  269. @apply font-medium;
  270. @apply transition;
  271. font-size: var(--body-font-size);
  272. line-height: var(--body-line-height);
  273. .action {
  274. @apply bg-gray-500;
  275. @apply px-4;
  276. @apply bg-opacity-10;
  277. @apply ml-auto;
  278. @apply last:ml-4;
  279. @apply sm:ml-8;
  280. @apply rounded;
  281. @apply text-current;
  282. @apply normal-case;
  283. @apply hover:(bg-opacity-20 no-underline);
  284. @apply font-medium;
  285. font-size: var(--body-font-size);
  286. line-height: var(--body-line-height);
  287. }
  288. }
  289. &.info {
  290. @apply !bg-accent;
  291. }
  292. &.error {
  293. @apply !bg-red-200;
  294. @apply !text-red-800;
  295. }
  296. &.success {
  297. @apply !bg-green-200;
  298. @apply !text-green-800;
  299. }
  300. }
  301. }
  302. .smart-splitter .splitpanes__splitter {
  303. @apply relative;
  304. @apply bg-primaryLight;
  305. }
  306. .no-splitter .splitpanes__splitter {
  307. @apply relative;
  308. @apply bg-primaryLight;
  309. }
  310. .smart-splitter.splitpanes--vertical > .splitpanes__splitter {
  311. @apply w-1;
  312. }
  313. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter {
  314. @apply h-1;
  315. }
  316. .no-splitter.splitpanes--vertical > .splitpanes__splitter {
  317. @apply w-0.5;
  318. @apply pointer-events-none;
  319. }
  320. .no-splitter.splitpanes--horizontal > .splitpanes__splitter {
  321. @apply h-0.5;
  322. @apply pointer-events-none;
  323. }
  324. .smart-splitter .splitpanes__splitter::before {
  325. @apply absolute;
  326. @apply inset-0;
  327. @apply bg-dividerLight;
  328. @apply opacity-0;
  329. @apply z-20;
  330. @apply transition;
  331. content: "";
  332. }
  333. .smart-splitter .splitpanes__splitter::after {
  334. @apply absolute;
  335. @apply inset-0;
  336. @apply z-20;
  337. @apply transition;
  338. @apply flex;
  339. @apply items-center;
  340. @apply justify-center;
  341. @apply text-dividerDark;
  342. @apply font-icon;
  343. }
  344. .smart-splitter.splitpanes--vertical > .splitpanes__splitter::after {
  345. content: "\e5d4";
  346. }
  347. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter::after {
  348. content: "\e5d3";
  349. }
  350. .smart-splitter .splitpanes__splitter:hover::before {
  351. @apply opacity-100;
  352. }
  353. .smart-splitter.splitpanes--vertical > .splitpanes__splitter::before {
  354. @apply -left-0.5;
  355. @apply -right-0.5;
  356. @apply h-full;
  357. }
  358. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter::before {
  359. @apply -top-0.5;
  360. @apply -bottom-0.5;
  361. @apply w-full;
  362. }
  363. .CodeMirror {
  364. @apply !h-auto;
  365. font-size: var(--body-font-size);
  366. &:not(.CodeMirror-focused) .CodeMirror-activeline-background {
  367. background: transparent !important;
  368. }
  369. .CodeMirror-dialog-top {
  370. @apply bg-primaryLight;
  371. @apply border-dividerLight;
  372. @apply px-4;
  373. @apply py-2;
  374. @apply z-5;
  375. }
  376. .CodeMirror-scroll {
  377. @apply min-h-64;
  378. }
  379. * {
  380. font-family: "Roboto Mono", monospace;
  381. }
  382. }
  383. @media (max-width: 767px) {
  384. main {
  385. margin-bottom: env(safe-area-inset-bottom);
  386. }
  387. }