Skip to content

Commit f806c36

Browse files
authored
Merge pull request #2230 from nunocoracao/dev
πŸ”– v2.88.0
2 parents 2f12b8d + 35eaa94 commit f806c36

File tree

609 files changed

+2136
-3750
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

609 files changed

+2136
-3750
lines changed

β€Ž.prettierignoreβ€Ž

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ static
2828
layouts/_default/_markup/render-heading.html
2929
layouts/_default/index.json
3030
layouts/_default/list.html
31-
layouts/partials/article-link/card-related.html
32-
layouts/partials/article-link/card.html
33-
layouts/partials/article-link/simple.html
34-
layouts/partials/header/basic.html
35-
layouts/partials/hero/background.html
36-
layouts/partials/head.html
3731
layouts/shortcodes/screenshot.html
3832
layouts/shortcodes/figure.html
33+
layouts/partials/hugo-embedded/shortcodes/figure-default.html
3934

4035
assets/js/appearance.js

β€Ž.prettierrcβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"trailingComma": "all",
77
"proseWrap": "always",
88
"plugins": [
9+
"@awmottaz/prettier-plugin-void-html",
910
"prettier-plugin-go-template",
10-
"@awmottaz/prettier-plugin-void-html"
11+
"prettier-plugin-tailwindcss"
1112
],
1213
"overrides": [
1314
{

β€Žassets/css/compiled/main.cssβ€Ž

Lines changed: 60 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
1+
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
22
/*! Blowfish | MIT License | https://github.com/nunocoracao/blowfish */
33
@layer properties;
44
#zen-mode-button {
@@ -284,18 +284,33 @@ body.zen-mode-enable {
284284
.left-0 {
285285
left: calc(var(--spacing) * 0);
286286
}
287+
.left-\[calc\(max\(-50vw\,-800px\)\+50\%\)\] {
288+
left: calc(max(-50vw, -800px) + 50%);
289+
}
290+
.-z-10 {
291+
z-index: calc(10 * -1);
292+
}
293+
.z-2 {
294+
z-index: 2;
295+
}
287296
.z-10 {
288297
z-index: 10;
289298
}
290299
.z-30 {
291300
z-index: 30;
292301
}
302+
.z-80 {
303+
z-index: 80;
304+
}
305+
.z-100 {
306+
z-index: 100;
307+
}
308+
.z-500 {
309+
z-index: 500;
310+
}
293311
.z-\[1\] {
294312
z-index: 1;
295313
}
296-
.z-\[2\] {
297-
z-index: 2;
298-
}
299314
.z-\[999\] {
300315
z-index: 999;
301316
}
@@ -826,6 +841,12 @@ body.zen-mode-enable {
826841
.\!mt-0 {
827842
margin-top: calc(var(--spacing) * 0) !important;
828843
}
844+
.-mt-\[2px\] {
845+
margin-top: calc(2px * -1);
846+
}
847+
.-mt-\[15px\] {
848+
margin-top: calc(15px * -1);
849+
}
829850
.mt-0 {
830851
margin-top: calc(var(--spacing) * 0);
831852
}
@@ -859,18 +880,21 @@ body.zen-mode-enable {
859880
.mt-20 {
860881
margin-top: calc(var(--spacing) * 20);
861882
}
862-
.mt-\[-2px\] {
863-
margin-top: -2px;
864-
}
865883
.mt-\[0\.1rem\] {
866884
margin-top: 0.1rem;
867885
}
886+
.mt-\[0\.5rem\] {
887+
margin-top: 0.5rem;
888+
}
868889
.-mr-48 {
869890
margin-right: calc(var(--spacing) * -48);
870891
}
871892
.-mr-\[100\%\] {
872893
margin-right: calc(100% * -1);
873894
}
895+
.mr-0 {
896+
margin-right: calc(var(--spacing) * 0);
897+
}
874898
.mr-1 {
875899
margin-right: calc(var(--spacing) * 1);
876900
}
@@ -883,6 +907,9 @@ body.zen-mode-enable {
883907
.mr-5 {
884908
margin-right: calc(var(--spacing) * 5);
885909
}
910+
.mr-\[10px\] {
911+
margin-right: 10px;
912+
}
886913
.mr-auto {
887914
margin-right: auto;
888915
}
@@ -934,6 +961,9 @@ body.zen-mode-enable {
934961
.-ml-12 {
935962
margin-left: calc(var(--spacing) * -12);
936963
}
964+
.ml-0 {
965+
margin-left: calc(var(--spacing) * 0);
966+
}
937967
.ml-2 {
938968
margin-left: calc(var(--spacing) * 2);
939969
}
@@ -1743,6 +1773,15 @@ body.zen-mode-enable {
17431773
.pt-16 {
17441774
padding-top: calc(var(--spacing) * 16);
17451775
}
1776+
.pt-\[2px\] {
1777+
padding-top: 2px;
1778+
}
1779+
.pt-\[5px\] {
1780+
padding-top: 5px;
1781+
}
1782+
.pr-0 {
1783+
padding-right: calc(var(--spacing) * 0);
1784+
}
17461785
.pr-\[24px\] {
17471786
padding-right: 24px;
17481787
}
@@ -1761,6 +1800,12 @@ body.zen-mode-enable {
17611800
.pb-32 {
17621801
padding-bottom: calc(var(--spacing) * 32);
17631802
}
1803+
.pb-\[3px\] {
1804+
padding-bottom: 3px;
1805+
}
1806+
.pl-0 {
1807+
padding-left: calc(var(--spacing) * 0);
1808+
}
17641809
.pl-2 {
17651810
padding-left: calc(var(--spacing) * 2);
17661811
}
@@ -3337,7 +3382,7 @@ button, [role="button"] {
33373382
padding-right: calc(var(--spacing) * 4);
33383383
}
33393384
}
3340-
.prose ul>li, .prose ol>li {
3385+
.prose ul > li, .prose ol > li {
33413386
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
33423387
margin-right: calc(var(--spacing) * 7);
33433388
}
@@ -3348,7 +3393,7 @@ button, [role="button"] {
33483393
padding-left: calc(var(--spacing) * 0);
33493394
}
33503395
}
3351-
.prose ol>li:before, .prose ul>li:before {
3396+
.prose ol > li:before, .prose ul > li:before {
33523397
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
33533398
right: calc(var(--spacing) * 1);
33543399
}
@@ -3366,11 +3411,13 @@ button, [role="button"] {
33663411
padding-left: calc(var(--spacing) * 0);
33673412
}
33683413
}
3369-
.prose div.min-w-0.max-w-prose>*:first-child {
3414+
.prose div.min-w-0.max-w-prose > *:first-child {
33703415
margin-top: calc(var(--spacing) * 3);
33713416
}
33723417
#TableOfContents {
3373-
max-width: 25vw;
3418+
@media (width >= 1024px) {
3419+
max-width: 25vw;
3420+
}
33743421
}
33753422
#TOCView {
33763423
max-height: calc(100vh - 150px);
@@ -3399,7 +3446,7 @@ button, [role="button"] {
33993446
color: rgba(var(--color-neutral-400), 1);
34003447
}
34013448
}
3402-
.toc ul>li {
3449+
.toc ul > li {
34033450
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
34043451
margin-right: calc(var(--spacing) * 0);
34053452
}
@@ -3411,7 +3458,7 @@ button, [role="button"] {
34113458
position: relative;
34123459
z-index: 0;
34133460
}
3414-
.highlight:hover>.copy-button {
3461+
.highlight:hover > .copy-button {
34153462
visibility: visible;
34163463
}
34173464
.copy-button {
@@ -3680,9 +3727,7 @@ pre {
36803727
background-repeat: no-repeat;
36813728
background-size: cover;
36823729
background-position: center;
3683-
width: calc(100% + 40px);
36843730
z-index: -10;
3685-
margin-left: -20px;
36863731
}
36873732
.hero_gradient {
36883733
width: 100%;
@@ -3698,42 +3743,6 @@ pre {
36983743
height: 0px;
36993744
visibility: hidden;
37003745
}
3701-
.center-relative-left {
3702-
left: calc(max(-50vw,-800px) + 50%);
3703-
}
3704-
.margin-0 {
3705-
margin: 0;
3706-
}
3707-
.margin-top-\[-15px\] {
3708-
margin-top: -15px;
3709-
}
3710-
.margin-top-\[0\.5rem\] {
3711-
margin-top: 0.5rem;
3712-
}
3713-
.margin-right-\[10px\] {
3714-
margin-right: 10px;
3715-
}
3716-
.margin-left-\[0px\] {
3717-
margin-left: 0px;
3718-
}
3719-
.padding-main-menu {
3720-
padding: 2px 0 3px 0;
3721-
}
3722-
.padding-top-\[5px\] {
3723-
padding-top: 5px;
3724-
}
3725-
.z-index-\[-10\] {
3726-
z-index: -10;
3727-
}
3728-
.z-index-80 {
3729-
z-index: 80;
3730-
}
3731-
.z-index-100 {
3732-
z-index: 100;
3733-
}
3734-
.z-index-500 {
3735-
z-index: 500;
3736-
}
37373746
[id^="fn"], [id^="fnref"] {
37383747
scroll-margin-top: 145px;
37393748
}

β€Žassets/css/main.cssβ€Ž

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ button,
6565

6666
/* Table of Contents */
6767
#TableOfContents {
68-
max-width: 25vw;
68+
@apply lg:max-w-[25vw];
6969
}
7070

7171
#TOCView {
@@ -431,9 +431,7 @@ pre {
431431
background-repeat: no-repeat;
432432
background-size: cover;
433433
background-position: center;
434-
width: calc(100% + 40px);
435434
z-index: -10;
436-
margin-left: -20px;
437435
}
438436

439437
.hero_gradient {
@@ -453,46 +451,6 @@ pre {
453451
visibility: hidden;
454452
}
455453

456-
.center-relative-left {
457-
left: calc(max(-50vw, -800px) + 50%);
458-
}
459-
460-
.margin-0 {
461-
margin: 0;
462-
}
463-
.margin-top-\[-15px\] {
464-
margin-top: -15px;
465-
}
466-
.margin-top-\[0\.5rem\] {
467-
margin-top: 0.5rem;
468-
}
469-
.margin-right-\[10px\] {
470-
margin-right: 10px;
471-
}
472-
.margin-left-\[0px\] {
473-
margin-left: 0px;
474-
}
475-
476-
.padding-main-menu {
477-
padding: 2px 0 3px 0;
478-
}
479-
.padding-top-\[5px\] {
480-
padding-top: 5px;
481-
}
482-
483-
.z-index-\[-10\] {
484-
z-index: -10;
485-
}
486-
.z-index-80 {
487-
z-index: 80;
488-
}
489-
.z-index-100 {
490-
z-index: 100;
491-
}
492-
.z-index-500 {
493-
z-index: 500;
494-
}
495-
496454
/* Offset scroll position to avoid header overlap */
497455
[id^="fn"],
498456
[id^="fnref"] {

β€Žassets/js/background-blur.jsβ€Ž

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
function setBackgroundBlur() {
2-
const scriptElement = document.currentScript;
3-
const targetId =
4-
scriptElement && scriptElement.getAttribute("data-target-id")
5-
? scriptElement.getAttribute("data-target-id")
6-
: (console.error("data-target-id is null"), null);
1+
(() => {
2+
const script = document.currentScript;
3+
const targetId = script?.getAttribute("data-target-id");
74

85
window.addEventListener("scroll", () => {
96
const scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
107
const backgroundBlur = document.getElementById(targetId);
118
backgroundBlur.style.opacity = scroll / 300;
129
});
13-
}
14-
15-
setBackgroundBlur();
10+
})();

β€Žassets/js/button-likes.jsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
document.getElementById("button_likes") &&
2+
document.getElementById("button_likes").addEventListener("click", () => {
3+
process_article();
4+
});

0 commit comments

Comments
Β (0)