mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-23 02:46:53 +08:00
Homepage / Product list / Product Detail / header / footer / RoyalCanin css,js added
This commit is contained in:
@@ -10,23 +10,65 @@ img, picture {
|
||||
height: auto;
|
||||
}
|
||||
.rc-main {
|
||||
padding:0 1.25rem;
|
||||
padding-left:1.25rem;
|
||||
padding-right:1.25rem;
|
||||
box-sizing:border-box;
|
||||
margin:0 auto;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
.ts-remove {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
.ts-product-list{
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
&:after{
|
||||
content:"";
|
||||
width:154px;
|
||||
}
|
||||
li{
|
||||
img{
|
||||
width: 320px;
|
||||
height:auto;
|
||||
object-fit: contain;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
border: 1px solid #D7D7D7;
|
||||
display: inline-flex;
|
||||
border-radius: 4px;
|
||||
flex-direction: column;
|
||||
max-width:10rem;
|
||||
.rc-column
|
||||
{
|
||||
text-align:center;
|
||||
padding:0 1rem;
|
||||
box-sizing: border-box;
|
||||
span{
|
||||
height:2.75rem;
|
||||
font-size: 1rem;
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
color:#E2001A;
|
||||
}
|
||||
i{
|
||||
font-style: normal;
|
||||
font-size: 1.125rem;
|
||||
margin-top: .5rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
img{
|
||||
width:10rem;
|
||||
height:10rem;
|
||||
object-fit: contain;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
height: auto;
|
||||
}
|
||||
.active{
|
||||
color: #E2001A;
|
||||
cursor: pointer;
|
||||
@@ -36,24 +78,37 @@ img, picture {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.rc-age{
|
||||
display: flex;
|
||||
h2{
|
||||
color:#333333;
|
||||
.rc-container {
|
||||
height: 100%;
|
||||
max-width: 1400px;
|
||||
background-color: #fff;
|
||||
margin: auto;
|
||||
}
|
||||
.ts-standard-btn{
|
||||
font-style: normal;
|
||||
width: 8.125rem;
|
||||
height: 2.5rem;
|
||||
border: 2px solid #E2001A;
|
||||
border-radius: 1.875rem;
|
||||
display: block;
|
||||
line-height: 2.5rem;
|
||||
font-size: .875rem;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
background: #E2001A;
|
||||
&.center{
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
ol{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
text-align: center;
|
||||
width: 86%;
|
||||
}
|
||||
li{
|
||||
flex-shrink: 0;
|
||||
&.ts-standard-btn--two{
|
||||
background-color: transparent;
|
||||
color: #e2001a;
|
||||
border-color: #e2001a;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.rc-mubu{
|
||||
height: 100%;
|
||||
background: #333333;
|
||||
@@ -63,14 +118,41 @@ img, picture {
|
||||
width: 100%;
|
||||
z-index: 8;
|
||||
}
|
||||
.ts-scrollable{
|
||||
overflow-y:hidden;
|
||||
overflow-x:auto;
|
||||
white-space: nowrap;
|
||||
&::-webkit-scrollbar{
|
||||
display:none;
|
||||
}
|
||||
}
|
||||
.ts-scrollable-container{
|
||||
display: flex;
|
||||
h2{
|
||||
margin:0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.ts-scrollable{
|
||||
overflow-y:hidden;
|
||||
overflow-x:auto;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: nowrap;
|
||||
text-align: center;
|
||||
width: 86%;
|
||||
&::-webkit-scrollbar{
|
||||
display:none;
|
||||
}
|
||||
li{
|
||||
border-radius: 100px;
|
||||
}
|
||||
}
|
||||
.active{
|
||||
color: #E2001A;
|
||||
cursor: pointer;
|
||||
border: 2px solid #E2001A;
|
||||
}
|
||||
.unactive{
|
||||
color:#999999;
|
||||
cursor: pointer;
|
||||
border: 2px solid #d7d7d7;
|
||||
}
|
||||
}
|
||||
|
||||
.online{
|
||||
width:100%;
|
||||
background:#d7d7d7;
|
||||
@@ -90,6 +172,10 @@ img, picture {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 30%;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 0px .62rem rgba(0, 0, 0, 0.16);
|
||||
border-radius: .25rem;
|
||||
z-index:3;
|
||||
ul{
|
||||
width: 60px;
|
||||
height: 181px;
|
||||
@@ -103,7 +189,7 @@ img, picture {
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 0.18rem;
|
||||
margin-top: 1.125rem;
|
||||
}
|
||||
li:last-child{
|
||||
margin-bottom: 0.2rem;
|
||||
@@ -131,7 +217,6 @@ img, picture {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 8px;
|
||||
img{
|
||||
width: 0.22rem;
|
||||
height: 0.22rem;
|
||||
@@ -195,78 +280,59 @@ img, picture {
|
||||
z-index:3;
|
||||
}
|
||||
}
|
||||
.rc-age{
|
||||
.ts-scrollable-container{
|
||||
margin-bottom:1.25rem;
|
||||
&:last-child{
|
||||
margin-bottom:0;
|
||||
}
|
||||
h2{
|
||||
font-size: 16px;
|
||||
margin-right:.1rem;
|
||||
}
|
||||
ol{
|
||||
font-size: 12px;
|
||||
}
|
||||
li{
|
||||
width: .64rem;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
border-radius: 100px;
|
||||
margin-left: 9px;
|
||||
}
|
||||
}
|
||||
.ts-scrollable{
|
||||
.active{
|
||||
border: 2px solid #E2001A;
|
||||
}
|
||||
.unactive{
|
||||
border: 2px solid #d7d7d7;
|
||||
.ts-scrollable{
|
||||
li{
|
||||
width: 4.125rem;
|
||||
height: 1.625rem;
|
||||
margin-left: .5rem;
|
||||
font-size:.75rem;
|
||||
line-height: 1.375rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/* pc端 */
|
||||
@media screen and (min-width: 769px)
|
||||
{
|
||||
/deep/.van-tabs__wrap
|
||||
{
|
||||
max-width: 768px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size:16px;
|
||||
}
|
||||
.rc-top{
|
||||
margin-top: 124px;
|
||||
}
|
||||
.ts-list--four-column {
|
||||
-webkit-column-count: 4;
|
||||
column-count: 4;
|
||||
}
|
||||
.rc-list__header{
|
||||
background: none;
|
||||
padding: .5rem 0;
|
||||
border-bottom: none;
|
||||
}
|
||||
.rc-padding--sm {
|
||||
padding: 2rem;
|
||||
}
|
||||
.rc-margin-bottom--xs {
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
.rc-header {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.rc-header__logo {
|
||||
width: 120px;
|
||||
}
|
||||
.rc-header__nav--primary {
|
||||
height: 80px;
|
||||
}
|
||||
.rc-list--inline .list__item, .rc-list--inline .rc-list__item {
|
||||
margin-right: 32px;
|
||||
}
|
||||
.rc-btn--action, .rc-btn--icon, .rc-btn--icon--xs, .rc-input__submit--micro, .rc-input__submit--search {
|
||||
min-width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
.rc-md-down {
|
||||
display: none!important;
|
||||
}
|
||||
.ts-list--four-column, .ts-list--four-column .list, .ts-list--four-column .rc-list {
|
||||
page-break-inside: avoid;
|
||||
break-inside: avoid;
|
||||
.ts-product-list{
|
||||
text-align: left;
|
||||
display:block;
|
||||
li{
|
||||
max-width:20rem;
|
||||
margin-right:.9rem;
|
||||
margin-left:.9rem;
|
||||
.rc-column{
|
||||
span{
|
||||
font-size:1.875rem;
|
||||
height: 5.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
img{
|
||||
width:20rem;
|
||||
}
|
||||
}
|
||||
.rc-main {
|
||||
width:100%;
|
||||
@@ -282,9 +348,6 @@ img, picture {
|
||||
}
|
||||
.rc-fixright{
|
||||
width:5.5rem;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 0px .62rem rgba(0, 0, 0, 0.16);
|
||||
border-radius: .25rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -348,20 +411,24 @@ img, picture {
|
||||
}
|
||||
}
|
||||
|
||||
.ts-scrollable{
|
||||
.rc-age{
|
||||
h2
|
||||
{
|
||||
font-size: 20px;
|
||||
color: #333333;
|
||||
}
|
||||
.ts-scrollable-container
|
||||
{
|
||||
margin-top:1.25rem;
|
||||
&:last-child{
|
||||
margin-bottom:0;
|
||||
}
|
||||
h2{
|
||||
font-size:20px;
|
||||
}
|
||||
.ts-scrollable
|
||||
{
|
||||
li
|
||||
{
|
||||
margin-left: 40px;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
width: 8.125rem;
|
||||
height: 2.5rem;
|
||||
line-height: 40px;
|
||||
font-size: 18px;
|
||||
font-size: .875rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user