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.

538 lines
9.2 KiB

  1. .card {
  2. background-color: lighten($ui-base-color, 4%);
  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. small {
  65. display: block;
  66. font-size: 14px;
  67. color: $ui-highlight-color;
  68. font-weight: 400;
  69. }
  70. }
  71. .avatar {
  72. width: 120px;
  73. margin: 0 auto;
  74. position: relative;
  75. z-index: 2;
  76. img {
  77. width: 120px;
  78. height: 120px;
  79. display: block;
  80. border-radius: 120px;
  81. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  82. }
  83. }
  84. .controls {
  85. position: absolute;
  86. top: 15px;
  87. left: 15px;
  88. z-index: 2;
  89. .icon-button {
  90. color: rgba($white, 0.8);
  91. text-decoration: none;
  92. font-size: 13px;
  93. line-height: 13px;
  94. font-weight: 500;
  95. .fa {
  96. font-weight: 400;
  97. margin-right: 5px;
  98. }
  99. &:hover,
  100. &:active,
  101. &:focus {
  102. color: $white;
  103. }
  104. }
  105. }
  106. .roles {
  107. margin-bottom: 30px;
  108. padding: 0 15px;
  109. }
  110. .details-counters {
  111. margin-top: 30px;
  112. display: flex;
  113. flex-direction: row;
  114. width: 100%;
  115. }
  116. .counter {
  117. width: 33.3%;
  118. box-sizing: border-box;
  119. flex: 0 0 auto;
  120. color: $ui-primary-color;
  121. padding: 5px 10px 0;
  122. margin-bottom: 10px;
  123. border-right: 1px solid lighten($ui-base-color, 4%);
  124. cursor: default;
  125. text-align: center;
  126. position: relative;
  127. a {
  128. display: block;
  129. }
  130. &:last-child {
  131. border-right: 0;
  132. }
  133. &::after {
  134. display: block;
  135. content: "";
  136. position: absolute;
  137. bottom: -10px;
  138. left: 0;
  139. width: 100%;
  140. border-bottom: 4px solid $ui-primary-color;
  141. opacity: 0.5;
  142. transition: all 400ms ease;
  143. }
  144. &.active {
  145. &::after {
  146. border-bottom: 4px solid $ui-highlight-color;
  147. opacity: 1;
  148. }
  149. }
  150. &:hover {
  151. &::after {
  152. opacity: 1;
  153. transition-duration: 100ms;
  154. }
  155. }
  156. a {
  157. text-decoration: none;
  158. color: inherit;
  159. }
  160. .counter-label {
  161. font-size: 12px;
  162. display: block;
  163. margin-bottom: 5px;
  164. }
  165. .counter-number {
  166. font-weight: 500;
  167. font-size: 18px;
  168. color: $primary-text-color;
  169. font-family: 'mastodon-font-display', sans-serif;
  170. }
  171. }
  172. .bio {
  173. font-size: 14px;
  174. line-height: 18px;
  175. padding: 0 15px;
  176. color: $ui-secondary-color;
  177. }
  178. @media screen and (max-width: 480px) {
  179. display: block;
  180. .card__bio {
  181. max-width: none;
  182. }
  183. .name,
  184. .roles {
  185. text-align: center;
  186. margin-bottom: 15px;
  187. }
  188. .bio {
  189. margin-bottom: 15px;
  190. }
  191. }
  192. }
  193. .pagination {
  194. padding: 30px 0;
  195. text-align: center;
  196. overflow: hidden;
  197. a,
  198. .current,
  199. .next,
  200. .prev,
  201. .page,
  202. .gap {
  203. font-size: 14px;
  204. color: $primary-text-color;
  205. font-weight: 500;
  206. display: inline-block;
  207. padding: 6px 10px;
  208. text-decoration: none;
  209. }
  210. .current {
  211. background: $simple-background-color;
  212. border-radius: 100px;
  213. color: $ui-base-color;
  214. cursor: default;
  215. margin: 0 10px;
  216. }
  217. .gap {
  218. cursor: default;
  219. }
  220. .prev,
  221. .next {
  222. text-transform: uppercase;
  223. color: $ui-secondary-color;
  224. }
  225. .prev {
  226. float: left;
  227. padding-left: 0;
  228. .fa {
  229. display: inline-block;
  230. margin-right: 5px;
  231. }
  232. }
  233. .next {
  234. float: right;
  235. padding-right: 0;
  236. .fa {
  237. display: inline-block;
  238. margin-left: 5px;
  239. }
  240. }
  241. .disabled {
  242. cursor: default;
  243. color: lighten($ui-base-color, 10%);
  244. }
  245. @media screen and (max-width: 360px) {
  246. padding: 30px 20px;
  247. a,
  248. .current,
  249. .next,
  250. .prev,
  251. .gap {
  252. display: none;
  253. }
  254. .next,
  255. .prev,
  256. .next a,
  257. .prev a {
  258. display: inline-block;
  259. }
  260. }
  261. }
  262. .accounts-grid {
  263. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  264. background: darken($simple-background-color, 8%);
  265. border-radius: 0 0 4px 4px;
  266. padding: 20px 5px;
  267. padding-bottom: 10px;
  268. overflow: hidden;
  269. display: flex;
  270. flex-wrap: wrap;
  271. z-index: 2;
  272. position: relative;
  273. @media screen and (max-width: 740px) {
  274. border-radius: 0;
  275. box-shadow: none;
  276. }
  277. .account-grid-card {
  278. box-sizing: border-box;
  279. width: 335px;
  280. background: $simple-background-color;
  281. border-radius: 4px;
  282. color: $ui-base-color;
  283. margin: 0 5px 10px;
  284. position: relative;
  285. @media screen and (max-width: 740px) {
  286. width: calc(100% - 10px);
  287. }
  288. .account-grid-card__header {
  289. overflow: hidden;
  290. height: 100px;
  291. border-radius: 4px 4px 0 0;
  292. background-color: lighten($ui-base-color, 4%);
  293. background-size: cover;
  294. background-position: center;
  295. position: relative;
  296. &::after {
  297. background: rgba(darken($ui-base-color, 8%), 0.5);
  298. display: block;
  299. content: "";
  300. position: absolute;
  301. left: 0;
  302. top: 0;
  303. width: 100%;
  304. height: 100%;
  305. z-index: 1;
  306. }
  307. }
  308. .account-grid-card__avatar {
  309. box-sizing: border-box;
  310. padding: 15px;
  311. position: absolute;
  312. z-index: 2;
  313. top: 100px - (40px + 2px);
  314. left: -2px;
  315. }
  316. .avatar {
  317. width: 80px;
  318. height: 80px;
  319. img {
  320. display: block;
  321. width: 80px;
  322. height: 80px;
  323. border-radius: 80px;
  324. border: 2px solid $simple-background-color;
  325. }
  326. }
  327. .name {
  328. padding: 15px;
  329. padding-top: 10px;
  330. padding-left: 15px + 80px + 15px;
  331. a {
  332. display: block;
  333. color: $ui-base-color;
  334. text-decoration: none;
  335. text-overflow: ellipsis;
  336. overflow: hidden;
  337. font-weight: 500;
  338. &:hover {
  339. .display_name {
  340. text-decoration: underline;
  341. }
  342. }
  343. }
  344. }
  345. .display_name {
  346. font-size: 16px;
  347. display: block;
  348. text-overflow: ellipsis;
  349. overflow: hidden;
  350. }
  351. .username {
  352. color: lighten($ui-base-color, 34%);
  353. font-size: 14px;
  354. font-weight: 400;
  355. }
  356. .note {
  357. padding: 10px 15px;
  358. padding-top: 15px;
  359. box-sizing: border-box;
  360. color: lighten($ui-base-color, 26%);
  361. word-wrap: break-word;
  362. min-height: 80px;
  363. }
  364. }
  365. }
  366. .nothing-here {
  367. width: 100%;
  368. display: block;
  369. color: $ui-primary-color;
  370. font-size: 14px;
  371. font-weight: 500;
  372. text-align: center;
  373. padding: 60px 0;
  374. padding-top: 55px;
  375. cursor: default;
  376. }
  377. .account-card {
  378. padding: 14px 10px;
  379. background: $simple-background-color;
  380. border-radius: 4px;
  381. text-align: left;
  382. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  383. .detailed-status__display-name {
  384. display: block;
  385. overflow: hidden;
  386. margin-bottom: 15px;
  387. &:last-child {
  388. margin-bottom: 0;
  389. }
  390. & > div {
  391. float: left;
  392. margin-right: 10px;
  393. width: 48px;
  394. height: 48px;
  395. }
  396. .avatar {
  397. display: block;
  398. border-radius: 4px;
  399. }
  400. .display-name {
  401. display: block;
  402. max-width: 100%;
  403. overflow: hidden;
  404. white-space: nowrap;
  405. text-overflow: ellipsis;
  406. cursor: default;
  407. strong {
  408. font-weight: 500;
  409. color: $ui-base-color;
  410. }
  411. span {
  412. font-size: 14px;
  413. color: $ui-primary-color;
  414. }
  415. }
  416. &:hover {
  417. .display-name {
  418. strong {
  419. text-decoration: none;
  420. }
  421. }
  422. }
  423. }
  424. .account__header__content {
  425. font-size: 14px;
  426. color: $ui-base-color;
  427. }
  428. }
  429. .activity-stream-tabs {
  430. background: $simple-background-color;
  431. border-bottom: 1px solid $ui-secondary-color;
  432. position: relative;
  433. z-index: 2;
  434. a {
  435. display: inline-block;
  436. padding: 15px;
  437. text-decoration: none;
  438. color: $ui-highlight-color;
  439. text-transform: uppercase;
  440. font-weight: 500;
  441. &:hover,
  442. &:active,
  443. &:focus {
  444. color: lighten($ui-highlight-color, 8%);
  445. }
  446. &.active {
  447. color: $ui-base-color;
  448. cursor: default;
  449. }
  450. }
  451. }
  452. .account-role {
  453. display: inline-block;
  454. padding: 4px 6px;
  455. cursor: default;
  456. border-radius: 3px;
  457. font-size: 12px;
  458. line-height: 12px;
  459. font-weight: 500;
  460. color: $success-green;
  461. background-color: rgba($success-green, 0.1);
  462. border: 1px solid rgba($success-green, 0.5);
  463. }