闭社主体 forked from https://github.com/tootsuite/mastodon
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.

405 lines
6.6 KiB

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