Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

3.8 KB
Raw Blame
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

@import './index.css';
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

@layer tailwind-base, antd;
@layer tailwind-base {
  @tailwind base;
}
@tailwind components;
@tailwind utilities;

.btn {
  @apply inline-flex h-9 cursor-pointer items-center justify-center rounded-md bg-transparent px-2 text-sm font-medium transition-colors hover:bg-zinc-100 focus:outline-none focus:bg-zinc-100 active:scale-95 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-transparent;
}

.my-icon {
  width: 1rem;
  height: 1rem;
}

.my-icon-medium {
  width: 1.5rem;
  height: 1.5rem;
}

.my-icon-small {
  width: 0.875rem;
  height: 0.875rem;
}

.my-icon-large {
  width: 2rem;
  height: 2rem;
}

.ant-tabs-content-holder {
  min-width: 0;
  width: 100%;
}

.ant-steps-item-active {
  .step-icon {
    @apply bg-[color:theme(colors.primary)] text-white;
    &:hover {
      @apply text-white;
    }
  }
  .step-icon-default-theme {
    @apply bg-gray-100 text-defaultPrimary;
    &:hover {
      @apply text-defaultPrimary;
    }
  }
}

.tag-metadata {
  @apply bg-[color:theme(colors.primary)] text-white;
}

.tag-metadata-default {
  @apply bg-[color:theme(colors.defaultPrimary)] text-white;
}

.tag-swatch {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  border: 1px solid #d1d9e0b3;
  border-radius: 100%;
}

.tag-small {
  font-size: 12px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 4px;
}

.provider-card {
  @apply cursor-pointer rounded-lg p-2;
  .ant-typography-secondary {
    @apply mb-0 !important;
  }
  &:hover {
    .provider-radio,
    .provider-text > div {
      @apply text-[color:theme(colors.primary)];
    }
    .default-theme-radio,
    .default-theme-text > div {
      @apply text-[color:theme(colors.defaultPrimary)];
    }
  }
  &.disabled {
    &:hover {
      @apply cursor-not-allowed;
      .provider-radio,
      .default-theme-radio,
      .provider-text > div,
      .default-theme-text > div {
        @apply text-inherit;
      }
    }
  }
  &.actived {
    @apply bg-[color:theme(colors.primary)];
    .provider-radio {
      @apply text-white !important;
    }
    .provider-text > div {
      @apply text-white !important;
    }
  }
  &.actived-default {
    @apply bg-[color:theme(colors.defaultPrimary)];
    .default-theme-radio {
      @apply !text-white;
    }
    .default-theme-text > div {
      @apply !text-white;
    }
  }
}

.provider-card.actived-default:hover {
  .default-theme-radio,
  .default-theme-text > div,
  .ant-typography,
  .ant-typography-secondary {
    @apply !text-white;
  }
}

.ant-cascader-menu {
  max-width: 300px;
}

.ant-cascader-menu-item-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sql-hl-keyword {
  @apply font-semibold text-defaultPrimary;
}

.sql-hl-function {
  color: #7c3aed;
}

.sql-hl-string {
  color: #166534;
}

.sql-hl-number {
  color: #1d4ed8;
}

.sql-hl-identifier {
  color: inherit;
}

.sql-hl-special {
  color: #6b7280;
}

.sql-hl-bracket {
  color: #6b7280;
}