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.

402 lines
6.5 KiB

  1. @use 'sass:math';
  2. .hero-widget {
  3. margin-bottom: 10px;
  4. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  5. &__img {
  6. width: 100%;
  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. }
  83. .trends__item {
  84. padding: 10px;
  85. }
  86. }
  87. .trends-widget {
  88. h4 {
  89. color: $darker-text-color;
  90. }
  91. }
  92. .placeholder-widget {
  93. padding: 16px;
  94. border-radius: 4px;
  95. border: 2px dashed $dark-text-color;
  96. text-align: center;
  97. color: $darker-text-color;
  98. margin-bottom: 10px;
  99. }
  100. .moved-account-widget {
  101. padding: 15px;
  102. padding-bottom: 20px;
  103. border-radius: 4px;
  104. background: $ui-base-color;
  105. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  106. color: $secondary-text-color;
  107. font-weight: 400;
  108. margin-bottom: 10px;
  109. strong,
  110. a {
  111. font-weight: 500;
  112. @each $lang in $cjk-langs {
  113. &:lang(#{$lang}) {
  114. font-weight: 700;
  115. }
  116. }
  117. }
  118. a {
  119. color: inherit;
  120. text-decoration: underline;
  121. &.mention {
  122. text-decoration: none;
  123. span {
  124. text-decoration: none;
  125. }
  126. &:focus,
  127. &:hover,
  128. &:active {
  129. text-decoration: none;
  130. span {
  131. text-decoration: underline;
  132. }
  133. }
  134. }
  135. }
  136. &__message {
  137. margin-bottom: 15px;
  138. .fa {
  139. margin-right: 5px;
  140. color: $darker-text-color;
  141. }
  142. }
  143. &__card {
  144. .detailed-status__display-avatar {
  145. position: relative;
  146. cursor: pointer;
  147. }
  148. .detailed-status__display-name {
  149. margin-bottom: 0;
  150. text-decoration: none;
  151. span {
  152. font-weight: 400;
  153. }
  154. }
  155. }
  156. }
  157. .memoriam-widget {
  158. padding: 20px;
  159. border-radius: 4px;
  160. background: $base-shadow-color;
  161. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  162. font-size: 14px;
  163. color: $darker-text-color;
  164. margin-bottom: 10px;
  165. }
  166. .directory {
  167. background: $ui-base-color;
  168. border-radius: 4px;
  169. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  170. &__tag {
  171. box-sizing: border-box;
  172. margin-bottom: 10px;
  173. & > a,
  174. & > div {
  175. display: flex;
  176. align-items: center;
  177. justify-content: space-between;
  178. background: $ui-base-color;
  179. border-radius: 4px;
  180. padding: 15px;
  181. text-decoration: none;
  182. color: inherit;
  183. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  184. }
  185. & > a {
  186. &:hover,
  187. &:active,
  188. &:focus {
  189. background: lighten($ui-base-color, 8%);
  190. }
  191. }
  192. &.active > a {
  193. background: $ui-highlight-color;
  194. cursor: default;
  195. }
  196. &.disabled > div {
  197. opacity: 0.5;
  198. cursor: default;
  199. }
  200. h4 {
  201. flex: 1 1 auto;
  202. font-size: 18px;
  203. font-weight: 700;
  204. color: $primary-text-color;
  205. white-space: nowrap;
  206. overflow: hidden;
  207. text-overflow: ellipsis;
  208. .fa {
  209. color: $darker-text-color;
  210. }
  211. small {
  212. display: block;
  213. font-weight: 400;
  214. font-size: 15px;
  215. margin-top: 8px;
  216. color: $darker-text-color;
  217. }
  218. }
  219. &.active h4 {
  220. &,
  221. .fa,
  222. small {
  223. color: $primary-text-color;
  224. }
  225. }
  226. .avatar-stack {
  227. flex: 0 0 auto;
  228. width: (36px + 4px) * 3;
  229. }
  230. &.active .avatar-stack .account__avatar {
  231. border-color: $ui-highlight-color;
  232. }
  233. }
  234. }
  235. .accounts-table {
  236. width: 100%;
  237. .account {
  238. padding: 0;
  239. border: 0;
  240. }
  241. strong {
  242. font-weight: 700;
  243. }
  244. thead th {
  245. text-align: center;
  246. text-transform: uppercase;
  247. color: $darker-text-color;
  248. font-weight: 700;
  249. padding: 10px;
  250. &:first-child {
  251. text-align: left;
  252. }
  253. }
  254. tbody td {
  255. padding: 15px 0;
  256. vertical-align: middle;
  257. border-bottom: 1px solid lighten($ui-base-color, 8%);
  258. }
  259. tbody tr:last-child td {
  260. border-bottom: 0;
  261. }
  262. &__count {
  263. width: 120px;
  264. text-align: center;
  265. font-size: 15px;
  266. font-weight: 500;
  267. color: $primary-text-color;
  268. small {
  269. display: block;
  270. color: $darker-text-color;
  271. font-weight: 400;
  272. font-size: 14px;
  273. }
  274. }
  275. tbody td.accounts-table__extra {
  276. width: 120px;
  277. text-align: right;
  278. color: $darker-text-color;
  279. padding-right: 16px;
  280. a {
  281. text-decoration: none;
  282. color: inherit;
  283. &:focus,
  284. &:hover,
  285. &:active {
  286. text-decoration: underline;
  287. }
  288. }
  289. }
  290. &__comment {
  291. width: 50%;
  292. vertical-align: initial !important;
  293. }
  294. &__interrelationships {
  295. width: 21px;
  296. }
  297. .fa {
  298. font-size: 16px;
  299. &.active {
  300. color: $highlight-text-color;
  301. }
  302. &.passive {
  303. color: $passive-text-color;
  304. }
  305. &.active.passive {
  306. color: $active-passive-text-color;
  307. }
  308. }
  309. @media screen and (max-width: $no-gap-breakpoint) {
  310. tbody td.optional {
  311. display: none;
  312. }
  313. }
  314. }
  315. .moved-account-widget,
  316. .memoriam-widget,
  317. .directory {
  318. @media screen and (max-width: $no-gap-breakpoint) {
  319. margin-bottom: 0;
  320. box-shadow: none;
  321. border-radius: 0;
  322. }
  323. }
  324. .placeholder-widget {
  325. a {
  326. text-decoration: none;
  327. font-weight: 500;
  328. color: $ui-highlight-color;
  329. &:hover,
  330. &:focus,
  331. &:active {
  332. text-decoration: underline;
  333. }
  334. }
  335. }