_inbox.scss 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* ------------------------------------------------------------------------------
  2. *
  3. * # Mail list
  4. *
  5. * Inbox page - list, read and write
  6. *
  7. * ---------------------------------------------------------------------------- */
  8. // Check if component is enabled
  9. @if $enable-inbox {
  10. // Base
  11. .table-inbox {
  12. table-layout: fixed;
  13. min-width: map-get($grid-breakpoints, "md");
  14. // Rows and cells
  15. tr {
  16. cursor: pointer;
  17. @include transition(all ease-in-out $component-transition-timer);
  18. // Read message background color
  19. &:not([class*=alpha-]):not([class*=bg-]) {
  20. background-color: $inbox-read-row-bg;
  21. }
  22. // Remove left padding in all cells except first
  23. td {
  24. &:not(:first-child) {
  25. padding-left: 0;
  26. }
  27. }
  28. // New mail
  29. &.unread {
  30. font-weight: $font-weight-bold;
  31. // Unread message background color
  32. &:not([class*=alpha-]):not([class*=bg-]) {
  33. background-color: $inbox-unread-row-bg;
  34. }
  35. }
  36. }
  37. }
  38. // Cell with checkbox
  39. .table-inbox-checkbox {
  40. width: (($card-spacer-x * 2) + $checkbox-size);
  41. }
  42. // Set fixed width to star and atachment cells
  43. .table-inbox-star,
  44. .table-inbox-attachment {
  45. width: ($card-spacer-x + $icon-font-size);
  46. }
  47. // User image cell
  48. .table-inbox-image {
  49. width: ($card-spacer-x + ((($line-height-computed - $icon-font-size + $btn-padding-y-sm) - rem-calc($btn-border-width)) * 2) + $icon-font-size);
  50. }
  51. // Sender name
  52. .table-inbox-name {
  53. width: 11.25rem;
  54. }
  55. // Message subject
  56. .table-inbox-subject {
  57. @include media-breakpoint-down(sm) {
  58. display: block;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. }
  62. }
  63. // Message
  64. .table-inbox-message {
  65. @include text-truncate();
  66. }
  67. // Time cell
  68. .table-inbox-time {
  69. text-align: right;
  70. width: 5rem;
  71. }
  72. }