Current section
Files
Jump to
Current section
Files
priv/lib-src/zotonic-admin/scss/_table.scss
/* override table-striped */
.table-striped > tbody > tr:nth-child(odd) {
background-color: #fff;
}
td.clickable,
tr.clickable td {
cursor: pointer;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
border-top: 1px solid $borderColorLight;
}
.table {
border-bottom: 1px solid $borderColorLight;
}
table.data-table {
max-width: 100%;
th, td {
word-break: break-all;
}
}
table.do_adminLinkedTable {
$_padding: 8px;
th, td {
@extend .admin-word-break;
}
th {
a:hover {
text-decoration: none;
}
}
td.view-link {
padding: 0;
}
td a.view-link {
display: block;
padding: $_padding;
color: inherit;
&:hover {
text-decoration: none;
}
}
.buttons {
margin-top: -2px;
margin-bottom: -2px;
word-break: none !important;
}
h5, p {
margin: 0;
}
.admin-list-thumb {
display: table-row;
> img,
> span {
display: table-cell;
vertical-align: top;
}
> img {
width: $miniThumbImageWidth;
height: $miniThumbImageHeight;
margin: 0 10px 0 0;
}
> span {
@extend .admin-word-break;
}
}
}
.table > thead > tr > th {
border-width: 1px;
}
.table tbody tr.clickable td,
.table tbody tr.clickable th,
.table tbody tr td.clickable,
.table tbody tr th.clickable {
transition: all .1s ease-in-out;
}
.table tbody tr.clickable:hover td,
.table tbody tr.clickable:hover th,
.table tbody tr:hover td.clickable,
.table tbody tr:hover th.clickable {
background-color: $backgroundColorRowHover;
}
table.table tr.unpublished td a.btn-success {
color: white;
}
.arrow {
$_size: 4px;
height: 0;
width: 0;
border: $_size solid transparent;
vertical-align: middle;
&.up {
border-bottom-color: #000;
border-bottom-color: currentColor;
margin-top: -($_size);
}
&.down {
border-top-color: #000;
border-top-color: currentColor;
margin-top: $_size;
}
}
th {
.arrow {
display: inline-block;
margin-left: 8px;
}
a:hover .arrow {
&.up {
border-bottom-color: currentColor;
}
&.down {
border-top-color: currentColor;
}
}
}