widgets.scss 6.6 KB

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