accounts.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  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 0;
  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,
  153. .current,
  154. .next,
  155. .prev,
  156. .page,
  157. .gap {
  158. font-size: 14px;
  159. color: $color5;
  160. font-weight: 500;
  161. display: inline-block;
  162. padding: 6px 10px;
  163. text-decoration: none;
  164. }
  165. .current {
  166. background: $color5;
  167. border-radius: 100px;
  168. color: $color1;
  169. cursor: default;
  170. margin: 0 10px;
  171. }
  172. .gap {
  173. cursor: default;
  174. }
  175. .prev,
  176. .next {
  177. text-transform: uppercase;
  178. color: $color2;
  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($color1, 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($color8, 0.2);
  217. background: $color5;
  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 $color2;
  232. border-radius: 4px;
  233. color: $color1;
  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 $color2;
  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: $color1;
  260. text-decoration: none;
  261. &:hover {
  262. .display_name {
  263. text-decoration: underline;
  264. }
  265. }
  266. }
  267. }
  268. .display_name {
  269. font-size: 14px;
  270. display: block;
  271. }
  272. .username {
  273. color: $color4;
  274. }
  275. .note {
  276. padding: 10px;
  277. padding-top: 15px;
  278. color: $color3;
  279. word-wrap: break-word;
  280. }
  281. }
  282. }
  283. .nothing-here {
  284. color: $color3;
  285. font-size: 14px;
  286. font-weight: 500;
  287. text-align: center;
  288. padding: 15px 0;
  289. padding-bottom: 25px;
  290. cursor: default;
  291. }
  292. .account-card {
  293. padding: 14px 10px;
  294. background: $color5;
  295. border-radius: 4px;
  296. text-align: left;
  297. box-shadow: 0 0 15px rgba($color8, 0.2);
  298. .detailed-status__display-name {
  299. display: block;
  300. overflow: hidden;
  301. margin-bottom: 15px;
  302. &:last-child {
  303. margin-bottom: 0;
  304. }
  305. & > div {
  306. float: left;
  307. margin-right: 10px;
  308. width: 48px;
  309. height: 48px;
  310. }
  311. .avatar {
  312. display: block;
  313. border-radius: 4px;
  314. }
  315. .display-name {
  316. display: block;
  317. max-width: 100%;
  318. overflow: hidden;
  319. white-space: nowrap;
  320. text-overflow: ellipsis;
  321. cursor: default;
  322. strong {
  323. font-weight: 500;
  324. color: $color1;
  325. }
  326. span {
  327. font-size: 14px;
  328. color: $color3;
  329. }
  330. }
  331. &:hover {
  332. .display-name {
  333. strong {
  334. text-decoration: none;
  335. }
  336. }
  337. }
  338. }
  339. .account__header__content {
  340. font-size: 14px;
  341. color: $color1;
  342. }
  343. }