bloggie 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -0
- package/README.md +5 -0
- package/e2e/editor.js +72 -0
- package/e2e/jump.js +29 -2
- package/e2e/run.js +29 -7
- package/editor/client.js +42 -10
- package/editor/editor.css +39 -1
- package/editor/integration.js +1 -1
- package/editor/panel.js +110 -6
- package/editor/patch.js +4 -3
- package/editor/source.js +53 -5
- package/jump/client.js +9 -0
- package/layouts/Post.astro +17 -11
- package/lib/pages.js +29 -0
- package/package.json +1 -1
- package/pages/index.astro +90 -38
- package/scripts/export/agent.js +2 -2
- package/scripts/export/common.js +10 -4
- package/scripts/export/dev.js +7 -5
- package/scripts/export/index.js +14 -10
- package/scripts/export/page.js +4 -3
- package/scripts/export-posts.js +26 -11
- package/skills/bloggie-slides/SKILL.md +2 -1
- package/styles/site.css +117 -11
- package/template/package.json +1 -1
package/styles/site.css
CHANGED
|
@@ -782,6 +782,43 @@ blockquote {
|
|
|
782
782
|
font-size: 0.97rem;
|
|
783
783
|
}
|
|
784
784
|
|
|
785
|
+
/* Left of a post's title, the slides icon, a link to its deck (index.astro). It hangs in the margin, so every title
|
|
786
|
+
starts on the same line; on a phone it sits before the title. */
|
|
787
|
+
.post-list h2 {
|
|
788
|
+
position: relative;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.post-deck {
|
|
792
|
+
position: absolute;
|
|
793
|
+
left: -1.45rem;
|
|
794
|
+
top: 0.15em;
|
|
795
|
+
display: inline-flex;
|
|
796
|
+
color: var(--text-muted);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.post-deck:hover,
|
|
800
|
+
.post-deck:focus-visible {
|
|
801
|
+
color: var(--series-1);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.post-deck svg {
|
|
805
|
+
width: 1.05rem;
|
|
806
|
+
height: 1.05rem;
|
|
807
|
+
fill: none;
|
|
808
|
+
stroke: currentColor;
|
|
809
|
+
stroke-width: 1.3;
|
|
810
|
+
stroke-linecap: round;
|
|
811
|
+
stroke-linejoin: round;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
@media (max-width: 520px) {
|
|
815
|
+
.post-deck {
|
|
816
|
+
position: static;
|
|
817
|
+
margin-right: 0.4rem;
|
|
818
|
+
vertical-align: -0.12em;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
785
822
|
/* After a post's title, each of its tags (index.astro): an icon, else its name in small capitals. */
|
|
786
823
|
.post-icon {
|
|
787
824
|
margin-left: 0.4rem;
|
|
@@ -802,33 +839,102 @@ blockquote {
|
|
|
802
839
|
vertical-align: 0.15em;
|
|
803
840
|
}
|
|
804
841
|
|
|
805
|
-
/* Above the list
|
|
806
|
-
.post-
|
|
842
|
+
/* Above the list (index.astro): a chip per tag, one chosen at a time, and the sort menu at the end of the row. */
|
|
843
|
+
.post-controls {
|
|
844
|
+
display: flex;
|
|
845
|
+
flex-wrap: wrap;
|
|
846
|
+
align-items: center;
|
|
847
|
+
gap: 0.6rem 1.2rem;
|
|
807
848
|
margin: 1.5rem 0 0;
|
|
808
|
-
|
|
809
|
-
border: 0;
|
|
849
|
+
max-width: var(--content-width);
|
|
810
850
|
font-family: var(--sans);
|
|
811
851
|
font-size: 0.82rem;
|
|
812
852
|
color: var(--text-secondary);
|
|
813
853
|
}
|
|
814
854
|
|
|
815
|
-
.post-filter
|
|
816
|
-
|
|
855
|
+
.post-filter {
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-wrap: wrap;
|
|
858
|
+
gap: 0.4rem;
|
|
859
|
+
margin: 0;
|
|
817
860
|
padding: 0;
|
|
818
|
-
|
|
819
|
-
|
|
861
|
+
border: 0;
|
|
862
|
+
min-width: 0;
|
|
820
863
|
}
|
|
821
864
|
|
|
822
|
-
.post-filter
|
|
865
|
+
.post-filter legend {
|
|
866
|
+
position: absolute;
|
|
867
|
+
width: 1px;
|
|
868
|
+
height: 1px;
|
|
869
|
+
overflow: hidden;
|
|
870
|
+
clip-path: inset(50%);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.post-filter .chip {
|
|
874
|
+
position: relative;
|
|
823
875
|
display: inline-flex;
|
|
824
876
|
align-items: center;
|
|
825
|
-
gap: 0.
|
|
826
|
-
|
|
877
|
+
gap: 0.35rem;
|
|
878
|
+
padding: 0.22rem 0.65rem;
|
|
879
|
+
border: 1px solid var(--rule);
|
|
880
|
+
border-radius: 999px;
|
|
881
|
+
cursor: pointer;
|
|
882
|
+
user-select: none;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.post-filter .chip:hover {
|
|
886
|
+
border-color: var(--axis);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.post-filter .chip input {
|
|
890
|
+
position: absolute;
|
|
891
|
+
inset: 0;
|
|
892
|
+
margin: 0;
|
|
893
|
+
opacity: 0;
|
|
827
894
|
cursor: pointer;
|
|
828
895
|
}
|
|
829
896
|
|
|
897
|
+
.post-filter .chip:has(input:checked) {
|
|
898
|
+
border-color: var(--series-1);
|
|
899
|
+
background: color-mix(in srgb, var(--series-1) 12%, transparent);
|
|
900
|
+
color: var(--text-primary);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.post-filter .chip:has(input:focus-visible) {
|
|
904
|
+
outline: 2px solid var(--series-1);
|
|
905
|
+
outline-offset: 2px;
|
|
906
|
+
}
|
|
907
|
+
|
|
830
908
|
.post-filter .count {
|
|
831
909
|
color: var(--text-muted);
|
|
910
|
+
font-variant-numeric: tabular-nums;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.post-filter .slides-icon {
|
|
914
|
+
width: 1rem;
|
|
915
|
+
height: 1rem;
|
|
916
|
+
fill: none;
|
|
917
|
+
stroke: currentColor;
|
|
918
|
+
stroke-width: 1.3;
|
|
919
|
+
stroke-linecap: round;
|
|
920
|
+
stroke-linejoin: round;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.post-sort {
|
|
924
|
+
display: inline-flex;
|
|
925
|
+
align-items: center;
|
|
926
|
+
gap: 0.4rem;
|
|
927
|
+
margin-left: auto;
|
|
928
|
+
color: var(--text-muted);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.post-sort select {
|
|
932
|
+
padding: 0.2rem 0.4rem;
|
|
933
|
+
border: 1px solid var(--rule);
|
|
934
|
+
border-radius: 5px;
|
|
935
|
+
background: var(--page);
|
|
936
|
+
color: var(--text-primary);
|
|
937
|
+
font: inherit;
|
|
832
938
|
}
|
|
833
939
|
|
|
834
940
|
/* --- figures ------------------------------------------------------------- */
|