Skip to content

Commit 0800b05

Browse files
Merge pull request #58 from NullHypothesis/improve-icons
Improve the way icons are displayed.
2 parents 8f39057 + 1dc5db3 commit 0800b05

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

src/header.go

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const headerTemplate = `
2020
<link rel="icon" href="assets/favicon-192.png" sizes="192x192">
2121
<style>
2222
body {
23-
font-family: Roboto,Helvetica,sans-serif;
23+
font-family: Roboto, Helvetica, sans-serif;
2424
background: #ddd;
2525
margin: 1em auto;
2626
max-width: 1000px;
@@ -40,20 +40,20 @@ const headerTemplate = `
4040
padding: 0.5em;
4141
list-style-type: none; /* Disable bullet points */
4242
border-radius: 10px;
43-
border:1px solid #c0c0c0;
43+
border: 1px solid #c0c0c0;
4444
background: #f5f5f5;
4545
box-shadow: 2px 2px 5px #bbb;
4646
}
4747
a:link {
48-
color:#0b61a4;
49-
text-decoration:none;
48+
color: #0b61a4;
49+
text-decoration: none;
5050
}
5151
a:visited {
52-
color:#033e6b;
53-
text-decoration:none;
52+
color: #033e6b;
53+
text-decoration: none;
5454
}
5555
a:hover {
56-
text-decoration:underline;
56+
text-decoration: underline;
5757
}
5858
.icons a:hover {
5959
text-decoration: none;
@@ -82,7 +82,16 @@ const headerTemplate = `
8282
}
8383
.icon {
8484
height: 1em;
85-
margin-right: 0.5em;
85+
width: 1em;
86+
display: inline-block;
87+
border-radius: 50%;
88+
transition: background-color 0.3s ease;
89+
padding: 0.5em;
90+
overflow: visible;
91+
}
92+
.icon:hover {
93+
background-color: #ffb772;
94+
cursor: pointer;
8695
}
8796
.icons {
8897
float: right;
@@ -158,10 +167,10 @@ const headerTemplate = `
158167
color: #efefef;
159168
}
160169
#book-info > a:link {
161-
color: #d94b7b
170+
color: #d94b7b;
162171
}
163172
#book-info > a:visited {
164-
color: #d94b7b
173+
color: #d94b7b;
165174
}
166175
</style>
167176
</head>

0 commit comments

Comments
 (0)