diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-09 09:33:17 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-03-09 09:33:17 +0700 |
commit | b03c056bcfac360d0f8be1321c576e65d2466757 (patch) | |
tree | 9145a1359ac4be3a5b819289c05457e0d0839d52 | |
parent | 818a0bd6f1b3305351d482eeab4e9e64c2af3a18 (diff) | |
download | site-b03c056bcfac360d0f8be1321c576e65d2466757.tar.gz |
Clean up styling, again
-rw-r--r-- | _assets/scripts/generate_results.jl | 27 | ||||
-rw-r--r-- | _assets/scripts/output/script1.out | 5 | ||||
-rw-r--r-- | _assets/scripts/output/script2.svg | 581 | ||||
-rw-r--r-- | _assets/scripts/script1.jl | 10 | ||||
-rw-r--r-- | _assets/scripts/script2.jl | 4 | ||||
-rw-r--r-- | _css/basic.css | 126 | ||||
-rw-r--r-- | _css/franklin.css | 313 | ||||
-rw-r--r-- | _css/style.css | 277 | ||||
-rw-r--r-- | _layout/head.html | 3 | ||||
-rw-r--r-- | _layout/header.html | 1 | ||||
-rw-r--r-- | _layout/tag.html | 3 |
11 files changed, 279 insertions, 1071 deletions
diff --git a/_assets/scripts/generate_results.jl b/_assets/scripts/generate_results.jl deleted file mode 100644 index 8823354..0000000 --- a/_assets/scripts/generate_results.jl +++ /dev/null @@ -1,27 +0,0 @@ -# Parent file to run all scripts which may generate -# some output that you want to display on the website. -# this can be used as a tester to check that all the code -# on your website runs properly. - -dir = @__DIR__ - -""" - genplain(s) - -Small helper function to run some code and redirect the output (stdout) to a file. -""" -function genplain(s::String) - open(joinpath(dir, "output", "$(splitext(s)[1]).txt"), "w") do outf - redirect_stdout(outf) do - include(joinpath(dir, s)) - end - end -end - -# output - -genplain("script1.jl") - -# plots - -include("script2.jl") diff --git a/_assets/scripts/output/script1.out b/_assets/scripts/output/script1.out deleted file mode 100644 index 234405e..0000000 --- a/_assets/scripts/output/script1.out +++ /dev/null @@ -1,5 +0,0 @@ -*---------1.3 -**--------1.3 -***-------1.3 -****------1.3 -*****-----1.3 diff --git a/_assets/scripts/output/script2.svg b/_assets/scripts/output/script2.svg deleted file mode 100644 index 56bb295..0000000 --- a/_assets/scripts/output/script2.svg +++ /dev/null @@ -1,581 +0,0 @@ -<?xml version="1.0" encoding="utf-8" standalone="no"?> -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" - "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> -<!-- Created with matplotlib (https://matplotlib.org/) --> -<svg height="345.6pt" version="1.1" viewBox="0 0 460.8 345.6" width="460.8pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <defs> - <style type="text/css"> -*{stroke-linecap:butt;stroke-linejoin:round;} - </style> - </defs> - <g id="figure_1"> - <g id="patch_1"> - <path d="M 0 345.6 -L 460.8 345.6 -L 460.8 0 -L 0 0 -z -" style="fill:#ffffff;"/> - </g> - <g id="axes_1"> - <g id="patch_2"> - <path d="M 57.6 307.584 -L 414.72 307.584 -L 414.72 41.472 -L 57.6 41.472 -z -" style="fill:#ffffff;"/> - </g> - <g id="matplotlib.axis_1"> - <g id="xtick_1"> - <g id="line2d_1"> - <defs> - <path d="M 0 0 -L 0 3.5 -" id="m8c4b5b8030" style="stroke:#000000;stroke-width:0.8;"/> - </defs> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="73.832727" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_1"> - <!-- 0.0 --> - <defs> - <path d="M 31.78125 66.40625 -Q 24.171875 66.40625 20.328125 58.90625 -Q 16.5 51.421875 16.5 36.375 -Q 16.5 21.390625 20.328125 13.890625 -Q 24.171875 6.390625 31.78125 6.390625 -Q 39.453125 6.390625 43.28125 13.890625 -Q 47.125 21.390625 47.125 36.375 -Q 47.125 51.421875 43.28125 58.90625 -Q 39.453125 66.40625 31.78125 66.40625 -z -M 31.78125 74.21875 -Q 44.046875 74.21875 50.515625 64.515625 -Q 56.984375 54.828125 56.984375 36.375 -Q 56.984375 17.96875 50.515625 8.265625 -Q 44.046875 -1.421875 31.78125 -1.421875 -Q 19.53125 -1.421875 13.0625 8.265625 -Q 6.59375 17.96875 6.59375 36.375 -Q 6.59375 54.828125 13.0625 64.515625 -Q 19.53125 74.21875 31.78125 74.21875 -z -" id="DejaVuSans-48"/> - <path d="M 10.6875 12.40625 -L 21 12.40625 -L 21 0 -L 10.6875 0 -z -" id="DejaVuSans-46"/> - </defs> - <g transform="translate(65.881165 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-48"/> - </g> - </g> - </g> - <g id="xtick_2"> - <g id="line2d_2"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="138.763636" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_2"> - <!-- 0.2 --> - <defs> - <path d="M 19.1875 8.296875 -L 53.609375 8.296875 -L 53.609375 0 -L 7.328125 0 -L 7.328125 8.296875 -Q 12.9375 14.109375 22.625 23.890625 -Q 32.328125 33.6875 34.8125 36.53125 -Q 39.546875 41.84375 41.421875 45.53125 -Q 43.3125 49.21875 43.3125 52.78125 -Q 43.3125 58.59375 39.234375 62.25 -Q 35.15625 65.921875 28.609375 65.921875 -Q 23.96875 65.921875 18.8125 64.3125 -Q 13.671875 62.703125 7.8125 59.421875 -L 7.8125 69.390625 -Q 13.765625 71.78125 18.9375 73 -Q 24.125 74.21875 28.421875 74.21875 -Q 39.75 74.21875 46.484375 68.546875 -Q 53.21875 62.890625 53.21875 53.421875 -Q 53.21875 48.921875 51.53125 44.890625 -Q 49.859375 40.875 45.40625 35.40625 -Q 44.1875 33.984375 37.640625 27.21875 -Q 31.109375 20.453125 19.1875 8.296875 -z -" id="DejaVuSans-50"/> - </defs> - <g transform="translate(130.812074 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-50"/> - </g> - </g> - </g> - <g id="xtick_3"> - <g id="line2d_3"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="203.694545" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_3"> - <!-- 0.4 --> - <defs> - <path d="M 37.796875 64.3125 -L 12.890625 25.390625 -L 37.796875 25.390625 -z -M 35.203125 72.90625 -L 47.609375 72.90625 -L 47.609375 25.390625 -L 58.015625 25.390625 -L 58.015625 17.1875 -L 47.609375 17.1875 -L 47.609375 0 -L 37.796875 0 -L 37.796875 17.1875 -L 4.890625 17.1875 -L 4.890625 26.703125 -z -" id="DejaVuSans-52"/> - </defs> - <g transform="translate(195.742983 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-52"/> - </g> - </g> - </g> - <g id="xtick_4"> - <g id="line2d_4"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="268.625455" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_4"> - <!-- 0.6 --> - <defs> - <path d="M 33.015625 40.375 -Q 26.375 40.375 22.484375 35.828125 -Q 18.609375 31.296875 18.609375 23.390625 -Q 18.609375 15.53125 22.484375 10.953125 -Q 26.375 6.390625 33.015625 6.390625 -Q 39.65625 6.390625 43.53125 10.953125 -Q 47.40625 15.53125 47.40625 23.390625 -Q 47.40625 31.296875 43.53125 35.828125 -Q 39.65625 40.375 33.015625 40.375 -z -M 52.59375 71.296875 -L 52.59375 62.3125 -Q 48.875 64.0625 45.09375 64.984375 -Q 41.3125 65.921875 37.59375 65.921875 -Q 27.828125 65.921875 22.671875 59.328125 -Q 17.53125 52.734375 16.796875 39.40625 -Q 19.671875 43.65625 24.015625 45.921875 -Q 28.375 48.1875 33.59375 48.1875 -Q 44.578125 48.1875 50.953125 41.515625 -Q 57.328125 34.859375 57.328125 23.390625 -Q 57.328125 12.15625 50.6875 5.359375 -Q 44.046875 -1.421875 33.015625 -1.421875 -Q 20.359375 -1.421875 13.671875 8.265625 -Q 6.984375 17.96875 6.984375 36.375 -Q 6.984375 53.65625 15.1875 63.9375 -Q 23.390625 74.21875 37.203125 74.21875 -Q 40.921875 74.21875 44.703125 73.484375 -Q 48.484375 72.75 52.59375 71.296875 -z -" id="DejaVuSans-54"/> - </defs> - <g transform="translate(260.673892 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-54"/> - </g> - </g> - </g> - <g id="xtick_5"> - <g id="line2d_5"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="333.556364" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_5"> - <!-- 0.8 --> - <defs> - <path d="M 31.78125 34.625 -Q 24.75 34.625 20.71875 30.859375 -Q 16.703125 27.09375 16.703125 20.515625 -Q 16.703125 13.921875 20.71875 10.15625 -Q 24.75 6.390625 31.78125 6.390625 -Q 38.8125 6.390625 42.859375 10.171875 -Q 46.921875 13.96875 46.921875 20.515625 -Q 46.921875 27.09375 42.890625 30.859375 -Q 38.875 34.625 31.78125 34.625 -z -M 21.921875 38.8125 -Q 15.578125 40.375 12.03125 44.71875 -Q 8.5 49.078125 8.5 55.328125 -Q 8.5 64.0625 14.71875 69.140625 -Q 20.953125 74.21875 31.78125 74.21875 -Q 42.671875 74.21875 48.875 69.140625 -Q 55.078125 64.0625 55.078125 55.328125 -Q 55.078125 49.078125 51.53125 44.71875 -Q 48 40.375 41.703125 38.8125 -Q 48.828125 37.15625 52.796875 32.3125 -Q 56.78125 27.484375 56.78125 20.515625 -Q 56.78125 9.90625 50.3125 4.234375 -Q 43.84375 -1.421875 31.78125 -1.421875 -Q 19.734375 -1.421875 13.25 4.234375 -Q 6.78125 9.90625 6.78125 20.515625 -Q 6.78125 27.484375 10.78125 32.3125 -Q 14.796875 37.15625 21.921875 38.8125 -z -M 18.3125 54.390625 -Q 18.3125 48.734375 21.84375 45.5625 -Q 25.390625 42.390625 31.78125 42.390625 -Q 38.140625 42.390625 41.71875 45.5625 -Q 45.3125 48.734375 45.3125 54.390625 -Q 45.3125 60.0625 41.71875 63.234375 -Q 38.140625 66.40625 31.78125 66.40625 -Q 25.390625 66.40625 21.84375 63.234375 -Q 18.3125 60.0625 18.3125 54.390625 -z -" id="DejaVuSans-56"/> - </defs> - <g transform="translate(325.604801 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-56"/> - </g> - </g> - </g> - <g id="xtick_6"> - <g id="line2d_6"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="398.487273" xlink:href="#m8c4b5b8030" y="307.584"/> - </g> - </g> - <g id="text_6"> - <!-- 1.0 --> - <defs> - <path d="M 12.40625 8.296875 -L 28.515625 8.296875 -L 28.515625 63.921875 -L 10.984375 60.40625 -L 10.984375 69.390625 -L 28.421875 72.90625 -L 38.28125 72.90625 -L 38.28125 8.296875 -L 54.390625 8.296875 -L 54.390625 0 -L 12.40625 0 -z -" id="DejaVuSans-49"/> - </defs> - <g transform="translate(390.53571 322.182437)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-49"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-48"/> - </g> - </g> - </g> - </g> - <g id="matplotlib.axis_2"> - <g id="ytick_1"> - <g id="line2d_7"> - <defs> - <path d="M 0 0 -L -3.5 0 -" id="m96f9a0cdd1" style="stroke:#000000;stroke-width:0.8;"/> - </defs> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="295.488"/> - </g> - </g> - <g id="text_7"> - <!-- 0.0 --> - <g transform="translate(34.696875 299.287219)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-48"/> - </g> - </g> - </g> - <g id="ytick_2"> - <g id="line2d_8"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="264.482613"/> - </g> - </g> - <g id="text_8"> - <!-- 0.1 --> - <g transform="translate(34.696875 268.281832)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-49"/> - </g> - </g> - </g> - <g id="ytick_3"> - <g id="line2d_9"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="233.477227"/> - </g> - </g> - <g id="text_9"> - <!-- 0.2 --> - <g transform="translate(34.696875 237.276446)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-50"/> - </g> - </g> - </g> - <g id="ytick_4"> - <g id="line2d_10"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="202.47184"/> - </g> - </g> - <g id="text_10"> - <!-- 0.3 --> - <defs> - <path d="M 40.578125 39.3125 -Q 47.65625 37.796875 51.625 33 -Q 55.609375 28.21875 55.609375 21.1875 -Q 55.609375 10.40625 48.1875 4.484375 -Q 40.765625 -1.421875 27.09375 -1.421875 -Q 22.515625 -1.421875 17.65625 -0.515625 -Q 12.796875 0.390625 7.625 2.203125 -L 7.625 11.71875 -Q 11.71875 9.328125 16.59375 8.109375 -Q 21.484375 6.890625 26.8125 6.890625 -Q 36.078125 6.890625 40.9375 10.546875 -Q 45.796875 14.203125 45.796875 21.1875 -Q 45.796875 27.640625 41.28125 31.265625 -Q 36.765625 34.90625 28.71875 34.90625 -L 20.21875 34.90625 -L 20.21875 43.015625 -L 29.109375 43.015625 -Q 36.375 43.015625 40.234375 45.921875 -Q 44.09375 48.828125 44.09375 54.296875 -Q 44.09375 59.90625 40.109375 62.90625 -Q 36.140625 65.921875 28.71875 65.921875 -Q 24.65625 65.921875 20.015625 65.03125 -Q 15.375 64.15625 9.8125 62.3125 -L 9.8125 71.09375 -Q 15.4375 72.65625 20.34375 73.4375 -Q 25.25 74.21875 29.59375 74.21875 -Q 40.828125 74.21875 47.359375 69.109375 -Q 53.90625 64.015625 53.90625 55.328125 -Q 53.90625 49.265625 50.4375 45.09375 -Q 46.96875 40.921875 40.578125 39.3125 -z -" id="DejaVuSans-51"/> - </defs> - <g transform="translate(34.696875 206.271059)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-51"/> - </g> - </g> - </g> - <g id="ytick_5"> - <g id="line2d_11"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="171.466454"/> - </g> - </g> - <g id="text_11"> - <!-- 0.4 --> - <g transform="translate(34.696875 175.265672)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-52"/> - </g> - </g> - </g> - <g id="ytick_6"> - <g id="line2d_12"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="140.461067"/> - </g> - </g> - <g id="text_12"> - <!-- 0.5 --> - <defs> - <path d="M 10.796875 72.90625 -L 49.515625 72.90625 -L 49.515625 64.59375 -L 19.828125 64.59375 -L 19.828125 46.734375 -Q 21.96875 47.46875 24.109375 47.828125 -Q 26.265625 48.1875 28.421875 48.1875 -Q 40.625 48.1875 47.75 41.5 -Q 54.890625 34.8125 54.890625 23.390625 -Q 54.890625 11.625 47.5625 5.09375 -Q 40.234375 -1.421875 26.90625 -1.421875 -Q 22.3125 -1.421875 17.546875 -0.640625 -Q 12.796875 0.140625 7.71875 1.703125 -L 7.71875 11.625 -Q 12.109375 9.234375 16.796875 8.0625 -Q 21.484375 6.890625 26.703125 6.890625 -Q 35.15625 6.890625 40.078125 11.328125 -Q 45.015625 15.765625 45.015625 23.390625 -Q 45.015625 31 40.078125 35.4375 -Q 35.15625 39.890625 26.703125 39.890625 -Q 22.75 39.890625 18.8125 39.015625 -Q 14.890625 38.140625 10.796875 36.28125 -z -" id="DejaVuSans-53"/> - </defs> - <g transform="translate(34.696875 144.260286)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-53"/> - </g> - </g> - </g> - <g id="ytick_7"> - <g id="line2d_13"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="109.455681"/> - </g> - </g> - <g id="text_13"> - <!-- 0.6 --> - <g transform="translate(34.696875 113.254899)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-54"/> - </g> - </g> - </g> - <g id="ytick_8"> - <g id="line2d_14"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="78.450294"/> - </g> - </g> - <g id="text_14"> - <!-- 0.7 --> - <defs> - <path d="M 8.203125 72.90625 -L 55.078125 72.90625 -L 55.078125 68.703125 -L 28.609375 0 -L 18.3125 0 -L 43.21875 64.59375 -L 8.203125 64.59375 -z -" id="DejaVuSans-55"/> - </defs> - <g transform="translate(34.696875 82.249513)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-55"/> - </g> - </g> - </g> - <g id="ytick_9"> - <g id="line2d_15"> - <g> - <use style="stroke:#000000;stroke-width:0.8;" x="57.6" xlink:href="#m96f9a0cdd1" y="47.444907"/> - </g> - </g> - <g id="text_15"> - <!-- 0.8 --> - <g transform="translate(34.696875 51.244126)scale(0.1 -0.1)"> - <use xlink:href="#DejaVuSans-48"/> - <use x="63.623047" xlink:href="#DejaVuSans-46"/> - <use x="95.410156" xlink:href="#DejaVuSans-56"/> - </g> - </g> - </g> - </g> - <g id="line2d_16"> - <path clip-path="url(#p38be59daca)" d="M 73.832727 295.488 -L 80.45833 282.922028 -L 87.083933 270.547231 -L 93.709536 258.382068 -L 100.335139 246.444392 -L 106.960742 234.751428 -L 113.586345 223.319752 -L 120.211948 212.165271 -L 126.837551 201.303207 -L 133.463154 190.748078 -L 140.088757 180.513685 -L 146.71436 170.613096 -L 153.339963 161.058636 -L 159.965566 151.861873 -L 166.591169 143.033612 -L 173.216772 134.583886 -L 179.842375 126.521946 -L 186.467978 118.856262 -L 193.093581 111.594513 -L 199.719184 104.743589 -L 206.344787 98.309588 -L 212.97039 92.297815 -L 219.595993 86.712789 -L 226.221596 81.558238 -L 232.847199 76.837112 -L 239.472801 72.551579 -L 246.098404 68.703042 -L 252.724007 65.29214 -L 259.34961 62.318757 -L 265.975213 59.782039 -L 272.600816 57.680397 -L 279.226419 56.011526 -L 285.852022 54.772416 -L 292.477625 53.959365 -L 299.103228 53.568 -L 305.728831 53.593287 -L 312.354434 54.029553 -L 318.980037 54.870502 -L 325.60564 56.109236 -L 332.231243 57.738273 -L 338.856846 59.749568 -L 345.482449 62.134537 -L 352.108052 64.884074 -L 358.733655 67.988577 -L 365.359258 71.437971 -L 371.984861 75.221729 -L 378.610464 79.328899 -L 385.236067 83.748128 -L 391.86167 88.467683 -L 398.487273 93.47548 -" style="fill:none;stroke:#1f77b4;stroke-linecap:square;stroke-width:1.5;"/> - </g> - <g id="patch_3"> - <path d="M 57.6 307.584 -L 57.6 41.472 -" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> - </g> - <g id="patch_4"> - <path d="M 414.72 307.584 -L 414.72 41.472 -" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> - </g> - <g id="patch_5"> - <path d="M 57.6 307.584 -L 414.72 307.584 -" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> - </g> - <g id="patch_6"> - <path d="M 57.6 41.472 -L 414.72 41.472 -" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/> - </g> - </g> - </g> - <defs> - <clipPath id="p38be59daca"> - <rect height="266.112" width="357.12" x="57.6" y="41.472"/> - </clipPath> - </defs> -</svg> diff --git a/_assets/scripts/script1.jl b/_assets/scripts/script1.jl deleted file mode 100644 index bc4dc52..0000000 --- a/_assets/scripts/script1.jl +++ /dev/null @@ -1,10 +0,0 @@ -using LinearAlgebra # HIDE -using Random:seed! # HIDE -seed!(0) # HIDE - # HIDE -x = randn(5) -y = randn(5) - -for i in 1:5 - println(rpad("*"^i, 10, '-'), round(dot(x, y), digits=1)) -end diff --git a/_assets/scripts/script2.jl b/_assets/scripts/script2.jl deleted file mode 100644 index 0fa6c42..0000000 --- a/_assets/scripts/script2.jl +++ /dev/null @@ -1,4 +0,0 @@ -using PyPlot -x = range(0, stop=1, length=50) -plot(x, sin.(2x).*exp.(-x/3)) -savefig(joinpath(@__DIR__, "output", "script2.svg")) diff --git a/_css/basic.css b/_css/basic.css deleted file mode 100644 index d18a9e3..0000000 --- a/_css/basic.css +++ /dev/null @@ -1,126 +0,0 @@ -/* ================================================================== - Header and Nav -================================================================== */ - -nav { - display: inline-block; -} - -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-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; - border-bottom: 2px solid #4c9cf1; - transition: color 0.3s ease; -} - -header { - margin: 2rem 0; - display: flex; - flex-wrap: wrap; - justify-content: space-between; - align-items: center; -} - -header .blog-name a { - color: #436e58; - font-weight: bold; - text-decoration: none; -} - -header li a:hover { - color: black; - border-bottom: 2px solid black; -} - -#menu-icon { - display: none; -} - -/* - * narrow display: collapse the header (don't show the menu items) - * instead, display a burger menu. - */ -@media (max-width: 320px) { - nav { - display: inline-block; - } - - nav ul, - nav:active ul { - display: none; - position: absolute; - - /* padding: 20px; */ - background: #fff; - border: 1px solid #444; - right: 50px; - top: 60px; - width: 30%; - border-radius: 4px 0 4px 4px; - z-index: 1; - } - - nav li { - text-align: left; - display: block; - padding: 0; - margin: 0; - } - header li a { border-bottom: none; } - header li a:hover { border-bottom: none; } - - nav:hover ul { - display: block; - } - - #menu-icon { - display: inline-block; - } -} - -table { - line-height: 1em; - margin-left: auto; - margin-right: auto; - border-collapse: collapse; - text-align: center; - margin-bottom: 1.5em; -} - -tr:first-of-type { - background: #eae9f4; -} - -tr:first-of-type > th { - text-align: center; -} - -tr, -th, -td { - padding: 10px; - border: 1px solid lightgray; -} - -table tbody tr td { - border: 1px solid lightgray; -} diff --git a/_css/franklin.css b/_css/franklin.css deleted file mode 100644 index 6e32afc..0000000 --- a/_css/franklin.css +++ /dev/null @@ -1,313 +0,0 @@ -/* ================================================================== - VARIABLES -================================================================== */ - -:root { - --block-background: #f8f8f8; - --text-color: hsv(0, 0%, 20%); -} - -/* ================================================================== - DEFAULT FONT AND LAYOUT -================================================================== */ - -html { - box-sizing: border-box; - color: var(--text-color); - max-width: 36rem; - margin: auto; - padding: 1rem; -} - -/* Keep minimum font size to the usual default of 16px */ -@media (min-width: 800px) { - html { - font-size: min(23px, 2vw); - margin-left: auto; - margin-right: auto; - } -} - -/* ================================================================== - BASIC GRID FOR PROFILE PIC -================================================================== */ - -.franklin-content .row { - display: block; -} - -.franklin-content .left { - float: left; - margin-right: 15px; -} - -.franklin-content .right { - float: right; -} - -.franklin-content .container img { - width: auto; - padding-left: 0; - border-radius: 10px; -} - -.franklin-content .footnote { - position: relative; - top: -0.5em; - font-size: 70%; -} - -/* ================================================================== - FOOT / COPYRIGHT -================================================================== */ - -.franklin-content .page-foot a { - text-decoration: none; - color: #a6a2a0; - text-decoration: underline; -} - -.page-foot { - font-size: 80%; - color: #a6a2a0; - margin: 3rem 0; -} - -/* ================================================================== - TEXT GEOMETRY -================================================================== */ - -.franklin-toc li { - /* Avoid clickable elements being too close together. */ - margin: 0.6rem 0; -} - -/* ================================================================== - TITLES -================================================================== */ - -.franklin-content h1, -h2, -h3, -h4, -h5, -h6 { - text-align: left; -} - -.franklin-content h1 { - padding-bottom: 0.5em; - border-bottom: 3px double lightgrey; - margin-top: 1.5em; - margin-bottom: 1em; -} - -.franklin-content h2 { - padding-bottom: 0.3em; - border-bottom: 1px solid lightgrey; - margin-top: 2em; - margin-bottom: 1em; -} - -.franklin-content h1 a { color: inherit; } -.franklin-content h1 a:hover { text-decoration: none; } -.franklin-content h2 a { color: inherit; } -.franklin-content h2 a:hover { text-decoration: none; } -.franklin-content h3 a { color: inherit; } -.franklin-content h3 a:hover { text-decoration: none; } -.franklin-content h4 a { color: inherit; } -.franklin-content h4 a:hover { text-decoration: none; } -.franklin-content h5 a { color: inherit; } -.franklin-content h5 a:hover { text-decoration: none; } -.franklin-content h6 a { color: inherit; } -.franklin-content h6 a:hover { text-decoration: none; } - -.franklin-content table { - margin-left: auto; - margin-right: auto; - border-collapse: collapse; - text-align: center; -} - -.franklin-toc ol ol { - list-style-type: lower-alpha; -} - -.franklin-content th, -td { - font-size: 75%; - padding: 10px; - border: 1px solid black; -} - -.franklin-content blockquote { - background: var(--block-background); - border-left: 7px solid #a8a8a8; - margin: 1.5em 10px; - padding: 0.5em 10px; - font-style: italic; -} - -.franklin-content p { - hyphens: auto; - line-height: 1.4rem; - text-align: justify; -} - -.franklin-content blockquote p { - display: inline; - hyphens: auto; - text-align: justify; -} - -/* ================================================================== - GENERAL FORMATTING -================================================================== */ - -/* Spacing between bullet points. */ -.franklin-content li p { - margin: 10px 0; -} - -.franklin-content a { - color: #004de6; - text-decoration: none; -} - -.franklin-content a:hover { - text-decoration: underline; -} - -/* ================================================================== - HYPERREFS AND FOOTNOTES -================================================================== */ - -.franklin-content .eqref a { color: green; } -.franklin-content .bibref a { color: green; } - -.franklin-content sup { - font-size: 70%; - vertical-align: super; -} - -.franklin-content table.fndef { - margin: 0; - margin-bottom: 10px; -} - -.franklin-content .fndef tr, -td { - padding: 0; - border: 0; - text-align: left; -} - -.franklin-content .fndef tr { - border-left: 2px solid lightgray; -} - -.franklin-content .fndef td.fndef-backref { - vertical-align: top; - font-size: 70%; - padding-left: 5px; -} - -.franklin-content .fndef td.fndef-content { - font-size: 80%; - padding-left: 10px; - width: 100%; -} - -/* ================================================================== - IMAGES in CONTENT -================================================================== */ - -.franklin-content img { - width: 100%; -} - -.franklin-content .img-small img { - width: 50%; - text-align: center; - padding-left: 20%; -} - -/* ================================================================== - KATEX -================================================================== */ - -body { counter-reset: eqnum; } - -.katex { font-size: 1em !important; } - -.katex-display .katex { - /* Overwrite KaTeX settings. */ - display: inline-block; - - /* Allow display equations to wrap on small screens. */ - white-space: normal; -} - -/* - * No numbering, for now - * .katex-display::after { - * counter-increment: eqnum; - * content: "(" counter(eqnum) ")"; - * position: relative; - * float: right; - * padding-right: 5px; - * } - */ - -/* ================================================================== - CODE & HIGHLIGHT.JS -================================================================== */ - -code { - background-color: var(--block-background); - padding: 0.1em 0.2em; - border-radius: 2px; - font-size: var(--small); -} - -/* .franklin-content code { */ - -/* background-color: rgba(27,31,35,0.05); */ - -/* padding: 0.1em 0.2em; */ - -/* border-radius: 2px; */ - -/* font-size: 90%; } */ - -.hljs { - font-size: var(--small); - border-radius: 10px; -} - -.hljs-meta, -.hljs-metas, -.hljs-metap { font-weight: bold; } - -.hljs-meta { color: rgb(25, 179, 51); } - -.hljs-metas { color: red; } - -.hljs-metap { color: rgb(51, 131, 231); } - -/* ================================================================== - BOXES -================================================================== */ - -.franklin-content .colbox-blue { - background-color: #eef3f5; - padding-top: 5px; - padding-right: 10px; - padding-left: 10px; - padding-bottom: 5px; - margin-left: 5px; - margin-top: 5px; - margin-bottom: 5px; - border-radius: 0 10px 10px 0; - border-left: 5px solid #4c9cf1; -} diff --git a/_css/style.css b/_css/style.css new file mode 100644 index 0000000..ebe942c --- /dev/null +++ b/_css/style.css @@ -0,0 +1,277 @@ +/* Variables */ +:root { + --block-bg: #eeeeec; + --fade-fg: #888a85; + --link-fg: #436e58; + --text-fg: #2e3436; +} + +/* Default font and layout */ +html { + box-sizing: border-box; + color: var(--text-fg); + max-width: 36rem; + margin: auto; + padding: 1rem; +} + +/* Keep minimum font size to the usual default of 16px */ +@media (min-width: 800px) { + html { + font-size: min(23px, 2vw); + margin-left: auto; + margin-right: auto; + } +} + +.franklin-content .row { display: block } + +.franklin-content .left { + float: left; + margin-right: 1rem; +} + +.franklin-content .right { float: right } + +.franklin-content .container img { + width: auto; + padding-left: 0; +} + +.franklin-content .footnote { + position: relative; + top: -0.5em; + font-size: 70%; +} + +/* Foot/copyright */ +.franklin-content .page-foot a { + text-decoration: none; + color: var(--fade-fg); + text-decoration: underline; +} + +.page-foot { + font-size: 80%; + color: var(--fade-fg); + margin: 3rem 0; +} + +/* Text geometry */ +.franklin-content p { + hyphens: auto; + line-height: 1.4rem; + text-align: justify; +} + +/* Titles */ +.franklin-content h1 { + padding-bottom: 0.5em; + border-bottom: 3px double lightgrey; + margin-top: 2em; +} + +.franklin-content h2 { + padding-bottom: 0.3em; + border-bottom: 1px solid lightgrey; + margin-top: 2em; +} + +.franklin-content h1 a, +.franklin-content h2 a, +.franklin-content h3 a, +.franklin-content h4 a, +.franklin-content h5 a, +.franklin-content h6 a { + color: var(--text-fg); +} + +.franklin-content h1 a:hover, +.franklin-content h2 a:hover, +.franklin-content h3 a:hover, +.franklin-content h4 a:hover, +.franklin-content h5 a:hover, +.franklin-content h6 a:hover { + text-decoration: none; +} + +.franklin-content table { + margin-left: auto; + margin-right: auto; + border-collapse: collapse; + text-align: center; +} + +.franklin-toc ol ol { + list-style-type: lower-alpha; +} + +.franklin-content th, +td { + font-size: 75%; + padding: 10px; + border: 1px solid black; +} + +.franklin-content blockquote { + background: var(--block-bg); + border-left: 7px solid #a8a8a8; + margin: 1.5em 10px; + padding: 0.5em 10px; + font-style: italic; +} + +.franklin-content blockquote p { + display: inline; + hyphens: auto; + text-align: justify; +} + +/* General formatting */ +/* Spacing between bullet points. */ +.franklin-content li p { + margin: 10px 0; +} + +.franklin-content a { + color: var(--link-fg); + text-decoration: none; +} + +.franklin-content a:hover { + text-decoration: underline; + } + +/* Hyperrefs and footnotes */ +.franklin-content .eqref a { color: green; } +.franklin-content .bibref a { color: green; } + +.franklin-content sup { + font-size: 70%; + vertical-align: super; +} + +.franklin-content table.fndef { + margin: 0; + margin-bottom: 10px; +} + +.franklin-content .fndef tr, +td { + padding: 0; + border: 0; + text-align: left; +} + +.franklin-content .fndef tr { + border-left: 2px solid lightgray; +} + +.franklin-content .fndef td.fndef-backref { + vertical-align: top; + font-size: 70%; + padding-left: 5px; +} + +.franklin-content .fndef td.fndef-content { + font-size: 80%; + padding-left: 10px; + width: 100%; +} + +/* Images */ +.franklin-content img { + width: 100%; +} + +.franklin-content .img-small img { + width: 50%; + text-align: center; + padding-left: 20%; +} + +/* KaTeX */ +body { counter-reset: eqnum; } +.katex { font-size: 1em !important; } + +.katex-display .katex { + /* Overwrite KaTeX settings. */ + display: inline-block; + + /* Allow display equations to wrap on small screens. */ + white-space: normal; +} + +/* + * No numbering, for now + * .katex-display::after { + * counter-increment: eqnum; + * content: "(" counter(eqnum) ")"; + * position: relative; + * float: right; + * padding-right: 5px; + * } + */ + +/* Code highlight */ +code, .hljs { + background-color: var(--block-bg); + padding: 0.1em 0.2em; + font-size: inherit; +} + +.hljs-meta { + color: var(--link-fg); + font-weight: bold; +} + +/* Boxes */ +.franklin-content .colbox-blue { + background-color: #eef3f5; + padding-top: 5px; + padding-right: 10px; + padding-left: 10px; + padding-bottom: 5px; + margin-left: 5px; + margin-top: 5px; + margin-bottom: 5px; + border-radius: 0 10px 10px 0; + border-left: 5px solid #4c9cf1; +} + +/* Header */ +header { + margin: 2rem -0.5rem; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; +} + +header a { + border-bottom: solid; + color: var(--link-fg); + font-weight: bold; + margin: 0 0.5rem; + text-decoration: none; + transition: color 0.3s ease; +} +header li a:hover { color: var(--fade-fg) } + +nav, nav li { display: inline-block } +nav ul { margin: 0 } + +/* Table */ +table { + line-height: 1em; + margin-left: auto; + margin-right: auto; + border-collapse: collapse; + text-align: center; + margin-bottom: 1.5em; +} + +tr, th, td, table tbody tr td { border: 0.1rem solid var(--fade-fg) } +tr, th, td { padding: 0.69rem } +tr:first-of-type { background: var(--block-bg); } +tr:first-of-type > th { text-align: center } diff --git a/_layout/head.html b/_layout/head.html index 079b80d..6a46812 100644 --- a/_layout/head.html +++ b/_layout/head.html @@ -5,8 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> {{if hasmath}} {{insert head_katex.html }} {{end}} {{if hascode}} {{insert head_highlight.html }} {{end}} - <link rel="stylesheet" href="/css/franklin.css"> - <link rel="stylesheet" href="/css/basic.css"> + <link rel="stylesheet" href="/css/style.css"> <link rel="icon" href="/assets/favicon.png"> {{isdef title}} <title>{{fill title}}</title> {{end}} </head> diff --git a/_layout/header.html b/_layout/header.html index b7d28cf..cb80632 100644 --- a/_layout/header.html +++ b/_layout/header.html @@ -5,6 +5,5 @@ <li><a href=/works>Portfolio</a></li> <li><a href=/blog>Blog</a></li> </ul> - <img src=/assets/hamburger.svg id=menu-icon> </nav> </header> diff --git a/_layout/tag.html b/_layout/tag.html index 696f6de..b815535 100644 --- a/_layout/tag.html +++ b/_layout/tag.html @@ -2,8 +2,7 @@ <html lang=en> <meta charset=UTF-8> <meta name=viewport content='width=device-width, initial-scale=1'> -<link rel=stylesheet href=/css/franklin.css> -<link rel=stylesheet href=/css/basic.css> +<link rel=stylesheet href=/css/style.css> <title>Tag: {{fill fd_tag}}</title> <body> {{insert header.html}} |