The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

294 lines
4.9 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. &__form {
  146. padding: 16px;
  147. border: 1px solid darken($ui-base-color, 8%);
  148. border-top: 0;
  149. background: $ui-base-color;
  150. .fields-row {
  151. padding-top: 0;
  152. margin-bottom: 0;
  153. }
  154. }
  155. &__row {
  156. border: 1px solid darken($ui-base-color, 8%);
  157. border-top: 0;
  158. background: darken($ui-base-color, 4%);
  159. @media screen and (max-width: $no-gap-breakpoint) {
  160. .optional &:first-child {
  161. border-top: 1px solid darken($ui-base-color, 8%);
  162. }
  163. }
  164. &:hover {
  165. background: darken($ui-base-color, 2%);
  166. }
  167. &:nth-child(even) {
  168. background: $ui-base-color;
  169. &:hover {
  170. background: lighten($ui-base-color, 2%);
  171. }
  172. }
  173. &__content {
  174. padding-top: 12px;
  175. padding-bottom: 16px;
  176. &--unpadded {
  177. padding: 0;
  178. }
  179. &--with-image {
  180. display: flex;
  181. align-items: center;
  182. }
  183. &__image {
  184. flex: 0 0 auto;
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. margin-right: 10px;
  189. .emojione {
  190. width: 32px;
  191. height: 32px;
  192. }
  193. }
  194. &__text {
  195. flex: 1 1 auto;
  196. }
  197. &__extra {
  198. flex: 0 0 auto;
  199. text-align: right;
  200. color: $darker-text-color;
  201. font-weight: 500;
  202. }
  203. }
  204. .directory__tag {
  205. margin: 0;
  206. width: 100%;
  207. a {
  208. background: transparent;
  209. border-radius: 0;
  210. }
  211. }
  212. }
  213. &.optional .batch-table__toolbar,
  214. &.optional .batch-table__row__select {
  215. @media screen and (max-width: $no-gap-breakpoint) {
  216. display: none;
  217. }
  218. }
  219. .status__content {
  220. padding-top: 0;
  221. summary {
  222. display: list-item;
  223. }
  224. strong {
  225. font-weight: 700;
  226. }
  227. }
  228. .nothing-here {
  229. border: 1px solid darken($ui-base-color, 8%);
  230. border-top: 0;
  231. box-shadow: none;
  232. @media screen and (max-width: $no-gap-breakpoint) {
  233. border-top: 1px solid darken($ui-base-color, 8%);
  234. }
  235. }
  236. @media screen and (max-width: 870px) {
  237. .accounts-table tbody td.optional {
  238. display: none;
  239. }
  240. }
  241. }