-
Notifications
You must be signed in to change notification settings - Fork 0
/
_products_single.scss
118 lines (105 loc) · 2.49 KB
/
_products_single.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.prod_details {
.container {
@include flex(normal, space-between, wrap);
// @extend .gap-2;
// background: indigo;
// main child 1
.prod_details-images {
@include flex(center, center, wrap);
// background-color: hotpink;
// flex-basis: 100%;
max-width: 100%;
@media (min-width: 768px) {
flex-basis: 45%;
}
// Sub child1- wrapper-featured_img{
.wrapper-featured_img {
flex-basis: 100%;
#featured {
cursor: crosshair;
// border: 1px solid $clr-primary-dark;
width: 80vw;
margin: 0 auto;
object-fit: cover;
}
}
// Sub child2- wrapper-thumb_img
.wrapper-thumb_img {
@include flex(normal, center, nowrap);
@extend .mt-1;
#slideLeft{
margin-right: 1em;
}
#slideRight{
margin-left: 1em;
}
.arrow {
width: 2%;
cursor: pointer;
display: inline;
transition: all 250ms ease-in-out;
&:hover {
opacity: 0.5;
// width: 2.5%;
}
}
#prod_slider {
@include flex(center, center, nowrap);
overflow-x: auto;
flex-basis: 85%;
&::-webkit-scrollbar {
width: 0;
&-thumb {
display: none;
}
}
.thumbnail {
cursor: pointer;
object-fit: cover;
max-width: 20vw;
max-height: 12vh;
opacity: 0.5;
// @extend .m-1;
margin: 0.25em;
// border: 2px solid $clr-primary-dark;
transition: opacity 250ms ease-in-out;
&:hover {
opacity: 1;
}
&.active {
opacity: 1;
}
}
}
}
}
// main child 2
.prod_details-desc {
@media (min-width: 768px) {
flex-basis: 45%;
}
.prod_details-desc--header {
h1 {
font-weight: 500;
font-size: 2.5rem;
letter-spacing: 1.5;
color: $clr-accent-400;
}
.price {
@extend .mb-1;
span {
font-size: 1.5rem;
color: $clr-accent-400;
font-weight: 500;
}
}
}
.prod_details-desc--content {
p {
@extend .mb-1;
color: $clr-accent-600;
}
}
}
}
}