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

393 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: 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. 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. background: rgba(0,0,0,0.5);
  68. }
  69. .details-counters {
  70. display: flex;
  71. flex-direction: row;
  72. order: 0;
  73. }
  74. .counter {
  75. width: 80px;
  76. color: $color3;
  77. padding: 5px 10px 0px;
  78. margin-bottom: 10px;
  79. border-right: 1px solid $color3;
  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 $color3;
  93. opacity: 0.5;
  94. transition: all 0.8s ease;
  95. }
  96. &.active {
  97. &:after {
  98. border-bottom: 4px solid $color4;
  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 $color8;
  118. }
  119. .counter-number {
  120. font-weight: 500;
  121. font-size: 18px;
  122. color: $color5;
  123. }
  124. }
  125. .bio {
  126. flex: 1;
  127. font-size: 14px;
  128. line-height: 18px;
  129. padding: 5px 10px;
  130. color: $color2;
  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, .current, .page, .gap {
  154. font-size: 14px;
  155. color: $color5;
  156. font-weight: 500;
  157. display: inline-block;
  158. padding: 6px 10px;
  159. text-decoration: none;
  160. }
  161. .current {
  162. background: $color5;
  163. border-radius: 100px;
  164. color: $color1;
  165. cursor: default;
  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. clear: both;
  206. box-shadow: 0 0 15px rgba($color8, 0.2);
  207. background: $color5;
  208. border-radius: 0 0 4px 4px;
  209. padding: 20px 10px;
  210. padding-bottom: 10px;
  211. overflow: hidden;
  212. @media screen and (max-width: 700px) {
  213. border-radius: 0;
  214. box-shadow: none;
  215. }
  216. .account-grid-card {
  217. box-sizing: border-box;
  218. width: 335px;
  219. float: left;
  220. border: 1px solid $color2;
  221. border-radius: 4px;
  222. color: $color1;
  223. height: 160px;
  224. margin-bottom: 10px;
  225. &:nth-child(odd) {
  226. margin-right: 10px;
  227. }
  228. .account-grid-card__header {
  229. overflow: hidden;
  230. padding: 10px;
  231. border-bottom: 1px solid $color2;
  232. }
  233. .avatar {
  234. width: 60px;
  235. height: 60px;
  236. float: left;
  237. margin-right: 15px;
  238. img {
  239. display: block;
  240. width: 60px;
  241. height: 60px;
  242. border-radius: 60px;
  243. }
  244. }
  245. .name {
  246. padding-top: 10px;
  247. a {
  248. display: block;
  249. color: $color1;
  250. text-decoration: none;
  251. &:hover {
  252. .display_name {
  253. text-decoration: underline;
  254. }
  255. }
  256. }
  257. }
  258. .display_name {
  259. font-size: 14px;
  260. display: block;
  261. }
  262. .username {
  263. color: $color4;
  264. }
  265. .note {
  266. padding: 10px;
  267. padding-top: 15px;
  268. color: $color3;
  269. word-wrap: break-word;
  270. }
  271. }
  272. }
  273. .nothing-here {
  274. color: $color3;
  275. font-size: 14px;
  276. font-weight: 500;
  277. text-align: center;
  278. padding: 15px 0;
  279. padding-bottom: 25px;
  280. cursor: default;
  281. }
  282. .account-card {
  283. padding: 14px 10px;
  284. background: $color5;
  285. border-radius: 4px;
  286. text-align: left;
  287. box-shadow: 0 0 15px rgba($color8, 0.2);
  288. .detailed-status__display-name {
  289. display: block;
  290. overflow: hidden;
  291. margin-bottom: 15px;
  292. &:last-child {
  293. margin-bottom: 0;
  294. }
  295. & > div {
  296. float: left;
  297. margin-right: 10px;
  298. width: 48px;
  299. height: 48px;
  300. }
  301. .avatar {
  302. display: block;
  303. border-radius: 4px;
  304. }
  305. .display-name {
  306. display: block;
  307. max-width: 100%;
  308. overflow: hidden;
  309. white-space: nowrap;
  310. text-overflow: ellipsis;
  311. cursor: default;
  312. strong {
  313. font-weight: 500;
  314. color: $color1;
  315. }
  316. span {
  317. font-size: 14px;
  318. color: $color3;
  319. }
  320. }
  321. &:hover {
  322. .display-name {
  323. strong {
  324. text-decoration: none;
  325. }
  326. }
  327. }
  328. }
  329. .account__header__content {
  330. font-size: 14px;
  331. color: $color1;
  332. text-shadow: 0 0 2px $color8;
  333. }
  334. }