배경 레이어가 그리드 안에서 561px 로 잘리던 것을 고친다
절대배치인데도 배경이 화면 가운데 561px 띠로만 깔렸다.
.section 은 subgrid 이고 `.section > * { grid-column: main }` 이 걸려 있는데,
절대배치 요소라도 그리드 영역이 잡히면 그 영역이 컨테이닝 블록이 된다.
position: absolute 는 그리드에서 배치를 면제해주지 않는다.
그리고 overflow: visible 이라 위아래 14% 여유분이 이웃 섹션으로 넘쳤다 —
조판 섹션의 종이가 프리플라이트 하단에 밝은 회색 띠로 나타났다.
.bg-photo { grid-column: full }
.has-bg { overflow: clip }
띠 폭 기준으로 잡았던 투명도도 다시 올렸다
사례 0.3 -> 0.5 · 프리플라이트 0.55 -> 0.8
재료 0.5 -> 0.6 · 설치 0.4 -> 0.55
1440px/390px 실렌더: 배경 5개 모두 전체 폭, 가로 스크롤 0.
화면 밖 섹션의 배경은 아직 로드되지 않는다 — lazy 가 의도대로 작동한다.
This commit is contained in:
parent
2bb1da9ce9
commit
5a18806fb6
6 changed files with 21 additions and 4 deletions
|
|
@ -261,6 +261,14 @@ Codex CLI 의 내장 `image_gen`(gpt-image-2)을 ChatGPT 구독 인증으로 호
|
||||||
빌드 결과 12개 파일 합계 **276KB**. 실제로는 뷰포트에 맞는 크기 하나씩만,
|
빌드 결과 12개 파일 합계 **276KB**. 실제로는 뷰포트에 맞는 크기 하나씩만,
|
||||||
그것도 `loading="lazy"` 로 받는다.
|
그것도 `loading="lazy"` 로 받는다.
|
||||||
|
|
||||||
|
**절대배치 배경이 그리드 안에서 561px 로 잘렸다.** `.section` 은 subgrid 이고
|
||||||
|
`.section > * { grid-column: main; }` 이 걸려 있는데, 절대배치 요소라도 그리드 영역이
|
||||||
|
잡히면 **그 영역이 컨테이닝 블록**이 된다. 그래서 배경이 화면 가운데 561px 띠로만 깔렸고,
|
||||||
|
`overflow: visible` 이라 위아래 14% 여유분이 이웃 섹션 위로 넘쳐 조판 섹션의 종이가
|
||||||
|
프리플라이트 하단에 밝은 띠로 나타났다.
|
||||||
|
`.bg-photo { grid-column: full }` + `.has-bg { overflow: clip }` 으로 고쳤다.
|
||||||
|
**`position: absolute` 는 그리드에서 배치를 면제해주지 않는다.**
|
||||||
|
|
||||||
**codex 0.147.0 메모** — `codex-image` 스킬의 `extract_imagegen.py` 는 rollout JSONL 의
|
**codex 0.147.0 메모** — `codex-image` 스킬의 `extract_imagegen.py` 는 rollout JSONL 의
|
||||||
`image_generation_call` base64 를 찾는데, 0.147.0 은 다시 **파일**로 저장한다
|
`image_generation_call` base64 를 찾는데, 0.147.0 은 다시 **파일**로 저장한다
|
||||||
(`~/.codex/generated_images/<sid>/exec-*.png`, 이벤트는 `custom_tool_call` + `image_generation_end`).
|
(`~/.codex/generated_images/<sid>/exec-*.png`, 이벤트는 `custom_tool_call` + `image_generation_end`).
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ const { c, ui } = Astro.props;
|
||||||
|
|
||||||
|
|
||||||
<section id="install" class="full install has-bg" aria-labelledby="install-h">
|
<section id="install" class="full install has-bg" aria-labelledby="install-h">
|
||||||
<BgPhoto opacity={0.4} flip />
|
<BgPhoto opacity={0.55} flip />
|
||||||
<div class="install-grid">
|
<div class="install-grid">
|
||||||
<div class="install-head">
|
<div class="install-head">
|
||||||
<h2 id="install-h">{c.h2}</h2>
|
<h2 id="install-h">{c.h2}</h2>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const { c } = Astro.props;
|
||||||
둘 다 설명이 아니라 지금 이 화면에서 돌고 있는 것이다.
|
둘 다 설명이 아니라 지금 이 화면에서 돌고 있는 것이다.
|
||||||
*/}
|
*/}
|
||||||
<section class="section materials has-bg" aria-labelledby="mat-h">
|
<section class="section materials has-bg" aria-labelledby="mat-h">
|
||||||
<BgPhoto opacity={0.5} />
|
<BgPhoto opacity={0.6} />
|
||||||
<h2 id="mat-h" class="reveal">{c.h2}</h2>
|
<h2 id="mat-h" class="reveal">{c.h2}</h2>
|
||||||
<p class="lead mat-lead reveal">{c.lead}</p>
|
<p class="lead mat-lead reveal">{c.lead}</p>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const { c } = Astro.props;
|
||||||
왼쪽 세로선이 로그라는 형식을 만든다.
|
왼쪽 세로선이 로그라는 형식을 만든다.
|
||||||
*/}
|
*/}
|
||||||
<section class="section preflight has-bg" aria-labelledby="pf-h">
|
<section class="section preflight has-bg" aria-labelledby="pf-h">
|
||||||
<BgPhoto variant="align" opacity={0.55} />
|
<BgPhoto variant="align" opacity={0.8} />
|
||||||
<h2 id="pf-h" class="reveal">{c.h2}</h2>
|
<h2 id="pf-h" class="reveal">{c.h2}</h2>
|
||||||
<p class="lead pf-lead reveal">{c.lead}</p>
|
<p class="lead pf-lead reveal">{c.lead}</p>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ const shots = [shotCoffee, shotSaas];
|
||||||
|
|
||||||
{/* 레이아웃 패밀리: Z축 캐스케이드. 두 판이 서로 겹치고 각도가 다르다 */}
|
{/* 레이아웃 패밀리: Z축 캐스케이드. 두 판이 서로 겹치고 각도가 다르다 */}
|
||||||
<section id="showcase" class="section showcase has-bg" aria-labelledby="showcase-h">
|
<section id="showcase" class="section showcase has-bg" aria-labelledby="showcase-h">
|
||||||
<BgPhoto variant="split" opacity={0.3} />
|
<BgPhoto variant="split" opacity={0.5} />
|
||||||
<h2 id="showcase-h" class="reveal">{c.h2}</h2>
|
<h2 id="showcase-h" class="reveal">{c.h2}</h2>
|
||||||
<p class="lead showcase-lead reveal">{c.lead}</p>
|
<p class="lead showcase-lead reveal">{c.lead}</p>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,16 @@ a:hover { color: var(--accent); }
|
||||||
.has-bg {
|
.has-bg {
|
||||||
position: relative;
|
position: relative;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
|
/* 배경 레이어는 위아래로 14% 삐져나온다(패럴랙스 여유).
|
||||||
|
clip 하지 않으면 그 삐져나온 부분이 이웃 섹션 위에 얹힌다 —
|
||||||
|
조판 섹션의 종이가 위 섹션 하단에 밝은 띠로 나타났다. */
|
||||||
|
overflow: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 섹션은 subgrid 이고 `.section > *` 이 전부 main 칼럼(561px)에 배치된다.
|
||||||
|
절대배치라도 그리드 영역이 잡히면 그게 컨테이닝 블록이 되므로,
|
||||||
|
배경이 화면 가운데 561px 띠로만 깔렸다. 전체 폭으로 되돌린다. */
|
||||||
|
.bg-photo { grid-column: full; }
|
||||||
.bg-grid::before,
|
.bg-grid::before,
|
||||||
.bg-glow::before {
|
.bg-glow::before {
|
||||||
content: "";
|
content: "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue