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.

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