styles.scss 8.1 KB

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