blur-admin/src/sass/theme/_table.scss

275 lines
4.4 KiB
SCSS

.table {
margin-bottom: 0px;
& > thead {
& > tr {
& > th {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
white-space: nowrap;
&:first-child {
text-align: center;
}
&:last-child {
padding-right: 16px;
}
}
}
}
& > tbody {
& > tr {
& > tr:first-child {
padding-top: 1px;
}
& > td {
padding: 0px 8px;
line-height: 35px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
&:first-child {
text-align: center;
}
&:last-child {
padding-right: 16px !important;
}
}
}
}
&.table-bordered {
border-color: rgba(255, 255, 255, 0.2) !important;
th, td {
border-color: rgba(255, 255, 255, 0.2) !important;
}
}
}
.table-id {
text-align: left !important;
width: 40px;
}
.table-arr {
width: 5px;
padding: 10px 8px 8px 0 !important;
}
.table-no-borders {
border: none;
td, th, tr {
border: none !important;
}
}
.editable-wrap .btn-group.form-control{
background-color: transparent;
}
.editable-tr-wrap {
.editable-wrap {
vertical-align: super;
}
input.editable-input {
width: 110px;
}
td {
width: 20%;
}
}
.editable-table-button {
width: 70px;
}
.add-row-editable-table {
margin-bottom: 10px;
}
.select-page-size-wrap {
width: 150px;
}
.table .header-row th {
vertical-align: middle;
padding: 0 8px;
}
tr.editable-row {
input.form-control {
vertical-align: middle;
}
}
.select-td .editable-select {
margin-bottom: 1px;
}
@media screen and (max-width: 1199px) {
.editable-tr-wrap {
.editable-wrap {
vertical-align: middle;
}
}
}
.browser-icons {
width: 41px;
}
.st-sort-ascent, .st-sort-descent {
position: relative;
}
.st-sort-ascent:after, .st-sort-descent:after {
width: 0;
height: 0;
border-bottom: 4px solid $default-text;
border-top: 4px solid transparent;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
margin-bottom: 2px;
}
.st-sort-descent:after {
transform: rotate(-180deg);
margin-bottom: -2px;
}
.sortable {
th {
cursor: pointer;
&:after {
content: '';
display: inline-block;
width: 8px;
margin-left: 8px;
}
}
}
a.email-link {
color: $default;
&:hover {
color: $danger;
}
}
input.search-input {
margin-left: -8px;
padding-left: 8px;
}
.table .pagination {
margin: 4px 0 -12px 0;
a {
cursor: pointer;
}
}
.vertical-scroll {
max-height: 214px;
}
.pagination > li > a, .pagination > li > span {
background: transparent;
}
.pagination > li:first-child > a, .pagination > li:first-child > span {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.pagination > li:last-child > a, .pagination > li:last-child > span {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.status-button {
width: 60px;
}
.table {
.editable-wrap .editable-controls, .editable-wrap .editable-error {
vertical-align: sub;
.btn {
&.dropdown-toggle {
padding: 3px 20px;
margin-top: 3px;
}
padding: 3px 8px;
}
input {
line-height: 1px;
height: 30px;
}
}
}
.form-inline button[type="submit"].editable-table-button {
margin-left: 0;
}
body.badmin-transparent {
.table {
& > thead {
& > tr {
& > th {
border-bottom: none;
}
}
}
& > tbody {
& > tr.no-top-border {
&:first-child > td {
border-top: none;
}
}
}
}
.black-muted-bg {
background-color: rgba(0, 0, 0, 0.1);
}
.table-hover {
tr:hover {
background-color: rgba(0, 0, 0, 0.1);
}
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.1);
}
.table > tbody > tr.primary > td {
background-color: $primary;
}
.table > tbody > tr.success > td {
background-color: $success;
}
.table > tbody > tr.warning > td {
background-color: $warning;
}
.table > tbody > tr.danger > td {
background-color: $danger;
}
.table > tbody > tr.info > td {
background-color: $info;
}
.editable-click, a.editable-click {
color: $default;
border-bottom: dashed 1px $default;
}
}
th {
font-weight: $font-normal;
}
.editable-empty{
color: $danger-dark;
}
.table > tbody > tr > th{
border: none;
}
.table-striped > tbody > tr > td {
border: none;
}