styles.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. * {
  2. @apply backface-hidden;
  3. @apply before:backface-hidden;
  4. @apply after:backface-hidden;
  5. @apply selection:bg-accentDark;
  6. @apply selection:text-accentContrast;
  7. @apply overscroll-none;
  8. }
  9. :root {
  10. @apply antialiased;
  11. accent-color: var(--accent-color);
  12. font-variant-ligatures: common-ligatures;
  13. }
  14. ::-webkit-scrollbar-track {
  15. @apply bg-transparent;
  16. @apply border-solid border-l border-dividerLight border-t-0 border-b-0 border-r-0;
  17. }
  18. ::-webkit-scrollbar-thumb {
  19. @apply bg-divider bg-clip-content;
  20. @apply rounded-full;
  21. @apply border-solid border-transparent border-4;
  22. @apply hover:bg-dividerDark;
  23. @apply hover:bg-clip-content;
  24. }
  25. ::-webkit-scrollbar {
  26. @apply w-4;
  27. @apply h-0;
  28. }
  29. input::placeholder,
  30. textarea::placeholder,
  31. .cm-placeholder {
  32. @apply text-secondary;
  33. @apply opacity-50;
  34. }
  35. input,
  36. textarea {
  37. @apply text-secondaryDark;
  38. @apply font-medium;
  39. }
  40. html {
  41. scroll-behavior: smooth;
  42. }
  43. body {
  44. @apply bg-primary;
  45. @apply text-secondary text-body;
  46. @apply font-medium;
  47. @apply select-none;
  48. @apply overflow-x-hidden;
  49. @apply leading-body;
  50. animation: fade 300ms forwards;
  51. -webkit-tap-highlight-color: transparent;
  52. -webkit-touch-callout: none;
  53. }
  54. @keyframes fade {
  55. 0% {
  56. @apply opacity-0;
  57. }
  58. 100% {
  59. @apply opacity-100;
  60. }
  61. }
  62. .fade-enter-active,
  63. .fade-leave-active {
  64. @apply transition-opacity;
  65. }
  66. .fade-enter-from,
  67. .fade-leave-to {
  68. @apply opacity-0;
  69. }
  70. .slide-enter-active,
  71. .slide-leave-active {
  72. @apply transition;
  73. @apply duration-300;
  74. }
  75. .slide-enter-from,
  76. .slide-leave-to {
  77. @apply transform;
  78. @apply translate-x-full;
  79. }
  80. .bounce-enter-active,
  81. .bounce-leave-active {
  82. @apply transition;
  83. }
  84. .bounce-enter-from,
  85. .bounce-leave-to {
  86. @apply transform;
  87. @apply scale-95;
  88. }
  89. .svg-icons {
  90. @apply flex-shrink-0;
  91. @apply overflow-hidden;
  92. height: var(--line-height-body);
  93. width: var(--line-height-body);
  94. }
  95. a {
  96. @apply inline-flex;
  97. @apply text-current;
  98. @apply no-underline;
  99. @apply transition;
  100. @apply leading-body;
  101. @apply focus:outline-none;
  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;
  110. @apply focus-visible:ring-accent;
  111. @apply focus-visible:text-accentDark;
  112. }
  113. }
  114. .cm-tooltip {
  115. .tippy-box {
  116. @apply shadow-none;
  117. @apply fixed;
  118. @apply inline-flex;
  119. @apply -mt-8;
  120. }
  121. }
  122. .tippy-box[data-theme~="tooltip"] {
  123. @apply bg-tooltip;
  124. @apply border-solid border-tooltip;
  125. @apply rounded;
  126. @apply shadow;
  127. .tippy-content {
  128. @apply flex;
  129. @apply text-tiny text-primary;
  130. @apply font-semibold;
  131. @apply py-1 px-2;
  132. @apply truncate;
  133. @apply leading-normal;
  134. @apply items-center;
  135. kbd {
  136. @apply hidden;
  137. @apply font-sans;
  138. @apply bg-gray-500/45;
  139. @apply text-primaryLight;
  140. @apply rounded-sm;
  141. @apply px-1;
  142. @apply my-0 ml-1;
  143. @apply truncate;
  144. @apply sm:inline-flex;
  145. }
  146. }
  147. .tippy-svg-arrow {
  148. svg:first-child {
  149. @apply fill-tooltip;
  150. }
  151. svg:last-child {
  152. @apply fill-tooltip;
  153. }
  154. }
  155. }
  156. .tippy-box[data-theme~="popover"] {
  157. @apply bg-popover;
  158. @apply border-solid border-dividerDark;
  159. @apply rounded;
  160. @apply shadow-lg;
  161. @apply max-w-[45vw] #{!important};
  162. .tippy-content {
  163. @apply flex flex-col;
  164. @apply max-h-[45vh];
  165. @apply items-stretch;
  166. @apply overflow-y-auto;
  167. @apply text-secondary text-body;
  168. @apply p-2;
  169. @apply leading-normal;
  170. @apply focus:outline-none;
  171. scroll-behavior: smooth;
  172. & > span {
  173. @apply block #{!important};
  174. }
  175. }
  176. .tippy-svg-arrow {
  177. svg:first-child {
  178. @apply fill-dividerDark;
  179. }
  180. svg:last-child {
  181. @apply fill-popover;
  182. }
  183. }
  184. }
  185. [data-v-tippy] {
  186. @apply flex flex-1;
  187. @apply truncate;
  188. }
  189. [interactive] > div {
  190. @apply flex flex-1;
  191. @apply h-full;
  192. }
  193. hr {
  194. @apply border-b border-dividerLight;
  195. @apply my-2;
  196. }
  197. .heading {
  198. @apply font-bold;
  199. @apply text-secondaryDark text-lg;
  200. @apply tracking-tight;
  201. }
  202. .input,
  203. .select,
  204. .textarea {
  205. @apply flex;
  206. @apply w-full;
  207. @apply py-2 px-4;
  208. @apply bg-transparent;
  209. @apply rounded;
  210. @apply text-secondaryDark;
  211. @apply border border-divider;
  212. @apply focus-visible:border-dividerDark;
  213. }
  214. input,
  215. select,
  216. textarea,
  217. button {
  218. @apply truncate;
  219. @apply transition;
  220. @apply text-body;
  221. @apply leading-body;
  222. @apply focus:outline-none;
  223. @apply disabled:cursor-not-allowed;
  224. }
  225. .input[type="file"],
  226. .input[type="radio"],
  227. #installPWA {
  228. @apply hidden;
  229. }
  230. .floating-input ~ label {
  231. @apply absolute;
  232. @apply px-2 py-0.5;
  233. @apply m-2;
  234. @apply rounded;
  235. @apply transition;
  236. @apply origin-top-left;
  237. }
  238. .floating-input:focus-within ~ label,
  239. .floating-input:not(:placeholder-shown) ~ label {
  240. @apply bg-primary;
  241. @apply transform;
  242. @apply origin-top-left;
  243. @apply scale-75;
  244. @apply translate-x-1 -translate-y-4;
  245. }
  246. .floating-input:focus-within ~ label {
  247. @apply text-secondaryDark;
  248. }
  249. .floating-input ~ .end-actions {
  250. @apply absolute;
  251. @apply right-0.2;
  252. @apply inset-y-0;
  253. @apply flex;
  254. @apply items-center;
  255. }
  256. .floating-input:has(~ .end-actions) {
  257. @apply pr-12;
  258. }
  259. pre.ace_editor {
  260. @apply font-mono;
  261. @apply resize-none;
  262. @apply z-0;
  263. }
  264. .select {
  265. @apply appearance-none;
  266. @apply cursor-pointer;
  267. &::-ms-expand {
  268. @apply hidden;
  269. }
  270. }
  271. .select-wrapper {
  272. @apply flex flex-1;
  273. @apply relative;
  274. @apply after:absolute;
  275. @apply after:flex;
  276. @apply after:inset-y-0;
  277. @apply after:items-center;
  278. @apply after:justify-center;
  279. @apply after:pointer-events-none;
  280. @apply after:font-icon;
  281. @apply after:text-current;
  282. @apply after:right-3;
  283. @apply after:content-["\e5cf"];
  284. @apply after:text-lg;
  285. }
  286. .info-response {
  287. @apply text-pink-500;
  288. }
  289. .success-response {
  290. @apply text-green-500;
  291. }
  292. .redir-response {
  293. @apply text-yellow-500;
  294. }
  295. .cl-error-response {
  296. @apply text-red-500;
  297. }
  298. .sv-error-response {
  299. @apply text-red-600;
  300. }
  301. .missing-data-response {
  302. @apply text-secondaryLight;
  303. }
  304. .toasted-container {
  305. @apply max-w-md;
  306. .toasted {
  307. &.toasted-primary {
  308. @apply px-4 py-2;
  309. @apply bg-tooltip;
  310. @apply border-secondaryDark;
  311. @apply text-primary text-body;
  312. @apply justify-between;
  313. @apply shadow-lg;
  314. @apply font-semibold;
  315. @apply transition;
  316. @apply leading-body;
  317. @apply sm:rounded;
  318. @apply sm:border;
  319. .action {
  320. @apply relative;
  321. @apply flex flex-shrink-0;
  322. @apply text-body;
  323. @apply px-4;
  324. @apply my-1;
  325. @apply ml-auto;
  326. @apply normal-case;
  327. @apply font-semibold;
  328. @apply leading-body;
  329. @apply tracking-normal;
  330. @apply rounded;
  331. @apply last:ml-4;
  332. @apply sm:ml-8;
  333. @apply before:absolute;
  334. @apply before:bg-current;
  335. @apply before:opacity-10;
  336. @apply before:inset-0;
  337. @apply before:transition;
  338. @apply before:content-DEFAULT;
  339. @apply hover:no-underline;
  340. @apply hover:before:opacity-20;
  341. }
  342. }
  343. &.info {
  344. @apply bg-accent;
  345. @apply text-accentContrast;
  346. @apply border-accentDark;
  347. }
  348. &.error {
  349. @apply bg-red-200;
  350. @apply text-red-800;
  351. @apply border-red-400;
  352. }
  353. &.success {
  354. @apply bg-green-200;
  355. @apply text-green-800;
  356. @apply border-green-400;
  357. }
  358. }
  359. }
  360. .smart-splitter .splitpanes__splitter {
  361. @apply relative;
  362. @apply before:absolute;
  363. @apply before:inset-0;
  364. @apply before:bg-accentLight;
  365. @apply before:opacity-0;
  366. @apply before:z-20;
  367. @apply before:transition;
  368. @apply before:content-DEFAULT;
  369. @apply hover:before:opacity-100;
  370. }
  371. .no-splitter .splitpanes__splitter {
  372. @apply relative;
  373. }
  374. .smart-splitter.splitpanes--vertical > .splitpanes__splitter {
  375. @apply w-0;
  376. @apply before:-left-0.5;
  377. @apply before:-right-0.5;
  378. @apply before:h-full;
  379. @apply bg-divider;
  380. }
  381. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter {
  382. @apply h-0;
  383. @apply before:-top-0.5;
  384. @apply before:-bottom-0.5;
  385. @apply before:w-full;
  386. @apply bg-divider;
  387. }
  388. .no-splitter.splitpanes--vertical > .splitpanes__splitter {
  389. @apply w-0;
  390. @apply pointer-events-none;
  391. @apply bg-dividerLight;
  392. }
  393. .no-splitter.splitpanes--horizontal > .splitpanes__splitter {
  394. @apply h-0;
  395. @apply pointer-events-none;
  396. @apply bg-dividerLight;
  397. }
  398. .splitpanes--horizontal .splitpanes__pane {
  399. @apply transition-none;
  400. }
  401. .splitpanes--vertical .splitpanes__pane {
  402. @apply transition-none;
  403. }
  404. .cm-focused {
  405. @apply select-auto;
  406. @apply outline-none #{!important};
  407. .cm-activeLine {
  408. @apply bg-primaryLight;
  409. }
  410. .cm-activeLineGutter {
  411. @apply bg-primaryDark;
  412. }
  413. }
  414. .cm-scroller {
  415. @apply overscroll-y-auto;
  416. }
  417. .cm-editor {
  418. .cm-line::selection {
  419. @apply bg-accentDark #{!important};
  420. @apply text-accentContrast #{!important};
  421. }
  422. .cm-line ::selection {
  423. @apply bg-accentDark #{!important};
  424. @apply text-accentContrast #{!important};
  425. }
  426. }
  427. .shortcut-key {
  428. @apply inline-flex;
  429. @apply font-sans;
  430. @apply text-tiny;
  431. @apply bg-divider;
  432. @apply rounded;
  433. @apply ml-2;
  434. @apply px-1;
  435. @apply min-w-5;
  436. @apply min-h-5;
  437. @apply items-center;
  438. @apply justify-center;
  439. @apply border border-dividerDark;
  440. @apply shadow-sm;
  441. @apply <sm:hidden;
  442. }
  443. .capitalize-first {
  444. @apply first-letter:capitalize;
  445. }
  446. details {
  447. @apply select-none;
  448. }
  449. details summary::-webkit-details-marker {
  450. @apply hidden;
  451. }
  452. details summary .indicator {
  453. @apply transition;
  454. }
  455. details[open] summary .indicator {
  456. @apply transform;
  457. @apply rotate-90;
  458. }
  459. @media (max-width: 767px) {
  460. main {
  461. margin-bottom: env(safe-area-inset-bottom);
  462. }
  463. }
  464. .env-highlight {
  465. @apply text-accentContrast;
  466. &.env-found {
  467. @apply bg-accentDark;
  468. @apply hover:bg-accent;
  469. }
  470. &.env-not-found {
  471. @apply bg-red-500;
  472. @apply hover:bg-red-600;
  473. }
  474. }
  475. #nprogress .bar {
  476. @apply bg-accent #{!important};
  477. }
  478. .color-picker[type="color"] {
  479. @apply appearance-none;
  480. }
  481. .color-picker[type="color"]::-webkit-color-swatch-wrapper {
  482. @apply rounded;
  483. @apply p-0;
  484. }
  485. .color-picker[type="color"]::-webkit-color-swatch {
  486. @apply rounded;
  487. @apply border-0;
  488. }
  489. .gql-operation-not-highlight {
  490. @apply opacity-50;
  491. }
  492. .gql-operation-highlight {
  493. @apply opacity-100;
  494. }