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.

285 lines
5.0 KiB

  1. .card {
  2. & > a {
  3. display: block;
  4. text-decoration: none;
  5. color: inherit;
  6. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  7. @media screen and (max-width: $no-gap-breakpoint) {
  8. box-shadow: none;
  9. }
  10. &:hover,
  11. &:active,
  12. &:focus {
  13. .card__bar {
  14. background: lighten($ui-base-color, 8%);
  15. }
  16. }
  17. }
  18. &__img {
  19. height: 130px;
  20. position: relative;
  21. background: darken($ui-base-color, 12%);
  22. border-radius: 4px 4px 0 0;
  23. img {
  24. display: block;
  25. width: 100%;
  26. height: 100%;
  27. margin: 0;
  28. object-fit: cover;
  29. border-radius: 4px 4px 0 0;
  30. }
  31. @media screen and (max-width: 600px) {
  32. height: 200px;
  33. }
  34. @media screen and (max-width: $no-gap-breakpoint) {
  35. display: none;
  36. }
  37. }
  38. &__bar {
  39. position: relative;
  40. padding: 15px;
  41. display: flex;
  42. justify-content: flex-start;
  43. align-items: center;
  44. background: lighten($ui-base-color, 4%);
  45. border-radius: 0 0 4px 4px;
  46. @media screen and (max-width: $no-gap-breakpoint) {
  47. border-radius: 0;
  48. }
  49. .avatar {
  50. flex: 0 0 auto;
  51. width: 48px;
  52. height: 48px;
  53. padding-top: 2px;
  54. img {
  55. width: 100%;
  56. height: 100%;
  57. display: block;
  58. margin: 0;
  59. border-radius: 4px;
  60. background: darken($ui-base-color, 8%);
  61. }
  62. }
  63. .display-name {
  64. margin-left: 15px;
  65. text-align: left;
  66. strong {
  67. font-size: 15px;
  68. color: $primary-text-color;
  69. font-weight: 500;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. }
  73. span {
  74. display: block;
  75. font-size: 14px;
  76. color: $darker-text-color;
  77. font-weight: 400;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. }
  81. }
  82. }
  83. }
  84. .pagination {
  85. padding: 30px 0;
  86. text-align: center;
  87. overflow: hidden;
  88. a,
  89. .current,
  90. .newer,
  91. .older,
  92. .page,
  93. .gap {
  94. font-size: 14px;
  95. color: $primary-text-color;
  96. font-weight: 500;
  97. display: inline-block;
  98. padding: 6px 10px;
  99. text-decoration: none;
  100. }
  101. .current {
  102. background: $simple-background-color;
  103. border-radius: 100px;
  104. color: $inverted-text-color;
  105. cursor: default;
  106. margin: 0 10px;
  107. }
  108. .gap {
  109. cursor: default;
  110. }
  111. .older,
  112. .newer {
  113. text-transform: uppercase;
  114. color: $secondary-text-color;
  115. }
  116. .older {
  117. float: left;
  118. padding-left: 0;
  119. .fa {
  120. display: inline-block;
  121. margin-right: 5px;
  122. }
  123. }
  124. .newer {
  125. float: right;
  126. padding-right: 0;
  127. .fa {
  128. display: inline-block;
  129. margin-left: 5px;
  130. }
  131. }
  132. .disabled {
  133. cursor: default;
  134. color: lighten($inverted-text-color, 10%);
  135. }
  136. @media screen and (max-width: 700px) {
  137. padding: 30px 20px;
  138. .page {
  139. display: none;
  140. }
  141. .newer,
  142. .older {
  143. display: inline-block;
  144. }
  145. }
  146. }
  147. .nothing-here {
  148. background: $ui-base-color;
  149. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  150. color: $light-text-color;
  151. font-size: 14px;
  152. font-weight: 500;
  153. text-align: center;
  154. display: flex;
  155. justify-content: center;
  156. align-items: center;
  157. cursor: default;
  158. border-radius: 4px;
  159. padding: 20px;
  160. min-height: 30vh;
  161. &--under-tabs {
  162. border-radius: 0 0 4px 4px;
  163. }
  164. }
  165. .account-role {
  166. display: inline-block;
  167. padding: 4px 6px;
  168. cursor: default;
  169. border-radius: 3px;
  170. font-size: 12px;
  171. line-height: 12px;
  172. font-weight: 500;
  173. color: $ui-secondary-color;
  174. background-color: rgba($ui-secondary-color, 0.1);
  175. border: 1px solid rgba($ui-secondary-color, 0.5);
  176. &.moderator {
  177. color: $success-green;
  178. background-color: rgba($success-green, 0.1);
  179. border-color: rgba($success-green, 0.5);
  180. }
  181. &.admin {
  182. color: lighten($error-red, 12%);
  183. background-color: rgba(lighten($error-red, 12%), 0.1);
  184. border-color: rgba(lighten($error-red, 12%), 0.5);
  185. }
  186. }
  187. .account__header__fields {
  188. padding: 0;
  189. margin: 15px -15px -15px;
  190. border: 0 none;
  191. border-top: 1px solid lighten($ui-base-color, 12%);
  192. border-bottom: 1px solid lighten($ui-base-color, 12%);
  193. font-size: 14px;
  194. line-height: 20px;
  195. dl {
  196. display: flex;
  197. border-bottom: 1px solid lighten($ui-base-color, 12%);
  198. }
  199. dt,
  200. dd {
  201. box-sizing: border-box;
  202. padding: 14px;
  203. text-align: center;
  204. max-height: 48px;
  205. overflow: hidden;
  206. white-space: nowrap;
  207. text-overflow: ellipsis;
  208. }
  209. dt {
  210. font-weight: 500;
  211. width: 120px;
  212. flex: 0 0 auto;
  213. color: $secondary-text-color;
  214. background: rgba(darken($ui-base-color, 8%), 0.5);
  215. }
  216. dd {
  217. flex: 1 1 auto;
  218. color: $darker-text-color;
  219. }
  220. a {
  221. color: $highlight-text-color;
  222. text-decoration: none;
  223. &:hover,
  224. &:focus,
  225. &:active {
  226. text-decoration: underline;
  227. }
  228. }
  229. .verified {
  230. border: 1px solid rgba($valid-value-color, 0.5);
  231. background: rgba($valid-value-color, 0.25);
  232. a {
  233. color: $valid-value-color;
  234. font-weight: 500;
  235. }
  236. &__mark {
  237. color: $valid-value-color;
  238. }
  239. }
  240. dl:last-child {
  241. border-bottom: 0;
  242. }
  243. }