The code powering m.abunchtell.com https://m.abunchtell.com
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. 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. }
  250. .directory__tag .trends__item__current {
  251. width: auto;
  252. }
  253. .pending-account {
  254. &__header {
  255. color: $darker-text-color;
  256. a {
  257. color: $ui-secondary-color;
  258. text-decoration: none;
  259. &:hover,
  260. &:active,
  261. &:focus {
  262. text-decoration: underline;
  263. }
  264. }
  265. strong {
  266. color: $primary-text-color;
  267. font-weight: 700;
  268. }
  269. }
  270. &__body {
  271. margin-top: 10px;
  272. }
  273. }