-
Notifications
You must be signed in to change notification settings - Fork 0
/
newtab.css
98 lines (80 loc) · 1.42 KB
/
newtab.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
@font-face {
font-family: "Noto Sans Mono";
src: url("NotoSansMono-Regular.ttf");
}
* {
font-family: "Noto Sans Mono", serif;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
#apod-wrapper {
height: 100%;
padding: 48px;
box-sizing: border-box;
position: relative;
background: no-repeat center center;
background-size: cover;
}
#apod-wrapper iframe {
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
#apod-time-and-title, #info {
position: absolute;
z-index: 1;
}
#apod-time-and-title {
display: flex;
justify-content: space-between;
right: 48px;
left: 48px;
top: 48px;
}
#apod-time-and-title > * {
flex: 0 0 auto;
border-radius: 8px;
}
#title, #time, #info {
background-color: white;
padding: 0 16px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
#title {
text-align: end;
}
#time {
font-size: 6em;
}
#info {
bottom: 0;
left: 48px;
right: 48px;
box-sizing: border-box;
border-radius: 8px 8px 0 0;
}
#info-content {
height: 0;
overflow: hidden;
transition: height 0.5s ease-in-out;
}
#info-copyright {
padding-bottom: 16px;
}
#info-title-container {
display: flex;
}
#info-title-container img {
transition: transform 0.5s ease-in-out;
}
#info-title {
flex-grow: 1;
}
#info:hover #info-title-container img {
transform: rotate(180deg);
}