From 2ee0039922c8fd1c15b92bf3f0d230d04f72a956 Mon Sep 17 00:00:00 2001 From: xfnw Date: Fri, 31 Jul 2020 22:43:15 +0000 Subject: [PATCH] fix unicode --- template/page.html | 1 + template/style.css | 86 +++++++++++++++++++++++++++++++++++++++++++++- xfss | 2 +- 3 files changed, 87 insertions(+), 2 deletions(-) mode change 120000 => 100644 template/style.css diff --git a/template/page.html b/template/page.html index 610feb4..b2f8cdc 100644 --- a/template/page.html +++ b/template/page.html @@ -3,6 +3,7 @@ + XFSSTITLE diff --git a/template/style.css b/template/style.css deleted file mode 120000 index aefc320..0000000 --- a/template/style.css +++ /dev/null @@ -1 +0,0 @@ -../../lickhack-css/lickhack.css \ No newline at end of file diff --git a/template/style.css b/template/style.css new file mode 100644 index 0000000..fb74669 --- /dev/null +++ b/template/style.css @@ -0,0 +1,85 @@ +/* ~lickthecheese's lickhack css! */ +/* gpl affero v3 */ +body { +background: black; +font-family: monospace; +color: #aea; +} + +div { +border: 1px solid #aea; +border-left: 6px solid #7b7; +padding: 10px; +border-radius: 0px 15px 15px 0px; +margin-top: 5px; +} + +html { +width: 700px; +margin: 0 auto; +} + +a { +text-decoration: none; +color: #aee; +} + +a:hover { +text-decoration: underline; +} + + +code, kbd, pre { +background: #111; +color: #aea; +} + +pre { +padding: 10px; +border-radius: 0px 10px 10px 0px; +border: 1px solid #9d9; +border-left: 6px solid #6a6; +} + +th { + color: black; + background-color: #aea; +} + + +th, td { + border: 1px solid #9d9; + padding: 5px; +} + +table { + border-collapse: collapse; + margin: 10px; +} + +@media screen and (max-width:700px) { +html { +width: 100%; +} +} + + +@media (prefers-reduced-motion: no-preference) { + @keyframes flash { + 50% { opacity: 0; } + } + @keyframes reveal { + from { width: 1em; } /* Width of ::before */ + to { width: 100%; } + } + h1 { + overflow: hidden; + white-space: nowrap; + animation: reveal 8s linear; + text-overflow: "\2588"; + } + h1::after { + content: "\2588"; + animation: flash 1s step-end infinite; + } +} diff --git a/xfss b/xfss index 72f119f..d57e86e 100755 --- a/xfss +++ b/xfss @@ -7,7 +7,7 @@ NEWF=${fn%??}html TITLE=$(echo ${fn%???} | sed 's/_/ /g' | sed -e 's/[]$.*[\^]/\\&/g') echo "rendering $NEWF..." -cmark --smart --safe $BOOPTMP +pandoc --from gfm $BOOPTMP cp template/page.html $NEWF sed "//r $BOOPTMP" template/page.html > $NEWF