Vendor app Client: Maiora
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

272 行
4.2 KiB

  1. .search-input {
  2. display: flex;
  3. width: 35%;
  4. height: 30px;
  5. border-radius: 20px;
  6. background-color: white;
  7. color: var(--brand-blue);
  8. align-items: center;
  9. justify-content: space-between;
  10. overflow: hidden;
  11. @media screen and (max-width: 1023px) {
  12. width: 100%;
  13. }
  14. input {
  15. border: 0;
  16. font-size: 12px;
  17. padding-left: 10px;
  18. font-weight: 500;
  19. color: var(--dark-grey);
  20. flex-grow: 1;
  21. letter-spacing: 1px;
  22. height: 100%;
  23. &::placeholder {
  24. color: var(--grey);
  25. }
  26. }
  27. button {
  28. border-radius: 50%;
  29. width: 30px;
  30. height: 30px;
  31. color: var(--brand-blue);
  32. font-size: 20px;
  33. border: 1px solid var(--brand-blue);
  34. background-color: white;
  35. transition: background-color 0.3s, color 0.3s;
  36. &:hover {
  37. background-color: var(--brand-blue);
  38. color: white;
  39. }
  40. }
  41. }
  42. .back-button {
  43. display: none;
  44. @media screen and (max-width: 1023px) {
  45. display: block;
  46. background-color: var(--brand-blue);
  47. width: 100px;
  48. padding: 0;
  49. }
  50. }
  51. .container {
  52. display: flex;
  53. width: 95%;
  54. margin: 30px auto;
  55. letter-spacing: 1px;
  56. @media screen and (max-width: 1023px) {
  57. width: 90%;
  58. }
  59. }
  60. .topic-list {
  61. width: 25%;
  62. height: calc(100vh - 200px);
  63. overflow: auto;
  64. margin: 0 auto;
  65. list-style: none;
  66. &.active {
  67. @media screen and (max-width: 1023px) {
  68. display: block;
  69. }
  70. }
  71. @media screen and (max-width: 1023px) {
  72. height: 100%;
  73. width: 100%;
  74. display: none;
  75. }
  76. &:hover {
  77. &::-webkit-scrollbar {
  78. display: block;
  79. @media screen and (max-width: 1023px) {
  80. display: none;
  81. }
  82. }
  83. }
  84. &::-webkit-scrollbar {
  85. width: 8px;
  86. display: none;
  87. }
  88. /* Track */
  89. &::-webkit-scrollbar-track {
  90. background-color: white;
  91. }
  92. /* Handle */
  93. &::-webkit-scrollbar-thumb {
  94. background-color: rgba(black, 0.2);
  95. }
  96. /* Handle on hover */
  97. &::-webkit-scrollbar-thumb:hover {
  98. background-color: rgba(black, 0.5);
  99. }
  100. li {
  101. background-color: white;
  102. margin-bottom: 15px;
  103. border-radius: 10px;
  104. padding: 15px;
  105. cursor: pointer;
  106. &.active {
  107. background-color: var(--brand-blue);
  108. box-shadow: 0px 0px 5px #cecece;
  109. header, p {
  110. color: white;
  111. }
  112. }
  113. header {
  114. margin-bottom: 5px;
  115. font-size: 14px;
  116. color: var(--dark-grey);
  117. font-weight: 500;
  118. }
  119. p {
  120. font-size: 12px;
  121. color: var(--grey);
  122. line-height: 1.5;
  123. }
  124. }
  125. }
  126. .topic-detail {
  127. width: 70%;
  128. margin: 0 auto;
  129. list-style: none;
  130. background-color: white;
  131. border-radius: 10px;
  132. height: calc(100vh - 200px);
  133. overflow: auto;
  134. padding: 20px 25px;
  135. @media screen and (max-width: 1023px) {
  136. width: 100%;
  137. display: none;
  138. }
  139. &.active {
  140. @media screen and (max-width: 1023px) {
  141. display: block;
  142. height: auto;
  143. }
  144. }
  145. &:hover {
  146. &::-webkit-scrollbar {
  147. display: block;
  148. @media screen and (max-width: 1023px) {
  149. display: none;
  150. }
  151. }
  152. }
  153. &::-webkit-scrollbar {
  154. width: 8px;
  155. display: none;
  156. }
  157. /* Track */
  158. &::-webkit-scrollbar-track {
  159. background-color: white;
  160. }
  161. /* Handle */
  162. &::-webkit-scrollbar-thumb {
  163. background-color: rgba(black, 0.2);
  164. }
  165. /* Handle on hover */
  166. &::-webkit-scrollbar-thumb:hover {
  167. background-color: rgba(black, 0.5);
  168. }
  169. .heading {
  170. margin-bottom: 20px;
  171. header {
  172. font-size: 20px;
  173. color: var(--dark-grey);
  174. font-weight: 500;
  175. margin-bottom: 5px;
  176. @media screen and (max-width: 1023px) {
  177. font-size: 16px;
  178. }
  179. }
  180. p {
  181. font-size: 12px;
  182. color: var(--grey);
  183. line-height: 1.5;
  184. @media screen and (max-width: 1023px) {
  185. white-space: nowrap;
  186. overflow: hidden;
  187. text-overflow: ellipsis;
  188. }
  189. }
  190. }
  191. li {
  192. header {
  193. display: flex;
  194. width: 100%;
  195. align-items: center;
  196. justify-content: space-between;
  197. font-size: 15px;
  198. font-weight: 500;
  199. color: var(--dark-grey);
  200. border-bottom: 1px solid #efefef;
  201. padding: 10px 0;
  202. @media screen and (max-width: 1023px) {
  203. border-bottom: 0;
  204. border-top: 1px solid #efefef;
  205. font-size: 12px;
  206. }
  207. button {
  208. background-color: transparent;
  209. border: 0px;
  210. color: var(--brand-blue);
  211. margin-left: 10px;
  212. &.active {
  213. color: var(--grey);
  214. }
  215. i {
  216. font-size: 25px;
  217. }
  218. }
  219. }
  220. p {
  221. color: var(--grey);
  222. font-size: 13px;
  223. line-height: 1.5;
  224. margin-top: 15px;
  225. padding-bottom: 10px;
  226. @media screen and (max-width: 1023px) {
  227. margin-top: 0px;
  228. font-size: 12px;
  229. }
  230. }
  231. }
  232. }