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.

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