Commit 741fd530528af3c1d98fa162d6c5859f3d653163
1 parent
4a0fbd52
m-nav add scroller
Showing
8 changed files
with
34 additions
and
13 deletions
css/common.css
... | ... | @@ -397,6 +397,9 @@ a.m-more { |
397 | 397 | .background-gray { |
398 | 398 | background-color: #666 !important; |
399 | 399 | } |
400 | +.background-deep-gray { | |
401 | + background-color: #444 !important; | |
402 | +} | |
400 | 403 | .background-yellow { |
401 | 404 | background-color: #FF9D2C !important; |
402 | 405 | } |
... | ... | @@ -794,17 +797,20 @@ Pagination Styles |
794 | 797 | display: inline-block; |
795 | 798 | width: 100px; |
796 | 799 | } |
797 | -.scroll-wrap .m-tab { | |
800 | +.scroll-wrap .m-tab, | |
801 | +.scroll-wrap .m-nav { | |
798 | 802 | white-space: nowrap; |
799 | 803 | overflow: visible; |
800 | 804 | width: auto; |
801 | 805 | } |
802 | -.scroll-wrap .m-tab li { | |
806 | +.scroll-wrap .m-tab li, | |
807 | +.scroll-wrap .m-nav li { | |
803 | 808 | float: none; |
804 | 809 | display: inline; |
805 | 810 | width: 90px; |
806 | 811 | } |
807 | -.scroll-wrap .m-tab li a { | |
812 | +.scroll-wrap .m-tab li a, | |
813 | +.scroll-wrap .m-nav li a { | |
808 | 814 | display: inline-block; |
809 | 815 | } |
810 | 816 | .m-list-view { |
... | ... | @@ -1054,7 +1060,6 @@ Pagination Styles |
1054 | 1060 | } |
1055 | 1061 | .m-nav { |
1056 | 1062 | width: 100%; |
1057 | - background-color: #444; | |
1058 | 1063 | font-size: 14px; |
1059 | 1064 | color: #999; |
1060 | 1065 | overflow: hidden; |
... | ... | @@ -1064,6 +1069,7 @@ Pagination Styles |
1064 | 1069 | color: #999; |
1065 | 1070 | padding: 0 10px; |
1066 | 1071 | min-width: 70px; |
1072 | + display: block; | |
1067 | 1073 | } |
1068 | 1074 | .m-nav li { |
1069 | 1075 | float: left; | ... | ... |
css/global.css
... | ... | @@ -333,6 +333,9 @@ a.m-more { |
333 | 333 | .background-gray { |
334 | 334 | background-color: #666 !important; |
335 | 335 | } |
336 | +.background-deep-gray { | |
337 | + background-color: #444 !important; | |
338 | +} | |
336 | 339 | .background-yellow { |
337 | 340 | background-color: #FF9D2C !important; |
338 | 341 | } |
... | ... | @@ -534,16 +537,19 @@ a.m-more { |
534 | 537 | display: inline-block; |
535 | 538 | width: 100px; |
536 | 539 | } |
537 | -.scroll-wrap .m-tab { | |
540 | +.scroll-wrap .m-tab, | |
541 | +.scroll-wrap .m-nav { | |
538 | 542 | white-space: nowrap; |
539 | 543 | overflow: visible; |
540 | 544 | width: auto; |
541 | 545 | } |
542 | -.scroll-wrap .m-tab li { | |
546 | +.scroll-wrap .m-tab li, | |
547 | +.scroll-wrap .m-nav li { | |
543 | 548 | float: none; |
544 | 549 | display: inline; |
545 | 550 | width: 90px; |
546 | 551 | } |
547 | -.scroll-wrap .m-tab li a { | |
552 | +.scroll-wrap .m-tab li a, | |
553 | +.scroll-wrap .m-nav li a { | |
548 | 554 | display: inline-block; |
549 | 555 | } | ... | ... |
css/section.css
... | ... | @@ -101,16 +101,19 @@ |
101 | 101 | display: inline-block; |
102 | 102 | width: 100px; |
103 | 103 | } |
104 | -.scroll-wrap .m-tab { | |
104 | +.scroll-wrap .m-tab, | |
105 | +.scroll-wrap .m-nav { | |
105 | 106 | white-space: nowrap; |
106 | 107 | overflow: visible; |
107 | 108 | width: auto; |
108 | 109 | } |
109 | -.scroll-wrap .m-tab li { | |
110 | +.scroll-wrap .m-tab li, | |
111 | +.scroll-wrap .m-nav li { | |
110 | 112 | float: none; |
111 | 113 | display: inline; |
112 | 114 | width: 90px; |
113 | 115 | } |
114 | -.scroll-wrap .m-tab li a { | |
116 | +.scroll-wrap .m-tab li a, | |
117 | +.scroll-wrap .m-nav li a { | |
115 | 118 | display: inline-block; |
116 | 119 | } | ... | ... |
css/section.less
css/tab.css
css/tab.less
css/util.less
html/index.html
... | ... | @@ -22,12 +22,14 @@ |
22 | 22 | |
23 | 23 | |
24 | 24 | <!-- tab --> |
25 | + <div class="scroll-wrap background-deep-gray"> | |
25 | 26 | <ul class="m-nav border-1px border-bottom"> |
26 | 27 | <li class="on"><a href="#">秒杀专区</a></li> |
27 | 28 | <li><a href="#">活动专区</a></li> |
28 | 29 | <li><a href="#">最低专区</a></li> |
29 | 30 | <li><a href="#">精品专区</a></li> |
30 | 31 | </ul> |
32 | +</div> | |
31 | 33 | <!-- slider --> |
32 | 34 | <div class="m-slider"> |
33 | 35 | <!-- Swiper --> | ... | ... |