/
gallery.css
69 lines (69 loc) · 1.68 KB
/
gallery.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
section.gallery{
display:flex;
justify-content:center;
padding:40px 0px;
}
section.gallery>.col{
width:450px;margin:20px;
}
/* section.gallery>.col>.pictue */
section.gallery>.col>.picture{
width:100%;height:500px;
text-align:center;color: #ffffff;
}
section.gallery>.col>.picture-1{
background-image:url(gallery-1.jpg);
background-size:cover;
}
section.gallery>.col>.picture-2{
background-image:url(gallery-2.jpg);
background-size:cover;
}
/* section.gallery>.col>.text */
section.gallery>.col>.text{
box-sizing:border-box;
width:100%;height:300px;
text-align:center;color: #000000;
border:4px solid #000000;
line-height:0.9em;
}
/* section.gallery>.col>.block */
section.gallery>.col>.block{
margin-bottom:40px;
display:flex;align-items:center;
justify-content:center;
}
section.gallery>.col>.block>.words{
width:100%;
}
section.gallery>.col>.block>.words>.title{
font-family:"Dancing Script", cursive;
font-size:2em;font-weight:bold;
margin-bottom:30px;
}
section.gallery>.col>.block>.words>.story{
font-size:1.5em;margin-bottom:40px;
}
section.gallery>.col>.block>.words>.action>.btn{
font-size:0.8em;color:#ffffff;
border:1px solid #ffffff;
background-color:rgb(0,0,0,0.3);
padding:10px 20px;
transition: background-color 0.5s;
cursor: pointer;
}
section.gallery>.col>.block>.words>.action>.btn:hover{
background-color:rgba(0,0,0,1);
}
@media (max-width:800px){
section.gallery{
flex-wrap:wrap;
}
section.gallery>.col{
width:90%;margin:20px 0px;
}
section.gallery>.col:last-child{
display:flex;
flex-direction:column-reverse;
}
}