-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.css
64 lines (55 loc) · 941 Bytes
/
main.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
html {
padding-bottom: 2em;
font-family: 'Roboto', sans-serif;
}
h1{
padding-top: .5em;
text-align: center;
}
#left {
width: 50%;
float: left;
}
#right {
width: 50%;
float: right;
}
#picture {
width:80%;
height:80%;
margin-left: auto;
margin-right: auto;
position: relative;
}
#picture img {
display: block;
padding-top: 2em;
width:100%;
height:100%;
}
.text {
position: absolute;
top: 0;
color:#000;
background-color:rgba(255,255,255,0.8);
font-size: 2em;
width: 100%;
height: 100%;
line-height:1200%;
text-align: center;
z-index: 10;
opacity: 0;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.text:hover {
opacity:1;
}
@media screen and (max-width: 1046px) {
#left, #right {
width: 100%;
margin-bottom: .5em;
}
}