styles.scss 9.9 KB

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