accounts.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382
  1. .card {
  2. & > a {
  3. display: block;
  4. text-decoration: none;
  5. color: inherit;
  6. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  7. @media screen and (max-width: $no-gap-breakpoint) {
  8. box-shadow: none;
  9. }
  10. &:hover,
  11. &:active,
  12. &:focus {
  13. .card__bar {
  14. background: lighten($ui-base-color, 8%);
  15. }
  16. }
  17. }
  18. &__img {
  19. height: 130px;
  20. position: relative;
  21. background: darken($ui-base-color, 12%);
  22. border-radius: 4px 4px 0 0;
  23. img {
  24. display: block;
  25. width: 100%;
  26. height: 100%;
  27. margin: 0;
  28. object-fit: cover;
  29. border-radius: 4px 4px 0 0;
  30. }
  31. @media screen and (max-width: 600px) {
  32. height: 200px;
  33. }
  34. @media screen and (max-width: $no-gap-breakpoint) {
  35. display: none;
  36. }
  37. }
  38. &__bar {
  39. position: relative;
  40. padding: 15px;
  41. display: flex;
  42. justify-content: flex-start;
  43. align-items: center;
  44. background: lighten($ui-base-color, 4%);
  45. border-radius: 0 0 4px 4px;
  46. @media screen and (max-width: $no-gap-breakpoint) {
  47. border-radius: 0;
  48. }
  49. .avatar {
  50. flex: 0 0 auto;
  51. width: 48px;
  52. height: 48px;
  53. padding-top: 2px;
  54. img {
  55. width: 100%;
  56. height: 100%;
  57. display: block;
  58. margin: 0;
  59. border-radius: 4px;
  60. background: darken($ui-base-color, 8%);
  61. object-fit: cover;
  62. }
  63. }
  64. .display-name {
  65. margin-left: 15px;
  66. text-align: left;
  67. i[data-hidden] {
  68. display: none;
  69. }
  70. strong {
  71. font-size: 15px;
  72. color: $primary-text-color;
  73. font-weight: 500;
  74. overflow: hidden;
  75. text-overflow: ellipsis;
  76. }
  77. span {
  78. display: block;
  79. font-size: 14px;
  80. color: $darker-text-color;
  81. font-weight: 400;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. }
  85. }
  86. }
  87. }
  88. .pagination {
  89. padding: 30px 0;
  90. text-align: center;
  91. overflow: hidden;
  92. a,
  93. .current,
  94. .newer,
  95. .older,
  96. .page,
  97. .gap {
  98. font-size: 14px;
  99. color: $primary-text-color;
  100. font-weight: 500;
  101. display: inline-block;
  102. padding: 6px 10px;
  103. text-decoration: none;
  104. }
  105. .current {
  106. background: $simple-background-color;
  107. border-radius: 100px;
  108. color: $inverted-text-color;
  109. cursor: default;
  110. margin: 0 10px;
  111. }
  112. .gap {
  113. cursor: default;
  114. }
  115. .older,
  116. .newer {
  117. text-transform: uppercase;
  118. color: $secondary-text-color;
  119. }
  120. .older {
  121. float: left;
  122. padding-left: 0;
  123. .fa {
  124. display: inline-block;
  125. margin-right: 5px;
  126. }
  127. }
  128. .newer {
  129. float: right;
  130. padding-right: 0;
  131. .fa {
  132. display: inline-block;
  133. margin-left: 5px;
  134. }
  135. }
  136. .disabled {
  137. cursor: default;
  138. color: lighten($inverted-text-color, 10%);
  139. }
  140. @media screen and (max-width: 700px) {
  141. padding: 30px 20px;
  142. .page {
  143. display: none;
  144. }
  145. .newer,
  146. .older {
  147. display: inline-block;
  148. }
  149. }
  150. }
  151. .nothing-here {
  152. background: $ui-base-color;
  153. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  154. color: $light-text-color;
  155. font-size: 14px;
  156. font-weight: 500;
  157. text-align: center;
  158. display: flex;
  159. justify-content: center;
  160. align-items: center;
  161. cursor: default;
  162. border-radius: 4px;
  163. padding: 20px;
  164. min-height: 30vh;
  165. &--under-tabs {
  166. border-radius: 0 0 4px 4px;
  167. }
  168. &--flexible {
  169. box-sizing: border-box;
  170. min-height: 100%;
  171. }
  172. }
  173. .account-role,
  174. .simple_form .recommended,
  175. .simple_form .not_recommended {
  176. display: inline-block;
  177. padding: 4px 6px;
  178. cursor: default;
  179. border-radius: 3px;
  180. font-size: 12px;
  181. line-height: 12px;
  182. font-weight: 500;
  183. color: var(--user-role-accent, $ui-secondary-color);
  184. background-color: var(--user-role-background, rgba($ui-secondary-color, 0.1));
  185. border: 1px solid var(--user-role-border, rgba($ui-secondary-color, 0.5));
  186. &.moderator {
  187. color: $success-green;
  188. background-color: rgba($success-green, 0.1);
  189. border-color: rgba($success-green, 0.5);
  190. }
  191. &.admin {
  192. color: lighten($error-red, 12%);
  193. background-color: rgba(lighten($error-red, 12%), 0.1);
  194. border-color: rgba(lighten($error-red, 12%), 0.5);
  195. }
  196. }
  197. .simple_form .not_recommended {
  198. color: lighten($error-red, 12%);
  199. background-color: rgba(lighten($error-red, 12%), 0.1);
  200. border-color: rgba(lighten($error-red, 12%), 0.5);
  201. }
  202. .account__header__fields {
  203. max-width: 100vw;
  204. padding: 0;
  205. margin: 15px -15px -15px;
  206. border: 0 none;
  207. border-top: 1px solid lighten($ui-base-color, 12%);
  208. border-bottom: 1px solid lighten($ui-base-color, 12%);
  209. font-size: 14px;
  210. line-height: 20px;
  211. dl {
  212. display: flex;
  213. border-bottom: 1px solid lighten($ui-base-color, 12%);
  214. }
  215. dt,
  216. dd {
  217. box-sizing: border-box;
  218. padding: 14px;
  219. text-align: center;
  220. max-height: 48px;
  221. overflow: hidden;
  222. white-space: nowrap;
  223. text-overflow: ellipsis;
  224. }
  225. dt {
  226. font-weight: 500;
  227. width: 120px;
  228. flex: 0 0 auto;
  229. color: $secondary-text-color;
  230. background: rgba(darken($ui-base-color, 8%), 0.5);
  231. }
  232. dd {
  233. flex: 1 1 auto;
  234. color: $darker-text-color;
  235. }
  236. a {
  237. color: $highlight-text-color;
  238. text-decoration: none;
  239. &:hover,
  240. &:focus,
  241. &:active {
  242. text-decoration: underline;
  243. }
  244. }
  245. .verified {
  246. border: 1px solid rgba($valid-value-color, 0.5);
  247. background: rgba($valid-value-color, 0.25);
  248. a {
  249. color: $valid-value-color;
  250. font-weight: 500;
  251. }
  252. &__mark {
  253. color: $valid-value-color;
  254. }
  255. }
  256. dl:last-child {
  257. border-bottom: 0;
  258. }
  259. }
  260. .directory__tag .trends__item__current {
  261. width: auto;
  262. }
  263. .pending-account {
  264. &__header {
  265. color: $darker-text-color;
  266. a {
  267. color: $ui-secondary-color;
  268. text-decoration: none;
  269. &:hover,
  270. &:active,
  271. &:focus {
  272. text-decoration: underline;
  273. }
  274. }
  275. strong {
  276. color: $primary-text-color;
  277. font-weight: 700;
  278. }
  279. }
  280. &__body {
  281. margin-top: 10px;
  282. }
  283. }
  284. .batch-table__row--muted {
  285. color: lighten($ui-base-color, 26%);
  286. }
  287. .batch-table__row--muted .pending-account__header,
  288. .batch-table__row--muted .accounts-table,
  289. .batch-table__row--muted .name-tag {
  290. &,
  291. a,
  292. strong {
  293. color: lighten($ui-base-color, 26%);
  294. }
  295. }
  296. .batch-table__row--muted .name-tag .avatar {
  297. opacity: 0.5;
  298. }
  299. .batch-table__row--muted .accounts-table {
  300. tbody td.accounts-table__extra,
  301. &__count,
  302. &__count small {
  303. color: lighten($ui-base-color, 26%);
  304. }
  305. }
  306. .batch-table__row--attention {
  307. color: $gold-star;
  308. }
  309. .batch-table__row--attention .pending-account__header,
  310. .batch-table__row--attention .accounts-table,
  311. .batch-table__row--attention .name-tag {
  312. &,
  313. a,
  314. strong {
  315. color: $gold-star;
  316. }
  317. }
  318. .batch-table__row--attention .accounts-table {
  319. tbody td.accounts-table__extra,
  320. &__count,
  321. &__count small {
  322. color: $gold-star;
  323. }
  324. }