-
Notifications
You must be signed in to change notification settings - Fork 0
/
apod.css
92 lines (82 loc) · 1.43 KB
/
apod.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
body, html {
margin: 0;
}
.background {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(
180deg,
rgb(29, 41, 72) 0%,
rgb(19.87, 28.61, 51.14) 24.82%,
rgb(15, 22, 40) 38.08%,
rgb(5, 10, 22) 100%
);
}
.navbar {
display: flex;
justify-content: space-between;
color: #fff;
width: 80%;
height: 85%;
margin-top: 3%;
font-family: "Satoshi-Regular", Helvetica;
color: #ffffff;
font-size: 15px;
}
.text {
opacity: 0.75;
}
.text1 {
display: flex;
font-size: 27px;
letter-spacing: 5.7px;
z-index: 1;
}
.apod_image {
display: flex;
position: relative;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 3%;
max-width: 70%;
}
.image {
flex: 1;
position: relative;
}
.info {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
width: 80%;
text-align: center;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
opacity: 0;
background-color: rgb(0, 0, 0);
border-radius: 2%;
transition: opacity 0.3s ease-in-out;
}
.apod_image:hover .overlay,
.info:hover + .overlay {
opacity: .3;
}
.overlay:hover + .info,
.info:hover {
opacity: 1;
}