dhravani / static /mobile.css
coild's picture
Upload 52 files
70b77f4 verified
@media (max-width: 768px) {
.container-fluid {
padding: 0.5rem !important;
}
/* Make the recording interface full width */
.main-container .col-9 {
width: 100%;
padding: 0;
height: calc(100vh - 70px); /* Account for header */
}
#recordingInterface {
height: 100%;
display: flex;
flex-direction: column;
}
.card-body.recording-interface-scroll {
flex: 1;
display: flex;
flex-direction: column;
padding: 0.75rem !important;
padding-top: 0.5rem !important;
}
.transcript-container {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.transcript-box {
flex: 1;
max-height: none;
overflow-y: auto;
margin-bottom: 1rem !important;
}
.recording-controls {
flex-shrink: 0;
gap: 0.5rem;
border-top: 1px solid rgba(0,0,0,0.1);
margin-bottom: 2px !important;
left: 0; /* Align to the left */
width: 100%; /* Full width on mobile */
}
/* Wave container adjustments */
.wave-container {
width: 80vw !important; /* 80% of viewport width for mobile */
height: 32px !important;
margin: 0px -16px 0 -16px !important; /* Changed from -16px top margin to 0px */
position: absolute !important;
top: 16px !important; /* Changed from 0 to 16px to move down */
left: 50% !important;
transform: translate(-50%, -100%) !important;
background: transparent !important;
border-radius: 0 !important;
overflow: visible !important;
}
/* Settings panel styles for mobile */
#settingsPanel {
position: fixed;
top: 0;
right: -100%;
width: 100%;
height: 100%;
z-index: 1050;
transition: right 0.3s ease;
background: #fff;
padding: 0;
}
#settingsPanel.show {
right: 0;
}
#settingsPanel.col-3 {
margin-top: 0;
}
/* Settings panel header */
.settings-header {
padding: 1rem;
border-bottom: 1px solid #e0e0e0;
display: flex;
align-items: center;
justify-content: space-between;
}
.settings-close {
background: none;
border: none;
padding: 8px;
border-radius: 50%;
}
/* Mobile overlay */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 1040;
}
.overlay.show {
display: block;
}
/* Adjust form fields for mobile */
.setup-form-container {
height: calc(100vh - 60px);
overflow-y: auto;
}
.material-input {
margin-bottom: 1rem;
}
/* Adjust recording controls for mobile */
.recording-controls {
flex-direction: column;
gap: 0.75rem;
}
.btn-group {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.375rem;
width: 100%;
margin-bottom: 0.75rem;
}
.btn-group .btn {
width: 100%;
margin: 0;
padding: 0.375rem;
font-size: 0.875rem;
white-space: nowrap;
}
/* Place Save and Re-record in the bottom row */
.btn-group #saveBtn {
grid-column: 1 / 3;
}
.btn-group #rerecordBtn {
grid-column: 3 / 4;
}
.navigation-controls {
flex-wrap: wrap;
gap: 0.5rem;
}
/* Adjust transcript box for mobile */
.transcript-box {
max-height: calc(100vh - 250px);
}
.recording-header {
position: sticky;
top: 0;
z-index: 999;
background: #fff;
}
.btn-group.mb-4 {
margin-bottom: 12px !important;
}
.navigation-controls {
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
gap: 0.25rem;
align-items: center;
}
.navigation-controls > button,
.jump-input-group {
flex: 0 0 auto;
}
.jump-input-group {
width: 120px;
min-width: unset;
}
.jump-input-group input {
padding: 0.25rem;
font-size: 0.875rem;
}
.jump-input-group button {
padding: 0.25rem;
}
.jump-input-group .btn {
display: none;
}
.jump-input-group .form-control {
border-radius: 24px !important;
padding-right: 8px;
}
.navigation-controls > .ms-auto {
flex: 1 1 100%;
order: 1;
margin-top: 0.5rem;
text-align: center;
}
.navigation-controls > .ms-auto {
display: none;
}
.btn-group {
grid-template-columns: repeat(2, 1fr);
gap: 0.8rem;
}
.btn-group .btn {
padding: 0.25rem;
font-size: 0.8125rem;
}
/* .card-body.recording-interface-scroll {
padding: 0.75rem !important;
} */
.transcript-box {
margin-bottom: 0.75rem !important;
}
.disabled-interface .recording-header {
pointer-events: auto;
opacity: 1;
}
/* Improve mobile button layout */
/* Recording controls container */
.recording-controls {
padding: 16px !important;
padding-top: 12px !important;
padding-bottom: 24px !important;
left: 0;
width: 100%;
bottom: 0;
position: fixed;
background: #fff;
border-top: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
/* Button group layout */
.btn-group {
display: grid !important;
grid-template-columns: 1fr 1fr !important;
gap: 8px !important;
width: 100% !important;
margin-bottom: 12px !important;
margin-top: 12px !important; /* Add top margin after wave container */
}
/* Record button takes full width */
#recordBtn {
grid-column: 1 / -1 !important;
width: 100% !important;
}
/* Play and Re-record buttons */
#playBtn, #rerecordBtn {
width: 100% !important;
}
/* Save button takes full width */
#saveBtn {
grid-column: 1 / -1 !important;
width: 100% !important;
}
/* Navigation controls */
.navigation-controls {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 8px !important;
width: 100% !important;
}
/* Previous and Skip buttons */
#prevBtn, #skipBtn {
width: 100% !important;
}
/* Jump input group */
.jump-input-group {
grid-column: 1 / -1 !important;
width: 100% !important;
margin: 0 !important;
}
.jump-input-group .form-control {
width: 100% !important;
text-align: center !important;
}
/* Progress text */
.navigation-controls .ms-auto {
grid-column: 1 / -1 !important;
text-align: center !important;
margin-top: 8px !important;
}
/* Adjust spacing for fixed controls */
.transcript-container {
margin-bottom: 180px !important;
}
/* Make buttons taller and easier to tap */
.btn {
min-height: 44px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
/* Update navigation controls layout */
.navigation-controls {
display: flex !important;
flex-direction: row !important;
justify-content: space-between !important;
gap: 8px !important;
width: 100% !important;
}
/* Set equal width for Previous and Skip buttons */
#prevBtn, #skipBtn {
width: 80px !important;
padding: 8px 4px !important;
font-size: 13px !important;
}
/* Style jump input group */
.jump-input-group {
flex: 1 !important;
width: auto !important;
margin: 0 8px !important;
}
.jump-input-group .form-control {
height: 36px !important;
padding: 4px 8px !important;
font-size: 13px !important;
text-align: center !important;
}
/* Hide progress text on mobile */
.navigation-controls .ms-auto {
display: none !important;
}
/* Ensure consistent height */
.navigation-controls .btn,
.jump-input-group .form-control {
min-height: 36px !important;
}
.d-none.d-md-inline-block {
display: none !important;
}
/* Reduce header padding on mobile */
.d-flex.justify-content-between.align-items-center.pt-3.pb-3 {
padding-top: 2px !important;
padding-bottom: 10px !important;
}
/* Header buttons styling */
.btn-outline-primary {
padding: 6px 16px;
font-size: 13px;
height: 32px;
min-width: 72px;
display: flex;
align-items: center;
justify-content: center;
}
/* Adjust header spacing */
.pt-3 {
padding-top: 12px !important;
}
.pb-3 {
padding-bottom: 12px !important;
}
/* Adjust gap between buttons */
.gap-3 {
gap: 8px !important;
}
/* Unified header button styles - Make both Back and Logout buttons identical */
.d-flex.justify-content-between.align-items-center .btn-outline-primary {
padding: 6px 16px !important;
font-size: 13px !important;
height: 32px !important;
min-width: 72px !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
border: 1px solid #dadce0 !important;
color: #1a73e8 !important;
background: transparent !important;
font-weight: 500 !important;
margin: 0 !important;
}
/* Add hover effect */
.d-flex.justify-content-between.align-items-center .btn-outline-primary:hover {
background-color: #f6fafe !important;
border-color: #1a73e8 !important;
color: #1557b0 !important;
}
}