diff --git a/src/vn.rs b/src/vn.rs index c898337..05960fe 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -52,13 +52,11 @@ fn generate_html(scenes: Vec, sections: Vec) -> 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);