v3.0.3 — Living Frame Update
Breathing margins, dynamic heights, and unified aesthetic for all bounded pages. Freedom inside the frame; harmony within recursion.
This commit is contained in:
parent
dce737225e
commit
3a1aa160a8
3 changed files with 62 additions and 13 deletions
|
|
@ -265,11 +265,31 @@ function renderIframe(rel) {
|
|||
const doc = iframe.contentDocument;
|
||||
const style = doc.createElement("style");
|
||||
style.textContent = `
|
||||
html,body{background:#0b0b0b;color:#e6e3d7;font-family:Inter,sans-serif;
|
||||
margin:0;padding:2rem;}
|
||||
*{max-width:720px;margin:auto;}
|
||||
img,video,iframe{max-width:100%;height:auto;}
|
||||
`;
|
||||
html,body{
|
||||
background:#0b0b0b;
|
||||
color:#e6e3d7;
|
||||
font-family:Inter,sans-serif;
|
||||
margin:0;
|
||||
padding:3vh 6vw;
|
||||
line-height:1.8;
|
||||
}
|
||||
body{
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
align-items:center;
|
||||
justify-content:flex-start;
|
||||
min-height:100vh;
|
||||
}
|
||||
*{
|
||||
max-width:960px;
|
||||
width:100%;
|
||||
}
|
||||
img,video,iframe{
|
||||
max-width:100%;
|
||||
height:auto;
|
||||
border-radius:8px;
|
||||
}
|
||||
`;
|
||||
doc.head.appendChild(style);
|
||||
} catch {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue