category.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. *,
  2. html,
  3. body {
  4. padding: 0;
  5. margin: 0;
  6. }
  7. ul,
  8. ol,
  9. li {
  10. list-style: none;
  11. }
  12. a {
  13. text-decoration: none;
  14. color: #459ae9;
  15. &:hover {
  16. text-decoration: none;
  17. }
  18. }
  19. body {
  20. font: 12px/150% Arial, Verdana, "\5b8b\4f53";
  21. color: #666;
  22. background: #fff;
  23. }
  24. ul {
  25. margin-bottom: 0;
  26. }
  27. .clearfix {
  28. display: block;
  29. zoom: 1;
  30. }
  31. em,
  32. i {
  33. font-style: normal;
  34. }
  35. .fl {
  36. float: left;
  37. }
  38. .fr {
  39. float: right;
  40. }
  41. .clear {
  42. zoom: 1;
  43. &:after {
  44. content: "";
  45. display: block;
  46. height: 0;
  47. clear: both;
  48. visibility: hidden;
  49. }
  50. }
  51. .goods_sort {
  52. position: relative;
  53. width: 1440px;
  54. margin: 0 auto;
  55. min-height: 700px;
  56. }
  57. .class_ification_wrap {
  58. position: relative;
  59. padding: 12px 0 0 0;
  60. background-color: #fff;
  61. margin-bottom: 30px;
  62. box-sizing: border-box;
  63. z-index: -1;
  64. .class_ification {
  65. float: left;
  66. width: 179px;
  67. margin-right: 34px;
  68. &.fixed {
  69. position: fixed;
  70. top: 60px;
  71. }
  72. &.bottomFixed {
  73. position: absolute;
  74. bottom: 0;
  75. }
  76. .cat_item {
  77. width: max-content;
  78. padding: 0 15px;
  79. height: 30px;
  80. margin-top: 10px;
  81. line-height: 30px;
  82. color: #010101;
  83. font-size: 12px;
  84. border-radius: 15px;
  85. overflow: visible;
  86. background: #f5f5f5;
  87. cursor: pointer;
  88. &:hover,
  89. &.on {
  90. color: #fff;
  91. background: $colorMain;
  92. }
  93. & > div {
  94. text-align: center;
  95. }
  96. // &:nth-child(9n + 1):hover,
  97. // &:nth-child(9n + 1).on {
  98. // color: #fff;
  99. // background: #edd557;
  100. // background: linear-gradient(to right, #edd557, #f0a223);
  101. // }
  102. // &:nth-child(9n + 2):hover,
  103. // &:nth-child(9n + 2).on {
  104. // color: #fff;
  105. // background: #42caab;
  106. // background: linear-gradient(to right, #42caab, #0c97ee);
  107. // }
  108. // &:nth-child(9n + 3):hover,
  109. // &:nth-child(9n + 3).on {
  110. // color: #fff;
  111. // background: #8fa4fc;
  112. // background: linear-gradient(to right, #8fa4fc, #b386ea);
  113. // }
  114. // &:nth-child(9n + 4):hover,
  115. // &:nth-child(9n + 4).on {
  116. // color: #fff;
  117. // background: #62d993;
  118. // background: linear-gradient(to right, #62d993, #41ae65, #0c97ee);
  119. // }
  120. // &:nth-child(9n + 5):hover,
  121. // &:nth-child(9n + 5).on {
  122. // color: #fff;
  123. // background: #64b1e4;
  124. // background: linear-gradient(to right, #64b1e4, #6876f2);
  125. // }
  126. // &:nth-child(9n + 6):hover,
  127. // &:nth-child(9n + 6).on {
  128. // color: #fff;
  129. // background: #f887c3;
  130. // background: linear-gradient(to right, #f887c3, #f12086);
  131. // }
  132. // &:nth-child(9n + 7):hover,
  133. // &:nth-child(9n + 7).on {
  134. // color: #fff;
  135. // background: #fdc237;
  136. // background: linear-gradient(to right, #fdc237, #ff7802);
  137. // }
  138. // &:nth-child(9n + 8):hover,
  139. // &:nth-child(9n + 8).on {
  140. // color: #fff;
  141. // background: #3dcbdd;
  142. // background: linear-gradient(to right, #3dcbdd, #5594e4);
  143. // }
  144. // &:nth-child(9n):hover,
  145. // &:nth-child(9n).on {
  146. // color: #fff;
  147. // background: #ff787b;
  148. // background: linear-gradient(to right, #ff787b, #ff305c);
  149. // }
  150. }
  151. }
  152. .class_detail {
  153. width: 100%;
  154. padding-left: 221px;
  155. z-index: 99;
  156. .detail_item {
  157. color: #333;
  158. font-size: 12px;
  159. margin-bottom: 20px;
  160. margin-top: 10px;
  161. .detail_title {
  162. font-size: 18px;
  163. font-weight: bold;
  164. padding: 2px 0 10px;
  165. line-height: 1;
  166. color: $colorMain;
  167. border-bottom: 1px solid $colorMain;
  168. }
  169. .cat_wrap_dd {
  170. display: block;
  171. padding: 7px 0;
  172. .cat_dd_item {
  173. display: flex;
  174. align-items: center;
  175. // min-height: 38px;
  176. border-bottom: 1px dashed #dddddd;
  177. }
  178. .cat_left {
  179. width: max-content;
  180. // padding-top: 10px;
  181. font-size: 12px;
  182. font-weight: bold;
  183. color: $colorMain;
  184. }
  185. .cat_add_right {
  186. // padding-left: 106px;
  187. line-height: 38px;
  188. span {
  189. height: 18px;
  190. line-height: 18px;
  191. padding: 0 15px;
  192. box-sizing: border-box;
  193. border-right: 1px solid #ddd;
  194. display: inline-block;
  195. &:last-child {
  196. border-right: none;
  197. }
  198. }
  199. .line {
  200. display: inline-block;
  201. width: 1px;
  202. height: 18px;
  203. background-color: #dddddd;
  204. vertical-align: middle;
  205. &:nth-of-type(1) {
  206. display: none;
  207. }
  208. }
  209. }
  210. }
  211. }
  212. }
  213. }
  214. .detail_item {
  215. //将detail-item暂定最小高度,及内容溢出滚动
  216. // min-height: 600px;
  217. overflow-y: auto;
  218. &.item_style1 {
  219. .detail_title {
  220. color: #f2b15c;
  221. border-bottom: 1px solid #f2b15c;
  222. }
  223. .cat_left {
  224. color: #f2b15c;
  225. }
  226. }
  227. &.item_style2 {
  228. .detail_title {
  229. color: #5cb0f2;
  230. border-bottom: 1px solid #5cb0f2;
  231. }
  232. .cat_left {
  233. color: #5cb0f2;
  234. }
  235. }
  236. &.item_style3 {
  237. .detail_title {
  238. color: #b585ea;
  239. border-bottom: 1px solid #b585ea;
  240. }
  241. .cat_left {
  242. color: #b585ea;
  243. }
  244. }
  245. &.item_style4 {
  246. .detail_title {
  247. color: #52c16e;
  248. border-bottom: 1px solid #52c16e;
  249. }
  250. .cat_left {
  251. color: #52c16e;
  252. }
  253. }
  254. &.item_style5 {
  255. .detail_title {
  256. color: #687ff0;
  257. border-bottom: 1px solid #687ff0;
  258. }
  259. .cat_left {
  260. color: #687ff0;
  261. }
  262. }
  263. &.item_style6 {
  264. .detail_title {
  265. color: #f33b96;
  266. border-bottom: 1px solid #f33b96;
  267. }
  268. .cat_left {
  269. color: #f33b96;
  270. }
  271. }
  272. &.item_style7 {
  273. .detail_title {
  274. color: #ff7802;
  275. border-bottom: 1px solid #ff7802;
  276. }
  277. .cat_left {
  278. color: #ff7802;
  279. }
  280. }
  281. &.item_style8 {
  282. .detail_title {
  283. border-bottom: 1px solid #40c3de;
  284. }
  285. .cat_left {
  286. color: #40c3de;
  287. }
  288. }
  289. &.item_style0 {
  290. .detail_title {
  291. color: #ff6a75;
  292. border-bottom: 1px solid #ff6a75;
  293. }
  294. .cat_left {
  295. color: #ff6a75;
  296. }
  297. }
  298. }
  299. // width:106px;