3d-world-building 0.3.0 → 0.3.1
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/README.md
CHANGED
|
@@ -295,7 +295,7 @@ skills/3d-world-building/
|
|
|
295
295
|
|
|
296
296
|
## Status
|
|
297
297
|
|
|
298
|
-
Version 0.3.
|
|
298
|
+
Version 0.3.1. Say what you find.
|
|
299
299
|
|
|
300
300
|
- Built and checked on Windows 11 with Chrome. On Linux (Ubuntu, under WSL) a new site installs
|
|
301
301
|
and passes its tests. Not yet run on macOS, and sites made with it have not been checked in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3d-world-building",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "An agent skill that builds websites which are 3D worlds travelled by scrolling: any world, made in code, with a palette designed from the brief.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Haseeb Khizar (https://github.com/haseeb090)",
|
|
@@ -182,8 +182,9 @@ a {
|
|
|
182
182
|
color: var(--j-on-accent);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
/* On a phone
|
|
186
|
-
|
|
185
|
+
/* On a phone, or any screen short of height (a phone held sideways), the picker keeps to one line
|
|
186
|
+
and scrolls sideways, so it never covers the copy. */
|
|
187
|
+
@media (max-width: 640px), (max-height: 600px) {
|
|
187
188
|
.theme-picker {
|
|
188
189
|
flex-wrap: nowrap;
|
|
189
190
|
justify-content: flex-start;
|
|
@@ -837,6 +837,90 @@ body:has(.journey-main) .site-footer .footer-base {
|
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
+
/* Short screens (a phone held sideways, a small window): the copy keeps to the room between the
|
|
841
|
+
header and the foot, where the picker and the progress bar are. Smaller type first; a sheet that
|
|
842
|
+
still does not fit scrolls within itself rather than go under either. The scroll cue is left out,
|
|
843
|
+
as on phones: under the opening copy there is no room for it. */
|
|
844
|
+
@media (max-height: 600px) {
|
|
845
|
+
.journey-main {
|
|
846
|
+
--journey-room-top: 4rem;
|
|
847
|
+
--journey-room-foot: 4.2rem;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.journey-main .journey-beat--hero,
|
|
851
|
+
.journey-main .journey-beat--intro {
|
|
852
|
+
padding-top: var(--journey-room-top);
|
|
853
|
+
padding-bottom: var(--journey-room-foot);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.journey-main .journey-panel--hero h1 {
|
|
857
|
+
margin-bottom: 0.7rem;
|
|
858
|
+
font-size: clamp(1.75rem, 9svh, 6rem);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.journey-main .journey-panel--title h1 {
|
|
862
|
+
margin-bottom: 0.7rem;
|
|
863
|
+
font-size: clamp(1.8rem, 9svh, 4.6rem);
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.journey-main .journey-lede {
|
|
867
|
+
margin-bottom: 1rem;
|
|
868
|
+
font-size: 1rem;
|
|
869
|
+
line-height: 1.5;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.journey-main .journey-panel--sheet {
|
|
873
|
+
max-height: calc(100svh - var(--journey-room-top) - var(--journey-room-foot));
|
|
874
|
+
padding: 1rem 1.25rem;
|
|
875
|
+
overflow-y: auto;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.journey-main .journey-panel--sheet h2 {
|
|
879
|
+
margin-bottom: 0.6rem;
|
|
880
|
+
font-size: clamp(1.3rem, 6svh, 3rem);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.journey-main .journey-panel--sheet h3 {
|
|
884
|
+
font-size: clamp(1.2rem, 5svh, 2.4rem);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.journey-main .journey-panel--sheet p {
|
|
888
|
+
margin-bottom: 0.7rem;
|
|
889
|
+
font-size: 0.94rem;
|
|
890
|
+
line-height: 1.5;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.journey-main .journey-cue {
|
|
894
|
+
display: none;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/* Wider than a phone, so the panels hang from the top, just under the header, and the foot holds
|
|
899
|
+
only the picker's one line (the progress rail is at the side). */
|
|
900
|
+
@media (max-height: 600px) and (min-width: 768px) {
|
|
901
|
+
.journey-main {
|
|
902
|
+
--journey-room-foot: 3.75rem;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.journey-main .journey-panel {
|
|
906
|
+
top: var(--journey-room-top);
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/* The opening panels are not sticky: an offset would only push them down. */
|
|
910
|
+
.journey-main .journey-panel--hero,
|
|
911
|
+
.journey-main .journey-panel--title {
|
|
912
|
+
top: auto;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/* While palettes are on trial, the picker's two lines at the foot would cover the scroll cue: it
|
|
917
|
+
stands above them. (The picker goes once a theme is chosen, and the cue drops back.) */
|
|
918
|
+
@media (min-height: 601px) and (min-width: 768px) {
|
|
919
|
+
body:has(.theme-picker) .journey-main .journey-cue {
|
|
920
|
+
bottom: 7rem;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
840
924
|
@media (prefers-reduced-motion: reduce) {
|
|
841
925
|
.journey-root .journey-stage canvas,
|
|
842
926
|
.journey-main,
|