Merge pull request #7625 from opf/styling/30910/drag-and-drop
[30910] Improve styling of drag&drop in tablepull/7616/head
commit
f6aad25be3
@ -0,0 +1,30 @@ |
||||
// |
||||
// Drag & Drop styles for the table |
||||
// |
||||
.wp--row.gu-mirror |
||||
border: 1px solid $table-row-border-color |
||||
background: #E5F2FA !important |
||||
|
||||
// Align the items correctly since |
||||
// we're no longer in a table context |
||||
display: flex |
||||
align-items: center |
||||
|
||||
// Hide the context menu button outside mobile |
||||
html:not(.-browser-mobile) |
||||
.wp-table-context-menu-icon, |
||||
.wp-table--drag-and-drop-handle |
||||
// Hide from viewers, but allow to be focused |
||||
opacity: 0 |
||||
display: inline-block |
||||
height: calc(#{$table-timeline--row-height} - 1px) |
||||
line-height: calc(#{$table-timeline--row-height} - 1px) |
||||
|
||||
|
||||
.issue:hover .wp-table-context-menu-icon, |
||||
.issue:hover .wp-table--drag-and-drop-handle, |
||||
.wp-table--context-menu-td:focus, |
||||
.wp-table-context-menu-icon:focus |
||||
// Hide by default |
||||
opacity: 100 |
||||
|
Loading…
Reference in new issue