-
Notifications
You must be signed in to change notification settings - Fork 0
/
apparelhome.css
106 lines (103 loc) · 1.75 KB
/
apparelhome.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
body{
margin: 0;
padding: 0;
background: #262626;
background-size: cover;
font-family: 'Arial';
}
.navbar{
position: fixed;
height: 80px;
width: 100%;
top: 0;
left: 0;
background: rgba(173,216,230, 0.4);
}
.navbar .logo{
width: 130px;
height: 70px;
padding: 5px 90px;
}
.navbar ul{
float: right;
margin-right: 20px;
}
.navbar ul li{
list-style: none;
margin: 0 8px;
display: inline-block;
line-height: 80px;
}
.navbar ul li a{
font-size: 20px;
font-family: 'Roboto', sans-serif;
color: white;
padding: 6px 13px;
text-decoration: none;
transition: .4s;
}
.navbar ul li a.active,
.navbar ul li a:hover{
background: #5F9EA0;
border-radius: 2px;
}
.sub-menu{
display: none;
}
.navbar ul li:hover .sub-menu{
display: block;
position: absolute;
background: rgba(173,216,230, 0.4);
margin-left: -15px;
}
.search-txt{
width: 0px;
}
.btn:hover > .search-txt{
width: 70%;
transform: 1.5s;
}
.container{
width: 600px;
margin: 70px auto 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.container .box{
position: relative;
width: 220px;
height: 300px;
background: #dc9495;
margin: 10px;
box-sizing: border-box;
display: inline-block;
}
.container .box .imgBox{
position: relative;
overflow: hidden;
}
.container .box .imgBox img{
max-width: 100%;
height: 300px;
transition: transform 2s;
}
.container .box:hover .imgBox img{
transform: scale(1.2);
}
.container .box .details{
position: absolute;
top: 10px;
left: 10px;
bottom: 10px;
right: 10px;
border: solid 2px #fff;
}
.container .box .details .content{
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
padding: 15px;
color: #fff;
}