From 1d4e2cd79a9833bd837e3b6a7fd842d442147316 Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:54:32 +0100 Subject: [PATCH 01/11] align-logo-footer add vertical align 2px for logo footer --- assets/css/compiled/main.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index b1450b55..e78cc962 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1183,6 +1183,9 @@ video { .align-text-bottom { vertical-align: text-bottom; } +.align-logo-footer { + vertical-align: 2px; +} .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } From a3b8e44647a1968cf5ee486b74302768e510d15c Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Fri, 17 Nov 2023 23:56:58 +0100 Subject: [PATCH 02/11] modify logo align in footer --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 92e6d9de..8d4137b7 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -39,7 +39,7 @@ {{- . | markdownify -}} {{- if strings.Contains . "Hextra" -}} - {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-text-bottom"`) -}} + {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-logo-footer"`) -}} {{- end -}} From 6c9e3608e5bd721b4295dd2c9e1173e7a5ce7ddf Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 00:09:35 +0100 Subject: [PATCH 03/11] noobie things --- assets/css/compiled/main.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index e78cc962..39798ec4 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1184,7 +1184,7 @@ video { vertical-align: text-bottom; } .align-logo-footer { - vertical-align: 2px; + vertical-align: -2.5px; } .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; From 45fdf1ff3bc92ac38fb3525fab1cff441c6b1e73 Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 15:07:36 +0100 Subject: [PATCH 04/11] modify logo & vertical align --- assets/css/compiled/main.css | 3 --- data/icons.yaml | 4 +--- exampleSite/hugo_stats.json | 1 + layouts/partials/footer.html | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 39798ec4..b1450b55 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1183,9 +1183,6 @@ video { .align-text-bottom { vertical-align: text-bottom; } -.align-logo-footer { - vertical-align: -2.5px; -} .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } diff --git a/data/icons.yaml b/data/icons.yaml index ff84003a..95f3b54c 100644 --- a/data/icons.yaml +++ b/data/icons.yaml @@ -9,9 +9,7 @@ github: > -hextra: - -hugo: +hextra: hugo-full: > diff --git a/exampleSite/hugo_stats.json b/exampleSite/hugo_stats.json index ff7af3d3..96fe6508 100644 --- a/exampleSite/hugo_stats.json +++ b/exampleSite/hugo_stats.json @@ -73,6 +73,7 @@ "active:opacity-50", "active:shadow-gray-200", "active:shadow-sm", + "align-[-2.5px]", "align-text-bottom", "appearance-none", "aspect-auto", diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8d4137b7..9e8a7429 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -39,7 +39,7 @@ {{- . | markdownify -}} {{- if strings.Contains . "Hextra" -}} - {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-logo-footer"`) -}} + {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-[-2.5px]"`) -}} {{- end -}} From 455d0c1516537ff96f340dd87217266cf32fb72f Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 15:13:32 +0100 Subject: [PATCH 05/11] build css --- assets/css/compiled/main.css | 3 +++ data/icons.yaml | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index b1450b55..0e0a1104 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1183,6 +1183,9 @@ video { .align-text-bottom { vertical-align: text-bottom; } +.align-\[-2\.5px\] { + vertical-align: -2.5px; +} .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } diff --git a/data/icons.yaml b/data/icons.yaml index 95f3b54c..769f0612 100644 --- a/data/icons.yaml +++ b/data/icons.yaml @@ -4,13 +4,15 @@ # # {{ partial "utils/icon.html" (dict "name" "github" "attributes" "height=24") }} -github: > +github: -hextra: -hugo-full: > +hextra: + +hugo: +hugo-full: From 13b226a86ea5e6ca8c256287d0f87fdf4cfe3e0b Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 15:36:59 +0100 Subject: [PATCH 06/11] revert change in icons.yaml --- data/icons.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/icons.yaml b/data/icons.yaml index 769f0612..ff84003a 100644 --- a/data/icons.yaml +++ b/data/icons.yaml @@ -4,15 +4,15 @@ # # {{ partial "utils/icon.html" (dict "name" "github" "attributes" "height=24") }} -github: +github: > -hextra: +hextra: hugo: -hugo-full: +hugo-full: > From 34baa51d759dfddfe584189898580ae7e364494f Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:15:48 +0100 Subject: [PATCH 07/11] increase duration for copied button effect --- assets/js/code-copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/code-copy.js b/assets/js/code-copy.js index ba0328f8..a97667e0 100644 --- a/assets/js/code-copy.js +++ b/assets/js/code-copy.js @@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', function () { button.classList.add('copied'); setTimeout(function () { button.classList.remove('copied'); - }, 500); + }, 2500); }).catch(function (err) { console.error('Failed to copy text: ', err); }); From 64b6a1f75a61a07120d1ab1aa8aa2fe7e383beae Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:31:55 +0100 Subject: [PATCH 08/11] Update hugo_stats.json --- exampleSite/hugo_stats.json | 1 - 1 file changed, 1 deletion(-) diff --git a/exampleSite/hugo_stats.json b/exampleSite/hugo_stats.json index 96fe6508..ff7af3d3 100644 --- a/exampleSite/hugo_stats.json +++ b/exampleSite/hugo_stats.json @@ -73,7 +73,6 @@ "active:opacity-50", "active:shadow-gray-200", "active:shadow-sm", - "align-[-2.5px]", "align-text-bottom", "appearance-none", "aspect-auto", From c5c94e2616cb1a1ac7292cd8b59b54393b96e9c0 Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:32:31 +0100 Subject: [PATCH 09/11] Update main.css --- assets/css/compiled/main.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 0e0a1104..b1450b55 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1183,9 +1183,6 @@ video { .align-text-bottom { vertical-align: text-bottom; } -.align-\[-2\.5px\] { - vertical-align: -2.5px; -} .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } From 4a0b2e23e468f450600325caed4bf5b41a05c8dc Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:34:41 +0100 Subject: [PATCH 10/11] Update footer.html --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9e8a7429..92e6d9de 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -39,7 +39,7 @@ {{- . | markdownify -}} {{- if strings.Contains . "Hextra" -}} - {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-[-2.5px]"`) -}} + {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="inline-block ml-1 align-text-bottom"`) -}} {{- end -}} From c14d8de5d21b73121c00cf99bd9fa7200fd1fab7 Mon Sep 17 00:00:00 2001 From: c2tz <95414249+c2tz@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:13:43 +0100 Subject: [PATCH 11/11] modify timeout to 1000 (1sec) --- assets/js/code-copy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/code-copy.js b/assets/js/code-copy.js index a97667e0..c5136782 100644 --- a/assets/js/code-copy.js +++ b/assets/js/code-copy.js @@ -54,7 +54,7 @@ document.addEventListener('DOMContentLoaded', function () { button.classList.add('copied'); setTimeout(function () { button.classList.remove('copied'); - }, 2500); + }, 1000); }).catch(function (err) { console.error('Failed to copy text: ', err); });