accounts.scss 6.8 KB

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