diff options
| author | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-04 19:20:20 +0200 |
|---|---|---|
| committer | Mitja Felicijan <m@mitjafelicijan.com> | 2023-08-04 19:20:20 +0200 |
| commit | 42a88cbe7af7421cf672c2d11b1f50bf37c31fda (patch) | |
| tree | bdfc23c07c3271e521fa65c61bdb06d7ee97357c | |
| parent | 5e1e4c7b8c3223e8edc64bedf6f49daa8bcdba24 (diff) | |
| download | mitjafelicijan.com-42a88cbe7af7421cf672c2d11b1f50bf37c31fda.tar.gz | |
Update: Styles
| -rw-r--r-- | config.yaml | 2 | ||||
| -rw-r--r-- | content/notes/2023-08-01-make-b-w-svg-charts-with-matplotlib.md | 2 | ||||
| -rw-r--r-- | templates/base.html | 31 | ||||
| -rw-r--r-- | templates/index.html | 14 |
4 files changed, 29 insertions, 20 deletions
diff --git a/config.yaml b/config.yaml index 1f65ca3..6fcd3bd 100644 --- a/config.yaml +++ b/config.yaml | |||
| @@ -5,7 +5,7 @@ language: "en-us" | |||
| 5 | 5 | ||
| 6 | # Code highlighting. | 6 | # Code highlighting. |
| 7 | # https://swapoff.org/chroma/playground/ | 7 | # https://swapoff.org/chroma/playground/ |
| 8 | highlighting: "vs" | 8 | highlighting: "pygments" |
| 9 | 9 | ||
| 10 | # Minifies output HTML (including inline CSS, JS). | 10 | # Minifies output HTML (including inline CSS, JS). |
| 11 | minify: true | 11 | minify: true |
diff --git a/content/notes/2023-08-01-make-b-w-svg-charts-with-matplotlib.md b/content/notes/2023-08-01-make-b-w-svg-charts-with-matplotlib.md index c3fef57..4a8f4f4 100644 --- a/content/notes/2023-08-01-make-b-w-svg-charts-with-matplotlib.md +++ b/content/notes/2023-08-01-make-b-w-svg-charts-with-matplotlib.md | |||
| @@ -15,7 +15,7 @@ pip install pandas | |||
| 15 | 15 | ||
| 16 | Example of data being used. | 16 | Example of data being used. |
| 17 | 17 | ||
| 18 | ```csv | 18 | ```text |
| 19 | Epoch,Connect (NLB),Processing (NLB),Waiting (NLB),Total (NLB),Connect (ALB),Processing (ALB),Waiting (ALB),Total (ALB) | 19 | Epoch,Connect (NLB),Processing (NLB),Waiting (NLB),Total (NLB),Connect (ALB),Processing (ALB),Waiting (ALB),Total (ALB) |
| 20 | 1,57.7,315.7,309.4,321.6,9,104.4,98.3,105.7 | 20 | 1,57.7,315.7,309.4,321.6,9,104.4,98.3,105.7 |
| 21 | 2,121.9,114.4,100.3,176.9,5.8,99.1,97.1,101.1 | 21 | 2,121.9,114.4,100.3,176.9,5.8,99.1,97.1,101.1 |
diff --git a/templates/base.html b/templates/base.html index 60652ef..8447a9e 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -16,10 +16,11 @@ | |||
| 16 | <style> | 16 | <style> |
| 17 | body { | 17 | body { |
| 18 | padding: 1rem; | 18 | padding: 1rem; |
| 19 | max-width: 760px; | 19 | max-width: 700px; |
| 20 | background: white; | 20 | background: white; |
| 21 | font-family: "Times New Roman", Times, serif; | 21 | font-family: sans-serif; |
| 22 | line-height: 1.35rem; | 22 | line-height: 1.35rem; |
| 23 | font-size: 16px; | ||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | hr { | 26 | hr { |
| @@ -55,6 +56,14 @@ | |||
| 55 | background: #eee; | 56 | background: #eee; |
| 56 | } | 57 | } |
| 57 | 58 | ||
| 59 | ul.list li { | ||
| 60 | padding: 0.2em 0; | ||
| 61 | } | ||
| 62 | |||
| 63 | ul { | ||
| 64 | line-height: 1.4em; | ||
| 65 | } | ||
| 66 | |||
| 58 | td, th { | 67 | td, th { |
| 59 | border: 1px solid black; | 68 | border: 1px solid black; |
| 60 | padding: 4px; | 69 | padding: 4px; |
| @@ -66,15 +75,14 @@ | |||
| 66 | pre { | 75 | pre { |
| 67 | text-wrap: nowrap; | 76 | text-wrap: nowrap; |
| 68 | overflow-x: auto; | 77 | overflow-x: auto; |
| 69 | margin-block-start: 1.5rem; | 78 | padding: 0 1em; |
| 70 | margin-block-end: 1.5rem; | 79 | background: whitesmoke; |
| 71 | padding: 0.5rem 0; | ||
| 72 | border-top: 1px solid #aaa; | ||
| 73 | border-bottom: 1px solid #aaa; | ||
| 74 | } | 80 | } |
| 75 | 81 | ||
| 76 | code { | 82 | code { |
| 77 | background: #f6f6f6; | 83 | background: #fff0e3; |
| 84 | padding: 0 3px; | ||
| 85 | font-size: 14px; | ||
| 78 | } | 86 | } |
| 79 | 87 | ||
| 80 | pre code { | 88 | pre code { |
| @@ -84,7 +92,6 @@ | |||
| 84 | 92 | ||
| 85 | pre, code, pre *, code * { | 93 | pre, code, pre *, code * { |
| 86 | font-family: monospace; | 94 | font-family: monospace; |
| 87 | font-size: initial !important; | ||
| 88 | } | 95 | } |
| 89 | 96 | ||
| 90 | img, video, audio { | 97 | img, video, audio { |
| @@ -113,6 +120,10 @@ | |||
| 113 | } | 120 | } |
| 114 | 121 | ||
| 115 | @media only screen and (max-width: 600px) { | 122 | @media only screen and (max-width: 600px) { |
| 123 | body { | ||
| 124 | padding: 5px; | ||
| 125 | } | ||
| 126 | |||
| 116 | header { | 127 | header { |
| 117 | flex-direction: column; | 128 | flex-direction: column; |
| 118 | gap: 1rem; | 129 | gap: 1rem; |
| @@ -161,7 +172,5 @@ | |||
| 161 | target="_blank">RSS feed</a>. | 172 | target="_blank">RSS feed</a>. |
| 162 | </p> | 173 | </p> |
| 163 | </footer> | 174 | </footer> |
| 164 | |||
| 165 | <script src="https://cdn.usefathom.com/script.js" data-site="XHQARKXP" defer></script> | ||
| 166 | </body> | 175 | </body> |
| 167 | </html> | 176 | </html> |
diff --git a/templates/index.html b/templates/index.html index 3c83ec1..2c4a71b 100644 --- a/templates/index.html +++ b/templates/index.html | |||
| @@ -29,31 +29,31 @@ | |||
| 29 | <tbody> | 29 | <tbody> |
| 30 | <tr> | 30 | <tr> |
| 31 | <td class="pstatus-red" title="Still in initial stage"></td> | 31 | <td class="pstatus-red" title="Still in initial stage"></td> |
| 32 | <td><a href="https://github.com/mitjafelicijan/moonshine" target="_blank">Moonshine - Lua distribution</a></td> | 32 | <td><a href="https://github.com/mitjafelicijan/moonshine" target="_blank">Moonshine</a></td> |
| 33 | <td>Testing Alpine container, implementing first two rocks.</td> | 33 | <td>Testing Alpine container, implementing first two rocks.</td> |
| 34 | <td>17th of July, 2023</td> | 34 | <td>17th of July, 2023</td> |
| 35 | </tr> | 35 | </tr> |
| 36 | <tr> | 36 | <tr> |
| 37 | <td class="pstatus-green" title="Kinda works"></td> | 37 | <td class="pstatus-green" title="Kinda works"></td> |
| 38 | <td><a href="https://github.com/mitjafelicijan/i3blocks" target="_blank">i3blocks - Progress bars</a></td> | 38 | <td><a href="https://github.com/mitjafelicijan/i3blocks" target="_blank">i3blocks</a></td> |
| 39 | <td>Testing blocks: cpu, ram, disk and nvidia gpu.</td> | 39 | <td>Testing blocks: cpu, ram, disk and nvidia gpu.</td> |
| 40 | <td>12th of July, 2023</td> | 40 | <td>12th of July, 2023</td> |
| 41 | </tr> | 41 | </tr> |
| 42 | <tr> | 42 | <tr> |
| 43 | <td class="pstatus-orange" title="Somewhat works"></td> | 43 | <td class="pstatus-orange" title="Somewhat works"></td> |
| 44 | <td><a href="https://github.com/mitjafelicijan/errand" target="_blank">Errand - Task runner</a></td> | 44 | <td><a href="https://github.com/mitjafelicijan/errand" target="_blank">Errand</a></td> |
| 45 | <td>Working on re-implementating the whole thing in C.</td> | 45 | <td>Working on re-implementating the whole thing in C.</td> |
| 46 | <td>7th of July, 2023</td> | 46 | <td>7th of July, 2023</td> |
| 47 | </tr> | 47 | </tr> |
| 48 | <tr> | 48 | <tr> |
| 49 | <td class="pstatus-green" title="Kinda works"></td> | 49 | <td class="pstatus-green" title="Kinda works"></td> |
| 50 | <td><a href="https://github.com/mitjafelicijan/jbmafp" target="_blank">JBMAFP - Generates static sites</a></td> | 50 | <td><a href="https://github.com/mitjafelicijan/jbmafp" target="_blank">JBMAFP</a></td> |
| 51 | <td>Fixing minor issues and writing docs.</td> | 51 | <td>Fixing minor issues and writing docs.</td> |
| 52 | <td>8th of July, 2023</td> | 52 | <td>8th of July, 2023</td> |
| 53 | </tr> | 53 | </tr> |
| 54 | <tr> | 54 | <tr> |
| 55 | <td class="pstatus-red" title="Still in initial stage"></td> | 55 | <td class="pstatus-red" title="Still in initial stage"></td> |
| 56 | <td><a href="https://github.com/mitjafelicijan/marionette" target="_blank">Marionette - UI testing tool</a></td> | 56 | <td><a href="https://github.com/mitjafelicijan/marionette" target="_blank">Marionette</a></td> |
| 57 | <td>Implementing HTTP server for viewing reports.</td> | 57 | <td>Implementing HTTP server for viewing reports.</td> |
| 58 | <td>6th of July, 2023</td> | 58 | <td>6th of July, 2023</td> |
| 59 | </tr> | 59 | </tr> |
| @@ -61,7 +61,7 @@ | |||
| 61 | </table> | 61 | </table> |
| 62 | 62 | ||
| 63 | <h2><a name="posts"></a>More long form, ramblings etc</h2> | 63 | <h2><a name="posts"></a>More long form, ramblings etc</h2> |
| 64 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement"> | 64 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" class="list"> |
| 65 | <meta itemprop="name" content="Article list"> | 65 | <meta itemprop="name" content="Article list"> |
| 66 | {{ range .Pages }} | 66 | {{ range .Pages }} |
| 67 | {{ if eq .Type "post" }} | 67 | {{ if eq .Type "post" }} |
| @@ -72,7 +72,7 @@ | |||
| 72 | 72 | ||
| 73 | <h2><a name="notes"></a>Notes?! Maybe useful</h2> | 73 | <h2><a name="notes"></a>Notes?! Maybe useful</h2> |
| 74 | <h2></h2> | 74 | <h2></h2> |
| 75 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement"> | 75 | <ul itemscope itemtype="https://schema.org/SiteNavigationElement" class="list"> |
| 76 | <meta itemprop="name" content="Note list"> | 76 | <meta itemprop="name" content="Note list"> |
| 77 | {{ range .Pages }} | 77 | {{ range .Pages }} |
| 78 | {{ if eq .Type "note" }} | 78 | {{ if eq .Type "note" }} |
