mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
4.0 KiB
SCSS
163 lines
4.0 KiB
SCSS
.ProductGridSidebar {
|
|
padding: 1rem 0;
|
|
|
|
h1{
|
|
font-size: 30px;
|
|
font-weight: 200;
|
|
text-align: center;
|
|
position: relative;
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 4px;
|
|
&:after{
|
|
position: absolute;
|
|
content: ' ';
|
|
height: 1px;
|
|
width: 70%;
|
|
bottom: 0;
|
|
left: 15%;
|
|
right: 15%;
|
|
background: linear-gradient(90deg,#ffffff00 0%, var(--xshop-primary) 50%, #ffffff00 100%);
|
|
}
|
|
}
|
|
img {
|
|
width: 100%;
|
|
height: 250px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.product-item {
|
|
border: 1px solid silver;
|
|
box-shadow: var(--xshop-shadow);
|
|
border-radius: var(--xshop-border-radius);
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
h3 {
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
color: var(--xshop-text);
|
|
}
|
|
|
|
.prices {
|
|
display: grid;
|
|
grid-auto-columns: minmax(0, 1fr);
|
|
grid-auto-flow: column;
|
|
text-align: center;
|
|
|
|
span {
|
|
display: block;
|
|
padding: .5rem;
|
|
}
|
|
|
|
.old-price{
|
|
text-decoration: red line-through;
|
|
color: gray;
|
|
}
|
|
}
|
|
|
|
.fav-btn, .compare-btn {
|
|
position: absolute;
|
|
inset-inline-start: -12%;
|
|
top: 3%;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #ffffff55;
|
|
font-size: 25px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
z-index: 4;
|
|
cursor: pointer;
|
|
transition: .4s;
|
|
|
|
&:hover {
|
|
background: var(--xshop-primary);
|
|
color: var(--xshop-diff);
|
|
}
|
|
}
|
|
|
|
.fav-btn {
|
|
top: calc(3% + 50px);
|
|
|
|
&[data-is-fav="-1"]{
|
|
display: none;
|
|
}
|
|
&[data-is-fav="1"]{
|
|
.ri-heart-line{
|
|
display: none;
|
|
}
|
|
}
|
|
&[data-is-fav="0"]{
|
|
.ri-heart-fill{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.fav-btn, .compare-btn {
|
|
inset-inline-start: 3%;
|
|
}
|
|
}
|
|
}
|
|
|
|
aside{
|
|
|
|
h4{
|
|
background: var(--xshop-primary);
|
|
color: var(--xshop-diff);
|
|
padding: .5rem 1rem;
|
|
text-align: center;
|
|
border-radius: var(--xshop-border-radius);
|
|
opacity: .75;
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
}
|
|
|
|
|
|
.side-item{
|
|
background: #00000010;
|
|
border-radius: var(--xshop-border-radius);
|
|
margin-bottom: 1rem;
|
|
.side-data{
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
.side-list{
|
|
ul{
|
|
list-style: none;
|
|
padding: 0;
|
|
padding-top: 2px;
|
|
li{
|
|
position: relative;
|
|
padding: 2px;
|
|
a{
|
|
display: block;
|
|
}
|
|
&:before{
|
|
position: absolute;
|
|
content: "\F035";
|
|
font-family: 'remixicon';
|
|
inset-inline-start: -20px;
|
|
top: -2px;
|
|
color: var(--xshop-secondary);
|
|
}
|
|
|
|
&.active{
|
|
padding-top: 5px;
|
|
padding-bottom: 0;
|
|
background: var(--xshop-primary);
|
|
a{
|
|
color: var(--xshop-diff);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|