styles.scss 8.3 KB

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