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.

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