ui.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. @reference "./globals.css";
  2. /* Brought over from platform to be cleaned if needed */
  3. /* Form panels */
  4. .Form,
  5. .Form button {
  6. animation: fade 200ms ease-out;
  7. }
  8. .Form .form-control,
  9. .Form select {
  10. min-width: 250px;
  11. width: calc(67% - 0.5rem);
  12. margin-left: 0.5rem;
  13. }
  14. .Form .form-group,
  15. .Form .checkbox {
  16. @apply w-full;
  17. }
  18. .form-group {
  19. @apply mb-2 p-0 leading-5 border-0 bg-transparent;
  20. font-size: 15px;
  21. display: flex;
  22. flex-wrap: wrap;
  23. }
  24. /* TO DO: REMOVE */
  25. .form-group label {
  26. @apply inline-block text-foreground-light text-sm py-2;
  27. width: 33%;
  28. align-self: top;
  29. }
  30. .Form .checkbox .form-check-label {
  31. @apply flex items-center;
  32. }
  33. .Form .checkbox .form-check-label input[type='checkbox'] {
  34. @apply mr-4;
  35. width: auto;
  36. }
  37. .Form input[type='checkbox'] {
  38. min-width: inherit;
  39. width: inherit;
  40. }
  41. .Form .form-text,
  42. .Form .form-error {
  43. @apply block text-sm text-foreground-lighter my-1;
  44. display: block;
  45. margin-left: calc(33% + 0.5rem);
  46. width: 100%;
  47. }
  48. .Form .form-error {
  49. @apply text-red-400;
  50. }
  51. .Form .text-danger {
  52. @apply text-red-900;
  53. }
  54. .Form .form-help {
  55. @apply text-border-muted;
  56. }
  57. .Form hr {
  58. @apply mt-4 mb-4;
  59. }
  60. .section-block {
  61. @apply p-0 rounded-sm bg-surface-100 border border-overlay;
  62. }
  63. .section-block--header {
  64. @apply border-b border-overlay;
  65. }
  66. .section-block--header h1,
  67. .section-block--header h2,
  68. .section-block--header h3,
  69. .section-block--header h4 {
  70. @apply m-0;
  71. }
  72. .section-block--header p {
  73. @apply text-gray-300;
  74. }
  75. .section-block--footer {
  76. @apply border-overlay bg-surface-100;
  77. }
  78. .section-block--footer button:not(.mr-0) {
  79. @apply mr-2;
  80. }
  81. /*
  82. Table
  83. */
  84. .table-container table {
  85. @apply w-full;
  86. border-collapse: separate;
  87. border-spacing: 0;
  88. }
  89. .table-container table span {
  90. @apply truncate;
  91. }
  92. .table-container thead th {
  93. @apply text-foreground-light font-normal text-sm;
  94. @apply bg-surface-200;
  95. @apply border-t border-b border-default;
  96. }
  97. .table-container thead th:first-child {
  98. @apply rounded-sm rounded-r-none rounded-b-none;
  99. @apply border-l;
  100. }
  101. .table-container thead th:last-child {
  102. @apply pr-6 rounded-sm rounded-l-none rounded-b-none;
  103. @apply border-r;
  104. }
  105. .table-container tbody tr {
  106. @apply bg-surface-100;
  107. }
  108. .table-container tbody .tr--link {
  109. @apply cursor-pointer transition-colors;
  110. }
  111. .table-container tbody .tr--link:hover {
  112. @apply bg-surface-200;
  113. }
  114. .table-container tbody td {
  115. @apply border-b p-3 px-4 text-sm text-gray-1100 border-default;
  116. }
  117. .table-container tbody td:first-child {
  118. @apply pl-4 border-b border-l border-default;
  119. }
  120. .table-container tbody td:last-child {
  121. @apply pr-4 border-b border-r border-default;
  122. }
  123. .table-container tbody tr:last-child td:first-child {
  124. @apply rounded-sm rounded-r-none rounded-t-none;
  125. }
  126. .table-container tbody tr:last-child td:last-child {
  127. @apply rounded-sm rounded-l-none rounded-t-none;
  128. }
  129. .table-container--borderless thead th {
  130. border-top: none;
  131. }
  132. .table-container--borderless thead th:first-child {
  133. border-left: none;
  134. }
  135. .table-container--borderless thead th:last-child {
  136. border-right: none;
  137. }
  138. .table-container--borderless tbody td:first-child {
  139. border-left: none;
  140. }
  141. .table-container--borderless tbody td:last-child {
  142. border-right: none;
  143. }
  144. .table-container--borderless tbody tr:last-child td {
  145. border-bottom: none;
  146. }
  147. /* Docs */
  148. .Docs {
  149. &--inner-wrapper {
  150. background: linear-gradient(
  151. 90deg,
  152. hsl(var(--background-alternative-default)) 50%,
  153. hsl(var(--background-surface-100)) 50%
  154. );
  155. width: 100%;
  156. }
  157. .dark &--inner-wrapper {
  158. background: linear-gradient(
  159. 90deg,
  160. hsl(var(--background-surface-100)) 50%,
  161. hsl(var(--background-default)) 50%
  162. );
  163. }
  164. /* h1, */
  165. /* h2, */
  166. /* h3 { */
  167. /* @apply p-4 m-0; */
  168. /* } */
  169. .doc-heading {
  170. @apply text-foreground capitalize mt-4 px-6 w-1/2;
  171. hyphens: auto;
  172. max-width: 50%;
  173. }
  174. .doc-section {
  175. @apply border-b flex border-default;
  176. }
  177. &.Docs--table-editor .doc-section--introduction {
  178. .text {
  179. width: 85%;
  180. }
  181. }
  182. &.Docs--table-editor .doc-section--introduction {
  183. .text {
  184. width: 85%;
  185. }
  186. }
  187. &.Docs--table-editor .doc-section--client-libraries {
  188. flex-direction: column;
  189. margin-bottom: 40px;
  190. .text,
  191. .code {
  192. width: 100%;
  193. max-width: none;
  194. }
  195. .code {
  196. margin-bottom: 20px;
  197. }
  198. }
  199. .doc-section article:first-child {
  200. @apply prose prose-docs prose-sm max-w-none;
  201. }
  202. &.Docs--table-editor .doc-section__table-name {
  203. @apply mt-4;
  204. }
  205. .code-column {
  206. @apply p-4 px-6 w-1/2;
  207. max-width: 50%;
  208. /* a:not(.btn-primary):not(.btn-secondary) { */
  209. /* @apply text-green-500; */
  210. /* } */
  211. a {
  212. @apply transition;
  213. }
  214. a:hover {
  215. @apply text-brand-600;
  216. }
  217. p:last-child {
  218. padding-bottom: 0;
  219. }
  220. }
  221. .code {
  222. @apply flex-1 p-2 px-6 w-1/2 pb-4;
  223. max-width: 50%;
  224. h4 {
  225. @apply uppercase font-normal m-1 p-0 text-sm text-foreground-light;
  226. }
  227. h4:not(:first-child) {
  228. @apply mt-6;
  229. }
  230. code {
  231. @apply m-1 p-0;
  232. background-color: none;
  233. }
  234. .is-highlighted {
  235. @apply text-brand;
  236. }
  237. }
  238. .codeblock-container + .codeblock-container {
  239. @apply mt-12;
  240. }
  241. }
  242. ::-moz-selection {
  243. /* Code for Firefox */
  244. @apply bg-brand;
  245. color: #333 !important;
  246. }
  247. ::selection {
  248. background-color: #6ee7b7;
  249. color: #333 !important;
  250. }
  251. .has-hidden-children {
  252. .visible-child {
  253. transition: opacity 0.2s ease;
  254. opacity: 100;
  255. }
  256. .hidden-child {
  257. transition: opacity 0.2s ease;
  258. opacity: 0;
  259. }
  260. }
  261. .has-hidden-children:hover {
  262. .visible-child {
  263. opacity: 0;
  264. pointer-events: none;
  265. }
  266. .hidden-child {
  267. opacity: 100;
  268. }
  269. }
  270. .SQLTabNav {
  271. overflow-x: auto;
  272. overflow-y: hidden !important;
  273. &::-webkit-scrollbar {
  274. display: none !important;
  275. }
  276. /* for Firefox */
  277. scrollbar-width: none; /* auto | thin | none | <length>; */
  278. }
  279. .radix-tooltip-arrow {
  280. polygon {
  281. @apply fill-background-alternative [[data-theme*=dark]_&]:fill-background-alternative;
  282. /* fill: #eeeeee; */
  283. }
  284. }
  285. .pitr-listbox {
  286. @apply md:gap-x-2;
  287. }
  288. .roles-toggle {
  289. label {
  290. @apply mt-1;
  291. }
  292. }
  293. .thin-scrollbars {
  294. scrollbar-width: thin;
  295. scrollbar-color: hsl(var(--foreground-muted)) hsl(var(--background-alternative-default));
  296. .dark & {
  297. scrollbar-color: hsl(var(--foreground-lighter)) hsl(var(--background-surface-100));
  298. }
  299. ::-webkit-scrollbar {
  300. background: hsl(var(--background-default));
  301. height: 3px;
  302. width: 0px;
  303. border-radius: 0;
  304. .dark & {
  305. background: hsl(var(--border-control));
  306. }
  307. }
  308. ::-webkit-scrollbar-track {
  309. -webkit-box-shadow: inset 0 0 6px hsl(var(--border-control));
  310. -webkit-border-radius: 5px;
  311. border-radius: 5px;
  312. .dark & {
  313. -webkit-box-shadow: inset 0 0 6px hsl(var(--border-stronger));
  314. }
  315. }
  316. ::-webkit-scrollbar-thumb {
  317. -webkit-border-radius: 5px;
  318. border-radius: 5px;
  319. background: hsl(var(--foreground-muted));
  320. .dark & {
  321. -webkit-box-shadow: inset 0 0 6px var(--color-slate-1200);
  322. }
  323. }
  324. }
  325. .form-field-markdown {
  326. a {
  327. @apply text-brand transition opacity-75 hover:opacity-100 underline;
  328. }
  329. }
  330. .view-icon {
  331. rect {
  332. @apply fill-blue-500 stroke-blue-500;
  333. }
  334. path,
  335. circle {
  336. @apply stroke-blue-900 fill-blue-500;
  337. }
  338. }
  339. .table-icon {
  340. rect {
  341. @apply fill-green-1000 stroke-green-500;
  342. }
  343. line {
  344. @apply stroke-green-500;
  345. }
  346. }
  347. .recharts-cartesian-axis-tick {
  348. text {
  349. @apply text-xs;
  350. }
  351. }
  352. .recharts-reference-line {
  353. line {
  354. @apply stroke-foreground-lighter;
  355. }
  356. }