Merged scene container into scene styles, got rid of container styles

This commit is contained in:
p11 2025-04-21 10:41:37 +02:00
parent 020a16be2b
commit da84e0fe69

View File

@ -114,7 +114,7 @@ fn global_styles() -> Markup {
transform: scale(0.95); transform: scale(0.95);
}"; }";
const CONTAINER_STYLES: &str = r" const SCENE_STYLES: &str = r"
.scene-viewport { .scene-viewport {
width: 75%; width: 75%;
margin: 0 auto; margin: 0 auto;
@ -122,9 +122,7 @@ fn global_styles() -> Markup {
padding-top: 42.1875%; padding-top: 42.1875%;
background: #f8f8f8; background: #f8f8f8;
overflow: hidden; overflow: hidden;
}"; }
const SCENE_STYLES: &str = r"
.scene-section { .scene-section {
position: absolute; position: absolute;
top: 0; top: 0;
@ -250,8 +248,7 @@ fn global_styles() -> Markup {
html! { html! {
style { style {
(maud::PreEscaped( (maud::PreEscaped(
[BASE_STYLES, NAVIGATION, CONTAINER_STYLES, SCENE_STYLES, [BASE_STYLES, NAVIGATION, SCENE_STYLES, TEXTBOX_STYLES, CHARACTER_STYLES, CHOICE_STYLES]
TEXTBOX_STYLES, CHARACTER_STYLES, CHOICE_STYLES]
.join("") .join("")
)) ))
} }