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.

680 lines
12 KiB

  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. position: relative;
  382. &::after {
  383. display: block;
  384. content: "";
  385. width: 100%;
  386. height: 100px;
  387. position: absolute;
  388. bottom: 0;
  389. background: linear-gradient(to bottom, rgba($simple-background-color, 0.01) 0%, rgba($simple-background-color, 1) 100%);
  390. left: 0;
  391. border-radius: 0 0 4px 4px;
  392. pointer-events: none;
  393. }
  394. }
  395. }
  396. }
  397. .nothing-here {
  398. width: 100%;
  399. display: block;
  400. color: $light-text-color;
  401. font-size: 14px;
  402. font-weight: 500;
  403. text-align: center;
  404. padding: 130px 0;
  405. padding-top: 125px;
  406. margin: 0 auto;
  407. cursor: default;
  408. }
  409. .account-card {
  410. border-radius: 4px;
  411. text-align: left;
  412. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  413. background: $simple-background-color;
  414. &__header {
  415. background: $base-shadow-color;
  416. background-size: cover;
  417. background-position: center center;
  418. height: 90px;
  419. border-radius: 4px 4px 0 0;
  420. }
  421. & > .detailed-status__display-name {
  422. display: block;
  423. overflow: hidden;
  424. display: flex;
  425. align-items: center;
  426. padding: 10px;
  427. &:last-child {
  428. margin-bottom: 0;
  429. }
  430. & > div:first-child {
  431. flex: 0 0 auto;
  432. margin-right: 10px;
  433. width: 48px;
  434. height: 48px;
  435. }
  436. .avatar {
  437. display: block;
  438. border-radius: 4px;
  439. margin: 0;
  440. }
  441. .display-name {
  442. flex: 1 0 auto;
  443. display: block;
  444. max-width: 100%;
  445. overflow: hidden;
  446. white-space: nowrap;
  447. text-overflow: ellipsis;
  448. cursor: default;
  449. & > .detailed-status__display-name {
  450. margin-bottom: 0;
  451. }
  452. strong {
  453. font-weight: 500;
  454. color: $ui-base-color;
  455. @each $lang in $cjk-langs {
  456. &:lang(#{$lang}) {
  457. font-weight: 700;
  458. }
  459. }
  460. }
  461. span {
  462. font-size: 14px;
  463. color: $light-text-color;
  464. }
  465. }
  466. &:hover {
  467. .display-name {
  468. strong {
  469. text-decoration: none;
  470. }
  471. }
  472. }
  473. }
  474. .counter {
  475. box-sizing: border-box;
  476. flex: 0 0 auto;
  477. color: $light-text-color;
  478. padding: 0 10px;
  479. cursor: default;
  480. text-align: center;
  481. position: relative;
  482. line-height: 24px;
  483. .counter-label {
  484. font-size: 12px;
  485. display: block;
  486. text-transform: uppercase;
  487. }
  488. .counter-number {
  489. font-weight: 500;
  490. font-size: 16px;
  491. color: $inverted-text-color;
  492. font-family: 'mastodon-font-display', sans-serif;
  493. }
  494. }
  495. }
  496. .activity-stream-tabs {
  497. background: $simple-background-color;
  498. border-bottom: 1px solid $ui-secondary-color;
  499. position: relative;
  500. z-index: 2;
  501. a {
  502. display: inline-block;
  503. padding: 15px;
  504. text-decoration: none;
  505. color: $highlight-text-color;
  506. text-transform: uppercase;
  507. font-weight: 500;
  508. &:hover,
  509. &:active,
  510. &:focus {
  511. color: lighten($highlight-text-color, 8%);
  512. }
  513. &.active {
  514. color: $inverted-text-color;
  515. cursor: default;
  516. }
  517. }
  518. }
  519. .account-role {
  520. display: inline-block;
  521. padding: 4px 6px;
  522. cursor: default;
  523. border-radius: 3px;
  524. font-size: 12px;
  525. line-height: 12px;
  526. font-weight: 500;
  527. color: $ui-secondary-color;
  528. background-color: rgba($ui-secondary-color, 0.1);
  529. border: 1px solid rgba($ui-secondary-color, 0.5);
  530. &.moderator {
  531. color: $success-green;
  532. background-color: rgba($success-green, 0.1);
  533. border-color: rgba($success-green, 0.5);
  534. }
  535. &.admin {
  536. color: lighten($error-red, 12%);
  537. background-color: rgba(lighten($error-red, 12%), 0.1);
  538. border-color: rgba(lighten($error-red, 12%), 0.5);
  539. }
  540. }
  541. .account__header__fields {
  542. padding: 0;
  543. margin: 15px -15px -15px;
  544. border: 0 none;
  545. border-top: 1px solid lighten($ui-base-color, 4%);
  546. border-bottom: 1px solid lighten($ui-base-color, 4%);
  547. font-size: 14px;
  548. line-height: 20px;
  549. dl {
  550. display: flex;
  551. border-bottom: 1px solid lighten($ui-base-color, 4%);
  552. }
  553. dt,
  554. dd {
  555. box-sizing: border-box;
  556. padding: 14px;
  557. text-align: center;
  558. max-height: 48px;
  559. overflow: hidden;
  560. white-space: nowrap;
  561. text-overflow: ellipsis;
  562. }
  563. dt {
  564. font-weight: 500;
  565. width: 120px;
  566. flex: 0 0 auto;
  567. color: $secondary-text-color;
  568. background: rgba(darken($ui-base-color, 8%), 0.5);
  569. }
  570. dd {
  571. flex: 1 1 auto;
  572. color: $darker-text-color;
  573. }
  574. a {
  575. color: $highlight-text-color;
  576. text-decoration: none;
  577. &:hover,
  578. &:focus,
  579. &:active {
  580. text-decoration: underline;
  581. }
  582. }
  583. dl:last-child {
  584. border-bottom: 0;
  585. }
  586. }