Got rid of textbox content
This commit is contained in:
parent
a44feb9cdc
commit
5a5a5eb913
11
src/vn.rs
11
src/vn.rs
@ -52,7 +52,6 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div .textbox-content {
|
|
||||||
@for (index, section) in sections.into_iter().enumerate() {
|
@for (index, section) in sections.into_iter().enumerate() {
|
||||||
div .story-section
|
div .story-section
|
||||||
data-section-index=(index)
|
data-section-index=(index)
|
||||||
@ -61,7 +60,6 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
(navigation_controls(total_scenes))
|
(navigation_controls(total_scenes))
|
||||||
(global_styles())
|
(global_styles())
|
||||||
@ -162,15 +160,6 @@ fn global_styles() -> Markup {
|
|||||||
}";
|
}";
|
||||||
|
|
||||||
const TEXTBOX_STYLES: &str = r"
|
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 {
|
.visual-novel-box {
|
||||||
border: 0.2vw solid var(--border-color);
|
border: 0.2vw solid var(--border-color);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user