Ei kuvausta

_tables.scss 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. .table{
  2. > tbody > tr > td {
  3. color: rgba(255, 255, 255, 0.7) !important;
  4. .photo {
  5. height: 30px;
  6. width: 30px;
  7. border-radius: 50%;
  8. overflow: hidden;
  9. margin: 0 auto;
  10. img {
  11. width: 100%;
  12. }
  13. }
  14. }
  15. > tbody > tr.table-success > td{
  16. background-color: darken($success,10%);
  17. }
  18. > tbody > tr.table-info > td{
  19. background-color: $info;
  20. }
  21. > tbody > tr.table-primary > td{
  22. background-color: $primary;
  23. }
  24. > tbody > tr.table-warning > td{
  25. background-color: $warning;
  26. }
  27. > tbody > tr.table-danger > td{
  28. background-color: $danger;
  29. }
  30. .img-wrapper{
  31. width: 40px;
  32. height: 40px;
  33. border-radius: 50%;
  34. overflow: hidden;
  35. margin: 0 auto;
  36. }
  37. .img-row{
  38. max-width: 60px;
  39. width: 60px;
  40. }
  41. .form-check{
  42. margin: 0;
  43. margin-top: 5px;
  44. & label .form-check-sign::before,
  45. & label .form-check-sign::after{
  46. top: -17px;
  47. left: 4px;
  48. }
  49. }
  50. .btn{
  51. margin: 0;
  52. }
  53. small,.small{
  54. font-weight: 300;
  55. }
  56. .card-tasks .card-body &{
  57. margin-bottom: 0;
  58. > thead > tr > th,
  59. > tbody > tr > th,
  60. > tfoot > tr > th,
  61. > thead > tr > td,
  62. > tbody > tr > td,
  63. > tfoot > tr > td{
  64. padding-top: 5px;
  65. padding-bottom: 5px;
  66. }
  67. }
  68. > thead > tr > th{
  69. border-bottom-width: 1px;
  70. font-size: 12px;
  71. text-transform: uppercase;
  72. font-weight: $font-weight-extra-bold;
  73. border: 0;
  74. color: rgba($white, 0.7);
  75. }
  76. .radio,
  77. .checkbox{
  78. margin-top: 0;
  79. margin-bottom: 0;
  80. padding: 0;
  81. width: 15px;
  82. .icons{
  83. position: relative;
  84. }
  85. label{
  86. &:after,
  87. &:before{
  88. top: -17px;
  89. left: -3px;
  90. }
  91. }
  92. }
  93. > thead > tr > th,
  94. > tbody > tr > th,
  95. > tfoot > tr > th,
  96. > thead > tr > td,
  97. > tbody > tr > td,
  98. > tfoot > tr > td{
  99. border-color: rgba(255, 255, 255, 0.1);
  100. padding: 12px 7px;
  101. vertical-align: middle;
  102. }
  103. &.table-shopping tbody tr:last-child td{
  104. border: none;
  105. }
  106. .th-description{
  107. max-width: 150px;
  108. }
  109. .td-price{
  110. font-size: 26px;
  111. font-weight: $font-weight-light;
  112. margin-top: 5px;
  113. position: relative;
  114. top: 4px;
  115. text-align: right;
  116. }
  117. .td-total{
  118. font-weight: $font-weight-bold;
  119. font-size: $h5-font-size;
  120. padding-top: 20px;
  121. text-align: right;
  122. }
  123. .td-actions .btn{
  124. margin: 0px;
  125. }
  126. > tbody > tr{
  127. position: relative;
  128. }
  129. > tfoot > tr {
  130. color: hsla(0,0%,100%,.7);
  131. text-transform: uppercase;
  132. }
  133. }
  134. .table-responsive{
  135. overflow: scroll;
  136. padding-bottom: 10px;
  137. }
  138. #tables .table-responsive{
  139. margin-bottom: 30px;
  140. }
  141. table.tablesorter thead tr .header{
  142. background-image: url("../img/bg.gif");
  143. background-repeat: no-repeat;
  144. background-position: center right;
  145. cursor: pointer;
  146. }
  147. table.tablesorter thead tr .headerSortUp {
  148. background-image: url("../img/asc.gif");
  149. }
  150. table.tablesorter thead tr .headerSortDown {
  151. background-image: url("../img/desc.gif");
  152. }
  153. // datatables
  154. .dataTables_wrapper {
  155. .table-striped tbody tr:nth-of-type(odd) {
  156. background-color: rgba(0,0,0,.05);
  157. }
  158. .form-control-sm {
  159. font-size: 10px;
  160. }
  161. }