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/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, a checkbox per tag in use: the reader shows or hides the posts that carry it. */
806
- .post-filter {
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
- padding: 0;
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 legend {
816
- float: left;
855
+ .post-filter {
856
+ display: flex;
857
+ flex-wrap: wrap;
858
+ gap: 0.4rem;
859
+ margin: 0;
817
860
  padding: 0;
818
- margin-right: 0.9rem;
819
- color: var(--text-muted);
861
+ border: 0;
862
+ min-width: 0;
820
863
  }
821
864
 
822
- .post-filter label {
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.3rem;
826
- margin-right: 1.1rem;
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 ------------------------------------------------------------- */
@@ -11,7 +11,7 @@
11
11
  "bloggie:update": "npm install bloggie@latest"
12
12
  },
13
13
  "dependencies": {
14
- "bloggie": "^0.4.2",
14
+ "bloggie": "^0.4.4",
15
15
  "d3": "^7.9.0"
16
16
  },
17
17
  "overrides": {