-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9992971
commit abb1d4f
Showing
2 changed files
with
86 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import {Input as AntInput, Table as AntTable} from 'antd'; | ||
|
||
import styled from 'styled-components'; | ||
|
||
import {Colors} from '@shared/styles'; | ||
|
||
export const Table = styled(props => <AntTable {...props} />)` | ||
.ant-table { | ||
border: 1px solid ${Colors.grey4}; | ||
border-radius: 2px; | ||
} | ||
.ant-table-header { | ||
background-color: #1f2628; | ||
color: ${Colors.grey9}; | ||
font-size: 14px !important; | ||
font-weight: 700 !important; | ||
border-bottom: 1px solid ${Colors.grey4}; | ||
margin-bottom: 0; | ||
scrollbar-gutter: stable both-edges; | ||
} | ||
& .ant-table-header .ant-table-cell { | ||
font-size: 14px; | ||
font-weight: 700; | ||
color: ${Colors.grey9}; | ||
} | ||
.ant-table-thead .ant-table-cell::before { | ||
display: none; | ||
} | ||
.ant-table-body .ant-table-row { | ||
background-color: #191f21; | ||
border-bottom: 1px solid ${Colors.grey4}; | ||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
color: ${Colors.grey9}; | ||
} | ||
.ant-table-body .ant-table-row:hover { | ||
background-color: ${Colors.blue6}; | ||
} | ||
.ant-table-body .ant-table-row:hover .hover-area { | ||
visibility: visible; | ||
} | ||
.row-selected { | ||
background-color: ${Colors.cyan8} !important; | ||
color: ${Colors.grey2} !important; | ||
} | ||
`; | ||
|
||
export const HoverArea = styled.div.attrs({ | ||
className: 'hover-area', | ||
})` | ||
display: flex; | ||
align-items: center; | ||
visibility: hidden; | ||
`; | ||
|
||
export const Input = styled(AntInput)` | ||
min-width: 300px; | ||
`; |