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.

204 lines
3.6 KiB

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