You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
3.5 KiB

  1. .table {
  2. width: 100%;
  3. max-width: 100%;
  4. border-spacing: 0;
  5. border-collapse: collapse;
  6. th,
  7. td {
  8. padding: 8px;
  9. line-height: 18px;
  10. vertical-align: top;
  11. border-top: 1px solid $ui-base-color;
  12. text-align: left;
  13. background: darken($ui-base-color, 4%);
  14. }
  15. & > thead > tr > th {
  16. vertical-align: bottom;
  17. border-bottom: 2px solid $ui-base-color;
  18. border-top: 0;
  19. font-weight: 500;
  20. }
  21. & > tbody > tr > th {
  22. font-weight: 500;
  23. }
  24. & > tbody > tr:nth-child(odd) > td,
  25. & > tbody > tr:nth-child(odd) > th {
  26. background: $ui-base-color;
  27. }
  28. a {
  29. color: $highlight-text-color;
  30. text-decoration: underline;
  31. &:hover {
  32. text-decoration: none;
  33. }
  34. }
  35. strong {
  36. font-weight: 500;
  37. @each $lang in $cjk-langs {
  38. &:lang(#{$lang}) {
  39. font-weight: 700;
  40. }
  41. }
  42. }
  43. &.inline-table {
  44. & > tbody > tr:nth-child(odd) {
  45. & > td,
  46. & > th {
  47. background: transparent;
  48. }
  49. }
  50. & > tbody > tr:first-child {
  51. & > td,
  52. & > th {
  53. border-top: 0;
  54. }
  55. }
  56. }
  57. &.batch-table {
  58. & > thead > tr > th {
  59. background: $ui-base-color;
  60. border-top: 1px solid darken($ui-base-color, 8%);
  61. border-bottom: 1px solid darken($ui-base-color, 8%);
  62. &:first-child {
  63. border-radius: 4px 0 0;
  64. border-left: 1px solid darken($ui-base-color, 8%);
  65. }
  66. &:last-child {
  67. border-radius: 0 4px 0 0;
  68. border-right: 1px solid darken($ui-base-color, 8%);
  69. }
  70. }
  71. }
  72. &--invites tbody td {
  73. vertical-align: middle;
  74. }
  75. }
  76. .table-wrapper {
  77. overflow: auto;
  78. margin-bottom: 20px;
  79. }
  80. samp {
  81. font-family: $font-monospace, monospace;
  82. }
  83. button.table-action-link {
  84. background: transparent;
  85. border: 0;
  86. font: inherit;
  87. }
  88. button.table-action-link,
  89. a.table-action-link {
  90. text-decoration: none;
  91. display: inline-block;
  92. margin-right: 5px;
  93. padding: 0 10px;
  94. color: $darker-text-color;
  95. font-weight: 500;
  96. &:hover {
  97. color: $primary-text-color;
  98. }
  99. i.fa {
  100. font-weight: 400;
  101. margin-right: 5px;
  102. }
  103. &:first-child {
  104. padding-left: 0;
  105. }
  106. }
  107. .batch-table {
  108. &__toolbar,
  109. &__row {
  110. display: flex;
  111. &__select {
  112. box-sizing: border-box;
  113. padding: 8px 16px;
  114. cursor: pointer;
  115. min-height: 100%;
  116. input {
  117. margin-top: 8px;
  118. }
  119. &--aligned {
  120. display: flex;
  121. align-items: center;
  122. input {
  123. margin-top: 0;
  124. }
  125. }
  126. }
  127. &__actions,
  128. &__content {
  129. padding: 8px 0;
  130. padding-right: 16px;
  131. flex: 1 1 auto;
  132. }
  133. }
  134. &__toolbar {
  135. border: 1px solid darken($ui-base-color, 8%);
  136. background: $ui-base-color;
  137. border-radius: 4px 0 0;
  138. height: 47px;
  139. align-items: center;
  140. &__actions {
  141. text-align: right;
  142. padding-right: 16px - 5px;
  143. }
  144. }
  145. &__row {
  146. border: 1px solid darken($ui-base-color, 8%);
  147. border-top: 0;
  148. background: darken($ui-base-color, 4%);
  149. &:hover {
  150. background: darken($ui-base-color, 2%);
  151. }
  152. &:nth-child(even) {
  153. background: $ui-base-color;
  154. &:hover {
  155. background: lighten($ui-base-color, 2%);
  156. }
  157. }
  158. &__content {
  159. padding-top: 12px;
  160. padding-bottom: 16px;
  161. &--unpadded {
  162. padding: 0;
  163. }
  164. }
  165. }
  166. .status__content {
  167. padding-top: 0;
  168. summary {
  169. display: list-item;
  170. }
  171. strong {
  172. font-weight: 700;
  173. }
  174. }
  175. .nothing-here {
  176. border: 1px solid darken($ui-base-color, 8%);
  177. border-top: 0;
  178. box-shadow: none;
  179. }
  180. }