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