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

389 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. word-wrap: break-word;
  267. }
  268. }
  269. }
  270. .nothing-here {
  271. color: $color3;
  272. font-size: 14px;
  273. font-weight: 500;
  274. text-align: center;
  275. padding: 15px 0;
  276. padding-bottom: 25px;
  277. cursor: default;
  278. }
  279. .account-card {
  280. padding: 14px 10px;
  281. background: $color5;
  282. border-radius: 4px;
  283. text-align: left;
  284. box-shadow: 0 0 15px rgba($color8, 0.2);
  285. .detailed-status__display-name {
  286. display: block;
  287. overflow: hidden;
  288. margin-bottom: 15px;
  289. &:last-child {
  290. margin-bottom: 0;
  291. }
  292. & > div {
  293. float: left;
  294. margin-right: 10px;
  295. width: 48px;
  296. height: 48px;
  297. }
  298. .avatar {
  299. display: block;
  300. border-radius: 4px;
  301. }
  302. .display-name {
  303. display: block;
  304. max-width: 100%;
  305. overflow: hidden;
  306. white-space: nowrap;
  307. text-overflow: ellipsis;
  308. cursor: default;
  309. strong {
  310. font-weight: 500;
  311. color: $color1;
  312. }
  313. span {
  314. font-size: 14px;
  315. color: $color3;
  316. }
  317. }
  318. &:hover {
  319. .display-name {
  320. strong {
  321. text-decoration: none;
  322. }
  323. }
  324. }
  325. }
  326. .account__header__content {
  327. font-size: 14px;
  328. color: $color1;
  329. }
  330. }