styles.scss 8.4 KB

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