.table { position: relative; z-index: $zindex-dropdown; border-radius: 10px; td { // border-top: 1px solid gray("300"); // border-bottom: 1px solid gray("300"); // &:first-of-type { // border-left: 1px solid gray("300"); // } // &:last-of-type { // border-right: 1px solid gray("300"); // } vertical-align: middle; // Table action buttons .btn-link { width: 40px; height: 40px; padding: 5px !important; display: inline-flex; justify-content: center; align-items: center; } } // thead-light added for specificity .thead-light th { vertical-align: middle; // border-top: 1px solid gray("300"); border-bottom: 1px solid gray("300"); // &:first-of-type { // border-left: 1px solid gray("300"); // } // &:last-of-type { // border-right: 1px solid gray("300"); // } // color: theme-color("dark"); &:focus { outline: none; } } .status-icon svg { width: 1rem; height: auto; } .b-table-has-details { td { border-bottom: none; } .table-row-expand svg { transform: rotate(180deg); } } .b-table-details { background-color: theme-color("light"); td { padding: 0px 16px 16px 16px; } dl { margin: 0; } dt { float: left; clear: left; margin-right: $spacer / 2; } dd { line-height: 1.2 } } .table-row-expand { width: 50px; .btn { padding: 0; width: 50px; } svg { fill: theme-color("dark"); } } .b-table-sort-icon-left { background-position: left calc(1.5rem / 2) center !important; padding-left: calc(1.2rem + 0.65em) !important; &:focus { outline: none; box-shadow: inset 0 0 0 2px theme-color('primary') !important; } &:hover { background-color: theme-color-dark('light'); } } } .b-table-sticky-header td { border-top: none; } // Table stacked style for small screen only @include media-breakpoint-down(xs) { .b-table-stacked-sm { border: 1px solid gray("300"); tr { &:not(:first-child) > td[aria-colindex='1'] { // border-top: 1px solid gray("300"); padding-top: 0.625rem; } &:not(.b-table-empty-row) { position: relative; // Restrict background color to get zebra striping for the row &::before, &::after { position: absolute; top: 0; height: 100%; z-index: -1; } &:before { content: ''; background-color: gray("200"); width: 40%; border-right: 1px solid gray("300"); } &:after { content: ''; right: 0; width: 60%; } &:nth-child(even)::after { background-color: gray("100"); // Zebra striping for the row } } td { border: 0; padding: 0.75rem; text-align: left !important; &:last-of-type { border-right: 0; } } } } .table.b-table.b-table-stacked-sm > tbody > tr > [data-label] { &::before { text-align: left; padding-left: $spacer /2; } > div { padding-left: 1rem; } } // .table.b-table.b-table-stacked-sm > tbody > tr > :first-child { // border-top-width: 1px; // } } .bootstrap-table__stripes tr:nth-of-type(even) { background-color: rgb(255 255 255); } ////// не работает .bootstrap-table__stripes_odd tr:nth-of-type(odd) { background-color: rgb(255 255 255); } .bootstrap-table__head_bg { border-top: none; display: none; } .bootstrap-table__column-first { border-right: 1px solid rgba(26, 62, 91, 0.1); border-top: none; } .bootstrap-table__column-last { border-top: none; } .bootstrap-table__td { border-top: 1px solid rgba(26, 62, 91, 0.1); } .bootstrap-table__section { position: relative; margin: 16px 2rem 0 2rem; width: 90%; } .bootstrap-rounded-table { border: 1px solid rgba(26, 62, 91, 0.3); -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; } .bootstrap-rounded-table__column-first { border-right: 1px solid rgba(26, 62, 91, 0.3) !important; border-top: none !important; border-radius: 10px 0 0 0; -webkit-border-radius: 10px 0 0 0; -moz-border-radius: 10px 0 0 0; } .bootstrap-rounded-table__column-last { border-top: none !important; border-radius: 0 10px 0 0; -webkit-border-radius: 0 10px 0 0; -moz-border-radius: 0 10px 0 0; } .bootstrap-rounded-table__column-center { border-right: 1px solid rgba(26, 62, 91, 0.3) !important; border-top: none !important; border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; } .bootstrap-rounded-table__without-border { border-top: none !important; border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; } .bootstrap-rounded-table__head_bg { background-color: $faint-secondary-primary-10 !important; color: $text-primary !important; } .bootstrap-rounded-table__td { border-top: 1px solid rgba(26, 62, 91, 0.3) !important; border-radius: 0; -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; -o-border-radius: 0; -khtml-border-radius: 0; &:hover { background-color: $faint-secondary-primary-5; } } .bootstrap-table { border-top: none !important; border: 1px solid rgba(26, 62, 91, 0.1); background-color: $faint-secondary-primary-5; } .bootstrap-analytical-table { border: 1px solid rgba(26, 62, 91, 0.3); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; } .bootstrap-analytical-th { border-bottom: 1px solid rgba(26, 62, 91, 0.3) !important; background-color: $white !important; color: $text-primary !important; } .bootstrap-analytical-table__column-first { border-top: none !important; border-radius: 4px 0 0 0; -webkit-border-radius: 4px 0 0 0; -moz-border-radius: 4px 0 0 0; } .bootstrap-analytical-table__column-last { border-top: none !important; border-radius: 0 4px 0 0; -webkit-border-radius: 0 4px 0 0; -moz-border-radius: 0 4px 0 0; } .bootstrap-analytical-table__column-center { border-top: none !important; border-radius: 0 0 0 0; -webkit-border-radius: 0 0 0 0; -moz-border-radius: 0 0 0 0; } .bootstrap-analytical-table__td { padding: 10px !important; border-radius: 0; -webkit-border-radius: 0; -moz-border-radius: 0; -ms-border-radius: 0; -o-border-radius: 0; -khtml-border-radius: 0; }