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.

441 lines
7.3 KiB

  1. .card {
  2. display: flex;
  3. background: $ui-base-color;
  4. background-size: cover;
  5. background-position: center;
  6. border-radius: 4px 4px 0 0;
  7. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  8. overflow: hidden;
  9. @media screen and (max-width: 700px) {
  10. border-radius: 0;
  11. box-shadow: none;
  12. }
  13. .details {
  14. position: relative;
  15. padding: 60px 0 0;
  16. text-align: center;
  17. flex: auto;
  18. &::after {
  19. background: linear-gradient(rgba($base-shadow-color, 0.5), rgba($base-shadow-color, 0.8));
  20. display: block;
  21. content: "";
  22. position: absolute;
  23. left: 0;
  24. top: 0;
  25. width: 100%;
  26. height: 100%;
  27. z-index: 1;
  28. }
  29. }
  30. &.compact {
  31. padding: 30px 0;
  32. border-radius: 4px;
  33. .avatar {
  34. margin-bottom: 0;
  35. img {
  36. object-fit: cover;
  37. }
  38. }
  39. }
  40. .name {
  41. display: block;
  42. position: relative;
  43. font-size: 20px;
  44. line-height: 18px * 1.5;
  45. color: $primary-text-color;
  46. font-weight: 500;
  47. text-align: center;
  48. text-shadow: 0 0 2px $base-shadow-color;
  49. z-index: 2;
  50. small {
  51. display: block;
  52. font-size: 14px;
  53. color: $ui-highlight-color;
  54. font-weight: 400;
  55. }
  56. }
  57. .avatar {
  58. position: relative;
  59. @include avatar-size(120px);
  60. margin: 0 auto;
  61. margin-bottom: 15px;
  62. z-index: 2;
  63. img {
  64. @include avatar-radius();
  65. @include avatar-size(120px);
  66. display: block;
  67. }
  68. }
  69. .controls {
  70. position: absolute;
  71. top: 10px;
  72. right: 10px;
  73. z-index: 2;
  74. }
  75. .details-counters {
  76. display: inline-flex;
  77. position: relative;
  78. flex-direction: row;
  79. margin: 15px 0;
  80. z-index: 2;
  81. }
  82. .counter {
  83. width: 80px;
  84. color: $ui-primary-color;
  85. padding: 5px 10px 0;
  86. cursor: default;
  87. position: relative;
  88. & + .counter {
  89. border-left: 1px solid $ui-primary-color;
  90. }
  91. & > * {
  92. opacity: .7;
  93. transition: opacity .3s ease;
  94. }
  95. &.active > *, &:hover > * {
  96. opacity: 1;
  97. }
  98. a {
  99. display: block;
  100. }
  101. a {
  102. text-decoration: none;
  103. color: inherit;
  104. }
  105. .counter-label {
  106. font-size: 12px;
  107. text-transform: uppercase;
  108. display: block;
  109. margin-bottom: 5px;
  110. text-shadow: 0 0 2px $base-shadow-color;
  111. }
  112. .counter-number {
  113. font-weight: 500;
  114. font-size: 18px;
  115. color: $primary-text-color;
  116. }
  117. }
  118. .bio {
  119. position: relative;
  120. font-size: 14px;
  121. line-height: 18px;
  122. margin: 15px 0;
  123. padding: 5px 10px;
  124. color: $ui-secondary-color;
  125. z-index: 2;
  126. }
  127. .metadata {
  128. position: relative;
  129. min-width: 180px;
  130. max-width: 40%;
  131. background: rgba($base-shadow-color, 0.8);
  132. color: $primary-text-color;
  133. text-align: left;
  134. overflow-y: auto;
  135. white-space: pre-wrap;
  136. z-index: 3;
  137. .metadata-item {
  138. border-bottom: 1px $ui-primary-color solid;
  139. padding: 15px 10px;
  140. font-size: 18px;
  141. line-height: 24px;
  142. overflow: hidden;
  143. text-overflow: ellipsis;
  144. a {
  145. color: $ui-highlight-color;
  146. text-decoration: none;
  147. &:hover {
  148. text-decoration: underline;
  149. }
  150. }
  151. b {
  152. display: block;
  153. font-size: 12px;
  154. line-height: 16px;
  155. text-transform: uppercase;
  156. color: $ui-primary-color;
  157. a {
  158. color: $ui-primary-color;
  159. }
  160. }
  161. }
  162. }
  163. }
  164. @media screen and (max-width: 500px) {
  165. .card {
  166. display: block;
  167. .metadata {
  168. max-width: none;
  169. background: $base-shadow-color;
  170. border-top: 1px $ui-primary-color solid;
  171. .metadata-item {
  172. padding: 15px 20px;
  173. }
  174. }
  175. }
  176. }
  177. .pagination {
  178. padding: 30px 0;
  179. text-align: center;
  180. overflow: hidden;
  181. a,
  182. .current,
  183. .next,
  184. .prev,
  185. .page,
  186. .gap {
  187. font-size: 14px;
  188. color: $primary-text-color;
  189. font-weight: 500;
  190. display: inline-block;
  191. padding: 6px 10px;
  192. text-decoration: none;
  193. }
  194. .current {
  195. background: $simple-background-color;
  196. border-radius: 100px;
  197. color: $ui-base-color;
  198. cursor: default;
  199. margin: 0 10px;
  200. }
  201. .gap {
  202. cursor: default;
  203. }
  204. .prev,
  205. .next {
  206. text-transform: uppercase;
  207. color: $ui-secondary-color;
  208. }
  209. .prev {
  210. float: left;
  211. padding-left: 0;
  212. .fa {
  213. display: inline-block;
  214. margin-right: 5px;
  215. }
  216. }
  217. .next {
  218. float: right;
  219. padding-right: 0;
  220. .fa {
  221. display: inline-block;
  222. margin-left: 5px;
  223. }
  224. }
  225. .disabled {
  226. cursor: default;
  227. color: lighten($ui-base-color, 10%);
  228. }
  229. @media screen and (max-width: 360px) {
  230. padding: 30px 20px;
  231. a,
  232. .current,
  233. .next,
  234. .prev,
  235. .gap {
  236. display: none;
  237. }
  238. .next,
  239. .prev {
  240. display: inline-block;
  241. }
  242. }
  243. }
  244. .accounts-grid {
  245. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  246. background: $simple-background-color;
  247. border-radius: 0 0 4px 4px;
  248. padding: 20px 10px;
  249. padding-bottom: 10px;
  250. overflow: hidden;
  251. display: flex;
  252. flex-wrap: wrap;
  253. @media screen and (max-width: 700px) {
  254. border-radius: 0;
  255. box-shadow: none;
  256. }
  257. .account-grid-card {
  258. box-sizing: border-box;
  259. width: 335px;
  260. border: 1px solid $ui-secondary-color;
  261. border-radius: 4px;
  262. color: $ui-base-color;
  263. margin-bottom: 10px;
  264. &:nth-child(odd) {
  265. margin-right: 10px;
  266. }
  267. .account-grid-card__header {
  268. overflow: hidden;
  269. padding: 10px;
  270. border-bottom: 1px solid $ui-secondary-color;
  271. }
  272. .avatar {
  273. @include avatar-size(60px);
  274. float: left;
  275. margin-right: 15px;
  276. img {
  277. @include avatar-radius();
  278. @include avatar-size(60px);
  279. display: block;
  280. }
  281. }
  282. .name {
  283. padding-top: 10px;
  284. a {
  285. display: block;
  286. color: $ui-base-color;
  287. text-decoration: none;
  288. text-overflow: ellipsis;
  289. overflow: hidden;
  290. &:hover {
  291. .display_name {
  292. text-decoration: underline;
  293. }
  294. }
  295. }
  296. }
  297. .display_name {
  298. font-size: 14px;
  299. display: block;
  300. }
  301. .username {
  302. color: $ui-highlight-color;
  303. }
  304. .note {
  305. padding: 10px;
  306. padding-top: 15px;
  307. color: $ui-primary-color;
  308. word-wrap: break-word;
  309. }
  310. }
  311. }
  312. .nothing-here {
  313. color: $ui-primary-color;
  314. font-size: 14px;
  315. font-weight: 500;
  316. text-align: center;
  317. padding: 15px 0;
  318. padding-bottom: 25px;
  319. cursor: default;
  320. }
  321. .account-card {
  322. padding: 14px 10px;
  323. background: $simple-background-color;
  324. border-radius: 4px;
  325. text-align: left;
  326. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  327. .detailed-status__display-name {
  328. display: block;
  329. overflow: hidden;
  330. margin-bottom: 15px;
  331. &:last-child {
  332. margin-bottom: 0;
  333. }
  334. & > div {
  335. @include avatar-size(48px);
  336. float: left;
  337. margin-right: 10px;
  338. }
  339. .avatar {
  340. @include avatar-radius();
  341. display: block;
  342. }
  343. .display-name {
  344. display: block;
  345. max-width: 100%;
  346. overflow: hidden;
  347. white-space: nowrap;
  348. text-overflow: ellipsis;
  349. cursor: default;
  350. strong {
  351. font-weight: 500;
  352. color: $ui-base-color;
  353. }
  354. span {
  355. font-size: 14px;
  356. color: $ui-primary-color;
  357. }
  358. }
  359. &:hover {
  360. .display-name {
  361. strong {
  362. text-decoration: none;
  363. }
  364. }
  365. }
  366. }
  367. .account__header__content {
  368. font-size: 14px;
  369. color: $ui-base-color;
  370. }
  371. }