-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
133 lines (108 loc) · 2.14 KB
/
style.css
File metadata and controls
133 lines (108 loc) · 2.14 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
body {
font-family: 'Roboto', sans-serif;
margin-left: 64px;
margin-right: 64px;
background-color: black;
color: white;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin-top: 0;
margin-bottom: 0;
}
#wrapper {
/* need to hide the stars that fall off the edge so that the viewport doesn't get bigger */
/* thanks to https://stackoverflow.com/a/14271049 */
overflow: hidden;
padding: 0;
margin: 0;
position: absolute;
height: 100vh;
width: 100vw;
}
#black-background {
padding: 10px;
border-radius: 10px;
background-color: rgba(0, 0, 0, .8);
z-index: 1;
}
nav {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
a {
padding: 10px;
margin: 5px;
border-radius: 10px;
border: solid lightgrey;
text-decoration: none;
}
#back {
font-size: 2em;
position: absolute;
top: 0;
left: 0;
text-align: center;
background-color: rgba(0, 0, 0, .8);
}
a:link {
color: skyblue;
}
a:visited {
color: rgb(0, 212, 106);
}
a:hover {
text-shadow: 0 0 5px;
box-shadow: 0 0 5px;
/* glow effect inspired by adventofcode.com */
}
a:active {
text-shadow: 0 0 7px;
box-shadow: 0 0 7px;
/* just a bit more glow */
}
.star {
border-radius: 50%;
position: absolute;
font-size: 0;
}
.hitbox {
padding: 10px;
position: absolute;
transform: translate(-10px, -10px); /* close enough! */
cursor: pointer;
}
#hide-cursor {
cursor: none;
}
@media print {
/* Change the back to black text on a white background, and make all the links blue and underlined. */
body {
color: black;
background-color: white;
margin: 0;
}
a {
text-decoration: underline;
}
a:link {
color: #0000ee;
}
a:visited {
color: #0000ee;
}
.star {
visibility: hidden;
}
#back {
visibility: hidden;
}
#black-background {
background-color: rgba(255, 255, 255, 1);
}
}