styles.scss 7.5 KB

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