sortable-table.scss 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @use 'sass:math';
  2. .table.table-sortable {
  3. thead > tr > th.sort {
  4. cursor: pointer;
  5. &:hover {
  6. color: $dark;
  7. background-color: rgba($primary, $table-striped-bg-factor);
  8. // border-color: $light;
  9. }
  10. }
  11. tbody > tr > td {
  12. filename {
  13. .ellipsis-wrapper {
  14. white-space: nowrap;
  15. width: 100%;
  16. .text-ellipsis {
  17. overflow: hidden;
  18. text-overflow: ellipsis;
  19. white-space: nowrap;
  20. max-width: 94px;
  21. display: inline-block;
  22. vertical-align: top;
  23. }
  24. }
  25. @each $breakpoint in map-keys($grid-breakpoints) {
  26. $min: breakpoint-min($breakpoint, $grid-breakpoints);
  27. @if $min {
  28. @include media-breakpoint-up($breakpoint, $grid-breakpoints) {
  29. .ellipsis-wrapper {
  30. .text-ellipsis {
  31. max-width: math.div($min, 2.57);
  32. }
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. }