Skip to content

Commit

Permalink
Add theme top level
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Apr 4, 2022
1 parent 90f5f3d commit 7525f00
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions superset-frontend/src/components/Datasource/CollectionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,28 @@ const CrudTableWrapper = styled.div<{ stickyHeader?: boolean }>`
min
}
`}
th span {
vertical-align: ${({ theme }) => theme.gridUnit * -2}px;
}
.text-right {
text-align: right;
}
.empty-collection {
padding: ${({ theme }) => theme.gridUnit * 2 + 2}px;
}
.tiny-cell {
width: ${({ theme }) => theme.gridUnit + 1}px;
}
i.fa-caret-down,
i.fa-caret-up {
width: ${({ theme }) => theme.gridUnit + 1}px;
}
td.expanded {
border-top: 0;
padding: 0;
}
${({ 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`
Expand Down

0 comments on commit 7525f00

Please sign in to comment.