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.

518 lines
8.9 KiB

  1. .account {
  2. padding: 10px;
  3. border-bottom: 1px solid lighten($ui-base-color, 8%);
  4. color: inherit;
  5. text-decoration: none;
  6. .account__display-name {
  7. flex: 1 1 auto;
  8. display: block;
  9. color: $darker-text-color;
  10. overflow: hidden;
  11. text-decoration: none;
  12. font-size: 14px;
  13. }
  14. &.small {
  15. border: none;
  16. padding: 0;
  17. & > .account__avatar-wrapper { margin: 0 8px 0 0 }
  18. & > .display-name {
  19. height: 24px;
  20. line-height: 24px;
  21. }
  22. }
  23. }
  24. .account__wrapper {
  25. display: flex;
  26. }
  27. .account__avatar-wrapper {
  28. float: left;
  29. margin-left: 12px;
  30. margin-right: 12px;
  31. }
  32. .account__avatar {
  33. @include avatar-radius();
  34. position: relative;
  35. cursor: pointer;
  36. &-inline {
  37. display: inline-block;
  38. vertical-align: middle;
  39. margin-right: 5px;
  40. }
  41. }
  42. .account__avatar-overlay {
  43. position: relative;
  44. @include avatar-size(48px);
  45. &-base {
  46. @include avatar-radius();
  47. @include avatar-size(36px);
  48. }
  49. &-overlay {
  50. @include avatar-radius();
  51. @include avatar-size(24px);
  52. position: absolute;
  53. bottom: 0;
  54. right: 0;
  55. z-index: 1;
  56. }
  57. }
  58. .account__relationship {
  59. height: 18px;
  60. padding: 10px;
  61. white-space: nowrap;
  62. }
  63. .account__header__wrapper {
  64. flex: 0 0 auto;
  65. background: lighten($ui-base-color, 4%);
  66. }
  67. .account__header {
  68. flex: 0 0 auto;
  69. background: lighten($ui-base-color, 4%);
  70. text-align: center;
  71. background-size: cover;
  72. background-position: center;
  73. position: relative;
  74. .account__avatar {
  75. @include avatar-radius();
  76. @include avatar-size(90px);
  77. display: block;
  78. margin: 0 auto 10px;
  79. overflow: hidden;
  80. }
  81. &.inactive {
  82. opacity: 0.5;
  83. .account__header__avatar {
  84. filter: grayscale(100%);
  85. }
  86. .account__header__username {
  87. color: $secondary-text-color;
  88. }
  89. }
  90. & > div {
  91. background: rgba(lighten($ui-base-color, 4%), 0.9);
  92. padding: 20px 10px;
  93. }
  94. .account__header__content {
  95. color: $secondary-text-color;
  96. }
  97. .account__header__display-name {
  98. color: $primary-text-color;
  99. display: inline-block;
  100. width: 100%;
  101. font-size: 20px;
  102. line-height: 27px;
  103. font-weight: 500;
  104. overflow: hidden;
  105. text-overflow: ellipsis;
  106. }
  107. .account__header__username {
  108. color: $highlight-text-color;
  109. font-size: 14px;
  110. font-weight: 400;
  111. display: block;
  112. margin-bottom: 10px;
  113. overflow: hidden;
  114. text-overflow: ellipsis;
  115. }
  116. }
  117. .account__disclaimer {
  118. padding: 10px;
  119. border-top: 1px solid lighten($ui-base-color, 8%);
  120. color: $dark-text-color;
  121. strong {
  122. font-weight: 500;
  123. @each $lang in $cjk-langs {
  124. &:lang(#{$lang}) {
  125. font-weight: 700;
  126. }
  127. }
  128. }
  129. a {
  130. font-weight: 500;
  131. color: inherit;
  132. text-decoration: underline;
  133. &:hover,
  134. &:focus,
  135. &:active {
  136. text-decoration: none;
  137. }
  138. }
  139. }
  140. .account__header__content {
  141. color: $darker-text-color;
  142. font-size: 14px;
  143. font-weight: 400;
  144. overflow: hidden;
  145. word-break: normal;
  146. word-wrap: break-word;
  147. p {
  148. margin-bottom: 20px;
  149. &:last-child {
  150. margin-bottom: 0;
  151. }
  152. }
  153. a {
  154. color: inherit;
  155. text-decoration: underline;
  156. &:hover {
  157. text-decoration: none;
  158. }
  159. }
  160. }
  161. .account__header__display-name {
  162. .emojione {
  163. width: 25px;
  164. height: 25px;
  165. }
  166. }
  167. .account__action-bar {
  168. border-top: 1px solid lighten($ui-base-color, 8%);
  169. border-bottom: 1px solid lighten($ui-base-color, 8%);
  170. line-height: 36px;
  171. overflow: hidden;
  172. flex: 0 0 auto;
  173. display: flex;
  174. }
  175. .account__action-bar-dropdown {
  176. padding: 10px;
  177. .dropdown--active {
  178. .dropdown__content.dropdown__right {
  179. left: 6px;
  180. right: initial;
  181. }
  182. &::after {
  183. bottom: initial;
  184. margin-left: 11px;
  185. margin-top: -7px;
  186. right: initial;
  187. }
  188. }
  189. }
  190. .account__action-bar-links {
  191. display: flex;
  192. flex: 1 1 auto;
  193. line-height: 18px;
  194. text-align: center;
  195. }
  196. .account__action-bar__tab {
  197. text-decoration: none;
  198. overflow: hidden;
  199. flex: 0 1 100%;
  200. border-left: 1px solid lighten($ui-base-color, 8%);
  201. padding: 10px 0;
  202. & > span {
  203. display: block;
  204. text-transform: uppercase;
  205. font-size: 11px;
  206. color: $darker-text-color;
  207. }
  208. strong {
  209. display: block;
  210. font-size: 15px;
  211. font-weight: 500;
  212. color: $primary-text-color;
  213. @each $lang in $cjk-langs {
  214. &:lang(#{$lang}) {
  215. font-weight: 700;
  216. }
  217. }
  218. }
  219. abbr {
  220. color: $highlight-text-color;
  221. }
  222. }
  223. .account__header__avatar {
  224. background-size: 90px 90px;
  225. display: block;
  226. height: 90px;
  227. margin: 0 auto 10px;
  228. overflow: hidden;
  229. width: 90px;
  230. }
  231. .account-authorize {
  232. padding: 14px 10px;
  233. .detailed-status__display-name {
  234. display: block;
  235. margin-bottom: 15px;
  236. overflow: hidden;
  237. }
  238. }
  239. .account-authorize__avatar {
  240. float: left;
  241. margin-right: 10px;
  242. }
  243. .notification__message {
  244. margin-left: 42px;
  245. padding: 8px 0 0 26px;
  246. cursor: default;
  247. color: $darker-text-color;
  248. font-size: 15px;
  249. position: relative;
  250. .fa {
  251. color: $highlight-text-color;
  252. }
  253. > span {
  254. display: block;
  255. overflow: hidden;
  256. text-overflow: ellipsis;
  257. }
  258. }
  259. .account--panel {
  260. background: lighten($ui-base-color, 4%);
  261. border-top: 1px solid lighten($ui-base-color, 8%);
  262. border-bottom: 1px solid lighten($ui-base-color, 8%);
  263. display: flex;
  264. flex-direction: row;
  265. padding: 10px 0;
  266. }
  267. .account--panel__button,
  268. .detailed-status__button {
  269. flex: 1 1 auto;
  270. text-align: center;
  271. }
  272. .column-settings__outer {
  273. background: lighten($ui-base-color, 8%);
  274. padding: 15px;
  275. }
  276. .column-settings__section {
  277. color: $darker-text-color;
  278. cursor: default;
  279. display: block;
  280. font-weight: 500;
  281. margin-bottom: 10px;
  282. }
  283. .column-settings__row {
  284. .text-btn {
  285. margin-bottom: 15px;
  286. }
  287. }
  288. .account--follows-info {
  289. color: $primary-text-color;
  290. position: absolute;
  291. top: 10px;
  292. left: 10px;
  293. opacity: 0.7;
  294. display: inline-block;
  295. vertical-align: top;
  296. background-color: rgba($base-overlay-background, 0.4);
  297. text-transform: uppercase;
  298. font-size: 11px;
  299. font-weight: 500;
  300. padding: 4px;
  301. border-radius: 4px;
  302. }
  303. .account--muting-info {
  304. color: $primary-text-color;
  305. position: absolute;
  306. top: 40px;
  307. left: 10px;
  308. opacity: 0.7;
  309. display: inline-block;
  310. vertical-align: top;
  311. background-color: rgba($base-overlay-background, 0.4);
  312. text-transform: uppercase;
  313. font-size: 11px;
  314. font-weight: 500;
  315. padding: 4px;
  316. border-radius: 4px;
  317. }
  318. .account--action-button {
  319. position: absolute;
  320. top: 10px;
  321. right: 20px;
  322. }
  323. .account-gallery__container {
  324. display: flex;
  325. justify-content: center;
  326. flex-wrap: wrap;
  327. padding: 2px;
  328. }
  329. .account-gallery__item {
  330. flex-grow: 1;
  331. width: 50%;
  332. overflow: hidden;
  333. position: relative;
  334. &::before {
  335. content: "";
  336. display: block;
  337. padding-top: 100%;
  338. }
  339. a {
  340. display: block;
  341. width: calc(100% - 4px);
  342. height: calc(100% - 4px);
  343. margin: 2px;
  344. top: 0;
  345. left: 0;
  346. background-color: $base-overlay-background;
  347. background-size: cover;
  348. background-position: center;
  349. position: absolute;
  350. color: inherit;
  351. text-decoration: none;
  352. border-radius: 4px;
  353. &:hover,
  354. &:active,
  355. &:focus {
  356. outline: 0;
  357. &::before {
  358. content: "";
  359. display: block;
  360. width: 100%;
  361. height: 100%;
  362. background: rgba($base-overlay-background, 0.3);
  363. border-radius: 4px;
  364. }
  365. }
  366. }
  367. }
  368. .account__section-headline {
  369. background: darken($ui-base-color, 4%);
  370. border-bottom: 1px solid lighten($ui-base-color, 8%);
  371. cursor: default;
  372. display: flex;
  373. a {
  374. display: block;
  375. flex: 1 1 auto;
  376. color: $darker-text-color;
  377. padding: 15px 0;
  378. font-size: 14px;
  379. font-weight: 500;
  380. text-align: center;
  381. text-decoration: none;
  382. position: relative;
  383. &.active {
  384. color: $secondary-text-color;
  385. &::before,
  386. &::after {
  387. display: block;
  388. content: "";
  389. position: absolute;
  390. bottom: 0;
  391. left: 50%;
  392. width: 0;
  393. height: 0;
  394. transform: translateX(-50%);
  395. border-style: solid;
  396. border-width: 0 10px 10px;
  397. border-color: transparent transparent lighten($ui-base-color, 8%);
  398. }
  399. &::after {
  400. bottom: -1px;
  401. border-color: transparent transparent $ui-base-color;
  402. }
  403. }
  404. }
  405. }
  406. .account__moved-note {
  407. padding: 14px 10px;
  408. padding-bottom: 16px;
  409. background: lighten($ui-base-color, 4%);
  410. border-top: 1px solid lighten($ui-base-color, 8%);
  411. border-bottom: 1px solid lighten($ui-base-color, 8%);
  412. &__message {
  413. position: relative;
  414. margin-left: 58px;
  415. color: $dark-text-color;
  416. padding: 8px 0;
  417. padding-top: 0;
  418. padding-bottom: 4px;
  419. font-size: 14px;
  420. > span {
  421. display: block;
  422. overflow: hidden;
  423. text-overflow: ellipsis;
  424. }
  425. }
  426. &__icon-wrapper {
  427. left: -26px;
  428. position: absolute;
  429. }
  430. .detailed-status__display-avatar {
  431. position: relative;
  432. }
  433. .detailed-status__display-name {
  434. margin-bottom: 0;
  435. }
  436. }
  437. .account__header .roles {
  438. margin-top: 20px;
  439. margin-bottom: 20px;
  440. padding: 0 15px;
  441. }