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.

323 lines
5.5 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. object-fit: cover;
  62. }
  63. }
  64. .display-name {
  65. margin-left: 15px;
  66. text-align: left;
  67. strong {
  68. font-size: 15px;
  69. color: $primary-text-color;
  70. font-weight: 500;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. }
  74. span {
  75. display: block;
  76. font-size: 14px;
  77. color: $darker-text-color;
  78. font-weight: 400;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. }
  82. }
  83. }
  84. }
  85. .pagination {
  86. padding: 30px 0;
  87. text-align: center;
  88. overflow: hidden;
  89. a,
  90. .current,
  91. .newer,
  92. .older,
  93. .page,
  94. .gap {
  95. font-size: 14px;
  96. color: $primary-text-color;
  97. font-weight: 500;
  98. display: inline-block;
  99. padding: 6px 10px;
  100. text-decoration: none;
  101. }
  102. .current {
  103. background: $simple-background-color;
  104. border-radius: 100px;
  105. color: $inverted-text-color;
  106. cursor: default;
  107. margin: 0 10px;
  108. }
  109. .gap {
  110. cursor: default;
  111. }
  112. .older,
  113. .newer {
  114. text-transform: uppercase;
  115. color: $secondary-text-color;
  116. }
  117. .older {
  118. float: left;
  119. padding-left: 0;
  120. .fa {
  121. display: inline-block;
  122. margin-right: 5px;
  123. }
  124. }
  125. .newer {
  126. float: right;
  127. padding-right: 0;
  128. .fa {
  129. display: inline-block;
  130. margin-left: 5px;
  131. }
  132. }
  133. .disabled {
  134. cursor: default;
  135. color: lighten($inverted-text-color, 10%);
  136. }
  137. @media screen and (max-width: 700px) {
  138. padding: 30px 20px;
  139. .page {
  140. display: none;
  141. }
  142. .newer,
  143. .older {
  144. display: inline-block;
  145. }
  146. }
  147. }
  148. .nothing-here {
  149. background: $ui-base-color;
  150. box-shadow: 0 0 15px rgba($base-shadow-color, 0.2);
  151. color: $light-text-color;
  152. font-size: 14px;
  153. font-weight: 500;
  154. text-align: center;
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158. cursor: default;
  159. border-radius: 4px;
  160. padding: 20px;
  161. min-height: 30vh;
  162. &--under-tabs {
  163. border-radius: 0 0 4px 4px;
  164. }
  165. &--flexible {
  166. box-sizing: border-box;
  167. min-height: 100%;
  168. }
  169. }
  170. .account-role,
  171. .simple_form .recommended {
  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. max-width: 100vw;
  195. padding: 0;
  196. margin: 15px -15px -15px;
  197. border: 0 none;
  198. border-top: 1px solid lighten($ui-base-color, 12%);
  199. border-bottom: 1px solid lighten($ui-base-color, 12%);
  200. font-size: 14px;
  201. line-height: 20px;
  202. dl {
  203. display: flex;
  204. border-bottom: 1px solid lighten($ui-base-color, 12%);
  205. }
  206. dt,
  207. dd {
  208. box-sizing: border-box;
  209. padding: 14px;
  210. text-align: center;
  211. max-height: 48px;
  212. overflow: hidden;
  213. white-space: nowrap;
  214. text-overflow: ellipsis;
  215. }
  216. dt {
  217. font-weight: 500;
  218. width: 120px;
  219. flex: 0 0 auto;
  220. color: $secondary-text-color;
  221. background: rgba(darken($ui-base-color, 8%), 0.5);
  222. }
  223. dd {
  224. flex: 1 1 auto;
  225. color: $darker-text-color;
  226. }
  227. a {
  228. color: $highlight-text-color;
  229. text-decoration: none;
  230. &:hover,
  231. &:focus,
  232. &:active {
  233. text-decoration: underline;
  234. }
  235. }
  236. .verified {
  237. border: 1px solid rgba($valid-value-color, 0.5);
  238. background: rgba($valid-value-color, 0.25);
  239. a {
  240. color: $valid-value-color;
  241. font-weight: 500;
  242. }
  243. &__mark {
  244. color: $valid-value-color;
  245. }
  246. }
  247. dl:last-child {
  248. border-bottom: 0;
  249. }
  250. }
  251. .directory__tag .trends__item__current {
  252. width: auto;
  253. }
  254. .pending-account {
  255. &__header {
  256. color: $darker-text-color;
  257. a {
  258. color: $ui-secondary-color;
  259. text-decoration: none;
  260. &:hover,
  261. &:active,
  262. &:focus {
  263. text-decoration: underline;
  264. }
  265. }
  266. strong {
  267. color: $primary-text-color;
  268. font-weight: 700;
  269. }
  270. }
  271. &__body {
  272. margin-top: 10px;
  273. }
  274. }