-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacher.css
113 lines (88 loc) · 1.58 KB
/
teacher.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
/* PRODUCTS */
.product {
position: relative;
overflow: hidden;
padding: 9px;
}
.product-category {
padding: 0 10vw;
font-size: 30px;
font-weight: 500;
margin-bottom: 40px;
text-transform: capitalize;
}
.product-container {
padding: 0 4vw;
display: flex;
overflow-x: auto;
scroll-behavior: smooth;
}
.product-container::-webkit-scrollbar {
display: none;
}
.product-card {
flex: 0 0 auto;
width: 220px;
height: 280px;
margin-right: 70px;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.3);
border-radius: 4px;
overflow-x: auto;
margin-bottom: 40px;
margin-top: 20px;
}
.product-card:hover {
box-shadow: 13px 14px 16px 5px rgba(0,0,0,0.3);
transition : 100ms;
transform : translateY(-9px);
}
.product-image {
position: relative;
width: 100%;
height: 220px;
overflow: hidden;
}
.product-thumb {
width: 100%;
height: 100%;
object-fit: cover;
}
.product-short-description {
width: 100%;
height: 20px;
line-height: 20px;
overflow: hidden;
opacity: 0.5;
text-transform: capitalize;
margin: 5px 0;
}
.collection-container {
/* width: 100%; */
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 10px;
}
.collection {
position: relative;
}
.collection img {
width: 100%;
height: 100%;
object-fit: cover;
}
.collection p {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #fff;
font-size: 50px;
text-transform: capitalize;
}
.collection:nth-child(3) {
grid-column: span 2;
margin-bottom: 10px;
}
.product h4{
}