accounts.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. .card {
  2. background-color: $base-shadow-color;
  3. background-size: cover;
  4. background-position: center;
  5. border-radius: 4px 4px 0 0;
  6. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  7. overflow: hidden;
  8. position: relative;
  9. display: flex;
  10. &::after {
  11. background: rgba(darken($ui-base-color, 8%), 0.5);
  12. display: block;
  13. content: "";
  14. position: absolute;
  15. left: 0;
  16. top: 0;
  17. width: 100%;
  18. height: 100%;
  19. z-index: 1;
  20. }
  21. @media screen and (max-width: 740px) {
  22. border-radius: 0;
  23. box-shadow: none;
  24. }
  25. .card__illustration {
  26. padding: 60px 0;
  27. position: relative;
  28. flex: 1 1 auto;
  29. display: flex;
  30. justify-content: center;
  31. align-items: center;
  32. }
  33. .card__bio {
  34. max-width: 260px;
  35. flex: 1 1 auto;
  36. display: flex;
  37. flex-direction: column;
  38. justify-content: space-between;
  39. background: rgba(darken($ui-base-color, 8%), 0.8);
  40. position: relative;
  41. z-index: 2;
  42. }
  43. &.compact {
  44. padding: 30px 0;
  45. border-radius: 4px;
  46. .avatar {
  47. margin-bottom: 0;
  48. img {
  49. object-fit: cover;
  50. }
  51. }
  52. }
  53. .name {
  54. display: block;
  55. font-size: 20px;
  56. line-height: 18px * 1.5;
  57. color: $primary-text-color;
  58. padding: 10px 15px;
  59. padding-bottom: 0;
  60. font-weight: 500;
  61. position: relative;
  62. z-index: 2;
  63. margin-bottom: 30px;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. small {
  67. display: block;
  68. font-size: 14px;
  69. color: $highlight-text-color;
  70. font-weight: 400;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. .fa {
  74. margin-left: 3px;
  75. }
  76. }
  77. }
  78. .avatar {
  79. width: 120px;
  80. margin: 0 auto;
  81. position: relative;
  82. z-index: 2;
  83. img {
  84. width: 120px;
  85. height: 120px;
  86. display: block;
  87. border-radius: 120px;
  88. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  89. }
  90. }
  91. .roles {
  92. margin-bottom: 30px;
  93. padding: 0 15px;
  94. }
  95. .details-counters {
  96. margin-top: 30px;
  97. display: flex;
  98. flex-direction: row;
  99. width: 100%;
  100. }
  101. .counter {
  102. width: 33.3%;
  103. box-sizing: border-box;
  104. flex: 0 0 auto;
  105. color: $darker-text-color;
  106. padding: 5px 10px 0;
  107. margin-bottom: 10px;
  108. border-right: 1px solid lighten($ui-base-color, 4%);
  109. cursor: default;
  110. text-align: center;
  111. position: relative;
  112. a {
  113. display: block;
  114. }
  115. &:last-child {
  116. border-right: 0;
  117. }
  118. &::after {
  119. display: block;
  120. content: "";
  121. position: absolute;
  122. bottom: -10px;
  123. left: 0;
  124. width: 100%;
  125. border-bottom: 4px solid $ui-primary-color;
  126. opacity: 0.5;
  127. transition: all 400ms ease;
  128. }
  129. &.active {
  130. &::after {
  131. border-bottom: 4px solid $highlight-text-color;
  132. opacity: 1;
  133. }
  134. }
  135. &:hover {
  136. &::after {
  137. opacity: 1;
  138. transition-duration: 100ms;
  139. }
  140. }
  141. a {
  142. text-decoration: none;
  143. color: inherit;
  144. }
  145. .counter-label {
  146. font-size: 12px;
  147. display: block;
  148. margin-bottom: 5px;
  149. }
  150. .counter-number {
  151. font-weight: 500;
  152. font-size: 18px;
  153. color: $primary-text-color;
  154. font-family: 'mastodon-font-display', sans-serif;
  155. }
  156. }
  157. .bio {
  158. font-size: 14px;
  159. line-height: 18px;
  160. padding: 0 15px;
  161. color: $secondary-text-color;
  162. }
  163. @media screen and (max-width: 480px) {
  164. display: block;
  165. .card__bio {
  166. max-width: none;
  167. }
  168. .name,
  169. .roles {
  170. text-align: center;
  171. margin-bottom: 15px;
  172. }
  173. .bio {
  174. margin-bottom: 15px;
  175. }
  176. }
  177. }
  178. .card,
  179. .account-grid-card {
  180. .controls {
  181. position: absolute;
  182. top: 15px;
  183. left: 15px;
  184. z-index: 2;
  185. .icon-button {
  186. color: rgba($white, 0.8);
  187. text-decoration: none;
  188. font-size: 13px;
  189. line-height: 13px;
  190. font-weight: 500;
  191. .fa {
  192. font-weight: 400;
  193. margin-right: 5px;
  194. }
  195. &:hover,
  196. &:active,
  197. &:focus {
  198. color: $white;
  199. }
  200. }
  201. }
  202. }
  203. .account-grid-card .controls {
  204. left: auto;
  205. right: 15px;
  206. }
  207. .pagination {
  208. padding: 30px 0;
  209. text-align: center;
  210. overflow: hidden;
  211. a,
  212. .current,
  213. .newer,
  214. .older,
  215. .page,
  216. .gap {
  217. font-size: 14px;
  218. color: $primary-text-color;
  219. font-weight: 500;
  220. display: inline-block;
  221. padding: 6px 10px;
  222. text-decoration: none;
  223. }
  224. .current {
  225. background: $simple-background-color;
  226. border-radius: 100px;
  227. color: $inverted-text-color;
  228. cursor: default;
  229. margin: 0 10px;
  230. }
  231. .gap {
  232. cursor: default;
  233. }
  234. .older,
  235. .newer {
  236. text-transform: uppercase;
  237. color: $secondary-text-color;
  238. }
  239. .older {
  240. float: left;
  241. padding-left: 0;
  242. .fa {
  243. display: inline-block;
  244. margin-right: 5px;
  245. }
  246. }
  247. .newer {
  248. float: right;
  249. padding-right: 0;
  250. .fa {
  251. display: inline-block;
  252. margin-left: 5px;
  253. }
  254. }
  255. .disabled {
  256. cursor: default;
  257. color: lighten($inverted-text-color, 10%);
  258. }
  259. @media screen and (max-width: 700px) {
  260. padding: 30px 20px;
  261. .page {
  262. display: none;
  263. }
  264. .newer,
  265. .older {
  266. display: inline-block;
  267. }
  268. }
  269. }
  270. .accounts-grid {
  271. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  272. background: darken($simple-background-color, 8%);
  273. border-radius: 0 0 4px 4px;
  274. padding: 20px 5px;
  275. padding-bottom: 10px;
  276. overflow: hidden;
  277. display: flex;
  278. flex-wrap: wrap;
  279. z-index: 2;
  280. position: relative;
  281. &.empty img {
  282. position: absolute;
  283. opacity: 0.2;
  284. height: 200px;
  285. left: 0;
  286. bottom: 0;
  287. pointer-events: none;
  288. }
  289. @media screen and (max-width: 740px) {
  290. border-radius: 0;
  291. box-shadow: none;
  292. }
  293. .account-grid-card {
  294. box-sizing: border-box;
  295. width: 335px;
  296. background: $simple-background-color;
  297. border-radius: 4px;
  298. color: $inverted-text-color;
  299. margin: 0 5px 10px;
  300. position: relative;
  301. @media screen and (max-width: 740px) {
  302. width: calc(100% - 10px);
  303. }
  304. .account-grid-card__header {
  305. overflow: hidden;
  306. height: 100px;
  307. border-radius: 4px 4px 0 0;
  308. background-color: lighten($inverted-text-color, 4%);
  309. background-size: cover;
  310. background-position: center;
  311. position: relative;
  312. &::after {
  313. background: rgba(darken($ui-base-color, 8%), 0.5);
  314. display: block;
  315. content: "";
  316. position: absolute;
  317. left: 0;
  318. top: 0;
  319. width: 100%;
  320. height: 100%;
  321. z-index: 1;
  322. }
  323. }
  324. .account-grid-card__avatar {
  325. box-sizing: border-box;
  326. padding: 15px;
  327. position: absolute;
  328. z-index: 2;
  329. top: 100px - (40px + 2px);
  330. left: -2px;
  331. }
  332. .avatar {
  333. width: 80px;
  334. height: 80px;
  335. img {
  336. display: block;
  337. width: 80px;
  338. height: 80px;
  339. border-radius: 80px;
  340. border: 2px solid $simple-background-color;
  341. background: $simple-background-color;
  342. }
  343. }
  344. .name {
  345. padding: 15px;
  346. padding-top: 10px;
  347. padding-left: 15px + 80px + 15px;
  348. a {
  349. display: block;
  350. color: $inverted-text-color;
  351. text-decoration: none;
  352. text-overflow: ellipsis;
  353. overflow: hidden;
  354. font-weight: 500;
  355. &:hover {
  356. .display_name {
  357. text-decoration: underline;
  358. }
  359. }
  360. }
  361. }
  362. .display_name {
  363. font-size: 16px;
  364. display: block;
  365. text-overflow: ellipsis;
  366. overflow: hidden;
  367. }
  368. .username {
  369. color: $lighter-text-color;
  370. font-size: 14px;
  371. font-weight: 400;
  372. }
  373. .account__header__content {
  374. padding: 10px 15px;
  375. padding-top: 15px;
  376. color: $lighter-text-color;
  377. word-wrap: break-word;
  378. overflow: hidden;
  379. text-overflow: ellipsis;
  380. height: 5.5em;
  381. }
  382. }
  383. }
  384. .nothing-here {
  385. width: 100%;
  386. display: block;
  387. color: $light-text-color;
  388. font-size: 14px;
  389. font-weight: 500;
  390. text-align: center;
  391. padding: 130px 0;
  392. padding-top: 125px;
  393. margin: 0 auto;
  394. cursor: default;
  395. }
  396. .account-card {
  397. border-radius: 4px;
  398. text-align: left;
  399. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  400. background: $simple-background-color;
  401. &__header {
  402. background-size: cover;
  403. background-position: center center;
  404. height: 90px;
  405. border-radius: 4px 4px 0 0;
  406. }
  407. & > .detailed-status__display-name {
  408. display: block;
  409. overflow: hidden;
  410. display: flex;
  411. align-items: center;
  412. padding: 10px;
  413. &:last-child {
  414. margin-bottom: 0;
  415. }
  416. & > div:first-child {
  417. flex: 0 0 auto;
  418. margin-right: 10px;
  419. width: 48px;
  420. height: 48px;
  421. }
  422. .avatar {
  423. display: block;
  424. border-radius: 4px;
  425. margin: 0;
  426. }
  427. .display-name {
  428. flex: 1 0 auto;
  429. display: block;
  430. max-width: 100%;
  431. overflow: hidden;
  432. white-space: nowrap;
  433. text-overflow: ellipsis;
  434. cursor: default;
  435. & > .detailed-status__display-name {
  436. margin-bottom: 0;
  437. }
  438. strong {
  439. font-weight: 500;
  440. color: $ui-base-color;
  441. @each $lang in $cjk-langs {
  442. &:lang(#{$lang}) {
  443. font-weight: 700;
  444. }
  445. }
  446. }
  447. span {
  448. font-size: 14px;
  449. color: $light-text-color;
  450. }
  451. }
  452. &:hover {
  453. .display-name {
  454. strong {
  455. text-decoration: none;
  456. }
  457. }
  458. }
  459. }
  460. .counter {
  461. box-sizing: border-box;
  462. flex: 0 0 auto;
  463. color: $light-text-color;
  464. padding: 0 10px;
  465. cursor: default;
  466. text-align: center;
  467. position: relative;
  468. line-height: 24px;
  469. .counter-label {
  470. font-size: 12px;
  471. display: block;
  472. text-transform: uppercase;
  473. }
  474. .counter-number {
  475. font-weight: 500;
  476. font-size: 16px;
  477. color: $inverted-text-color;
  478. font-family: 'mastodon-font-display', sans-serif;
  479. }
  480. }
  481. }
  482. .activity-stream-tabs {
  483. background: $simple-background-color;
  484. border-bottom: 1px solid $ui-secondary-color;
  485. position: relative;
  486. z-index: 2;
  487. a {
  488. display: inline-block;
  489. padding: 15px;
  490. text-decoration: none;
  491. color: $highlight-text-color;
  492. text-transform: uppercase;
  493. font-weight: 500;
  494. &:hover,
  495. &:active,
  496. &:focus {
  497. color: lighten($highlight-text-color, 8%);
  498. }
  499. &.active {
  500. color: $inverted-text-color;
  501. cursor: default;
  502. }
  503. }
  504. }
  505. .account-role {
  506. display: inline-block;
  507. padding: 4px 6px;
  508. cursor: default;
  509. border-radius: 3px;
  510. font-size: 12px;
  511. line-height: 12px;
  512. font-weight: 500;
  513. color: $ui-secondary-color;
  514. background-color: rgba($ui-secondary-color, 0.1);
  515. border: 1px solid rgba($ui-secondary-color, 0.5);
  516. &.moderator {
  517. color: $success-green;
  518. background-color: rgba($success-green, 0.1);
  519. border-color: rgba($success-green, 0.5);
  520. }
  521. &.admin {
  522. color: lighten($error-red, 12%);
  523. background-color: rgba(lighten($error-red, 12%), 0.1);
  524. border-color: rgba(lighten($error-red, 12%), 0.5);
  525. }
  526. }
  527. .account__header__fields {
  528. padding: 0;
  529. margin: 15px -15px -15px;
  530. border: 0 none;
  531. border-top: 1px solid lighten($ui-base-color, 4%);
  532. border-bottom: 1px solid lighten($ui-base-color, 4%);
  533. font-size: 14px;
  534. line-height: 20px;
  535. dl {
  536. display: flex;
  537. border-bottom: 1px solid lighten($ui-base-color, 4%);
  538. }
  539. dt,
  540. dd {
  541. box-sizing: border-box;
  542. padding: 14px;
  543. text-align: center;
  544. max-height: 48px;
  545. overflow: hidden;
  546. white-space: nowrap;
  547. text-overflow: ellipsis;
  548. }
  549. dt {
  550. font-weight: 500;
  551. width: 120px;
  552. flex: 0 0 auto;
  553. color: $secondary-text-color;
  554. background: rgba(darken($ui-base-color, 8%), 0.5);
  555. }
  556. dd {
  557. flex: 1 1 auto;
  558. color: $darker-text-color;
  559. }
  560. a {
  561. color: $highlight-text-color;
  562. text-decoration: none;
  563. &:hover,
  564. &:focus,
  565. &:active {
  566. text-decoration: underline;
  567. }
  568. }
  569. dl:last-child {
  570. border-bottom: 0;
  571. }
  572. }