| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- // Core variables and mixins
- @import '~@resources/scss/base/bootstrap-extended/include';
- // Overrides user variable
- @import '~@resources/scss/base/components/include';
- // good table variable override to change the color of table
- $text-color: $body-color;
- $thead-bg-color-1: transparent;
- $thead-bg-color-2: transparent;
- // sorting icons
- .vgt-wrap {
- .vgt-table {
- th.sortable {
- &:before {
- border-top-color: $border-color;
- }
- &:after {
- border-bottom-color: $border-color;
- }
- }
- thead {
- th {
- &.sorting-desc {
- &::before {
- border-top-color: $primary;
- }
- }
- &.sorting-asc {
- &::after {
- border-bottom-color: $primary;
- }
- }
- }
- }
- }
- }
- // pagination in rtl
- .vgt-wrap.rtl {
- .vgt-table {
- th.sortable {
- &::after,
- &::before {
- left: 2rem;
- }
- }
- }
- .pagination {
- .page-item:last-child:not(.next-item) {
- .page-link {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- border-top-left-radius: 1.428rem;
- border-bottom-left-radius: 1.428rem;
- }
- }
- .page-item:first-child:not(.prev-item) {
- .page-link {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-top-right-radius: 1.428rem;
- border-bottom-right-radius: 1.428rem;
- }
- }
- }
- }
- //--------- dark layout -----------//
- body {
- &.dark-layout {
- .vgt-wrap {
- .vgt-table {
- background-color: $theme-dark-card-bg;
- border-color: $theme-dark-border-color;
- th,
- td,
- tr {
- border-color: $theme-dark-border-color;
- background-color: $theme-dark-card-bg;
- span {
- color: $theme-dark-body-color;
- }
- input {
- background-color: $theme-dark-input-bg;
- color: $theme-dark-body-color;
- border-color: $theme-dark-input-border-color;
- &::placeholder {
- color: $theme-dark-body-color;
- }
- }
- }
- th.sortable {
- &::after {
- border-bottom-color: $theme-dark-body-color;
- }
- &::before {
- border-top-color: $theme-dark-body-color;
- }
- }
- thead th.sorting-desc::before {
- border-top-color: $primary;
- }
- thead th.sorting-asc::after {
- border-bottom-color: $primary;
- }
- }
- }
- }
- }
- // ------------------------------------------------
- // RTL
- // ------------------------------------------------
- html[dir='rtl'] {
- .b-pagination {
- .page-item {
- &.prev-item {
- margin-right: 0.3571rem;
- margin-left: 0;
- .page-link {
- svg {
- transform: rotate(360deg);
- }
- }
- ~ .page-item:nth-child(2):not(.active) {
- .page-link {
- border-top-right-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
- border-top-left-radius: 5rem;
- border-bottom-left-radius: 5rem;
- }
- }
- ~ .page-item:nth-last-child(2):not(.active) {
- .page-link {
- border-top-left-radius: 0 !important;
- border-bottom-left-radius: 0 !important;
- border-top-right-radius: 5rem;
- border-bottom-right-radius: 5rem;
- }
- }
- ~ .page-item:nth-child(2) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- border-top-left-radius: 5rem;
- border-bottom-left-radius: 5rem;
- }
- ~ .page-item:nth-last-child(2) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-top-right-radius: 5rem;
- border-bottom-right-radius: 5rem;
- }
- }
- &.next-item {
- margin-right: 0;
- margin-left: 0.3571rem;
- .page-link {
- svg {
- transform: rotate(360deg);
- }
- }
- }
- &.active {
- .page-link {
- border-top-right-radius: 5rem !important;
- border-bottom-right-radius: 5rem !important;
- }
- }
- }
- }
- }
- @import '~vue-good-table/src/styles/style.scss';
|