From 0d5bdd6935cf60a225dfec927318c807a1fff334 Mon Sep 17 00:00:00 2001 From: Randy Boyes Date: Wed, 4 Sep 2024 12:36:08 -0400 Subject: [PATCH] header and more julia styling --- _css/basic.css | 182 +++----------------------------------------- _layout/header.html | 36 ++++++--- index.md | 8 +- posts.md | 4 +- pubs.md | 3 +- resume.md | 4 +- 6 files changed, 41 insertions(+), 196 deletions(-) diff --git a/_css/basic.css b/_css/basic.css index 0690118..838eee3 100644 --- a/_css/basic.css +++ b/_css/basic.css @@ -1,177 +1,5 @@ @import url("https://fonts.cdnfonts.com/css/jetbrains-mono-2"); -/* ================================================================== - Header and Nav -================================================================== */ - -nav { - width: 100%; - display: inline-block; - text-align: center; -} - -nav ul { - padding-left: 0; - margin-top: 0; - margin-bottom: 0; -} - -nav li { - display: inline-block; -} - -nav li a { - color: #004de6; - text-decoration: none; - font-size: 18px; - font-weight: bold; - display: inline-block; - float: center; - padding-top: 10px; - padding-right: 2px; - padding-left: 2px; - padding-bottom: 5px; - margin-left: 7px; - margin-right: 7px; - margin-bottom: 7px; - border-bottom: 2px solid white; - transition: color 0.3s ease; -} - -header li a:hover { - color: orange; - border-bottom: 2px solid black; -} - -#menu-icon { - display: none; -} - -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -ruby, -section, -summary, -time, -mark, -audio, -video { - /*margin: 0;*/ - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} -body { - line-height: 1; -} -ol, -ul { - list-style: none; -} -blockquote, -q { - quotes: none; -} -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ""; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} - :root { --font-family: "JetBrains Mono", monospace; --line-height: 1.2rem; @@ -332,6 +160,16 @@ td { text-align: left; } +td[scope="header"] { + border: var(--border-thickness) solid var(--text-color); + padding: calc((var(--line-height) / 2)) + calc(1ch - var(--border-thickness) / 2) + calc((var(--line-height) / 2) - (var(--border-thickness))); + line-height: var(--line-height); + vertical-align: top; + text-align: left; +} + th[scope="col"] { font-weight: 700; border-bottom: var(--border-thickness) solid var(--text-color); diff --git a/_layout/header.html b/_layout/header.html index eba6d76..fbef046 100644 --- a/_layout/header.html +++ b/_layout/header.html @@ -1,11 +1,25 @@ -
- -
+ + + + + + + + + + + + + + +
+

randy.pub

+ Personal homepage +
AuthorRandy Boyes
Updated + +
Nav + Home + Publications + Resume + Posts +
diff --git a/index.md b/index.md index 75e77e6..9970ccd 100644 --- a/index.md +++ b/index.md @@ -1,15 +1,13 @@ ---- - ~~~ julia> -print(Intro) +print(Intro) ~~~ I (Randy) am currently working as the Director of Analytics at [Presage Group Inc.](https://presagegroup.com/). I completed my Ph.D. in Epidemiology at Queen's University in 2023. ~~~ julia> -print(Socials) +print(Socials) ~~~ **4x2 DataFrame** @@ -50,7 +48,7 @@ print(Socials) ~~~ julia> -print(Recent) +print(Recent) ~~~ Dict{Date, String} with 2 entrys: diff --git a/posts.md b/posts.md index c79b6f4..50cdc65 100644 --- a/posts.md +++ b/posts.md @@ -2,11 +2,9 @@ title = "Posts" +++ ---- - ~~~ julia> -print(Posts) +print(Posts) ~~~ Dict{Date, String} with 2 entrys: diff --git a/pubs.md b/pubs.md index 3ec5c58..549e09b 100644 --- a/pubs.md +++ b/pubs.md @@ -5,10 +5,9 @@ date = Date(2019, 3, 22) rss = "A list of working papers and publications." +++ ---- ~~~ julia> -print(Publications) +print(Publications) ~~~ **GroupedDataFrame with 3 groups based on key: type** diff --git a/resume.md b/resume.md index 75388f4..020848b 100644 --- a/resume.md +++ b/resume.md @@ -7,11 +7,9 @@ rss = "Current list of experience and education." tags = ["syntax", "code"] +++ ---- - ~~~ julia> -print(Resume) +print(Resume) ~~~ **GroupedDataFrame with 2 groups based on key: type**