styles.scss 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  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. .env-icon {
  147. @apply transition;
  148. @apply inline-flex;
  149. @apply items-center;
  150. }
  151. }
  152. .tippy-svg-arrow {
  153. svg:first-child {
  154. @apply fill-tooltip;
  155. }
  156. svg:last-child {
  157. @apply fill-tooltip;
  158. }
  159. }
  160. }
  161. .tippy-box[data-theme~="popover"] {
  162. @apply bg-popover;
  163. @apply border-solid border-dividerDark;
  164. @apply rounded;
  165. @apply shadow-lg;
  166. @apply max-w-[45vw] #{!important};
  167. .tippy-content {
  168. @apply flex flex-col;
  169. @apply max-h-[45vh];
  170. @apply items-stretch;
  171. @apply overflow-y-auto;
  172. @apply text-secondary text-body;
  173. @apply p-2;
  174. @apply leading-normal;
  175. @apply focus:outline-none;
  176. scroll-behavior: smooth;
  177. & > span {
  178. @apply block #{!important};
  179. }
  180. }
  181. .tippy-svg-arrow {
  182. svg:first-child {
  183. @apply fill-dividerDark;
  184. }
  185. svg:last-child {
  186. @apply fill-popover;
  187. }
  188. }
  189. }
  190. [data-v-tippy] {
  191. @apply flex flex-1;
  192. @apply truncate;
  193. }
  194. [interactive] > div {
  195. @apply flex flex-1;
  196. @apply h-full;
  197. }
  198. hr {
  199. @apply border-b border-dividerLight;
  200. @apply my-2;
  201. }
  202. .heading {
  203. @apply font-bold;
  204. @apply text-secondaryDark text-lg;
  205. @apply tracking-tight;
  206. }
  207. .input,
  208. .select,
  209. .textarea {
  210. @apply flex;
  211. @apply w-full;
  212. @apply py-2 px-4;
  213. @apply bg-transparent;
  214. @apply rounded;
  215. @apply text-secondaryDark;
  216. @apply border border-divider;
  217. @apply focus-visible:border-dividerDark;
  218. }
  219. input,
  220. select,
  221. textarea,
  222. button {
  223. @apply truncate;
  224. @apply transition;
  225. @apply text-body;
  226. @apply leading-body;
  227. @apply focus:outline-none;
  228. @apply disabled:cursor-not-allowed;
  229. }
  230. .input[type="file"],
  231. .input[type="radio"],
  232. #installPWA {
  233. @apply hidden;
  234. }
  235. .floating-input ~ label {
  236. @apply absolute;
  237. @apply px-2 py-0.5;
  238. @apply m-2;
  239. @apply rounded;
  240. @apply transition;
  241. @apply origin-top-left;
  242. }
  243. .floating-input:focus-within ~ label,
  244. .floating-input:not(:placeholder-shown) ~ label {
  245. @apply bg-primary;
  246. @apply transform;
  247. @apply origin-top-left;
  248. @apply scale-75;
  249. @apply translate-x-1 -translate-y-4;
  250. }
  251. .floating-input:focus-within ~ label {
  252. @apply text-secondaryDark;
  253. }
  254. .floating-input ~ .end-actions {
  255. @apply absolute;
  256. @apply right-0.2;
  257. @apply inset-y-0;
  258. @apply flex;
  259. @apply items-center;
  260. }
  261. .floating-input:has(~ .end-actions) {
  262. @apply pr-12;
  263. }
  264. pre.ace_editor {
  265. @apply font-mono;
  266. @apply resize-none;
  267. @apply z-0;
  268. }
  269. .select {
  270. @apply appearance-none;
  271. @apply cursor-pointer;
  272. &::-ms-expand {
  273. @apply hidden;
  274. }
  275. }
  276. .select-wrapper {
  277. @apply flex flex-1;
  278. @apply relative;
  279. @apply after:absolute;
  280. @apply after:flex;
  281. @apply after:inset-y-0;
  282. @apply after:items-center;
  283. @apply after:justify-center;
  284. @apply after:pointer-events-none;
  285. @apply after:font-icon;
  286. @apply after:text-current;
  287. @apply after:right-3;
  288. @apply after:content-["\e313"];
  289. @apply after:text-lg;
  290. }
  291. .info-response {
  292. @apply text-pink-500;
  293. }
  294. .success-response {
  295. @apply text-green-500;
  296. }
  297. .redir-response {
  298. @apply text-yellow-500;
  299. }
  300. .cl-error-response {
  301. @apply text-red-500;
  302. }
  303. .sv-error-response {
  304. @apply text-red-600;
  305. }
  306. .missing-data-response {
  307. @apply text-secondaryLight;
  308. }
  309. .toasted-container {
  310. @apply max-w-md;
  311. .toasted {
  312. &.toasted-primary {
  313. @apply px-4 py-2;
  314. @apply bg-tooltip;
  315. @apply border-secondaryDark;
  316. @apply text-primary text-body;
  317. @apply justify-between;
  318. @apply shadow-lg;
  319. @apply font-semibold;
  320. @apply transition;
  321. @apply leading-body;
  322. @apply sm:rounded;
  323. @apply sm:border;
  324. .action {
  325. @apply relative;
  326. @apply flex flex-shrink-0;
  327. @apply text-body;
  328. @apply px-4;
  329. @apply my-1;
  330. @apply ml-auto;
  331. @apply normal-case;
  332. @apply font-semibold;
  333. @apply leading-body;
  334. @apply tracking-normal;
  335. @apply rounded;
  336. @apply last:ml-4;
  337. @apply sm:ml-8;
  338. @apply before:absolute;
  339. @apply before:bg-current;
  340. @apply before:opacity-10;
  341. @apply before:inset-0;
  342. @apply before:transition;
  343. @apply before:content-DEFAULT;
  344. @apply hover:no-underline;
  345. @apply hover:before:opacity-20;
  346. }
  347. }
  348. &.info {
  349. @apply bg-accent;
  350. @apply text-accentContrast;
  351. @apply border-accentDark;
  352. }
  353. &.error {
  354. @apply bg-red-200;
  355. @apply text-red-800;
  356. @apply border-red-400;
  357. }
  358. &.success {
  359. @apply bg-green-200;
  360. @apply text-green-800;
  361. @apply border-green-400;
  362. }
  363. }
  364. }
  365. .smart-splitter .splitpanes__splitter {
  366. @apply relative;
  367. @apply before:absolute;
  368. @apply before:inset-0;
  369. @apply before:bg-accentLight;
  370. @apply before:opacity-0;
  371. @apply before:z-20;
  372. @apply before:transition;
  373. @apply before:content-DEFAULT;
  374. @apply hover:before:opacity-100;
  375. }
  376. .no-splitter .splitpanes__splitter {
  377. @apply relative;
  378. }
  379. .smart-splitter.splitpanes--vertical > .splitpanes__splitter {
  380. @apply w-0;
  381. @apply before:-left-0.5;
  382. @apply before:-right-0.5;
  383. @apply before:h-full;
  384. @apply bg-divider;
  385. }
  386. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter {
  387. @apply h-0;
  388. @apply before:-top-0.5;
  389. @apply before:-bottom-0.5;
  390. @apply before:w-full;
  391. @apply bg-divider;
  392. }
  393. .no-splitter.splitpanes--vertical > .splitpanes__splitter {
  394. @apply w-0;
  395. @apply pointer-events-none;
  396. @apply bg-dividerLight;
  397. }
  398. .no-splitter.splitpanes--horizontal > .splitpanes__splitter {
  399. @apply h-0;
  400. @apply pointer-events-none;
  401. @apply bg-dividerLight;
  402. }
  403. .splitpanes--horizontal .splitpanes__pane {
  404. @apply transition-none;
  405. }
  406. .splitpanes--vertical .splitpanes__pane {
  407. @apply transition-none;
  408. }
  409. .cm-focused {
  410. @apply select-auto;
  411. @apply outline-none #{!important};
  412. .cm-activeLine {
  413. @apply bg-primaryLight;
  414. }
  415. .cm-activeLineGutter {
  416. @apply bg-primaryDark;
  417. }
  418. }
  419. .cm-editor {
  420. .cm-line::selection {
  421. @apply bg-accentDark #{!important};
  422. @apply text-accentContrast #{!important};
  423. }
  424. .cm-line ::selection {
  425. @apply bg-accentDark #{!important};
  426. @apply text-accentContrast #{!important};
  427. }
  428. }
  429. .shortcut-key {
  430. @apply inline-flex;
  431. @apply font-sans;
  432. @apply text-tiny;
  433. @apply bg-divider;
  434. @apply rounded;
  435. @apply ml-2;
  436. @apply px-1;
  437. @apply min-w-5;
  438. @apply min-h-5;
  439. @apply items-center;
  440. @apply justify-center;
  441. @apply border border-dividerDark;
  442. @apply shadow-sm;
  443. @apply <sm:hidden;
  444. }
  445. .capitalize-first {
  446. @apply first-letter:capitalize;
  447. }
  448. details {
  449. @apply select-none;
  450. }
  451. details summary::-webkit-details-marker {
  452. @apply hidden;
  453. }
  454. details summary .indicator {
  455. @apply transition;
  456. }
  457. details[open] summary .indicator {
  458. @apply transform;
  459. @apply rotate-90;
  460. }
  461. @media (max-width: 767px) {
  462. main {
  463. margin-bottom: env(safe-area-inset-bottom);
  464. }
  465. }
  466. .env-highlight {
  467. @apply text-accentContrast;
  468. &.env-found {
  469. @apply bg-accentDark;
  470. @apply hover:bg-accent;
  471. }
  472. &.env-not-found {
  473. @apply bg-red-500;
  474. @apply hover:bg-red-600;
  475. }
  476. }
  477. #nprogress .bar {
  478. @apply bg-accent #{!important};
  479. }
  480. .color-picker[type="color"] {
  481. @apply appearance-none;
  482. }
  483. .color-picker[type="color"]::-webkit-color-swatch-wrapper {
  484. @apply rounded;
  485. @apply p-0;
  486. }
  487. .color-picker[type="color"]::-webkit-color-swatch {
  488. @apply rounded;
  489. @apply border-0;
  490. }