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.

618 lines
10 KiB

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