| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- @reference "./globals.css";
- /* Brought over from platform to be cleaned if needed */
- /* Form panels */
- .Form,
- .Form button {
- animation: fade 200ms ease-out;
- }
- .Form .form-control,
- .Form select {
- min-width: 250px;
- width: calc(67% - 0.5rem);
- margin-left: 0.5rem;
- }
- .Form .form-group,
- .Form .checkbox {
- @apply w-full;
- }
- .form-group {
- @apply mb-2 p-0 leading-5 border-0 bg-transparent;
- font-size: 15px;
- display: flex;
- flex-wrap: wrap;
- }
- /* TO DO: REMOVE */
- .form-group label {
- @apply inline-block text-foreground-light text-sm py-2;
- width: 33%;
- align-self: top;
- }
- .Form .checkbox .form-check-label {
- @apply flex items-center;
- }
- .Form .checkbox .form-check-label input[type='checkbox'] {
- @apply mr-4;
- width: auto;
- }
- .Form input[type='checkbox'] {
- min-width: inherit;
- width: inherit;
- }
- .Form .form-text,
- .Form .form-error {
- @apply block text-sm text-foreground-lighter my-1;
- display: block;
- margin-left: calc(33% + 0.5rem);
- width: 100%;
- }
- .Form .form-error {
- @apply text-red-400;
- }
- .Form .text-danger {
- @apply text-red-900;
- }
- .Form .form-help {
- @apply text-border-muted;
- }
- .Form hr {
- @apply mt-4 mb-4;
- }
- .section-block {
- @apply p-0 rounded-sm bg-surface-100 border border-overlay;
- }
- .section-block--header {
- @apply border-b border-overlay;
- }
- .section-block--header h1,
- .section-block--header h2,
- .section-block--header h3,
- .section-block--header h4 {
- @apply m-0;
- }
- .section-block--header p {
- @apply text-gray-300;
- }
- .section-block--footer {
- @apply border-overlay bg-surface-100;
- }
- .section-block--footer button:not(.mr-0) {
- @apply mr-2;
- }
- /*
- Table
- */
- .table-container table {
- @apply w-full;
- border-collapse: separate;
- border-spacing: 0;
- }
- .table-container table span {
- @apply truncate;
- }
- .table-container thead th {
- @apply text-foreground-light font-normal text-sm;
- @apply bg-surface-200;
- @apply border-t border-b border-default;
- }
- .table-container thead th:first-child {
- @apply rounded-sm rounded-r-none rounded-b-none;
- @apply border-l;
- }
- .table-container thead th:last-child {
- @apply pr-6 rounded-sm rounded-l-none rounded-b-none;
- @apply border-r;
- }
- .table-container tbody tr {
- @apply bg-surface-100;
- }
- .table-container tbody .tr--link {
- @apply cursor-pointer transition-colors;
- }
- .table-container tbody .tr--link:hover {
- @apply bg-surface-200;
- }
- .table-container tbody td {
- @apply border-b p-3 px-4 text-sm text-gray-1100 border-default;
- }
- .table-container tbody td:first-child {
- @apply pl-4 border-b border-l border-default;
- }
- .table-container tbody td:last-child {
- @apply pr-4 border-b border-r border-default;
- }
- .table-container tbody tr:last-child td:first-child {
- @apply rounded-sm rounded-r-none rounded-t-none;
- }
- .table-container tbody tr:last-child td:last-child {
- @apply rounded-sm rounded-l-none rounded-t-none;
- }
- .table-container--borderless thead th {
- border-top: none;
- }
- .table-container--borderless thead th:first-child {
- border-left: none;
- }
- .table-container--borderless thead th:last-child {
- border-right: none;
- }
- .table-container--borderless tbody td:first-child {
- border-left: none;
- }
- .table-container--borderless tbody td:last-child {
- border-right: none;
- }
- .table-container--borderless tbody tr:last-child td {
- border-bottom: none;
- }
- /* Docs */
- .Docs {
- &--inner-wrapper {
- background: linear-gradient(
- 90deg,
- hsl(var(--background-alternative-default)) 50%,
- hsl(var(--background-surface-100)) 50%
- );
- width: 100%;
- }
- .dark &--inner-wrapper {
- background: linear-gradient(
- 90deg,
- hsl(var(--background-surface-100)) 50%,
- hsl(var(--background-default)) 50%
- );
- }
- /* h1, */
- /* h2, */
- /* h3 { */
- /* @apply p-4 m-0; */
- /* } */
- .doc-heading {
- @apply text-foreground capitalize mt-4 px-6 w-1/2;
- hyphens: auto;
- max-width: 50%;
- }
- .doc-section {
- @apply border-b flex border-default;
- }
- &.Docs--table-editor .doc-section--introduction {
- .text {
- width: 85%;
- }
- }
- &.Docs--table-editor .doc-section--introduction {
- .text {
- width: 85%;
- }
- }
- &.Docs--table-editor .doc-section--client-libraries {
- flex-direction: column;
- margin-bottom: 40px;
- .text,
- .code {
- width: 100%;
- max-width: none;
- }
- .code {
- margin-bottom: 20px;
- }
- }
- .doc-section article:first-child {
- @apply prose prose-docs prose-sm max-w-none;
- }
- &.Docs--table-editor .doc-section__table-name {
- @apply mt-4;
- }
- .code-column {
- @apply p-4 px-6 w-1/2;
- max-width: 50%;
- /* a:not(.btn-primary):not(.btn-secondary) { */
- /* @apply text-green-500; */
- /* } */
- a {
- @apply transition;
- }
- a:hover {
- @apply text-brand-600;
- }
- p:last-child {
- padding-bottom: 0;
- }
- }
- .code {
- @apply flex-1 p-2 px-6 w-1/2 pb-4;
- max-width: 50%;
- h4 {
- @apply uppercase font-normal m-1 p-0 text-sm text-foreground-light;
- }
- h4:not(:first-child) {
- @apply mt-6;
- }
- code {
- @apply m-1 p-0;
- background-color: none;
- }
- .is-highlighted {
- @apply text-brand;
- }
- }
- .codeblock-container + .codeblock-container {
- @apply mt-12;
- }
- }
- ::-moz-selection {
- /* Code for Firefox */
- @apply bg-brand;
- color: #333 !important;
- }
- ::selection {
- background-color: #6ee7b7;
- color: #333 !important;
- }
- .has-hidden-children {
- .visible-child {
- transition: opacity 0.2s ease;
- opacity: 100;
- }
- .hidden-child {
- transition: opacity 0.2s ease;
- opacity: 0;
- }
- }
- .has-hidden-children:hover {
- .visible-child {
- opacity: 0;
- pointer-events: none;
- }
- .hidden-child {
- opacity: 100;
- }
- }
- .SQLTabNav {
- overflow-x: auto;
- overflow-y: hidden !important;
- &::-webkit-scrollbar {
- display: none !important;
- }
- /* for Firefox */
- scrollbar-width: none; /* auto | thin | none | <length>; */
- }
- .radix-tooltip-arrow {
- polygon {
- @apply fill-background-alternative [[data-theme*=dark]_&]:fill-background-alternative;
- /* fill: #eeeeee; */
- }
- }
- .pitr-listbox {
- @apply md:gap-x-2;
- }
- .roles-toggle {
- label {
- @apply mt-1;
- }
- }
- .thin-scrollbars {
- scrollbar-width: thin;
- scrollbar-color: hsl(var(--foreground-muted)) hsl(var(--background-alternative-default));
- .dark & {
- scrollbar-color: hsl(var(--foreground-lighter)) hsl(var(--background-surface-100));
- }
- ::-webkit-scrollbar {
- background: hsl(var(--background-default));
- height: 3px;
- width: 0px;
- border-radius: 0;
- .dark & {
- background: hsl(var(--border-control));
- }
- }
- ::-webkit-scrollbar-track {
- -webkit-box-shadow: inset 0 0 6px hsl(var(--border-control));
- -webkit-border-radius: 5px;
- border-radius: 5px;
- .dark & {
- -webkit-box-shadow: inset 0 0 6px hsl(var(--border-stronger));
- }
- }
- ::-webkit-scrollbar-thumb {
- -webkit-border-radius: 5px;
- border-radius: 5px;
- background: hsl(var(--foreground-muted));
- .dark & {
- -webkit-box-shadow: inset 0 0 6px var(--color-slate-1200);
- }
- }
- }
- .form-field-markdown {
- a {
- @apply text-brand transition opacity-75 hover:opacity-100 underline;
- }
- }
- .view-icon {
- rect {
- @apply fill-blue-500 stroke-blue-500;
- }
- path,
- circle {
- @apply stroke-blue-900 fill-blue-500;
- }
- }
- .table-icon {
- rect {
- @apply fill-green-1000 stroke-green-500;
- }
- line {
- @apply stroke-green-500;
- }
- }
- .recharts-cartesian-axis-tick {
- text {
- @apply text-xs;
- }
- }
- .recharts-reference-line {
- line {
- @apply stroke-foreground-lighter;
- }
- }
|