_table.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @import "globals";
  2. .table {
  3. background: $content-background-color;
  4. border-collapse: collapse;
  5. border-radius: 4px;
  6. margin-bottom: 2px;
  7. overflow-x: auto;
  8. width: 100%;
  9. &.helper {
  10. display: none;
  11. position: fixed;
  12. z-index: 2;
  13. top: 0;
  14. right: 20px;
  15. width: auto;
  16. border-radius: 0;
  17. box-shadow: none;
  18. thead {
  19. th {
  20. border-radius: 0 !important;
  21. }
  22. }
  23. }
  24. caption {
  25. border-radius: 4px;
  26. padding: 6px;
  27. text-align: left;
  28. text-transform: uppercase;
  29. font-size: 11px;
  30. font-weight: bold;
  31. a {
  32. color: $text-color;
  33. font-size: 11px;
  34. font-weight: bold;
  35. }
  36. }
  37. thead {
  38. th {
  39. background: $content-contrast2-background-color;
  40. padding: 8px;
  41. font-size: 12px;
  42. font-weight: normal;
  43. text-align: left;
  44. white-space: nowrap;
  45. &, & a, & a:visited, & a:hover {
  46. color: $content-contrast2-text-color;
  47. text-decoration: none;
  48. text-transform: uppercase;
  49. }
  50. &:first-child {
  51. border-radius: 4px 0 0 0;
  52. }
  53. &:last-child {
  54. border-radius: 0 4px 0 0;
  55. }
  56. &:first-child:last-child {
  57. border-radius: 4px 4px 0 0;
  58. }
  59. &.action-checkbox-column {
  60. width: 20px;
  61. text-align: center;
  62. }
  63. &.sorted {
  64. .sortoptions {
  65. display: inline-block;
  66. .sortpriority {
  67. background: $content-background-color;
  68. color: $text-color;
  69. padding: 2px 8px;
  70. margin-right: 2px;
  71. border-radius: 12px;
  72. }
  73. }
  74. .text {
  75. display: inline-block;
  76. &:after {
  77. @include font-icon;
  78. color: $content-contrast2-text-color;
  79. font-size: 13px;
  80. font-weight: bold;
  81. margin-left: 4px;
  82. }
  83. }
  84. &.ascending .text:after {
  85. content: $icon-arrow-down;
  86. }
  87. &.descending .text:after {
  88. content: $icon-arrow-up;
  89. }
  90. }
  91. }
  92. }
  93. tbody {
  94. tr {
  95. border-bottom: 1px solid $content-border-color;
  96. &:last-child {
  97. border-bottom: 0;
  98. }
  99. & th {
  100. text-align: left;
  101. }
  102. & th, & td {
  103. padding: 8px;
  104. font-size: 13px;
  105. &.action-checkbox {
  106. text-align: center;
  107. }
  108. }
  109. }
  110. tr.selected {
  111. border-color: $content-selected-border-color;
  112. &:last-child {
  113. & th:first-child, & td:first-child {
  114. border-radius: 0 0 0 4px;
  115. }
  116. & th:last-child, & td:last-child {
  117. border-radius: 0 0 4px 0;
  118. }
  119. }
  120. & th, & td {
  121. background-color: $content-selected-background-color;
  122. }
  123. }
  124. tr.contrast {
  125. background: $content-contrast-background-color;
  126. }
  127. tr.contrast2 {
  128. background: $content-contrast2-background-color;
  129. color: $content-contrast2-text-color;
  130. border: 0;
  131. a, a:visited, a:hover {
  132. color: $content-contrast2-text-color;
  133. }
  134. }
  135. tr.contrast3 {
  136. background: $content-contrast3-background-color;
  137. }
  138. }
  139. }