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.

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