logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

accounts.scss (11049B)


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