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

388 lines
6.1 KiB

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