_tables.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. table,
  2. tbody,
  3. thead {
  4. display: inline-block;
  5. width: 100%;
  6. }
  7. .gpm-details {
  8. width: 100%;
  9. @include flex(auto);
  10. }
  11. td {
  12. border: 0;
  13. }
  14. tr {
  15. @include transition(all 0.2s ease);
  16. @include display(flex);
  17. @include flex-wrap(wrap);
  18. th, td {
  19. display: block;
  20. @include flex(1);
  21. &.shrink {
  22. @include flex(0);
  23. }
  24. &.double {
  25. @include flex(2);
  26. }
  27. &.triple {
  28. @include flex(3);
  29. }
  30. &.quadruple {
  31. @include flex(4);
  32. }
  33. &.quintuple {
  34. @include flex(5);
  35. }
  36. &.sextuple {
  37. @include flex(6);
  38. }
  39. &.septuple {
  40. @include flex(7);
  41. }
  42. &.octuple {
  43. @include flex(8);
  44. }
  45. &.nontuple {
  46. @include flex(9);
  47. }
  48. &.dectuple {
  49. @include flex(10);
  50. }
  51. &:first-child {
  52. padding-left: $padding-default;
  53. @include breakpoint(mobile-only) {
  54. padding-left: 1rem;
  55. }
  56. }
  57. &:last-child {
  58. padding-right: $padding-default;
  59. @include breakpoint(mobile-only) {
  60. padding-right: 1rem;
  61. }
  62. }
  63. &.left {
  64. text-align: left;
  65. }
  66. &.center {
  67. text-align: center;
  68. }
  69. &.right {
  70. text-align: right;
  71. }
  72. &.ellipsis {
  73. white-space: nowrap;
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. &.rtl {
  77. text-align: left;
  78. }
  79. }
  80. &.rtl {
  81. direction: rtl;
  82. }
  83. }
  84. th {
  85. font-weight: bold;
  86. }
  87. td {
  88. &.gpm-actions {
  89. padding-right: $padding-default + 1rem;
  90. }
  91. &.gpm-actions {
  92. line-height: 1;
  93. text-align: right;
  94. position: relative;
  95. .gpm-details-expand {
  96. position: absolute;
  97. top: 12px;
  98. right: 12px;
  99. }
  100. }
  101. &.gpm-details {
  102. margin: 0;
  103. padding: 0;
  104. @include breakpoint(mobile-only){
  105. word-wrap: break-word;
  106. }
  107. > .table-wrapper {
  108. display: none;
  109. td {
  110. border-bottom: 0;
  111. }
  112. }
  113. tbody {
  114. width: 100%;
  115. }
  116. }
  117. }
  118. &:last-child {
  119. td {
  120. border-bottom: 0;
  121. }
  122. }
  123. }