Authored by 毕凯

代码格式化

... ... @@ -9,16 +9,20 @@
.brands-tabs {
position: relative;
a {
display: block;
img {
width: 100%;
height: 100%;
display: block;
}
}
li {
float: left;
p {
display: block;
font-size: 30px;
... ... @@ -30,22 +34,27 @@
margin-top: -15px;
z-index: 3;
}
.g-mask {
opacity: 0.4;
}
&:hover .g-mask,
.g-mask-on {
opacity: 0;
}
}
.hover-contain {
position: relative;
border-bottom: 1px solid #dfdfdf;
.hoverarr {
background-color: #3d3d3d;
position: absolute;
bottom: 0;
z-index: 10;
i {
width: 0;
height: 0;
... ... @@ -60,9 +69,11 @@
}
}
}
.header-navs {
margin-right: -15px;
}
.category-nav {
border: 2px solid #222;
padding-left: 16px;
... ... @@ -73,10 +84,12 @@
position: relative;
z-index: 100;
background-color: #fff;
span {
display: inline-block;
margin-right: 15px;
}
a {
display: inline-block;
padding: 0 7px;
... ... @@ -85,18 +98,21 @@
cursor: pointer;
}
}
.category-fix {
position: fixed;
top: 0;
z-index: 100;
margin-top: 0 !important;
}
.brands-list {
dl {
position: relative;
border-top: 1px dotted #999;
padding: 20px 0;
}
dt {
position: absolute;
width: 130px;
... ... @@ -107,38 +123,46 @@
top: 50%;
margin-top: -9px;
}
dd {
margin-left: 130px;
li {
float: left;
display: block;
width: 170px;
height: 18px;
}
a {
color: #666;
line-height: 18px;
font-size: 12px;
position: relative;
}
span {
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline-block;
&:hover {
text-decoration: underline;
}
}
.brands-dialog {
display: inline;
position: relative;
}
.hot {
font-weight: bold;
color: #222;
}
i {
position: relative;
top: -4px;
... ... @@ -154,17 +178,21 @@
.brands-tabs {
width: 100%;
li {
margin-left: 10px;
a {
position: relative;
width: 222px;
height: 180px;
}
}
li:first-child {
margin-left: 0;
}
.hover-contain {
height: 30px;
... ... @@ -222,33 +250,40 @@
.g-list {
margin-top: -32px;
}
li {
margin-right: 8px;
margin-top: 32px;
a {
width: 378px;
height: 250px;
}
}
}
.singlegoods {
.g-list {
margin-top: -10px;
}
li {
margin-right: 10px;
margin-top: 10px;
a {
width: 280px;
height: 374px;
}
}
.singlegoods-title {
position: absolute;
left: 0;
bottom: 0;
height: 50px;
width: 100%;
p {
position: absolute;
z-index: 2;
... ... @@ -264,18 +299,22 @@
}
}
}
.video {
.g-list {
margin-top: -10px;
}
li {
margin-right: 8px;
margin-top: 10px;
a {
width: 378px;
height: 242px;
}
}
.video-play {
display: block;
position: absolute;
... ... @@ -287,12 +326,14 @@
height: 56px;
background-image: resolve(img/index/play.png);
}
.video-title {
position: absolute;
left: 0;
bottom: 0;
height: 32px;
width: 100%;
p {
position: absolute;
z-index: 2;
... ... @@ -308,15 +349,19 @@
}
}
}
.news {
margin-bottom: 40px;
.news-pic {
position: relative;
float: left;
width: 764px;
height: 436px;
.slide-container {
height: 100%;
li a {
height: 100%;
width: 764px;
... ... @@ -325,21 +370,26 @@
.slide-wrapper {
height: 100%;
}
.slide-switch {
display: none;
}
.prev {
left: 0;
margin-left: 0;
}
.next {
right: 0;
margin-right: 0;
}
.slide-switch.show {
display: block;
}
}
.slide-tips {
position: absolute;
left: 0;
... ... @@ -359,40 +409,48 @@
color: #fff;
}
}
.slide-pagination {
right: 0;
left: auto;
bottom: 0;
.slide-shade {
opacity: 0;
background: none;
}
span {
margin-top: 3px;
}
}
}
.news-txt {
float: right;
padding: 20px 16px;
float: right;
border: 1px solid #000;
overflow: hidden;
ul {
height: 100%;
}
li {
position: relative;
display: block;
margin-bottom: 10px;
margin-left: 20px;
}
a {
font-size: 14px;
line-height: 27px;
cursor: pointer;
color: #010101;
display: block;
&:hover {
color: #fff;
background: #000;
... ... @@ -400,6 +458,7 @@
transition: padding 0.4s;
}
}
i {
position: absolute;
top: 0;
... ... @@ -407,6 +466,7 @@
font-size: 22px;
}
}
.news-txt {
width: 342px;
height: 394px;
... ... @@ -419,15 +479,19 @@
li {
margin-right: 10px;
margin-bottom: 10px;
a {
width: 280px;
img {
height: 160px;
}
}
.name {
font-size: 14px;
}
.des {
font-size: 12px;
}
... ... @@ -436,33 +500,39 @@
.brands-items {
margin: 25px auto;
.brands-item {
float: left;
padding: 15px 0;
width: 50%;
}
a.brands-pic {
float: left;
width: 280px;
height: 136px;
display: block;
img {
width: 100%;
height: 100%;
}
}
.brand-info {
float: right;
padding: 0 20px;
width: 255px;
color: #000;
h3 {
width: 100%;
font-size: 20px;
line-height: 1;
@mixin ellipsis;
@mixin ellipsis ;
}
.brand-desc {
padding: 12px 0;
height: 92px;
... ... @@ -472,9 +542,11 @@
}
}
}
.pagination {
margin: 40px 0 80px;
text-align: center;
a {
height: 24px;
padding: 0 9px;
... ... @@ -484,6 +556,7 @@
margin-right: 8px;
color: #222;
font-size: 12px;
i {
position: relative;
top: -1px;
... ... @@ -491,6 +564,7 @@
transform: scale(0.8);
}
}
a.cur {
background: #222;
color: #fff;
... ... @@ -502,16 +576,20 @@
.header-navs {
margin-right: -10px;
}
.sit-nav {
padding-top: 10px;
font-size: 12px;
.sep {
margin: 0 6px;
}
}
.brands-category {
width: 990px;
}
.brands-tabs {
li {
a {
... ... @@ -519,8 +597,10 @@
height: 154px;
}
}
.hover-contain {
height: 25px;
.hoverarr {
height: 4px;
width: 190px;
... ... @@ -560,33 +640,40 @@
.g-list {
margin-top: -26px;
}
li {
margin-right: 9px;
margin-top: 26px;
a {
width: 324px;
height: 214px;
}
}
}
.singlegoods {
.g-list {
margin-top: -10px;
}
li {
margin-right: 10px;
margin-top: 10px;
a {
width: 240px;
height: 324px;
}
}
.singlegoods-title {
position: absolute;
left: 0;
bottom: 0;
height: 50px;
width: 100%;
p {
position: absolute;
z-index: 2;
... ... @@ -602,18 +689,22 @@
}
}
}
.video {
.g-list {
margin-top: -10px;
}
li {
margin-right: 9px;
margin-top: 10px;
a {
width: 324px;
height: 206px;
}
}
.video-play {
display: block;
position: absolute;
... ... @@ -625,12 +716,14 @@
height: 56px;
background-image: resolve(img/index/play.png);
}
.video-title {
position: absolute;
left: 0;
bottom: 0;
height: 30px;
width: 100%;
p {
position: absolute;
z-index: 2;
... ... @@ -646,52 +739,65 @@
}
}
}
.news {
.news-pic {
width: 660px;
height: 376px;
.slide-container {
height: 376px;
img {
height: 376px;
}
}
}
.news-txt {
width: 284px;
height: 334px;
li {
margin-bottom: 13px;
}
}
}
.ads {
margin-bottom: 30px;
li {
margin-right: 10px;
margin-bottom: 10px;
a {
width: 240px;
img {
height: 138px;
}
}
.name {
font-size: 14px;
}
.des {
font-size: 12px;
}
}
}
.brands-items {
a.brands-pic {
width: 240px;
height: 116px;
}
.brand-info {
width: 212px;
.brand-desc {
height: 72px;
}
... ... @@ -711,6 +817,7 @@
.layer-content {
padding: 20px 20px 20px 35px;
.title {
font-size: 24px;
line-height: 24px;
... ... @@ -720,16 +827,19 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.desc {
margin: 5px 0;
height: 72px;
overflow: hidden;
img {
width: 80px;
height: 50px;
margin: 3px 5px 0 0;
float: left;
}
.right {
width: 180px;
float: right;
... ... @@ -738,9 +848,11 @@
max-height: 80px;
}
}
.featured {
font-size: 16px;
margin-right: -15px;
img {
height: 100px;
width: 80px;
... ...