admin-table.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // Admin table
  2. //
  3. // Used to present actionable list of items in tabular form
  4. // Add fancy shadow to card
  5. .card-admin-table {
  6. @extend .shadow-sm;
  7. }
  8. // Override card title sizing so it works with h4
  9. .card-admin-table .card-title {
  10. @extend .m-0;
  11. font-size: $font-size-lg;
  12. }
  13. // Remove margins from table
  14. .card-admin-table table {
  15. @extend .m-0;
  16. }
  17. // Vertically align and compact table cells
  18. .card-admin-table th,
  19. .card-admin-table td {
  20. @extend .py-1;
  21. vertical-align: middle;
  22. }
  23. // Customize table head row to have configurable background,
  24. // don't wrap and be more compact
  25. .card-admin-table th {
  26. @extend .border-bottom-0;
  27. @extend .text-nowrap;
  28. font-size: $font-size-sm;
  29. color: $table-head-color;
  30. background-color: $table-head-bg;
  31. }
  32. // Remove top border from table head if there's no card header
  33. .card-admin-table > :first-child th {
  34. @extend .border-top-0;
  35. }
  36. // Make table checkboxes height constant
  37. .card-admin-table .row-select input,
  38. .card-admin-table th input {
  39. font-size: $font-size-lg;
  40. }
  41. // Make card-body paddings same as in table
  42. .card-admin-table .card-body {
  43. padding: $table-cell-padding;
  44. }
  45. // Add upper border to card-body proceeded by table
  46. .card-admin-table table + .card-body {
  47. border-top: $table-border-width solid $table-border-color;
  48. }
  49. // Add border-radius to images in table
  50. .card-admin-table img {
  51. @extend .rounded-lg;
  52. }
  53. // Support images buttons
  54. .card-admin-table .btn-thumbnail {
  55. @extend .btn-light;
  56. @extend .btn-block;
  57. width: $font-size-base * 2;
  58. height: $font-size-base * 2;
  59. padding: 0;
  60. background-color: transparent;
  61. background-size: cover;
  62. }
  63. // Util for making item link stand out
  64. .card-admin-table .item-name {
  65. @extend .font-weight-bold;
  66. color: $body-color;
  67. }
  68. .card-admin-table h5 {
  69. @extend .font-weight-bold;
  70. @extend .m-0;
  71. font-size: $font-size-sm;
  72. line-height: $line-height-sm;
  73. a {
  74. color: $body-color;
  75. }
  76. }
  77. // Badges column
  78. .card-admin-table .badges-list {
  79. @extend .text-right;
  80. @extend .text-nowrap;
  81. @extend .pl-0;
  82. width: 0%;
  83. }
  84. // Keep checkbox column as small as possible
  85. .card-admin-table .row-select {
  86. width: 1px;
  87. }
  88. // Make checkbox easier to click
  89. .card-admin-table .row-select label {
  90. @extend .text-center;
  91. @extend .w-100;
  92. @extend .m-0;
  93. @extend .p-2;
  94. }
  95. // Remove underline from timestamp abbr
  96. .card-admin-table [data-timestamp] {
  97. text-decoration: none;
  98. }
  99. // Center and space verticallt the blankslate message
  100. .card-admin-table .blankslate td {
  101. @extend .text-center;
  102. @extend .py-3;
  103. }