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.

564 lines
9.3 KiB

  1. .hero-widget {
  2. margin-bottom: 10px;
  3. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  4. &__img {
  5. width: 100%;
  6. position: relative;
  7. overflow: hidden;
  8. border-radius: 4px 4px 0 0;
  9. background: $base-shadow-color;
  10. img {
  11. object-fit: cover;
  12. display: block;
  13. width: 100%;
  14. height: 100%;
  15. margin: 0;
  16. border-radius: 4px 4px 0 0;
  17. }
  18. }
  19. &__text {
  20. background: $ui-base-color;
  21. padding: 20px;
  22. border-radius: 0 0 4px 4px;
  23. font-size: 15px;
  24. color: $darker-text-color;
  25. line-height: 20px;
  26. word-wrap: break-word;
  27. font-weight: 400;
  28. .emojione {
  29. width: 20px;
  30. height: 20px;
  31. margin: -3px 0 0;
  32. }
  33. p {
  34. margin-bottom: 20px;
  35. &:last-child {
  36. margin-bottom: 0;
  37. }
  38. }
  39. em {
  40. display: inline;
  41. margin: 0;
  42. padding: 0;
  43. font-weight: 700;
  44. background: transparent;
  45. font-family: inherit;
  46. font-size: inherit;
  47. line-height: inherit;
  48. color: lighten($darker-text-color, 10%);
  49. }
  50. a {
  51. color: $secondary-text-color;
  52. text-decoration: none;
  53. &:hover {
  54. text-decoration: underline;
  55. }
  56. }
  57. }
  58. @media screen and (max-width: $no-gap-breakpoint) {
  59. display: none;
  60. }
  61. }
  62. .endorsements-widget {
  63. margin-bottom: 10px;
  64. padding-bottom: 10px;
  65. h4 {
  66. padding: 10px;
  67. text-transform: uppercase;
  68. font-weight: 700;
  69. font-size: 13px;
  70. color: $darker-text-color;
  71. }
  72. .account {
  73. padding: 10px 0;
  74. &:last-child {
  75. border-bottom: 0;
  76. }
  77. .account__display-name {
  78. display: flex;
  79. align-items: center;
  80. }
  81. .account__avatar {
  82. width: 44px;
  83. height: 44px;
  84. background-size: 44px 44px;
  85. }
  86. }
  87. .trends__item {
  88. padding: 10px;
  89. }
  90. }
  91. .trends-widget {
  92. h4 {
  93. color: $darker-text-color;
  94. }
  95. }
  96. .box-widget {
  97. padding: 20px;
  98. border-radius: 4px;
  99. background: $ui-base-color;
  100. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  101. }
  102. .placeholder-widget {
  103. padding: 16px;
  104. border-radius: 4px;
  105. border: 2px dashed $dark-text-color;
  106. text-align: center;
  107. color: $darker-text-color;
  108. margin-bottom: 10px;
  109. }
  110. .contact-widget,
  111. .landing-page__information.contact-widget {
  112. box-sizing: border-box;
  113. padding: 20px;
  114. min-height: 100%;
  115. border-radius: 4px;
  116. background: $ui-base-color;
  117. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  118. }
  119. .contact-widget {
  120. font-size: 15px;
  121. color: $darker-text-color;
  122. line-height: 20px;
  123. word-wrap: break-word;
  124. font-weight: 400;
  125. strong {
  126. font-weight: 500;
  127. }
  128. p {
  129. margin-bottom: 10px;
  130. &:last-child {
  131. margin-bottom: 0;
  132. }
  133. }
  134. &__mail {
  135. margin-top: 10px;
  136. a {
  137. color: $primary-text-color;
  138. text-decoration: none;
  139. }
  140. }
  141. }
  142. .moved-account-widget {
  143. padding: 15px;
  144. padding-bottom: 20px;
  145. border-radius: 4px;
  146. background: $ui-base-color;
  147. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  148. color: $secondary-text-color;
  149. font-weight: 400;
  150. margin-bottom: 10px;
  151. strong,
  152. a {
  153. font-weight: 500;
  154. @each $lang in $cjk-langs {
  155. &:lang(#{$lang}) {
  156. font-weight: 700;
  157. }
  158. }
  159. }
  160. a {
  161. color: inherit;
  162. text-decoration: underline;
  163. &.mention {
  164. text-decoration: none;
  165. span {
  166. text-decoration: none;
  167. }
  168. &:focus,
  169. &:hover,
  170. &:active {
  171. text-decoration: none;
  172. span {
  173. text-decoration: underline;
  174. }
  175. }
  176. }
  177. }
  178. &__message {
  179. margin-bottom: 15px;
  180. .fa {
  181. margin-right: 5px;
  182. color: $darker-text-color;
  183. }
  184. }
  185. &__card {
  186. .detailed-status__display-avatar {
  187. position: relative;
  188. cursor: pointer;
  189. }
  190. .detailed-status__display-name {
  191. margin-bottom: 0;
  192. text-decoration: none;
  193. span {
  194. font-weight: 400;
  195. }
  196. }
  197. }
  198. }
  199. .memoriam-widget {
  200. padding: 20px;
  201. border-radius: 4px;
  202. background: $base-shadow-color;
  203. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  204. font-size: 14px;
  205. color: $darker-text-color;
  206. margin-bottom: 10px;
  207. }
  208. .page-header {
  209. background: lighten($ui-base-color, 8%);
  210. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  211. border-radius: 4px;
  212. padding: 60px 15px;
  213. text-align: center;
  214. margin: 10px 0;
  215. h1 {
  216. color: $primary-text-color;
  217. font-size: 36px;
  218. line-height: 1.1;
  219. font-weight: 700;
  220. margin-bottom: 10px;
  221. }
  222. p {
  223. font-size: 15px;
  224. color: $darker-text-color;
  225. }
  226. @media screen and (max-width: $no-gap-breakpoint) {
  227. margin-top: 0;
  228. background: lighten($ui-base-color, 4%);
  229. h1 {
  230. font-size: 24px;
  231. }
  232. }
  233. }
  234. .directory {
  235. background: $ui-base-color;
  236. border-radius: 4px;
  237. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  238. &__tag {
  239. box-sizing: border-box;
  240. margin-bottom: 10px;
  241. & > a,
  242. & > div {
  243. display: flex;
  244. align-items: center;
  245. justify-content: space-between;
  246. background: $ui-base-color;
  247. border-radius: 4px;
  248. padding: 15px;
  249. text-decoration: none;
  250. color: inherit;
  251. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  252. }
  253. & > a {
  254. &:hover,
  255. &:active,
  256. &:focus {
  257. background: lighten($ui-base-color, 8%);
  258. }
  259. }
  260. &.active > a {
  261. background: $ui-highlight-color;
  262. cursor: default;
  263. }
  264. &.disabled > div {
  265. opacity: 0.5;
  266. cursor: default;
  267. }
  268. h4 {
  269. flex: 1 1 auto;
  270. font-size: 18px;
  271. font-weight: 700;
  272. color: $primary-text-color;
  273. white-space: nowrap;
  274. overflow: hidden;
  275. text-overflow: ellipsis;
  276. .fa {
  277. color: $darker-text-color;
  278. }
  279. small {
  280. display: block;
  281. font-weight: 400;
  282. font-size: 15px;
  283. margin-top: 8px;
  284. color: $darker-text-color;
  285. }
  286. }
  287. &.active h4 {
  288. &,
  289. .fa,
  290. small,
  291. .trends__item__current {
  292. color: $primary-text-color;
  293. }
  294. }
  295. .avatar-stack {
  296. flex: 0 0 auto;
  297. width: (36px + 4px) * 3;
  298. }
  299. &.active .avatar-stack .account__avatar {
  300. border-color: $ui-highlight-color;
  301. }
  302. .trends__item__current {
  303. padding-right: 0;
  304. }
  305. }
  306. }
  307. .avatar-stack {
  308. display: flex;
  309. justify-content: flex-end;
  310. .account__avatar {
  311. flex: 0 0 auto;
  312. width: 36px;
  313. height: 36px;
  314. border-radius: 50%;
  315. position: relative;
  316. margin-left: -10px;
  317. background: darken($ui-base-color, 8%);
  318. border: 2px solid $ui-base-color;
  319. &:nth-child(1) {
  320. z-index: 1;
  321. }
  322. &:nth-child(2) {
  323. z-index: 2;
  324. }
  325. &:nth-child(3) {
  326. z-index: 3;
  327. }
  328. }
  329. }
  330. .accounts-table {
  331. width: 100%;
  332. .account {
  333. padding: 0;
  334. border: 0;
  335. }
  336. strong {
  337. font-weight: 700;
  338. }
  339. thead th {
  340. text-align: center;
  341. text-transform: uppercase;
  342. color: $darker-text-color;
  343. font-weight: 700;
  344. padding: 10px;
  345. &:first-child {
  346. text-align: left;
  347. }
  348. }
  349. tbody td {
  350. padding: 15px 0;
  351. vertical-align: middle;
  352. border-bottom: 1px solid lighten($ui-base-color, 8%);
  353. }
  354. tbody tr:last-child td {
  355. border-bottom: 0;
  356. }
  357. &__count {
  358. width: 120px;
  359. text-align: center;
  360. font-size: 15px;
  361. font-weight: 500;
  362. color: $primary-text-color;
  363. small {
  364. display: block;
  365. color: $darker-text-color;
  366. font-weight: 400;
  367. font-size: 14px;
  368. }
  369. }
  370. &__comment {
  371. width: 50%;
  372. vertical-align: initial !important;
  373. }
  374. @media screen and (max-width: $no-gap-breakpoint) {
  375. tbody td.optional {
  376. display: none;
  377. }
  378. }
  379. }
  380. .moved-account-widget,
  381. .memoriam-widget,
  382. .box-widget,
  383. .contact-widget,
  384. .landing-page__information.contact-widget,
  385. .directory,
  386. .page-header {
  387. @media screen and (max-width: $no-gap-breakpoint) {
  388. margin-bottom: 0;
  389. box-shadow: none;
  390. border-radius: 0;
  391. }
  392. }
  393. $maximum-width: 1235px;
  394. $fluid-breakpoint: $maximum-width + 20px;
  395. .statuses-grid {
  396. min-height: 600px;
  397. @media screen and (max-width: 640px) {
  398. width: 100% !important; // Masonry layout is unnecessary at this width
  399. }
  400. &__item {
  401. width: (960px - 20px) / 3;
  402. @media screen and (max-width: $fluid-breakpoint) {
  403. width: (940px - 20px) / 3;
  404. }
  405. @media screen and (max-width: 640px) {
  406. width: 100%;
  407. }
  408. @media screen and (max-width: $no-gap-breakpoint) {
  409. width: 100vw;
  410. }
  411. }
  412. .detailed-status {
  413. border-radius: 4px;
  414. @media screen and (max-width: $no-gap-breakpoint) {
  415. border-top: 1px solid lighten($ui-base-color, 16%);
  416. }
  417. &.compact {
  418. .detailed-status__meta {
  419. margin-top: 15px;
  420. }
  421. .status__content {
  422. font-size: 15px;
  423. line-height: 20px;
  424. .emojione {
  425. width: 20px;
  426. height: 20px;
  427. margin: -3px 0 0;
  428. }
  429. .status__content__spoiler-link {
  430. line-height: 20px;
  431. margin: 0;
  432. }
  433. }
  434. .media-gallery,
  435. .status-card,
  436. .video-player {
  437. margin-top: 15px;
  438. }
  439. }
  440. }
  441. }
  442. .notice-widget {
  443. margin-bottom: 10px;
  444. color: $darker-text-color;
  445. p {
  446. margin-bottom: 10px;
  447. &:last-child {
  448. margin-bottom: 0;
  449. }
  450. }
  451. a {
  452. font-size: 14px;
  453. line-height: 20px;
  454. }
  455. }
  456. .notice-widget,
  457. .placeholder-widget {
  458. a {
  459. text-decoration: none;
  460. font-weight: 500;
  461. color: $ui-highlight-color;
  462. &:hover,
  463. &:focus,
  464. &:active {
  465. text-decoration: underline;
  466. }
  467. }
  468. }