chore: Remove crud.less from Datasource (#19438)

* Remove crud less

* Remove unused classname

* Remove unused import

* Add theme top level
This commit is contained in:
Geido 2022-04-07 15:18:01 +03:00 committed by GitHub
parent e5bab00cb9
commit e8f3e8a24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 59 deletions

View File

@ -23,7 +23,6 @@ import Button from 'src/components/Button';
import Icons from 'src/components/Icons';
import Fieldset from './Fieldset';
import { recurseReactClone } from './utils';
import './crud.less';
interface CRUDCollectionProps {
allowAddItem?: boolean;
@ -102,9 +101,28 @@ const CrudTableWrapper = styled.div<{ stickyHeader?: boolean }>`
min
}
`}
th span {
vertical-align: ${({ theme }) => theme.gridUnit * -2}px;
}
${({ theme }) => `
th span {
vertical-align: ${theme.gridUnit * -2}px;
}
.text-right {
text-align: right;
}
.empty-collection {
padding: ${theme.gridUnit * 2 + 2}px;
}
.tiny-cell {
width: ${theme.gridUnit + 1}px;
}
i.fa-caret-down,
i.fa-caret-up {
width: ${theme.gridUnit + 1}px;
}
td.expanded {
border-top: 0;
padding: 0;
}
`}
`;
const CrudButtonWrapper = styled.div`

View File

@ -20,7 +20,6 @@ import React, { useCallback } from 'react';
import { css, SupersetTheme } from '@superset-ui/core';
import { Tooltip } from 'src/components/Tooltip';
import { FormItem, FormLabel } from 'src/components/Form';
import './crud.less';
const formItemInlineCss = css`
.ant-form-item-control-input-content {

View File

@ -1,54 +0,0 @@
/**
* 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 '../../assets/stylesheets/less/variables.less';
.CRUD {
.text-right {
text-align: right;
}
.empty-collection {
padding: 10px;
}
.control-label {
font-weight: @font-weight-bold;
}
.tiny-cell {
width: 5px;
}
i.fa-caret-down,
i.fa-caret-up {
width: 5px;
}
td.expanded {
border-top: 0;
padding: 0;
}
.frame {
border: 1px solid @gray-heading;
border-radius: @border-radius-large;
padding: 10;
background: @gray-bg;
}
}