-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_products.scss
58 lines (56 loc) · 1.31 KB
/
_products.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
/*=============== PRODUCTS ===============*/
.product{
&__description{
text-align: center;
}
&__container{
padding: 3rem 0;
grid-template-columns: repeat(2, 1fr);
gap: 2.5rem 3rem;
}
&__card{
display: grid;
position: relative;
&:hover .product__img{
transform: translateY(-.5rem);
}
}
&__img{
position: relative;
width: 120px;
justify-self: center;
margin-bottom: var(--mb-0-75);
transition: .3s;
}
&__title,
&__price{
font-size: var(--small-font-size);
font-weight: var(--font-semi-bold);
color: var(--title-color);
}
&__title{
margin-bottom: .25rem;
}
&__button{
position: absolute;
right: 0;
bottom: 0;
background-color: var(--first-color);
color: #FFF;
padding: .25rem;
border-radius: .35rem;
font-size: 1.15rem;
&:hover{
background-color: var(--first-color-alt);
}
}
&__circle{
width: 90px;
height: 90px;
background-color: var(--first-color-lighten);
border-radius: 50%;
position: absolute;
top: 18%;
left: 5%;
}
}