Files
voice_recognition/recognition_VAD/assets/css/app.css

86 lines
2.1 KiB
CSS

@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* This file is for your main application CSS */
body {
background-color: #f4f4f9;
color: #333;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
#container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 700px;
padding: 20px;
box-sizing: border-box;
gap: 20px; /* Add more vertical space between items */
height: 90%; /* Fixed height to prevent layout shift */
}
#status {
color: #0056b3;
font-size: 20px;
text-align: center;
}
#transcriptionContainer {
height: 90px; /* Fixed height for approximately 3 lines of text */
overflow-y: auto;
width: 100%;
padding: 10px;
box-sizing: border-box;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
}
#transcription {
font-size: 18px;
line-height: 1.6;
color: #333;
word-wrap: break-word;
}
#fullTextContainer {
height: 150px; /* Fixed height to prevent layout shift */
overflow-y: auto;
width: 100%;
padding: 10px;
box-sizing: border-box;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
}
#fullText {
color: #4CAF50;
font-size: 18px;
font-weight: 600;
word-wrap: break-word;
}
.last-word {
color: #007bff;
font-weight: 600;
}
button {
padding: 12px 24px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
margin: 5px;
transition: background-color 0.3s ease;
color: #fff;
background-color: #0056b3;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
button:hover {
background-color: #007bff;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}