styles.scss 8.3 KB

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