_tables.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. @import "globals";
  2. /* TABLES */
  3. table {
  4. border-collapse: collapse;
  5. background: $content-background-color;
  6. border-radius: 4px;
  7. overflow-x: auto;
  8. box-shadow: 0 2px 0 0 $content-border2-color;
  9. margin-bottom: 2px;
  10. &.helper {
  11. display: none;
  12. position: fixed;
  13. z-index: 2;
  14. top: 0;
  15. right: 20px;
  16. left: 20px;
  17. width: auto;
  18. border-radius: 0;
  19. box-shadow: none;
  20. body.menu-pinned & {
  21. left: $sidebar-width + 20px;
  22. }
  23. body.menu-pinned.popup & {
  24. left: 20px;
  25. }
  26. @include for-mobile {
  27. display: none !important;
  28. }
  29. thead {
  30. th {
  31. border-radius: 0 !important;
  32. }
  33. }
  34. }
  35. thead th {
  36. background: $content-contrast2-background-color;
  37. color: $content-contrast2-text-color;
  38. text-transform: uppercase;
  39. transition: background-color $fast-transitions-duration;
  40. a:link, a:visited {
  41. color: $content-contrast2-text-color;
  42. }
  43. .text {
  44. a {
  45. display: block;
  46. cursor: pointer;
  47. }
  48. }
  49. }
  50. }
  51. td, th {
  52. padding: 8px;
  53. font-size: 13px;
  54. }
  55. th {
  56. text-align: left;
  57. }
  58. thead th,
  59. tfoot td {
  60. font-weight: normal;
  61. text-align: left;
  62. white-space: nowrap;
  63. vertical-align: middle;
  64. font-size: 12px;
  65. &:first-child {
  66. border-radius: 4px 0 0 0;
  67. }
  68. &:last-child {
  69. border-radius: 0 4px 0 0;
  70. }
  71. &:first-child:last-child {
  72. border-radius: 4px 4px 0 0;
  73. }
  74. }
  75. tfoot td {
  76. border-bottom: none;
  77. border-top: 1px solid #eee;
  78. }
  79. //tr.alt {
  80. //background: #f6f6f6;
  81. //}
  82. tbody tr {
  83. border-bottom: 1px solid $content-border-color;
  84. &:last-child {
  85. border-bottom: 0;
  86. }
  87. }
  88. /* SORTABLE TABLES */
  89. table {
  90. thead th {
  91. &.sortable {
  92. cursor: pointer;
  93. &:hover {
  94. background: $button-hover-background-color;
  95. }
  96. }
  97. &.sorted {
  98. position: relative;
  99. padding-right: 32px;
  100. .text {
  101. display: inline-block;
  102. }
  103. .sortoptions {
  104. display: inline-block;
  105. a {
  106. display: inline-block;
  107. vertical-align: middle;
  108. &.sortremove {
  109. position: absolute;
  110. top: 50%;
  111. right: 18px;
  112. margin-top: -6px;
  113. &:after {
  114. @include font-icon;
  115. content: $icon-cross;
  116. }
  117. }
  118. &.ascending {
  119. position: absolute;
  120. top: 50%;
  121. right: 4px;
  122. margin-top: -6px;
  123. &:after {
  124. @include font-icon;
  125. content: $icon-arrow-down;
  126. font-weight: bold;
  127. }
  128. }
  129. &.descending {
  130. position: absolute;
  131. top: 50%;
  132. right: 4px;
  133. margin-top: -6px;
  134. &:after {
  135. @include font-icon;
  136. content: $icon-arrow-up;
  137. font-weight: bold;
  138. }
  139. }
  140. }
  141. }
  142. .sortpriority {
  143. background: $content-background-color;
  144. color: $text-color;
  145. padding: 1px 5px;
  146. margin-right: 2px;
  147. border-radius: 5px;
  148. font-size: 10px;
  149. }
  150. }
  151. }
  152. }
  153. /* OBJECT HISTORY */
  154. table#change-history {
  155. width: 100%;
  156. }
  157. table#change-history tbody th {
  158. width: 16em;
  159. }