-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
306 lines (260 loc) · 5.42 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
* {
padding: 0px;
margin: 0px;
}
.right-menu li {
/* margin-top: 29px; */
padding-top: 30px;
display: inline-block;
}
.right-menu .fab {
margin-right: 10px;
font-size: 20px;
cursor: pointer;
}
.navbar {
padding: 0 20px;
background-color: aliceblue;
}
.navbar-toggler {
font-size: 25px;
border: none;
outline: none;
margin: 10px;
}
.navbar-brand img {
/*but if we remove img,img will be big only*/
width: 160px !important;
/* font-size: 20px; */
}
.navbar-brand {
position: absolute;
left: 50%;
top: 25px;
transform: translate(-50%, 0);
/*here 50% made it move more left than 50px */
}
.banner {
position: relative;
}
.banner-img {
width: 60%;
margin: 80px 120px;
}
.banner-img img {
width: 100%;
margin-bottom: -80px;
/*observe this line.to fit any small img or anything, why dont we decrease its margin*/
}
.banner-title {
position: absolute;
left: 50%;
top: 60%;
}
.banner-title h1 {
color: #fff;
background-color: rgba(39, 35, 35, 0.8);
padding: 3px 10px;
font-size: 4vw;
font-weight: bold;
}
.fashion-trends {
padding: 100px 0;
}
.fashion-box {
margin: 80px 0;
}
.title-style h1 {
padding: 40px 0px;
/*bcause of this,the h1 is in center in the box*/
}
/* .title-style p {
margin-top: 60px !important;
} */
.title-style {
margin: 0 auto 80px;
height: 120px;
width: 60%;
/* max-width: 700px; */
/* position: relative; */
/*donno for what these 2 lines are!!*/
box-shadow: 0 3px 5px 0 rgba(0, 0, 50, 0.4);
transition: width 4s;
background-color: aqua;
}
/* .title-style:hover ::before {
content: '';
width: 260px;
height: 7px;
background-color: red;
border: 2px solid green;
position: absolute;
top: 123%;
} */
.title-style:hover ::after {
content: '';
width: 260px;
height: 7px;
background-color: red;
border: 2px solid green;
position: absolute;
bottom: -10px;
left: 170px;
z-index: -1;
}
.trending-img {
position: relative;
/* margin-bottom: 15px; */
}
.trending-img img {
width: 100%;
}
.trending-img .btn-buy {
position: absolute;
left: 30%;
bottom: 0;
/* transform: translate(-50%, 0); but i decided to remove this*/
/*using left: 40% only other than this also has same effect.but donno y creator done this way.*/
width: 150px;
padding: 8px 0;
border: 0;
transition: .7s;
opacity: 0;
}
.trending-img:hover .btn-buy {
transform: translateY(50%);
bottom: 50%;
background-color: yellowgreen;
opacity: 1;
z-index: 1;
/*button was dim black so that's why!*/
}
.overlay {
position: absolute;
height: 0;
width: 100%;
background-color: #333;
top: 0;
/*if i give bottom here, the shadow will go from bottom to top*/
opacity: .6;
transition: .5s;
}
.trending-img:hover .overlay {
height: 100%;
}
/* ------offer--------- */
.offer {
background: url(fashion.jpg) no-repeat center center;
margin: initial !important;
}
.row {
margin: initial;
/* HORIZONTAL SCROLLING IS REMOVED BY THIS LINE AND THIS CLASS */
}
.subscribe {
margin-top: 80px;
padding: 60px;
max-width: 500px;
background-color: aliceblue;
opacity: .8;
}
.subscribe a {
background-color: black;
padding: 10px;
text-decoration: none;
font-size: 1em;
color: white;
}
.offer img {
width: 300px;
height: 400px;
margin: -100px;
/*observe this line very carefully and by removing - also*/
margin-top: 150px;
}
.fashion-blog {
margin-top: 240px;
margin-bottom: 110px;
}
.blog-img {
margin: 50px 0;
height: 300px;
width: 300px;
display: inline-block;
cursor: pointer;
/*i dont understand how hell this line worked like that*/
}
.blog-img img {
width: 100%;
height: 100%;
}
.blog-img h5 {
margin-top: 30px;
font-weight: bold;
}
.title-style {
margin: 40px auto;
}
/*------------- fashion brands---------- */
.fashion-brands {
margin-bottom: 140px;
}
.brand-logo {
height: 200px;
width: 200px;
margin: 50px auto 30px;
/*this auto is to center align horizontally, i.e, center from the right*/
background: #fff;
border-radius: 50%;
box-shadow: 0 2px 40px 0px rgb(124, 116, 116);
cursor: pointer;
}
.brand-logo img {
width: 100%;
border-radius: 50%;
}
.fashion-brands p {
margin: 40px 0;
font-weight: bold;
}
/* ----footer------ */
.footer {
margin-top: 100px;
background-color: aliceblue;
}
.footer h5 {
margin-bottom: 40px;
position: relative;
}
.payments,
.insta-img,
.app-download {
margin: 50px auto;
}
.payments img {
width: 300px;
cursor: pointer;
}
.insta-img img {
width: 75px;
/*so that to fit the adjacent widths and cols*/
padding: 5px;
cursor: pointer;
}
.app-download img {
width: 60%;
cursor: pointer;
}
.footer h5::before {
content: "";
width: 70px;
height: 3px;
background-color: blue;
position: absolute;
top: 25px;
}
.footer-icons .fab {
margin: 0 20px;
cursor: pointer;
font-size: 20px;
}