291 lines
5.4 KiB
CSS
291 lines
5.4 KiB
CSS
/* Общие настройки */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
background-color: #FAFAFA;
|
|
color: #2C3E50;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* Контейнер приложения - фиксированная ширина для мобильного */
|
|
.app-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 20px auto;
|
|
background: #FAFAFA;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
border-radius: 20px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Шапка приложения */
|
|
.app-header {
|
|
background: linear-gradient(135deg, #2D5F3F 0%, #3A7A52 100%);
|
|
padding: 16px 20px 12px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.app-logo {
|
|
width: 36px;
|
|
height: 36px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.app-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: #FFFFFF;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
/* Основной контент */
|
|
.app-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-bottom: 80px; /* Отступ для нижней навигации */
|
|
}
|
|
|
|
.content-container {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Заголовок экрана */
|
|
.screen-title {
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
color: #2C3E50;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.screen-description {
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
color: #7F8C8D;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* Карточки */
|
|
.card {
|
|
background: #FFFFFF;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #2C3E50;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.card-text {
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
color: #7F8C8D;
|
|
}
|
|
|
|
/* Элементы списка */
|
|
.list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: #FFFFFF;
|
|
border-radius: 12px;
|
|
padding: 14px 16px;
|
|
margin-bottom: 12px;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.list-item:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.list-item-icon {
|
|
font-size: 28px;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #ECF0F1;
|
|
border-radius: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.list-item-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.list-item-title {
|
|
font-size: 17px;
|
|
font-weight: 500;
|
|
color: #2C3E50;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.list-item-subtitle {
|
|
font-size: 14px;
|
|
color: #7F8C8D;
|
|
}
|
|
|
|
/* Нижняя навигация */
|
|
.app-navigation {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 72px;
|
|
background: #FFFFFF;
|
|
border-top: 1px solid #ECF0F1;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.nav-button {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
background: none;
|
|
border: none;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease;
|
|
min-width: 56px;
|
|
}
|
|
|
|
.nav-button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.nav-label {
|
|
font-size: 11px;
|
|
color: #7F8C8D;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-button-active .nav-label {
|
|
color: #2D5F3F;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-button-active {
|
|
position: relative;
|
|
}
|
|
|
|
.nav-button-active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -8px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 32px;
|
|
height: 3px;
|
|
background: #2D5F3F;
|
|
border-radius: 2px 2px 0 0;
|
|
}
|
|
|
|
/* Кнопка SOS */
|
|
.sos-button {
|
|
position: absolute;
|
|
bottom: 88px;
|
|
right: 20px;
|
|
width: 80px;
|
|
height: 80px;
|
|
background: #C0392B;
|
|
border: 4px solid #FFFFFF;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
|
|
cursor: pointer;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
z-index: 100;
|
|
}
|
|
|
|
.sos-button:active {
|
|
transform: scale(0.95);
|
|
box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5);
|
|
}
|
|
|
|
.sos-icon {
|
|
font-size: 32px;
|
|
color: #FFFFFF;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Анимация пульсации для SOS */
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
box-shadow: 0 4px 16px rgba(192, 57, 43, 0.4);
|
|
}
|
|
50% {
|
|
box-shadow: 0 4px 24px rgba(192, 57, 43, 0.6);
|
|
}
|
|
}
|
|
|
|
.sos-button {
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
/* Скроллбар для webkit браузеров */
|
|
.app-main::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.app-main::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.app-main::-webkit-scrollbar-thumb {
|
|
background: #BDC3C7;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.app-main::-webkit-scrollbar-thumb:hover {
|
|
background: #95A5A6;
|
|
}
|
|
|
|
/* Адаптация для разных высот экрана */
|
|
@media (max-height: 700px) {
|
|
.app-container {
|
|
height: 667px;
|
|
}
|
|
}
|
|
|
|
@media (min-height: 850px) {
|
|
.app-container {
|
|
height: 844px;
|
|
}
|
|
}
|
|
|