-
Notifications
You must be signed in to change notification settings - Fork 4
/
style.css
151 lines (146 loc) · 2.71 KB
/
style.css
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
body{
margin: 0;
font-family: Poppins;
}
a{
color: unset;
text-decoration: none;
}
.container{
width: 900px;
margin: auto;
max-width: 90vw;
text-align: center;
padding-top: 10px;
}
.title{
font-size: xx-large;
padding: 20px 0;
}
.listProduct .item img{
width: 90%;
filter: drop-shadow(0 50px 20px #0009);
}
.listProduct{
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.listProduct .item{
background-color: #EEEEE6;
padding: 20px;
border-radius: 20px;
}
.listProduct .item h2{
font-weight: 500;
font-size: large;
}
.listProduct .item .price{
letter-spacing: 7px;
font-size: small;
}
/* detail page */
.detail{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 50px;
text-align: left;
}
.detail .image img{
width: 100%;
}
.detail .image{
position: relative;
}
.detail .image::before{
position: absolute;
width: 300px;
height: 300px;
content: '';
background-color: #94817733;
z-index: -1;
border-radius: 190px 100px 170px 180px;
left: calc(50% - 150px);
top: 50px;
}
.detail .name{
font-size: xxx-large;
padding: 40px 0 0 0;
margin: 0 0 10px 0;
}
.detail .price{
font-weight: bold;
font-size: x-large;
letter-spacing: 7px;
margin-bottom: 20px;
}
.detail .buttons{
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.detail .buttons button{
background-color: #eee;
border: none;
padding: 15px 20px;
border-radius: 20px;
font-family: Poppins;
font-size: large;
}
.detail .buttons svg{
width: 15px;
}
.detail .buttons span{
background-color: #555454;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin-left: 20px;
}
.detail .buttons button:nth-child(2){
background-color: #2F2F2F;
display: flex;
justify-content: center;
align-items: center;
color: #eee;
box-shadow: 0 10px 20px #2F2F2F77;
}
.detail .description{
font-weight: 300;
}
/* // ipad */
@media only screen and (max-width: 992px) {
.listProduct{
grid-template-columns: repeat(3, 1fr);
}
.detail{
grid-template-columns: 40% 1fr;
}
}
/* mobile */
@media only screen and (max-width: 768px) {
.listProduct{
grid-template-columns: repeat(2, 1fr);
}
.detail{
text-align: center;
grid-template-columns: 1fr;
}
.detail .image img{
width: unset;
height: 40vh;
}
.detail .name{
font-size: x-large;
margin: 0;
}
.detail .buttons button{
font-size: small;
}
.detail .buttons{
justify-content: center;
}
}