styles.scss 11 KB

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