From 116fd6dc91b85ad07b07e3fcf09b5add07b233b8 Mon Sep 17 00:00:00 2001 From: "Mateus Felipe C. C. Pinto" Date: Mon, 22 Apr 2024 16:50:09 -0300 Subject: [PATCH] Small style and perfomance improvements (#68) Signed-off-by: Mateus Felipe C. C. Pinto --- Makefile | 6 +++++- images/logo.png | Bin 0 -> 2283 bytes org-theme/dist/long/bundle.css | 4 ---- org-theme/dist/long/bundle.js | 2 +- org-theme/dist/short/bundle.css | 4 ---- org-theme/dist/short/bundle.js | 2 +- org-theme/setup/long.setup | 4 +++- org-theme/setup/short.setup | 2 ++ 8 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 images/logo.png diff --git a/Makefile b/Makefile index 759dcc9..ce16367 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ STATUS_PREFIX := "\033[1;32m[+]\033[0m " .PHONY: clean shell -all: setup $(HTML_FILES) minify +all: setup $(HTML_FILES) minify copy shell: $(DOCKER_RUN) -i --entrypoint=/bin/zsh $(DOCKER_IMG) @@ -41,6 +41,10 @@ minify: @$(MINIFY) --bundle org-theme/dist/long/bundle.js -o $(STATIC_FILES_FOLDER)/long.js @$(MINIFY) --bundle org-theme/dist/long/bundle.js -o $(STATIC_FILES_FOLDER)/short.js +copy: + @printf $(STATUS_PREFIX); echo "COPYING IMAGE FILES" + @cp images/logo.png $(STATIC_FILES_FOLDER)/logo.png + server: python3 -m http.server 8000 --directory $(STATIC_FILES_FOLDER) diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..2912dd5cf8d844b61e3ae4e601e3d5ec5faab5ed GIT binary patch literal 2283 zcmV8)z!?*%)Gq3ZEbB*Qc^!aKsPrxD=RDJ@A=l*^~2ZjugdI(vf_W2;D3bQaE07x zZ`y2q*kNkeUt`$2@~^J0uA!l!b8~ZPv|?FVSx-+-`T6Jh}(98)N*gU zW?o)iTA@}}jaEc}L*I5j+;u%WJ3Gs4IJRIit6MKFE-ff2DUC}fbv_^^9T`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8Z&-kl^WjlIz=@{&D_wqEeN%kKmxTYkCm1HG6XMFp2*)k?y70yKi6R9(o`VdK!QPleutuIggRPeB-na5Mnngwb$y zmix`lIeX^v=S%s?S@I6F^|*px#{eJ^#FW;rJjLs=fU&wDNST)%)DNT0EC@lRKoTUD z96j7meu_7n!C++ME$W+7uu@15IK#aEfGucoUH?|3pKQqUJH}uvxP0zxc2>6hFm1h! zf{&X$l{@!ab85JCIYA5bgj{3<#DmLx`Eoy={_htqT=0o}oMt8G zC~2F3YoV(#AP~X1BRul&&jhVe=C90G3>@@ZnSc5qMwea?V)|}$f^`jfN0zKv@u)L7 z8n%t~Gm$>_Y{J15Kxy!P;p!FtPB~z`RbyLAKrRF#GeD>yGUga2W%ouuRhH@lAQLkO zPy#3%N{6V|GD{~A$0y<_)<`nYcEBnU2R8JgT%`qrs3L+xCIr%~6GK4jP;Px38&U*x zE7f37*p*X1mk)tl`n9qQh-Kjx%7v*w^tQNKk5|Atf7<&ufDMvvdt^mbJ=A-GjR05!Ktk9lGV5cGgv?;x2b+FOR{HYCkr)B~Wnr;=}wM|WQ zB@MDjtx%VIaXBuuuxq1=ja^c1VKH05*1Du7I$_8{{sP0AW(u}H_&NXp002ovPDHLk FV1fX#cFh0) literal 0 HcmV?d00001 diff --git a/org-theme/dist/long/bundle.css b/org-theme/dist/long/bundle.css index 5dd7b67..3df8a22 100644 --- a/org-theme/dist/long/bundle.css +++ b/org-theme/dist/long/bundle.css @@ -445,12 +445,8 @@ code::after { } .collection-avatar { width: 35px; - height: 35px; overflow: hidden; white-space: nowrap; - background-color: var(--color-lighter-gray); - border-radius: 35px; - border: 1px solid var(--color-light-gray); display: inline-block; vertical-align: middle; margin-right: 0.5rem; diff --git a/org-theme/dist/long/bundle.js b/org-theme/dist/long/bundle.js index e88ff62..cbf7a38 100644 --- a/org-theme/dist/long/bundle.js +++ b/org-theme/dist/long/bundle.js @@ -155,4 +155,4 @@ // Hold bootstrap until document body is parsed exports.onload = bootstrap; -})(window,{"table-of-contents":true,"section-numbers":true,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"http://www.lisperati.com/lisplogo_flag_64.png","title":"Common Lisp Brasil","url":"/"}}); +})(window,{"table-of-contents":true,"section-numbers":true,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"logo.png","title":"Common Lisp Brasil","url":"/"}}); diff --git a/org-theme/dist/short/bundle.css b/org-theme/dist/short/bundle.css index aec4e02..ba3f81a 100644 --- a/org-theme/dist/short/bundle.css +++ b/org-theme/dist/short/bundle.css @@ -445,12 +445,8 @@ code::after { } .collection-avatar { width: 35px; - height: 35px; overflow: hidden; white-space: nowrap; - background-color: var(--color-lighter-gray); - border-radius: 35px; - border: 1px solid var(--color-light-gray); display: inline-block; vertical-align: middle; margin-right: 0.5rem; diff --git a/org-theme/dist/short/bundle.js b/org-theme/dist/short/bundle.js index 7c96547..808d40f 100644 --- a/org-theme/dist/short/bundle.js +++ b/org-theme/dist/short/bundle.js @@ -155,4 +155,4 @@ // Hold bootstrap until document body is parsed exports.onload = bootstrap; -})(window,{"table-of-contents":false,"section-numbers":false,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"http://www.lisperati.com/lisplogo_flag_64.png","title":"Common Lisp Brasil","url":"/"}}); +})(window,{"table-of-contents":false,"section-numbers":false,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"logo.png","title":"Common Lisp Brasil","url":"/"}}); diff --git a/org-theme/setup/long.setup b/org-theme/setup/long.setup index dcacc8f..970ab70 100644 --- a/org-theme/setup/long.setup +++ b/org-theme/setup/long.setup @@ -11,7 +11,7 @@ # "back-to-top": true, # "collection": { # "enabled": true, -# "avatar": "http://www.lisperati.com/lisplogo_flag_64.png", +# "avatar": "logo.png", # "title": "Common Lisp Brasil", # "url": "/" # } @@ -20,5 +20,7 @@ # I recommend you to generate your own css/js files by forking, cloning and customizing the file # theme.json before building it. # +#+HTML_HEAD: +#+HTML_HEAD: #+HTML_HEAD: #+HTML_HEAD: diff --git a/org-theme/setup/short.setup b/org-theme/setup/short.setup index bbd620a..b245ff4 100644 --- a/org-theme/setup/short.setup +++ b/org-theme/setup/short.setup @@ -17,5 +17,7 @@ # theme.json before building it. # # +#+HTML_HEAD: +#+HTML_HEAD: #+HTML_HEAD: #+HTML_HEAD: