category.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  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: 1200px;
  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: 179px;
  78. height: 30px;
  79. margin-top: 10px;
  80. line-height: 30px;
  81. color: #010101;
  82. font-size: 12px;
  83. border-radius: 15px;
  84. overflow: visible;
  85. background: #f5f5f5;
  86. cursor: pointer;
  87. & > div {
  88. text-align: center;
  89. }
  90. &:nth-child(9n + 1):hover,
  91. &:nth-child(9n + 1).on {
  92. color: #fff;
  93. background: #edd557;
  94. background: linear-gradient(to right, #edd557, #f0a223);
  95. }
  96. &:nth-child(9n + 2):hover,
  97. &:nth-child(9n + 2).on {
  98. color: #fff;
  99. background: #42caab;
  100. background: linear-gradient(to right, #42caab, #0c97ee);
  101. }
  102. &:nth-child(9n + 3):hover,
  103. &:nth-child(9n + 3).on {
  104. color: #fff;
  105. background: #8fa4fc;
  106. background: linear-gradient(to right, #8fa4fc, #b386ea);
  107. }
  108. &:nth-child(9n + 4):hover,
  109. &:nth-child(9n + 4).on {
  110. color: #fff;
  111. background: #62d993;
  112. background: linear-gradient(to right, #62d993, #41ae65, #0c97ee);
  113. }
  114. &:nth-child(9n + 5):hover,
  115. &:nth-child(9n + 5).on {
  116. color: #fff;
  117. background: #64b1e4;
  118. background: linear-gradient(to right, #64b1e4, #6876f2);
  119. }
  120. &:nth-child(9n + 6):hover,
  121. &:nth-child(9n + 6).on {
  122. color: #fff;
  123. background: #f887c3;
  124. background: linear-gradient(to right, #f887c3, #f12086);
  125. }
  126. &:nth-child(9n + 7):hover,
  127. &:nth-child(9n + 7).on {
  128. color: #fff;
  129. background: #fdc237;
  130. background: linear-gradient(to right, #fdc237, #ff7802);
  131. }
  132. &:nth-child(9n + 8):hover,
  133. &:nth-child(9n + 8).on {
  134. color: #fff;
  135. background: #3dcbdd;
  136. background: linear-gradient(to right, #3dcbdd, #5594e4);
  137. }
  138. &:nth-child(9n):hover,
  139. &:nth-child(9n).on {
  140. color: #fff;
  141. background: #ff787b;
  142. background: linear-gradient(to right, #ff787b, #ff305c);
  143. }
  144. }
  145. }
  146. .class_detail {
  147. width: 1200px;
  148. padding-left: 221px;
  149. z-index: 99;
  150. .detail_item {
  151. color: #333;
  152. font-size: 12px;
  153. margin-bottom: 20px;
  154. margin-top: 10px;
  155. .detail_title {
  156. font-size: 18px;
  157. font-weight: bold;
  158. padding: 2px 0 10px;
  159. line-height: 1;
  160. }
  161. .cat_wrap_dd {
  162. display: block;
  163. padding: 7px 0;
  164. .cat_dd_item {
  165. min-height: 38px;
  166. border-bottom: 1px dashed #dddddd;
  167. }
  168. .cat_left {
  169. width: 200px;
  170. padding-top: 10px;
  171. font-size: 12px;
  172. font-weight: bold;
  173. }
  174. .cat_add_right {
  175. padding-left: 106px;
  176. line-height: 38px;
  177. span {
  178. height: 18px;
  179. line-height: 18px;
  180. padding: 0 15px;
  181. box-sizing: border-box;
  182. border-right: 1px solid #ddd;
  183. display: inline-block;
  184. &:last-child {
  185. border-right: none;
  186. }
  187. }
  188. .line {
  189. display: inline-block;
  190. width: 1px;
  191. height: 18px;
  192. background-color: #dddddd;
  193. vertical-align: middle;
  194. &:nth-of-type(1) {
  195. display: none;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. }
  202. }
  203. .detail_item {
  204. //将detail-item暂定最小高度,及内容溢出滚动
  205. // min-height: 600px;
  206. overflow-y: auto;
  207. &.item_style1 {
  208. .detail_title {
  209. color: #f2b15c;
  210. border-bottom: 1px solid #f2b15c;
  211. }
  212. .cat_left {
  213. color: #f2b15c;
  214. }
  215. }
  216. &.item_style2 {
  217. .detail_title {
  218. color: #5cb0f2;
  219. border-bottom: 1px solid #5cb0f2;
  220. }
  221. .cat_left {
  222. color: #5cb0f2;
  223. }
  224. }
  225. &.item_style3 {
  226. .detail_title {
  227. color: #b585ea;
  228. border-bottom: 1px solid #b585ea;
  229. }
  230. .cat_left {
  231. color: #b585ea;
  232. }
  233. }
  234. &.item_style4 {
  235. .detail_title {
  236. color: #52c16e;
  237. border-bottom: 1px solid #52c16e;
  238. }
  239. .cat_left {
  240. color: #52c16e;
  241. }
  242. }
  243. &.item_style5 {
  244. .detail_title {
  245. color: #687ff0;
  246. border-bottom: 1px solid #687ff0;
  247. }
  248. .cat_left {
  249. color: #687ff0;
  250. }
  251. }
  252. &.item_style6 {
  253. .detail_title {
  254. color: #f33b96;
  255. border-bottom: 1px solid #f33b96;
  256. }
  257. .cat_left {
  258. color: #f33b96;
  259. }
  260. }
  261. &.item_style7 {
  262. .detail_title {
  263. color: #ff7802;
  264. border-bottom: 1px solid #ff7802;
  265. }
  266. .cat_left {
  267. color: #ff7802;
  268. }
  269. }
  270. &.item_style8 {
  271. .detail_title {
  272. border-bottom: 1px solid #40c3de;
  273. }
  274. .cat_left {
  275. color: #40c3de;
  276. }
  277. }
  278. &.item_style0 {
  279. .detail_title {
  280. color: #ff6a75;
  281. border-bottom: 1px solid #ff6a75;
  282. }
  283. .cat_left {
  284. color: #ff6a75;
  285. }
  286. }
  287. }
  288. // width:106px;