card.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. @import '_variables';
  2. @import '_mixins';
  3. .profile-card {
  4. flex-wrap: wrap;
  5. background: var(--bg_panel);
  6. padding: 12px;
  7. display: flex;
  8. }
  9. .profile-card-info {
  10. @include breakable;
  11. width: 100%;
  12. }
  13. .profile-card-tabs-name {
  14. @include breakable;
  15. max-width: 100%;
  16. }
  17. .profile-card-username {
  18. @include breakable;
  19. color: var(--fg_color);
  20. font-size: 14px;
  21. display: block;
  22. }
  23. .profile-card-fullname {
  24. @include breakable;
  25. color: var(--fg_color);
  26. font-size: 16px;
  27. font-weight: bold;
  28. text-shadow: none;
  29. max-width: 100%;
  30. }
  31. .profile-card-avatar {
  32. display: inline-block;
  33. position: relative;
  34. width: 100%;
  35. margin-right: 4px;
  36. margin-bottom: 6px;
  37. &:after {
  38. content: '';
  39. display: block;
  40. margin-top: 100%;
  41. }
  42. img {
  43. box-sizing: border-box;
  44. position: absolute;
  45. width: 100%;
  46. height: 100%;
  47. border: 4px solid var(--darker_grey);
  48. background: var(--bg_panel);
  49. }
  50. }
  51. .profile-card-extra {
  52. display: contents;
  53. flex: 100%;
  54. margin-top: 7px;
  55. .profile-bio {
  56. @include breakable;
  57. width: 100%;
  58. margin: 4px -6px 6px 0;
  59. white-space: pre-wrap;
  60. p {
  61. margin: 0;
  62. }
  63. }
  64. .profile-joindate, .profile-location, profile-website {
  65. color: var(--fg_faded);
  66. margin: 2px 0;
  67. width: 100%;
  68. }
  69. }
  70. .profile-card-extra-links {
  71. margin-top: 8px;
  72. font-size: 14px;
  73. width: 100%;
  74. }
  75. .profile-statlist {
  76. display: flex;
  77. flex-wrap: wrap;
  78. padding: 0;
  79. width: 100%;
  80. justify-content: space-between;
  81. li {
  82. display: table-cell;
  83. text-align: center;
  84. }
  85. }
  86. .profile-stat-header {
  87. font-weight: bold;
  88. color: var(--profile_stat);
  89. }
  90. .profile-stat-num {
  91. display: block;
  92. color: var(--profile_stat);
  93. }
  94. @media(max-width: 700px) {
  95. .profile-card-info {
  96. display: flex;
  97. }
  98. .profile-card-tabs-name {
  99. @include breakable;
  100. }
  101. .profile-card-avatar {
  102. width: 80px;
  103. height: 80px;
  104. img {
  105. border-width: 2px;
  106. width: unset;
  107. }
  108. }
  109. }