Merge pull request #1097 from nunocoracao/dev

🔖 v2.47.0
This commit is contained in:
Nuno Coração 2023-12-06 21:51:02 +00:00 committed by GitHub
commit 8f126777ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 372 additions and 136 deletions

View file

@ -42,7 +42,7 @@ jobs:
submodules: recursive submodules: recursive
- name: Setup Pages - name: Setup Pages
id: pages id: pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v4
- name: Build with Hugo - name: Build with Hugo
env: env:
# For maximum backward compatibility with Hugo modules # For maximum backward compatibility with Hugo modules
@ -65,4 +65,4 @@ jobs:
steps: steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v3

View file

@ -1,6 +1,6 @@
/*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */ /*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */ /*! tailwindcss v3.3.6 | MIT License | https://tailwindcss.com */
/* /*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@ -121,8 +121,10 @@ strong {
} }
/* /*
1. Use the user's configured `mono` font family by default. 1. Use the user's configured `mono` font-family by default.
2. Correct the odd `em` font sizing in all browsers. 2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/ */
code, code,
@ -131,8 +133,12 @@ samp,
pre { pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
/* 1 */ /* 1 */
font-size: 1em; font-feature-settings: normal;
/* 2 */ /* 2 */
font-variation-settings: normal;
/* 3 */
font-size: 1em;
/* 4 */
} }
/* /*
@ -1398,6 +1404,10 @@ select {
left: -9999px; left: -9999px;
} }
.-top-\[18px\] {
top: -18px;
}
.-top-\[21px\] { .-top-\[21px\] {
top: -21px; top: -21px;
} }
@ -1518,6 +1528,10 @@ select {
z-index: 40 !important; z-index: 40 !important;
} }
.z-0 {
z-index: 0;
}
.z-10 { .z-10 {
z-index: 10; z-index: 10;
} }
@ -1606,6 +1620,10 @@ select {
margin: -1px !important; margin: -1px !important;
} }
.-m-px {
margin: -1px;
}
.m-0 { .m-0 {
margin: 0px; margin: 0px;
} }
@ -1718,6 +1736,10 @@ select {
margin-right: -100%; margin-right: -100%;
} }
.-mt-1 {
margin-top: -0.25rem;
}
.-mt-3 { .-mt-3 {
margin-top: -0.75rem; margin-top: -0.75rem;
} }
@ -1890,6 +1912,10 @@ select {
margin-top: 2rem; margin-top: 2rem;
} }
.mt-\[-2px\] {
margin-top: -2px;
}
.mt-\[0\.15rem\] { .mt-\[0\.15rem\] {
margin-top: 0.15rem; margin-top: 0.15rem;
} }
@ -2026,6 +2052,10 @@ select {
height: 1.125rem; height: 1.125rem;
} }
.h-\[1\.4rem\] {
height: 1.4rem;
}
.h-\[1000px\] { .h-\[1000px\] {
height: 1000px; height: 1000px;
} }
@ -2126,10 +2156,18 @@ select {
height: 100%; height: 100%;
} }
.h-px {
height: 1px;
}
.h-screen { .h-screen {
height: 100vh; height: 100vh;
} }
.max-h-3 {
max-height: 0.75rem;
}
.max-h-\[5rem\] { .max-h-\[5rem\] {
max-height: 5rem; max-height: 5rem;
} }
@ -2250,6 +2288,10 @@ select {
width: 1.125rem; width: 1.125rem;
} }
.w-\[1\.4rem\] {
width: 1.4rem;
}
.w-\[15\%\] { .w-\[15\%\] {
width: 15%; width: 15%;
} }
@ -2334,6 +2376,10 @@ select {
width: 100%; width: 100%;
} }
.w-px {
width: 1px;
}
.w-screen { .w-screen {
width: 100vw; width: 100vw;
} }
@ -2467,6 +2513,10 @@ select {
transform-origin: 0 0; transform-origin: 0 0;
} }
.origin-\[50\%_50\%\] {
transform-origin: 50% 50%;
}
.origin-\[center_bottom_0\] { .origin-\[center_bottom_0\] {
transform-origin: center bottom 0; transform-origin: center bottom 0;
} }
@ -2480,13 +2530,13 @@ select {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.-translate-x-\[150\%\] { .-translate-x-\[50\%\] {
--tw-translate-x: -150%; --tw-translate-x: -50%;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.-translate-x-\[50\%\] { .-translate-x-\[6px\] {
--tw-translate-x: -50%; --tw-translate-x: -6px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
@ -2520,11 +2570,26 @@ select {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.translate-y-\[6px\] {
--tw-translate-y: 6px;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-45 {
--tw-rotate: -45deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-180 { .rotate-180 {
--tw-rotate: 180deg; --tw-rotate: 180deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.rotate-45 {
--tw-rotate: 45deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-0 { .scale-0 {
--tw-scale-x: 0; --tw-scale-x: 0;
--tw-scale-y: 0; --tw-scale-y: 0;
@ -2543,18 +2608,17 @@ select {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.scale-\[0\.8\] {
--tw-scale-x: 0.8;
--tw-scale-y: 0.8;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-\[1\.02\] { .scale-\[1\.02\] {
--tw-scale-x: 1.02; --tw-scale-x: 1.02;
--tw-scale-y: 1.02; --tw-scale-y: 1.02;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.scale-y-\[0\.8\] {
--tw-scale-y: 0.8;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform { .transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
@ -2595,10 +2659,46 @@ select {
animation: show-up-clock 350ms linear; animation: show-up-clock 350ms linear;
} }
.animate-\[slide-in-left_0\.8s_both\] {
animation: slide-in-left 0.8s both;
}
.animate-\[slide-in-right_0\.8s_both\] {
animation: slide-in-right 0.8s both;
}
.animate-\[slide-out-left_0\.8s_both\] {
animation: slide-out-left 0.8s both;
}
.animate-\[slide-out-right_0\.8s_both\] {
animation: slide-out-right 0.8s both;
}
.animate-\[spinner-grow_0\.75s_linear_infinite\] { .animate-\[spinner-grow_0\.75s_linear_infinite\] {
animation: spinner-grow 0.75s linear infinite; animation: spinner-grow 0.75s linear infinite;
} }
@keyframes pulse {
50% {
opacity: .5;
}
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.animate-spin {
animation: spin 1s linear infinite;
}
.cursor-default { .cursor-default {
cursor: default; cursor: default;
} }
@ -2896,6 +2996,22 @@ select {
border-top-right-radius: 0.5rem; border-top-right-radius: 0.5rem;
} }
.rounded-bl-none {
border-bottom-left-radius: 0px;
}
.rounded-br-2xl {
border-bottom-right-radius: 1rem;
}
.rounded-tl-2xl {
border-top-left-radius: 1rem;
}
.rounded-tr-2xl {
border-top-right-radius: 1rem;
}
.\!border-0 { .\!border-0 {
border-width: 0px !important; border-width: 0px !important;
} }
@ -2916,6 +3032,10 @@ select {
border-width: 2px; border-width: 2px;
} }
.border-4 {
border-width: 4px;
}
.border-\[\.125rem\] { .border-\[\.125rem\] {
border-width: .125rem; border-width: .125rem;
} }
@ -2924,10 +3044,18 @@ select {
border-width: 0.125rem; border-width: 0.125rem;
} }
.border-\[0\.15em\] {
border-width: 0.15em;
}
.border-\[14px\] { .border-\[14px\] {
border-width: 14px; border-width: 14px;
} }
.border-\[1px\] {
border-width: 1px;
}
.border-y-\[10px\] { .border-y-\[10px\] {
border-top-width: 10px; border-top-width: 10px;
border-bottom-width: 10px; border-bottom-width: 10px;
@ -3011,6 +3139,11 @@ select {
border-color: rgb(220 76 100 / var(--tw-border-opacity)); border-color: rgb(220 76 100 / var(--tw-border-opacity));
} }
.border-\[\#eee\] {
--tw-border-opacity: 1;
border-color: rgb(238 238 238 / var(--tw-border-opacity));
}
.border-neutral-100 { .border-neutral-100 {
--tw-border-opacity: 1; --tw-border-opacity: 1;
border-color: rgba(var(--color-neutral-100), var(--tw-border-opacity)); border-color: rgba(var(--color-neutral-100), var(--tw-border-opacity));
@ -3040,6 +3173,10 @@ select {
border-color: transparent; border-color: transparent;
} }
.border-r-transparent {
border-right-color: transparent;
}
.border-t-transparent { .border-t-transparent {
border-top-color: transparent; border-top-color: transparent;
} }
@ -3091,6 +3228,11 @@ select {
background-color: rgb(236 239 241 / var(--tw-bg-opacity)); background-color: rgb(236 239 241 / var(--tw-bg-opacity));
} }
.bg-\[\#eee\] {
--tw-bg-opacity: 1;
background-color: rgb(238 238 238 / var(--tw-bg-opacity));
}
.bg-\[rgba\(0\2c 0\2c 0\2c 0\.4\)\] { .bg-\[rgba\(0\2c 0\2c 0\2c 0\.4\)\] {
background-color: rgba(0,0,0,0.4); background-color: rgba(0,0,0,0.4);
} }
@ -3426,6 +3568,11 @@ select {
padding-bottom: 0.33rem; padding-bottom: 0.33rem;
} }
.py-\[0\.4375rem\] {
padding-top: 0.4375rem;
padding-bottom: 0.4375rem;
}
.py-\[0\.4rem\] { .py-\[0\.4rem\] {
padding-top: 0.4rem; padding-top: 0.4rem;
padding-bottom: 0.4rem; padding-bottom: 0.4rem;
@ -3908,6 +4055,10 @@ select {
color: rgba(var(--color-primary-800), var(--tw-text-opacity)); color: rgba(var(--color-primary-800), var(--tw-text-opacity));
} }
.text-transparent {
color: transparent;
}
.underline { .underline {
text-decoration-line: underline; text-decoration-line: underline;
} }
@ -4176,6 +4327,10 @@ select {
transition-duration: 150ms; transition-duration: 150ms;
} }
.duration-\[200ms\] {
transition-duration: 200ms;
}
.duration-\[250ms\] { .duration-\[250ms\] {
transition-duration: 250ms; transition-duration: 250ms;
} }
@ -4224,10 +4379,18 @@ select {
transition-timing-function: cubic-bezier(0, 0, 0.2, 1); transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
} }
.will-change-transform {
will-change: transform;
}
.\!\[clip\:rect\(0\2c 0\2c 0\2c 0\)\] { .\!\[clip\:rect\(0\2c 0\2c 0\2c 0\)\] {
clip: rect(0,0,0,0) !important; clip: rect(0,0,0,0) !important;
} }
.\[clip\:rect\(0\2c 0\2c 0\2c 0\)\] {
clip: rect(0,0,0,0);
}
.\[direction\:ltr\] { .\[direction\:ltr\] {
direction: ltr; direction: ltr;
} }
@ -4980,7 +5143,7 @@ pre {
.anchor { .anchor {
display: block; display: block;
position: relative; position: relative;
top: -100px; top: -150px;
height: 0px; height: 0px;
visibility: hidden; visibility: hidden;
} }
@ -6476,6 +6639,11 @@ pre {
background-color: transparent; background-color: transparent;
} }
.active\:bg-\[\#c4d4ef\]:active {
--tw-bg-opacity: 1;
background-color: rgb(196 212 239 / var(--tw-bg-opacity));
}
.active\:bg-\[\#cacfd1\]:active { .active\:bg-\[\#cacfd1\]:active {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(202 207 209 / var(--tw-bg-opacity)); background-color: rgb(202 207 209 / var(--tw-bg-opacity));
@ -6660,6 +6828,10 @@ pre {
pointer-events: none; pointer-events: none;
} }
.data-\[te-active\]\:-top-\[38px\][data-te-active] {
top: -38px;
}
.data-\[te-carousel-fade\]\:z-0[data-te-carousel-fade] { .data-\[te-carousel-fade\]\:z-0[data-te-carousel-fade] {
z-index: 0; z-index: 0;
} }
@ -6691,6 +6863,12 @@ pre {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.data-\[te-active\]\:scale-100[data-te-active] {
--tw-scale-x: 1;
--tw-scale-y: 1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[te-input-state-active\]\:scale-\[0\.8\][data-te-input-state-active] { .data-\[te-input-state-active\]\:scale-\[0\.8\][data-te-input-state-active] {
--tw-scale-x: 0.8; --tw-scale-x: 0.8;
--tw-scale-y: 0.8; --tw-scale-y: 0.8;
@ -6703,6 +6881,15 @@ pre {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
} }
.data-\[te-autocomplete-state-open\]\:scale-y-100[data-te-autocomplete-state-open] {
--tw-scale-y: 1;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[data-te-autocomplete-option-disabled\]\:cursor-default[data-data-te-autocomplete-option-disabled] {
cursor: default;
}
.data-\[te-datepicker-cell-disabled\]\:cursor-default[data-te-datepicker-cell-disabled] { .data-\[te-datepicker-cell-disabled\]\:cursor-default[data-te-datepicker-cell-disabled] {
cursor: default; cursor: default;
} }
@ -6733,6 +6920,10 @@ pre {
color: rgba(var(--color-neutral-300), var(--tw-text-opacity)); color: rgba(var(--color-neutral-300), var(--tw-text-opacity));
} }
.data-\[te-autocomplete-state-open\]\:opacity-100[data-te-autocomplete-state-open] {
opacity: 1;
}
.data-\[te-carousel-fade\]\:opacity-0[data-te-carousel-fade] { .data-\[te-carousel-fade\]\:opacity-0[data-te-carousel-fade] {
opacity: 0; opacity: 0;
} }
@ -7064,6 +7255,16 @@ pre {
transform: none; transform: none;
} }
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.motion-reduce\:animate-\[spin_1\.5s_linear_infinite\] {
animation: spin 1.5s linear infinite;
}
.motion-reduce\:animate-\[spinner-grow_1\.5s_linear_infinite\] { .motion-reduce\:animate-\[spinner-grow_1\.5s_linear_infinite\] {
animation: spinner-grow 1.5s linear infinite; animation: spinner-grow 1.5s linear infinite;
} }
@ -7094,6 +7295,11 @@ pre {
border-color: rgb(20 164 77 / var(--tw-border-opacity)); border-color: rgb(20 164 77 / var(--tw-border-opacity));
} }
:is(.dark .dark\:border-\[\#4f4f4f\]) {
--tw-border-opacity: 1;
border-color: rgb(79 79 79 / var(--tw-border-opacity));
}
:is(.dark .dark\:border-\[\#dc4c64\]) { :is(.dark .dark\:border-\[\#dc4c64\]) {
--tw-border-opacity: 1; --tw-border-opacity: 1;
border-color: rgb(220 76 100 / var(--tw-border-opacity)); border-color: rgb(220 76 100 / var(--tw-border-opacity));
@ -7139,6 +7345,16 @@ pre {
background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity)) !important; background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity)) !important;
} }
:is(.dark .dark\:bg-\[\#4f4f4f\]) {
--tw-bg-opacity: 1;
background-color: rgb(79 79 79 / var(--tw-bg-opacity));
}
:is(.dark .dark\:bg-neutral-400) {
--tw-bg-opacity: 1;
background-color: rgba(var(--color-neutral-400), var(--tw-bg-opacity));
}
:is(.dark .dark\:bg-neutral-600) { :is(.dark .dark\:bg-neutral-600) {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity)); background-color: rgba(var(--color-neutral-600), var(--tw-bg-opacity));

View file

@ -404,7 +404,7 @@ pre {
.anchor { .anchor {
display: block; display: block;
position: relative; position: relative;
top: -100px; top: -150px;
height: 0px; height: 0px;
visibility: hidden; visibility: hidden;
} }

View file

@ -6,10 +6,19 @@ if (typeof auth !== 'undefined') {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
} }
function toggleLoaders(node){
var classesString = node.className;
var classes = classesString.split(" ");
for(var i in classes){
node.classList.toggle(classes[i])
}
}
var update_views = function (node, id) { var update_views = function (node, id) {
viewsCollection.doc(id).onSnapshot(doc => { viewsCollection.doc(id).onSnapshot(doc => {
var data = doc.data(); var data = doc.data();
if (data) { if (data) {
toggleLoaders(node)
node.innerText = numberWithCommas(data.views) node.innerText = numberWithCommas(data.views)
} }
}) })
@ -19,6 +28,7 @@ if (typeof auth !== 'undefined') {
likesCollection.doc(id).onSnapshot(doc => { likesCollection.doc(id).onSnapshot(doc => {
var data = doc.data(); var data = doc.data();
if (data) { if (data) {
toggleLoaders(node)
node.innerText = numberWithCommas(data.likes) node.innerText = numberWithCommas(data.likes)
} }
}) })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -2,4 +2,4 @@
[module.hugoVersion] [module.hugoVersion]
extended = true extended = true
min = "0.87.0" min = "0.87.0"
max = "0.120.4" max = "0.121.0"

View file

@ -249,7 +249,7 @@ The default `name` is the `pageRef` title cased.
## Thumbnails & Backgrounds ## Thumbnails & Backgrounds
Blowfish was built so it would be easy to add visual support to your articles. If your familiar with Hugo article strucutre, you just need to place an image file (almost all formats are supported bue we recommend `.png` or `.jpg`) that starts with `feature*` inside your article folder. And that's it, Blowfish will then able to both use the image as a thumbnail within your website as well as for <a target="_blank" href="https://oembed.com/">oEmbed</a> cards across social platforms. Blowfish was built so it would be easy to add visual support to your articles. If your familiar with Hugo article strucutre, you just need to place an image file (almost all formats are supported but we recommend `.png` or `.jpg`) that starts with `feature*` inside your article folder. And that's it, Blowfish will then able to both use the image as a thumbnail within your website as well as for <a target="_blank" href="https://oembed.com/">oEmbed</a> cards across social platforms.
[Here]({{< ref "thumbnails" >}}) is also a guide with more info and a [sample]({{< ref "thumbnail_sample" >}}) if you want to see how you can do it. [Here]({{< ref "thumbnails" >}}) is also a guide with more info and a [sample]({{< ref "thumbnail_sample" >}}) if you want to see how you can do it.

View file

@ -1,11 +1,12 @@
<span> <span>
{{ if eq .Kind "taxonomy"}} {{ if eq .Kind "taxonomy"}}
<span id="likes_taxonomy_{{ .Page.Data.Plural }}" title="likes">0</span> <span id="likes_taxonomy_{{ .Page.Data.Plural }}"
{{ else if eq .Kind "term"}} {{ else if eq .Kind "term"}}
<span id="likes_term_{{ .Page.Data.Term }}" title="likes">0</span> <span id="likes_term_{{ .Page.Data.Term }}"
{{ else }} {{ else }}
<span id="likes_{{ .File.Path }}" title="likes">0</span> <span id="likes_{{ .File.Path }}"
{{ end }} {{ end }}
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="likes">loading</span>
<span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "heart" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

View file

@ -1,11 +1,12 @@
<span> <span>
{{ if eq .Kind "taxonomy"}} {{ if eq .Kind "taxonomy"}}
<span id="views_taxonomy_{{ .Page.Data.Plural }}" title="views">0</span> <span id="views_taxonomy_{{ .Page.Data.Plural }}"
{{ else if eq .Kind "term"}} {{ else if eq .Kind "term"}}
<span id="views_term_{{ .Page.Data.Term }}" title="views">0</span> <span id="views_term_{{ .Page.Data.Term }}"
{{ else }} {{ else }}
<span id="views_{{ .File.Path }}" title="views">0</span> <span id="views_{{ .File.Path }}"
{{ end }} {{ end }}
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span> <span class="inline-block align-text-bottom">{{ partial "icon.html" "eye" }}</span>
</span> </span>
{{- /* Trim EOF */ -}} {{- /* Trim EOF */ -}}

41
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.45.0", "version": "2.46.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.45.0", "version": "2.46.0",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -17,18 +17,18 @@
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0", "chart.js": "^4.4.1",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"katex": "^0.16.9", "katex": "^0.16.9",
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^3.1.0", "prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7", "prettier-plugin-tailwindcss": "^0.5.9",
"puppeteer": "^21.5.2", "puppeteer": "^21.5.2",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"tailwindcss": "^3.3.5", "tailwindcss": "^3.3.6",
"tw-elements": "1.0.0", "tw-elements": "1.1.0",
"typeit": "^8.8.0", "typeit": "^8.8.0",
"vendor-copy": "^3.0.1" "vendor-copy": "^3.0.1"
} }
@ -541,9 +541,9 @@
"dev": true "dev": true
}, },
"node_modules/chart.js": { "node_modules/chart.js": {
"version": "4.4.0", "version": "4.4.1",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.0.tgz", "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.1.tgz",
"integrity": "sha512-vQEj6d+z0dcsKLlQvbKIMYFHd3t8W/7L2vfJIbYcfyPcRx92CsHqECpueN8qVGNlKyDcr5wBrYAYKnfu/9Q1hQ==", "integrity": "sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@kurkle/color": "^0.3.0" "@kurkle/color": "^0.3.0"
@ -2035,9 +2035,9 @@
} }
}, },
"node_modules/prettier-plugin-tailwindcss": { "node_modules/prettier-plugin-tailwindcss": {
"version": "0.5.7", "version": "0.5.9",
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz", "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.9.tgz",
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==", "integrity": "sha512-9x3t1s2Cjbut2QiP+O0mDqV3gLXTe2CgRlQDgucopVkUdw26sQi53p/q4qvGxMLBDfk/dcTV57Aa/zYwz9l8Ew==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": ">=14.21.3" "node": ">=14.21.3"
@ -2046,13 +2046,13 @@
"@ianvs/prettier-plugin-sort-imports": "*", "@ianvs/prettier-plugin-sort-imports": "*",
"@prettier/plugin-pug": "*", "@prettier/plugin-pug": "*",
"@shopify/prettier-plugin-liquid": "*", "@shopify/prettier-plugin-liquid": "*",
"@shufo/prettier-plugin-blade": "*",
"@trivago/prettier-plugin-sort-imports": "*", "@trivago/prettier-plugin-sort-imports": "*",
"prettier": "^3.0", "prettier": "^3.0",
"prettier-plugin-astro": "*", "prettier-plugin-astro": "*",
"prettier-plugin-css-order": "*", "prettier-plugin-css-order": "*",
"prettier-plugin-import-sort": "*", "prettier-plugin-import-sort": "*",
"prettier-plugin-jsdoc": "*", "prettier-plugin-jsdoc": "*",
"prettier-plugin-marko": "*",
"prettier-plugin-organize-attributes": "*", "prettier-plugin-organize-attributes": "*",
"prettier-plugin-organize-imports": "*", "prettier-plugin-organize-imports": "*",
"prettier-plugin-style-order": "*", "prettier-plugin-style-order": "*",
@ -2068,9 +2068,6 @@
"@shopify/prettier-plugin-liquid": { "@shopify/prettier-plugin-liquid": {
"optional": true "optional": true
}, },
"@shufo/prettier-plugin-blade": {
"optional": true
},
"@trivago/prettier-plugin-sort-imports": { "@trivago/prettier-plugin-sort-imports": {
"optional": true "optional": true
}, },
@ -2657,9 +2654,9 @@
} }
}, },
"node_modules/tailwindcss": { "node_modules/tailwindcss": {
"version": "3.3.5", "version": "3.3.6",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.5.tgz", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.6.tgz",
"integrity": "sha512-5SEZU4J7pxZgSkv7FP1zY8i2TIAOooNZ1e/OGtxIEv6GltpoiXUqWvLy89+a10qYTB1N5Ifkuw9lqQkN9sscvA==", "integrity": "sha512-AKjF7qbbLvLaPieoKeTjG1+FyNZT6KaJMJPFeQyLfIp7l82ggH1fbHJSsYIvnbTFQOlkh+gBYpyby5GT1LIdLw==",
"dependencies": { "dependencies": {
"@alloc/quick-lru": "^5.2.0", "@alloc/quick-lru": "^5.2.0",
"arg": "^5.0.2", "arg": "^5.0.2",
@ -2850,9 +2847,9 @@
"dev": true "dev": true
}, },
"node_modules/tw-elements": { "node_modules/tw-elements": {
"version": "1.0.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/tw-elements/-/tw-elements-1.0.0.tgz", "resolved": "https://registry.npmjs.org/tw-elements/-/tw-elements-1.1.0.tgz",
"integrity": "sha512-pD2bA1bTGzvigU79dz4pGvO207CCOpzhwlxzb7hswx40SMMkJISOkoDxU2ot3OQ7LTZM5GwuLDkZ+dquK0wdYQ==", "integrity": "sha512-IUr9YW2l99oTVZxuVjQg6rpuCpo6VZqbaKGYmZUNVVsoSVU/ljPpkJAY2Pn/morlXwKPhP9MTPNQMlWosqHL4w==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@popperjs/core": "^2.6.0", "@popperjs/core": "^2.6.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.46.0", "version": "2.47.0",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall", "fullinstall": "npm run preinstall && npm install && npm run postinstall",
@ -35,18 +35,18 @@
"homepage": "https://github.com/nunocoracao/blowfish#readme", "homepage": "https://github.com/nunocoracao/blowfish#readme",
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"chart.js": "^4.4.0", "chart.js": "^4.4.1",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"katex": "^0.16.9", "katex": "^0.16.9",
"packery": "^2.1.2", "packery": "^2.1.2",
"prettier": "^3.1.0", "prettier": "^3.1.0",
"prettier-plugin-go-template": "^0.0.15", "prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.5.7", "prettier-plugin-tailwindcss": "^0.5.9",
"puppeteer": "^21.5.2", "puppeteer": "^21.5.2",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"tailwindcss": "^3.3.5", "tailwindcss": "^3.3.6",
"tw-elements": "1.0.0", "tw-elements": "1.1.0",
"typeit": "^8.8.0", "typeit": "^8.8.0",
"vendor-copy": "^3.0.1" "vendor-copy": "^3.0.1"
}, },