Made the content size consistent
This commit is contained in:
parent
b3d692ac7f
commit
700406992a
44
src/main.rs
44
src/main.rs
@ -745,44 +745,42 @@ fn handle_relative_connection(
|
|||||||
}
|
}
|
||||||
|
|
||||||
.visual-novel-box {
|
.visual-novel-box {
|
||||||
border: 2px solid #3a3a3a;
|
border: 0.2vw solid #3a3a3a;
|
||||||
border-radius: 10px;
|
border-radius: 1vw;
|
||||||
padding: 20px;
|
padding: 2vw;
|
||||||
margin: 1rem auto;
|
margin: 1vh 0;
|
||||||
background: rgba(255, 255, 255, 0.9);
|
background: rgba(255, 255, 255, 0.9);
|
||||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 0.4vw 0.6vw rgba(0, 0, 0, 0.1);
|
||||||
position: relative;
|
width: 90%;
|
||||||
width: 80%;
|
min-width: 85%;
|
||||||
max-width: 600px;
|
font-size: 1.6vw;
|
||||||
min-width: 300px;
|
position: absolute;
|
||||||
|
bottom: 3vh;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.character-name {
|
.character-name {
|
||||||
font-family: 'Georgia', serif;
|
font-family: 'Georgia', serif;
|
||||||
font-size: 1.2rem;
|
font-size: 1.8vw;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 0 15px;
|
padding: 0 1.5vw;
|
||||||
background: #4a6b8a;
|
background: #4a6b8a;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 5px;
|
border-radius: 0.5vw;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
transform: translateY(-60%);
|
transform: translateY(-60%);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 20px;
|
left: 1vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialogue-content {
|
.dialogue-content {
|
||||||
font-family: 'Arial', sans-serif;
|
font-size: 1.6vw;
|
||||||
font-size: 1.1rem;
|
line-height: 1.4;
|
||||||
line-height: 1.6;
|
max-height: 20vh;
|
||||||
color: #333;
|
overflow-y: auto;
|
||||||
margin-top: 10px;
|
padding: 1vh 0.5vw;
|
||||||
min-height: 40px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 10px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.visual-novel-box::after {
|
.visual-novel-box::after {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user