You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
258 lines
5.2 KiB
258 lines
5.2 KiB
@import "../../src/scss/variables.scss";
|
|
@import "../../src/scss/mixins.scss";
|
|
|
|
.component-buy {
|
|
padding: 30px 0;
|
|
|
|
.content {
|
|
width: 100%;
|
|
|
|
.box {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: $white;
|
|
padding: 30px 0;
|
|
|
|
.image {
|
|
display: block;
|
|
height: 150px;
|
|
margin: auto;
|
|
padding: 0 0 20px 0;
|
|
}
|
|
|
|
.type {
|
|
display: block;
|
|
text-align: center;
|
|
@include font-style($font-serif, 'regular', $font-16);
|
|
color: $brown;
|
|
line-height: $font-22;
|
|
}
|
|
|
|
.name {
|
|
display: block;
|
|
text-align: center;
|
|
@include font-style($font-serif, 'regular', $font-24);
|
|
color: $olive-dark;
|
|
line-height: $font-32;
|
|
}
|
|
|
|
.price {
|
|
display: block;
|
|
text-align: center;
|
|
@include font-style($font-serif, 'regular', $font-20);
|
|
color: $brown;
|
|
line-height: $font-38;
|
|
}
|
|
}
|
|
|
|
.details {
|
|
padding: 0 0 40px 0;
|
|
|
|
.image-container{
|
|
display: block;
|
|
width: 100%;
|
|
margin: auto;
|
|
padding: 40px;
|
|
background: $white;
|
|
|
|
.image {
|
|
display: block;
|
|
width: 30%;
|
|
margin: auto;
|
|
}
|
|
}
|
|
|
|
.type {
|
|
display: block;
|
|
text-align: left;
|
|
@include font-style($font-serif, 'regular', $font-16);
|
|
color: $brown;
|
|
line-height: $font-22;
|
|
padding-top: 30px;
|
|
}
|
|
|
|
.name {
|
|
display: block;
|
|
text-align: left;
|
|
@include font-style($font-serif, 'regular', $font-44);
|
|
color: $olive-dark;
|
|
line-height: $font-60;
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
.description {
|
|
display: block;
|
|
text-align: left;
|
|
@include font-style($font-sans, 'regular', $font-18);
|
|
color: $gray;
|
|
line-height: $font-24;
|
|
}
|
|
|
|
.price {
|
|
display: block;
|
|
text-align: left;
|
|
@include font-style($font-serif, 'regular', $font-28);
|
|
color: $brown;
|
|
line-height: $font-38;
|
|
padding-top: 28px;
|
|
}
|
|
|
|
.items {
|
|
display: block;
|
|
width: 100%;
|
|
padding-top: 28px;
|
|
|
|
.item {
|
|
display: block;
|
|
width: 50%;
|
|
padding: 3px 0;
|
|
|
|
.label,
|
|
.value {
|
|
@include font-style($font-sans, 'regular', $font-18);
|
|
color: $gray;
|
|
line-height: $font-24;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.value {
|
|
text-transform: none;
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
.price {
|
|
display: block;
|
|
text-align: left;
|
|
@include font-style($font-serif, 'regular', $font-28);
|
|
color: $brown;
|
|
line-height: $font-38;
|
|
padding-top: 28px;
|
|
}
|
|
|
|
.add-container {
|
|
display: block;
|
|
padding-top: 28px;
|
|
|
|
.qty-container {
|
|
position: relative;
|
|
display: inline-block;
|
|
float: left;
|
|
width: calc(50% - 4px);
|
|
|
|
.qty {
|
|
appearance: none;
|
|
-moz-appearance: textfield;
|
|
&:-webkit-inner-spin-button {
|
|
appearance: none;
|
|
}
|
|
|
|
text-align: center;
|
|
}
|
|
|
|
.plus,
|
|
.minus {
|
|
position: absolute;
|
|
appearance: none;
|
|
background: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
top: 7px;
|
|
left: 10px;
|
|
font-size: $font-20;
|
|
color: $gray;
|
|
}
|
|
|
|
.plus {
|
|
left: initial;
|
|
right: 10px;
|
|
}
|
|
}
|
|
|
|
.add-to-cart {
|
|
position: relative;
|
|
display: inline-flex;
|
|
float: right;
|
|
height: 44px;
|
|
padding: 0;
|
|
@include font-style($font-serif, 'regular', $font-28);
|
|
width: calc(50% - 4px);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.has-detail {
|
|
background: $white;
|
|
}
|
|
}
|
|
|
|
.add-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: $black-alpha;
|
|
z-index: 200;
|
|
|
|
.modal-content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: $white;
|
|
padding: 40px;
|
|
width: 100%;
|
|
|
|
.image {
|
|
width: 50%;
|
|
}
|
|
|
|
.title {
|
|
display: block;
|
|
@include font-style($font-serif, 'regular', $font-20);
|
|
color: $brown;
|
|
}
|
|
.name {
|
|
display: block;
|
|
@include font-style($font-serif, 'regular', $font-34);
|
|
line-height: $font-28;
|
|
color: $olive-dark;
|
|
padding-bottom: 25px;
|
|
}
|
|
.qty,
|
|
.total {
|
|
display: block;
|
|
@include font-style($font-sans, 'regular', $font-18);
|
|
color: $gray;
|
|
}
|
|
|
|
.goto,
|
|
.close {
|
|
@include font-style($font-serif, 'regular', $font-24);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (min-width: map-get($grid-breakpoints, 'md')) {
|
|
.component-buy {
|
|
.content {
|
|
.details {
|
|
.image-container{
|
|
width: calc(100% - 40px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.add-modal {
|
|
.modal-content {
|
|
max-width: 700px;
|
|
}
|
|
}
|
|
}
|
|
}
|