Got rid of textbox content
This commit is contained in:
parent
a44feb9cdc
commit
5a5a5eb913
21
src/vn.rs
21
src/vn.rs
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user