Skip to content

Commit e206df1

Browse files
committed
styling
1 parent 738b51c commit e206df1

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/FixedDataTableCell.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ var FixedDataTableCell = React.createClass({
185185
'public/fixedDataTableCell/alignRight': props.align === 'right',
186186
'public/fixedDataTableCell/highlighted': props.highlighted,
187187
'public/fixedDataTableCell/main': true,
188+
'public/fixedDataTableCell/hasReorderHandle': !!props.onColumnReorder,
188189
'public/fixedDataTableCell/reordering': this.state.isReorderingThisColumn,
189190
}),
190191
props.className,

src/css/style/fixedDataTableCell.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@
2828
.public/fixedDataTableCell/columnResizerKnob {
2929
background-color: #0284ff;
3030
}
31+
.public/fixedDataTableCell/hasReorderHandle .public/fixedDataTableCell/cellContent {
32+
margin-left: 12px;
33+
}

src/css/style/fixedDataTableColumnReorder.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
*/
44
.fixedDataTableCellLayout/columnReorderContainer {
55
border-color: #0284ff;
6-
background-color: black;
7-
width: 10px;
8-
margin-right: -10px;
6+
background-color: rgba(0,0,0,0.1);
7+
width: 12px;
8+
margin-right: -12px;
99
float: left;
1010
}
11+
.fixedDataTableCellLayout/columnReorderContainer:after {
12+
content: '::';
13+
position: absolute;
14+
top: 50%;
15+
left: 1px;
16+
transform: translateY(-50%);
17+
}

0 commit comments

Comments
 (0)