Implement comprehensive mobile experience framework for entire application

This commit is contained in:
Eric Gullickson
2025-07-27 21:03:06 -05:00
parent f46d471453
commit ea055f1c38
20 changed files with 713 additions and 174 deletions

View File

@@ -378,6 +378,177 @@ html {
.is-valid:focus {
box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}
/* iPhone-specific optimizations for high DPI displays */
.modal-header .modal-title {
font-size: 1.125rem;
line-height: 1.3;
word-break: break-word;
}
/* Optimize for very narrow screens (iPhone portrait) */
.modal-body .form-group {
margin-bottom: 1.25rem;
}
.modal-body .form-group label {
font-size: 0.9rem;
margin-bottom: 0.5rem;
display: block;
font-weight: 600;
}
/* Enhanced input styling for high DPI */
.form-control,
.form-select {
border-width: 1.5px;
border-radius: 8px;
line-height: 1.4;
}
/* Improved button styling for high DPI touch */
.btn {
border-radius: 8px;
font-weight: 500;
letter-spacing: 0.025em;
}
.btn-sm {
border-radius: 6px;
}
/* Enhanced modal animations for smooth feel */
.modal.fade .modal-dialog {
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Better spacing for very narrow viewports */
.input-group {
margin-bottom: 1rem;
}
.input-group-text {
border-width: 1.5px;
border-radius: 0 8px 8px 0;
}
.input-group .form-control {
border-radius: 8px 0 0 8px;
}
/* Optimize checkbox and radio sizing for high DPI */
.form-check-input {
margin-top: 0.125rem;
border-width: 1.5px;
}
.form-check-label {
font-size: 0.9rem;
padding-left: 0.75rem;
}
/* Enhanced focus rings for high DPI */
.form-control:focus,
.form-select:focus,
.btn:focus {
box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
border-color: #86b7fe;
}
/* Better modal pull handle for high DPI */
.modal-content::before {
width: 48px;
height: 5px;
border-radius: 3px;
background-color: #adb5bd;
top: 10px;
}
}
/* Ultra-narrow portrait optimization (iPhone-specific) */
@media (max-width: 280px) {
.modal-header {
padding: 0.75rem;
flex-direction: column;
align-items: stretch;
text-align: center;
}
.modal-header .btn-close {
position: absolute;
top: 0.75rem;
right: 0.75rem;
width: 36px;
height: 36px;
}
.modal-header .modal-title {
font-size: 1rem;
margin-bottom: 0.75rem;
padding-right: 50px; /* Account for close button */
}
.modal-body {
padding: 0.75rem;
}
.modal-footer {
padding: 0.75rem;
gap: 0.75rem;
}
/* Ultra-compact form styling */
.form-group {
margin-bottom: 1rem;
}
.form-group label {
font-size: 0.85rem;
margin-bottom: 0.375rem;
}
.form-control,
.form-select {
padding: 0.625rem 0.75rem;
font-size: 15px; /* Prevent zoom on very narrow iPhones */
}
.btn {
padding: 0.625rem 1rem;
font-size: 0.9rem;
}
/* Compact input groups */
.input-group-text {
padding: 0.625rem 0.75rem;
font-size: 0.9rem;
}
/* Smaller modal content spacing */
.modal-content::before {
width: 40px;
height: 4px;
top: 8px;
}
/* Optimize for one-handed use */
.modal-footer .btn {
min-height: 48px;
font-size: 1rem;
}
/* Better tag input styling for narrow screens */
.mobile-tag-input .bootstrap-tagsinput {
min-height: 40px;
padding: 6px;
font-size: 15px;
}
.mobile-tag-input .tag {
font-size: 0.8rem;
padding: 3px 6px;
margin: 1px;
}
}
.recordSticker {