styles.scss 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. *,
  2. *::before,
  3. *::after {
  4. @apply backface-hidden;
  5. }
  6. :root {
  7. @apply antialiased;
  8. accent-color: var(--accent-color);
  9. font-variant-ligatures: common-ligatures;
  10. }
  11. ::-webkit-scrollbar-track {
  12. @apply bg-transparent;
  13. }
  14. ::-webkit-scrollbar-thumb {
  15. @apply bg-divider bg-clip-content;
  16. @apply rounded-full;
  17. @apply border-solid border-transparent border-4;
  18. @apply hover:bg-dividerDark;
  19. @apply hover:bg-clip-content;
  20. }
  21. ::-webkit-scrollbar {
  22. @apply w-4;
  23. @apply h-4;
  24. }
  25. .hide-scrollbar {
  26. -ms-overflow-style: none;
  27. scrollbar-width: none;
  28. }
  29. .hide-scrollbar::-webkit-scrollbar {
  30. @apply hidden;
  31. }
  32. ::selection {
  33. @apply bg-accentDark;
  34. @apply text-accentContrast;
  35. }
  36. input::placeholder,
  37. textarea::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. animation: fade 300ms forwards;
  56. font-size: var(--body-font-size);
  57. line-height: var(--body-line-height);
  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. font-size: var(--body-line-height) !important;
  88. width: var(--body-line-height);
  89. }
  90. .svg-icons {
  91. @apply flex-shrink-0;
  92. height: var(--body-line-height);
  93. width: var(--body-line-height);
  94. }
  95. a {
  96. @apply inline-flex;
  97. @apply text-current;
  98. @apply no-underline;
  99. @apply outline-none;
  100. @apply transition;
  101. font-size: var(--body-font-size);
  102. line-height: var(--body-line-height);
  103. &.link {
  104. @apply items-center;
  105. @apply py-0.5 px-1;
  106. @apply -my-0.5 -mx-1;
  107. @apply text-accent;
  108. @apply rounded;
  109. @apply hover:text-accentDark;
  110. @apply focus-visible:ring;
  111. @apply focus-visible:ring-accent;
  112. }
  113. }
  114. .tippy-popper {
  115. .tooltip-theme {
  116. @apply bg-tooltip;
  117. @apply text-primary;
  118. @apply font-semibold;
  119. @apply py-1 px-2;
  120. @apply truncate;
  121. @apply shadow;
  122. font-size: 88%;
  123. line-height: var(--body-line-height);
  124. kbd {
  125. @apply inline-flex;
  126. @apply font-sans;
  127. @apply bg-gray-500;
  128. @apply bg-opacity-45;
  129. @apply text-primaryLight;
  130. @apply rounded-sm;
  131. @apply px-1;
  132. @apply ml-1;
  133. @apply truncate;
  134. }
  135. }
  136. .popover-theme {
  137. @apply bg-popover;
  138. @apply text-secondary;
  139. @apply p-2;
  140. @apply shadow-lg;
  141. @apply focus:outline-none;
  142. font-size: var(--body-font-size);
  143. line-height: var(--body-line-height);
  144. .tippy-roundarrow svg {
  145. @apply fill-popover;
  146. }
  147. }
  148. }
  149. [interactive] > div {
  150. @apply flex;
  151. @apply flex-1;
  152. @apply h-full;
  153. }
  154. .tippy-content > div {
  155. @apply flex flex-col;
  156. @apply max-h-46;
  157. @apply items-stretch;
  158. @apply overflow-y-auto;
  159. }
  160. hr {
  161. @apply border-b border-dividerLight;
  162. @apply my-2;
  163. }
  164. .heading {
  165. @apply font-bold;
  166. @apply text-secondaryDark text-lg;
  167. }
  168. .input,
  169. .select,
  170. .textarea {
  171. @apply flex;
  172. @apply w-full;
  173. @apply py-2 px-4;
  174. @apply bg-transparent;
  175. @apply rounded;
  176. @apply text-secondaryDark;
  177. @apply border border-divider;
  178. @apply focus-visible:border-dividerDark;
  179. }
  180. input,
  181. select,
  182. textarea,
  183. button {
  184. @apply focus:outline-none;
  185. @apply truncate;
  186. @apply transition;
  187. @apply disabled:cursor-not-allowed;
  188. font-size: var(--body-font-size);
  189. line-height: var(--body-line-height);
  190. }
  191. .input[type="file"],
  192. .input[type="radio"],
  193. #installPWA {
  194. @apply hidden;
  195. }
  196. .floating-input ~ label {
  197. @apply font-medium;
  198. @apply py-0.5;
  199. @apply px-2;
  200. @apply m-2;
  201. @apply rounded;
  202. @apply transition;
  203. @apply absolute;
  204. @apply origin-top-left;
  205. }
  206. .floating-input:focus-within ~ label,
  207. .floating-input:not(:placeholder-shown) ~ label {
  208. @apply bg-primary;
  209. @apply transform;
  210. @apply origin-top-left;
  211. @apply scale-75;
  212. @apply -translate-y-5;
  213. @apply translate-x-1;
  214. }
  215. .floating-input:focus-within ~ label {
  216. @apply text-secondaryDark;
  217. }
  218. pre.ace_editor {
  219. @apply font-mono;
  220. @apply resize-none;
  221. @apply z-0;
  222. }
  223. .select {
  224. @apply appearance-none;
  225. @apply cursor-pointer;
  226. &::-ms-expand {
  227. @apply hidden;
  228. }
  229. }
  230. .select-wrapper {
  231. @apply flex flex-1;
  232. @apply relative;
  233. &::after {
  234. @apply absolute;
  235. @apply flex;
  236. @apply inset-y-0;
  237. @apply items-center;
  238. @apply justify-center;
  239. @apply pointer-events-none;
  240. @apply font-icon;
  241. @apply text-secondaryLight;
  242. @apply right-3;
  243. content: "\e313";
  244. }
  245. }
  246. .info-response {
  247. @apply text-pink-500;
  248. }
  249. .success-response {
  250. @apply text-green-500;
  251. }
  252. .redir-response {
  253. @apply text-yellow-500;
  254. }
  255. .cl-error-response {
  256. @apply text-red-500;
  257. }
  258. .sv-error-response {
  259. @apply text-red-600;
  260. }
  261. .missing-data-response {
  262. @apply text-secondaryLight;
  263. }
  264. .toasted-container {
  265. .toasted {
  266. &.toasted-primary {
  267. @apply bg-tooltip;
  268. @apply text-primary;
  269. @apply justify-between;
  270. @apply shadow;
  271. @apply font-medium;
  272. @apply transition;
  273. font-size: var(--body-font-size);
  274. line-height: var(--body-line-height);
  275. .action {
  276. @apply bg-gray-500;
  277. @apply px-4;
  278. @apply bg-opacity-10;
  279. @apply ml-auto;
  280. @apply last:ml-4;
  281. @apply sm:ml-8;
  282. @apply rounded;
  283. @apply text-current;
  284. @apply normal-case;
  285. @apply hover:bg-opacity-20;
  286. @apply hover:no-underline;
  287. @apply font-medium;
  288. font-size: var(--body-font-size);
  289. line-height: var(--body-line-height);
  290. }
  291. }
  292. &.info {
  293. @apply !bg-accent;
  294. }
  295. &.error {
  296. @apply !bg-red-200;
  297. @apply !text-red-800;
  298. }
  299. &.success {
  300. @apply !bg-green-200;
  301. @apply !text-green-800;
  302. }
  303. }
  304. }
  305. .smart-splitter .splitpanes__splitter {
  306. @apply relative;
  307. @apply bg-primaryLight;
  308. }
  309. .no-splitter .splitpanes__splitter {
  310. @apply relative;
  311. @apply bg-primaryLight;
  312. }
  313. .smart-splitter.splitpanes--vertical > .splitpanes__splitter {
  314. @apply w-1;
  315. }
  316. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter {
  317. @apply h-1;
  318. }
  319. .no-splitter.splitpanes--vertical > .splitpanes__splitter {
  320. @apply w-0.5;
  321. @apply pointer-events-none;
  322. }
  323. .no-splitter.splitpanes--horizontal > .splitpanes__splitter {
  324. @apply h-0.5;
  325. @apply pointer-events-none;
  326. }
  327. .smart-splitter .splitpanes__splitter::before {
  328. @apply absolute;
  329. @apply inset-0;
  330. @apply bg-accentLight;
  331. @apply opacity-0;
  332. @apply z-20;
  333. @apply transition;
  334. content: "";
  335. }
  336. .smart-splitter .splitpanes__splitter::after {
  337. @apply absolute;
  338. @apply inset-0;
  339. @apply z-20;
  340. @apply transition;
  341. @apply flex;
  342. @apply items-center;
  343. @apply justify-center;
  344. @apply text-dividerDark;
  345. @apply font-icon;
  346. }
  347. .smart-splitter.splitpanes--vertical > .splitpanes__splitter::after {
  348. content: "\e5d4";
  349. }
  350. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter::after {
  351. content: "\e5d3";
  352. }
  353. .smart-splitter .splitpanes__splitter:hover::before {
  354. @apply opacity-100;
  355. }
  356. .smart-splitter.splitpanes--vertical > .splitpanes__splitter::before {
  357. @apply -left-0.5;
  358. @apply -right-0.5;
  359. @apply h-full;
  360. }
  361. .smart-splitter.splitpanes--horizontal > .splitpanes__splitter::before {
  362. @apply -top-0.5;
  363. @apply -bottom-0.5;
  364. @apply w-full;
  365. }
  366. .cm-focused {
  367. @apply select-auto;
  368. @apply !outline-none;
  369. .cm-activeLine {
  370. @apply bg-primaryLight;
  371. }
  372. .cm-activeLineGutter {
  373. @apply bg-primaryDark;
  374. }
  375. }
  376. @media (max-width: 767px) {
  377. main {
  378. margin-bottom: env(safe-area-inset-bottom);
  379. }
  380. }