闭社主体 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.

404 lines
6.6 KiB

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