_iwb-table.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. 
  2. .iwb-table, .iwb-bootstrap-table {
  3. &.table-box {
  4. text-decoration: none;
  5. }
  6. .table-box-header {
  7. padding: 10px 1rem 0;
  8. .table-tool, .tableTool {
  9. height: 30px;
  10. .tool-menu {
  11. .menu-btn {
  12. color: $iwb-color;
  13. }
  14. }
  15. }
  16. }
  17. .table-box-content {
  18. padding: 10px 1rem 0;
  19. }
  20. .bootstrap-table {
  21. .table {
  22. width: 100% !important;
  23. thead {
  24. > tr {
  25. > th {
  26. /*padding: 0;
  27. margin: 0;*/
  28. background: scale-color($iwb-color,$lightness:60%);
  29. /*color:color-yiq($white);*/
  30. color: $white;
  31. }
  32. }
  33. }
  34. tbody {
  35. > tr {
  36. cursor: pointer;
  37. background: scale-color($iwb-color,$lightness:90%);
  38. &:nth-of-type(even) {
  39. background-image: linear-gradient(rgba(0,0,0,.03),rgba(0,0,0,.03))
  40. }
  41. > td {
  42. padding: 5px 2px;
  43. /*padding: 0;*/
  44. /*line-height: 32px;*/
  45. margin: 0;
  46. border-left: 1px solid $gray-300;
  47. /*padding: 0;
  48. margin: 0;
  49. background: scale-color($iwb-color,$lightness:20%);
  50. color: $white;*/
  51. &.bs-checkbox > .iwb-checkbox {
  52. padding-left: 20px;
  53. > span {
  54. top: -5px;
  55. left: 6px;
  56. }
  57. }
  58. .table-action {
  59. color: $iwb-color;
  60. margin: 0 3px;
  61. padding: 0 5px;
  62. &:hover {
  63. padding-bottom: 1px;
  64. border-bottom: 2px solid;
  65. }
  66. }
  67. }
  68. &:hover {
  69. > td {
  70. background: scale-color($iwb-color,$lightness:30%);
  71. color: $white;
  72. }
  73. .iwb-checkbox {
  74. > span {
  75. color: $white;
  76. }
  77. }
  78. .table-action {
  79. color: $white;
  80. }
  81. }
  82. &.no-records-found, &.selected {
  83. > td {
  84. background: scale-color($iwb-color,$lightness:20%);
  85. color: $white;
  86. }
  87. .iwb-checkbox {
  88. > span {
  89. color: $white;
  90. }
  91. }
  92. .table-action {
  93. color: $white;
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .fixed-table-pagination {
  100. .pagination-detail {
  101. margin-top: 0;
  102. margin-bottom: 0;
  103. .pagination-info {
  104. font-size: .8rem;
  105. color: $iwb-color;
  106. }
  107. }
  108. .pagination {
  109. .page-item {
  110. .page-link {
  111. border-color: $iwb-color;
  112. &.active {
  113. color: $iwb-color;
  114. }
  115. }
  116. }
  117. }
  118. }
  119. }
  120. }