_tables.scss 3.1 KB

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