From 0d6ddf944d77ba41658e8823ea06a2fb5c5f969d Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Sat, 23 Mar 2024 09:15:12 -0500 Subject: [PATCH 1/2] Improve styling. --- src/header.go | 37 ++++++++++++++++++------------------- src/main.go | 2 ++ 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/header.go b/src/header.go index 564788d..c15d943 100644 --- a/src/header.go +++ b/src/header.go @@ -22,23 +22,23 @@ const headerTemplate = ` body { font-family: Roboto,Helvetica,sans-serif; background: #ddd; - margin-left: auto; - margin-right: auto; - margin-top: 20px; + margin: 1em auto; max-width: 1000px; } li { - margin-top: 1em; - margin-bottom: 1em; - margin-right: 1em; + border-radius: 10px; + margin: 0.5em; + padding: 0.5em; } h1 { - font-size: 25px; + font-size: 2em; color: #efefef; width: 80%; float: left; } ul { + padding: 0.5em; + list-style-type: none; /* Disable bullet points */ border-radius: 10px; border:1px solid #c0c0c0; background: #f5f5f5; @@ -58,6 +58,9 @@ const headerTemplate = ` p { margin: 0px; } + #container { + margin: 1em; + } .author { color: #666; } @@ -96,7 +99,7 @@ const headerTemplate = ` font-size: 12px; } :target { - background-color: #f6ba81; + background-color: #ffb772; } #left-header { flex: 4; @@ -132,6 +135,8 @@ const headerTemplate = ` background: #333 url('assets/open-access.svg') right/25% no-repeat; } #censorbib-description { + font-size: 1.15em; + text-align: justify; padding: 1em; flex: 5; } @@ -168,15 +173,9 @@ const headerTemplate = `
- CensorBib is an online archive of selected research papers in the field - of Internet censorship. Most papers on CensorBib approach the topic - from a technical angle, by proposing designs that circumvent censorship - systems, or by measuring how censorship works. The icons next to each - paper make it easy to download, cite, and link to papers. If you think - I missed a paper, - - make a pull request - . + CensorBib is an archive of selected academic research papers on + Internet censorship. If you think I missed a paper, + make a pull request. Finally, the net4people/bbs forum has reading groups for many of the papers listed below. @@ -189,7 +188,7 @@ const headerTemplate = `
@@ -204,7 +203,7 @@ const headerTemplate = `
- Are you a researcher? If so, you may like my book + Are you a researcher? You may like my book Research Power Tools.
diff --git a/src/main.go b/src/main.go index 893db24..3c29766 100644 --- a/src/main.go +++ b/src/main.go @@ -97,9 +97,11 @@ func parseCiteName(line string) string { } func run(w io.Writer, bibEntries []bibEntry) { + fmt.Fprintln(w, "
") fmt.Fprint(w, header()) makeBib(w, bibEntries) fmt.Fprint(w, footer()) + fmt.Fprintln(w, "
") } func main() { From e9c7d3ee9fc8261ffff9ba38787596223b549a1c Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Sat, 23 Mar 2024 09:47:36 -0500 Subject: [PATCH 2/2] Remove text decoration for icons. --- src/header.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/header.go b/src/header.go index c15d943..d8b1e34 100644 --- a/src/header.go +++ b/src/header.go @@ -55,6 +55,9 @@ const headerTemplate = ` a:hover { text-decoration:underline; } + .icons a:hover { + text-decoration: none; + } p { margin: 0px; }