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.

200 lines
3.2 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. }
  120. &__actions,
  121. &__content {
  122. padding: 8px 0;
  123. padding-right: 16px;
  124. flex: 1 1 auto;
  125. }
  126. }
  127. &__toolbar {
  128. border: 1px solid darken($ui-base-color, 8%);
  129. background: $ui-base-color;
  130. border-radius: 4px 0 0;
  131. height: 47px;
  132. align-items: center;
  133. &__actions {
  134. text-align: right;
  135. padding-right: 16px - 5px;
  136. }
  137. }
  138. &__row {
  139. border: 1px solid darken($ui-base-color, 8%);
  140. border-top: 0;
  141. background: darken($ui-base-color, 4%);
  142. &:hover {
  143. background: darken($ui-base-color, 2%);
  144. }
  145. &:nth-child(even) {
  146. background: $ui-base-color;
  147. &:hover {
  148. background: lighten($ui-base-color, 2%);
  149. }
  150. }
  151. &__content {
  152. padding-top: 12px;
  153. padding-bottom: 16px;
  154. }
  155. }
  156. .status__content {
  157. padding-top: 0;
  158. summary {
  159. display: list-item;
  160. }
  161. strong {
  162. font-weight: 700;
  163. }
  164. }
  165. }