-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
104 lines (90 loc) · 1.56 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
* {
font-family: 'Amatic SC', cursive;
box-sizing: border-box;
/* margin: 0px; */
}
body {
margin: auto;
background-color: #e9e5dd;
max-width: 1000px;
padding: 1rem;
background-color: black;
}
section{
}
div#gallery {
max-width: 100vw;
display: flex;
flex-direction: row;
flex-wrap: wrap;
/* grid-template-rows: repeat(2); */
margin: auto;
}
poster{
position: relative;
max-height: 900px;
flex: 50%;
/* pointer-events: auto; */
}
img {
width: 100%;
}
poster:hover div#content{
transition-duration: 1000ms;
opacity: 80%;
background-color: rgb(255, 255, 255);
}
h1{
color: white;
}
h2 {
text-align: center;
color: white;
}
div#content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
h3{
opacity: 0%;
text-align: center;
font-size: 2rem;
/* position: absolute;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%; */
}
poster:hover h3 {
transition-duration: 1000ms;
opacity: 100%;
}
p {
/* pointer-events: none; */
opacity: 0%;
/* top: 30%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute; */
text-align: center;
font-size: 1.5rem;
}
poster:hover p {
transition-duration: 1000ms;
opacity: 100%;
}
h4 {
margin-bottom: .5rem;
}
@media (max-width: 600px) {
poster {
flex: 100%;
/* flex-direction: column; */
}
}