full refactoring

This commit is contained in:
2024-12-06 04:12:49 +03:00
parent b89af2ca0d
commit 19c5af6e68
2 changed files with 226 additions and 294 deletions

View File

@@ -202,3 +202,66 @@ body.dark-theme {
color: #fff;
}
/* Кнопка добавления шаблона */
.add-template-btn {
position: absolute;
top: 20px;
left: 20px;
padding: 10px 20px;
background-color: #abcef5;
color: white;
font-size: 16px;
border: none;
border-radius: 50px;
cursor: pointer;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, box-shadow 0.3s;
z-index: 1000;
}
.add-template-btn i {
margin-right: 8px;
}
.add-template-btn:hover {
background-color: #88aee5;
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}
.add-template-btn:focus {
outline: none;
}
/* Для кнопок и textarea, чтобы не "гуляли" */
.template {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 8px 7px;
border: 1px solid #8888c6;
border-radius: 8px;
overflow: hidden;
width: 100%;
box-sizing: border-box;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Скрытие полей */
.hidden {
display: none;
}
/* Стили для input и textarea */
input, textarea {
width: 100%;
height: 40px; /* Сделаем высоту фиксированной */
padding: 8px;
box-sizing: border-box;
margin-top: 4px;
}
/* Убираем возможность изменения размеров textarea */
textarea {
resize: none;
}