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

391 lines
6.2 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: linear-gradient(rgba($color8, 0.5), rgba($color8, 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: $color5;
  30. font-weight: 500;
  31. text-align: center;
  32. position: relative;
  33. z-index: 2;
  34. text-shadow: 0 0 2px $color8;
  35. small {
  36. display: block;
  37. font-size: 14px;
  38. color: $color4;
  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: $color3;
  76. padding: 5px 10px 0px;
  77. margin-bottom: 10px;
  78. border-right: 1px solid $color3;
  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 $color3;
  92. opacity: 0.5;
  93. transition: all 0.8s ease;
  94. }
  95. &.active {
  96. &:after {
  97. border-bottom: 4px solid $color4;
  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 $color8;
  117. }
  118. .counter-number {
  119. font-weight: 500;
  120. font-size: 18px;
  121. color: $color5;
  122. }
  123. }
  124. .bio {
  125. flex: 1;
  126. font-size: 14px;
  127. line-height: 18px;
  128. padding: 5px 10px;
  129. color: $color2;
  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, .current, .next, .prev, .page, .gap {
  153. font-size: 14px;
  154. color: $color5;
  155. font-weight: 500;
  156. display: inline-block;
  157. padding: 6px 10px;
  158. text-decoration: none;
  159. }
  160. .current {
  161. background: $color5;
  162. border-radius: 100px;
  163. color: $color1;
  164. cursor: default;
  165. margin: 0 10px;
  166. }
  167. .gap {
  168. cursor: default;
  169. }
  170. .prev, .next {
  171. text-transform: uppercase;
  172. color: $color2;
  173. }
  174. .prev {
  175. float: left;
  176. padding-left: 0;
  177. .fa {
  178. display: inline-block;
  179. margin-right: 5px;
  180. }
  181. }
  182. .next {
  183. float: right;
  184. padding-right: 0;
  185. .fa {
  186. display: inline-block;
  187. margin-left: 5px;
  188. }
  189. }
  190. .disabled {
  191. cursor: default;
  192. color: lighten($color1, 10%);
  193. }
  194. @media screen and (max-width: 360px) {
  195. padding: 30px 20px;
  196. a, .current, .next, .prev, .gap {
  197. display: none;
  198. }
  199. .next, .prev {
  200. display: inline-block;
  201. }
  202. }
  203. }
  204. .accounts-grid {
  205. box-shadow: 0 0 15px rgba($color8, 0.2);
  206. background: $color5;
  207. border-radius: 0 0 4px 4px;
  208. padding: 20px 10px;
  209. padding-bottom: 10px;
  210. overflow: hidden;
  211. display: flex;
  212. flex-wrap: wrap;
  213. @media screen and (max-width: 700px) {
  214. border-radius: 0;
  215. box-shadow: none;
  216. }
  217. .account-grid-card {
  218. box-sizing: border-box;
  219. width: 335px;
  220. border: 1px solid $color2;
  221. border-radius: 4px;
  222. color: $color1;
  223. margin-bottom: 10px;
  224. &:nth-child(odd) {
  225. margin-right: 10px;
  226. }
  227. .account-grid-card__header {
  228. overflow: hidden;
  229. padding: 10px;
  230. border-bottom: 1px solid $color2;
  231. }
  232. .avatar {
  233. width: 60px;
  234. height: 60px;
  235. float: left;
  236. margin-right: 15px;
  237. img {
  238. display: block;
  239. width: 60px;
  240. height: 60px;
  241. border-radius: 60px;
  242. }
  243. }
  244. .name {
  245. padding-top: 10px;
  246. a {
  247. display: block;
  248. color: $color1;
  249. text-decoration: none;
  250. &:hover {
  251. .display_name {
  252. text-decoration: underline;
  253. }
  254. }
  255. }
  256. }
  257. .display_name {
  258. font-size: 14px;
  259. display: block;
  260. }
  261. .username {
  262. color: $color4;
  263. }
  264. .note {
  265. padding: 10px;
  266. padding-top: 15px;
  267. color: $color3;
  268. word-wrap: break-word;
  269. }
  270. }
  271. }
  272. .nothing-here {
  273. color: $color3;
  274. font-size: 14px;
  275. font-weight: 500;
  276. text-align: center;
  277. padding: 15px 0;
  278. padding-bottom: 25px;
  279. cursor: default;
  280. }
  281. .account-card {
  282. padding: 14px 10px;
  283. background: $color5;
  284. border-radius: 4px;
  285. text-align: left;
  286. box-shadow: 0 0 15px rgba($color8, 0.2);
  287. .detailed-status__display-name {
  288. display: block;
  289. overflow: hidden;
  290. margin-bottom: 15px;
  291. &:last-child {
  292. margin-bottom: 0;
  293. }
  294. & > div {
  295. float: left;
  296. margin-right: 10px;
  297. width: 48px;
  298. height: 48px;
  299. }
  300. .avatar {
  301. display: block;
  302. border-radius: 4px;
  303. }
  304. .display-name {
  305. display: block;
  306. max-width: 100%;
  307. overflow: hidden;
  308. white-space: nowrap;
  309. text-overflow: ellipsis;
  310. cursor: default;
  311. strong {
  312. font-weight: 500;
  313. color: $color1;
  314. }
  315. span {
  316. font-size: 14px;
  317. color: $color3;
  318. }
  319. }
  320. &:hover {
  321. .display-name {
  322. strong {
  323. text-decoration: none;
  324. }
  325. }
  326. }
  327. }
  328. .account__header__content {
  329. font-size: 14px;
  330. color: $color1;
  331. }
  332. }