Got rid of textbox content

This commit is contained in:
p11 2025-04-21 10:27:35 +02:00
parent a44feb9cdc
commit 5a5a5eb913

View File

@ -52,13 +52,11 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
}
}
div .textbox-content {
@for (index, section) in sections.into_iter().enumerate() {
div .story-section
data-section-index=(index)
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
(section)
}
@for (index, section) in sections.into_iter().enumerate() {
div .story-section
data-section-index=(index)
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
(section)
}
}
}
@ -162,15 +160,6 @@ fn global_styles() -> Markup {
}";
const TEXTBOX_STYLES: &str = r"
.textbox-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 30%);
padding: 2vw;
}
.visual-novel-box {
border: 0.2vw solid var(--border-color);
border-radius: var(--border-radius);