-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
76 lines (76 loc) · 1.52 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
body{
background: black;
}
.gallery-container{
margin-top: 100px;
}
.gallery-head{
margin-bottom: -10px;
text-align: center;
border-top: 2px solid grey;
font-weight: bold;
font-size: 4rem;
color: rgba(255, 255, 255, 0.849);
padding: 10px;
box-sizing: 10px 10px 20px 5px brown;
transition: all 300ms ease-in;
}
.gallery{
/* margin-top: 50px; */
display: flex;
flex-direction: row;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
width: 100%;
overflow: hidden;
background:#b2bec3;
border: 2px solid rgb(155, 154, 154);
border-radius: 10px;
}
.gallery .item{
display: flex;
flex-direction: row;
}
.gallery figure{
overflow: hidden;
position: relative;
padding: 2px;
}
.gallery figure.pic{
transform: translateX(-50px);
opacity: 0;
transition: .5s ease-in-out;
box-shadow: 1px 5px 15px 5px rgba(243, 243, 243, 0.562);
border-radius: 10px;
}
.pic img{
width: 300px;
height: 350px;
border-radius: 10px;
}
.item .pic:hover{
cursor: pointer;
background: red;
transform: scale(1.02);
}
.pic:hover figcaption{
left: 0;
transition: 0.5s;
}
.gallery figcaption p{
font-weight: bold;
padding: 5px;
color: #ffff;
}
.gallery figcaption{
position: absolute;
left: -100%;
background: rgba(51, 51, 51, 0.849);
border-radius: 0 10px 10px 0;
bottom: 20px;
}
.gallery figure.showoff{
opacity: 1;
transform: translateX(0px);
}