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.

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