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.

196 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. }
  73. .table-wrapper {
  74. overflow: auto;
  75. margin-bottom: 20px;
  76. }
  77. samp {
  78. font-family: $font-monospace, monospace;
  79. }
  80. button.table-action-link {
  81. background: transparent;
  82. border: 0;
  83. font: inherit;
  84. }
  85. button.table-action-link,
  86. a.table-action-link {
  87. text-decoration: none;
  88. display: inline-block;
  89. margin-right: 5px;
  90. padding: 0 10px;
  91. color: $darker-text-color;
  92. font-weight: 500;
  93. &:hover {
  94. color: $primary-text-color;
  95. }
  96. i.fa {
  97. font-weight: 400;
  98. margin-right: 5px;
  99. }
  100. &:first-child {
  101. padding-left: 0;
  102. }
  103. }
  104. .batch-table {
  105. &__toolbar,
  106. &__row {
  107. display: flex;
  108. &__select {
  109. box-sizing: border-box;
  110. padding: 8px 16px;
  111. cursor: pointer;
  112. min-height: 100%;
  113. input {
  114. margin-top: 8px;
  115. }
  116. }
  117. &__actions,
  118. &__content {
  119. padding: 8px 0;
  120. padding-right: 16px;
  121. flex: 1 1 auto;
  122. }
  123. }
  124. &__toolbar {
  125. border: 1px solid darken($ui-base-color, 8%);
  126. background: $ui-base-color;
  127. border-radius: 4px 0 0;
  128. height: 47px;
  129. align-items: center;
  130. &__actions {
  131. text-align: right;
  132. padding-right: 16px - 5px;
  133. }
  134. }
  135. &__row {
  136. border: 1px solid darken($ui-base-color, 8%);
  137. border-top: 0;
  138. background: darken($ui-base-color, 4%);
  139. &:hover {
  140. background: darken($ui-base-color, 2%);
  141. }
  142. &:nth-child(even) {
  143. background: $ui-base-color;
  144. &:hover {
  145. background: lighten($ui-base-color, 2%);
  146. }
  147. }
  148. &__content {
  149. padding-top: 12px;
  150. padding-bottom: 16px;
  151. }
  152. }
  153. .status__content {
  154. padding-top: 0;
  155. summary {
  156. display: list-item;
  157. }
  158. strong {
  159. font-weight: 700;
  160. }
  161. }
  162. }