I have a table with rounded corners. The basic CSS for this is that I added the class .table-bordered on the table-element like this:
.table-bordered
{
border: 1px solid @tableBorder;
border-collapse: separate;
.border-radius(@baseBorderRadius);
}
this works great. But we have implemented a drag-function in javascript. It is possible to drag elements into the table rows.
To show the user what row they are dragging an element to, I want to add a dashed border to the TR like this:
tr.dropzone-active {
border: 3px dashed darken(@portletBorderColor, 10%);
.box-shadow(0 0 10px 0 rgba(0, 0, 0, .25));
.scale(1.01);
}
So when I drag a document over the TR, i add the class dropzone-active to the TR to change the border. Box-shadow and .scale works with this. But the border is not changed (to 3px and dashed). The reason for this, is the table-css element:
border-collapse: separate;
If I remove this, the drag-drop border changes, but then my corners are not rounded. Is there someway to fix this?
for example to add border-collapse: collapse to the dropzone-active element or something?