149 lines
3.0 KiB
CSS
149 lines
3.0 KiB
CSS
/* Базовые стили для страницы */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f4f4f4;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
height: 100vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
/* Контейнер для приложения */
|
|
.calculator-container {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
text-align: center;
|
|
width: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: auto;
|
|
}
|
|
|
|
/* Стили для ввода данных */
|
|
.inputs {
|
|
margin-bottom: 20px;
|
|
text-align: left;
|
|
position: sticky;
|
|
top: 0;
|
|
background: white;
|
|
z-index: 10;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
/* Метки (label) */
|
|
label {
|
|
display: block;
|
|
margin: 10px 0 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Поля ввода */
|
|
input {
|
|
width: calc(100% - 20px);
|
|
padding: 10px;
|
|
margin-bottom: 10px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Стили для маски букв на своем месте */
|
|
#mask-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.mask-letter {
|
|
width: 50px;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
padding: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Стили для масок букв не на своих местах */
|
|
#incorrect-masks {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.incorrect-mask-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.incorrect-mask-letter {
|
|
width: 50px;
|
|
text-align: center;
|
|
font-size: 16px;
|
|
padding: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Кнопка "Рассчитать" */
|
|
#calculate-btn {
|
|
padding: 10px 20px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
}
|
|
|
|
#calculate-btn:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
/* Стили для блока результатов */
|
|
.results {
|
|
text-align: left;
|
|
overflow-y: auto; /* Прокрутка по вертикали */
|
|
max-height: 50vh; /* Ограничение высоты списка */
|
|
padding-right: 10px; /* Добавляем отступ для скроллбара */
|
|
border-top: 1px solid #ddd; /* Разделение от ввода */
|
|
}
|
|
|
|
/* Стили для списка результатов */
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
li {
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
li:hover {
|
|
background-color: #f0f0f0;
|
|
}
|
|
|
|
/* Медиазапросы для мобильных устройств */
|
|
@media (max-width: 480px) {
|
|
.calculator-container {
|
|
width: 90%;
|
|
padding: 15px;
|
|
}
|
|
|
|
.mask-letter,
|
|
.incorrect-mask-letter {
|
|
width: 40px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#calculate-btn {
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
}
|
|
}
|