Spaces:
Sleeping
Sleeping
Update nutri_call.html
Browse files- nutri_call.html +67 -61
nutri_call.html
CHANGED
|
@@ -434,76 +434,63 @@ legend {
|
|
| 434 |
}
|
| 435 |
|
| 436 |
/* Стили для блока расчета */
|
|
|
|
| 437 |
.calculation-container {
|
| 438 |
display: flex;
|
| 439 |
-
gap: 40px;
|
| 440 |
align-items: flex-start;
|
| 441 |
}
|
| 442 |
|
| 443 |
-
|
|
|
|
| 444 |
display: flex;
|
| 445 |
flex-direction: column;
|
| 446 |
-
gap: 20px;
|
|
|
|
| 447 |
}
|
| 448 |
|
| 449 |
-
.
|
| 450 |
-
font-weight: bold;
|
| 451 |
-
color: #2e8b57;
|
| 452 |
-
margin-bottom: 5px;
|
| 453 |
-
}
|
| 454 |
-
|
| 455 |
-
.compensation-weights {
|
| 456 |
-
display: flex;
|
| 457 |
-
flex-direction: column;
|
| 458 |
-
gap: 8px;
|
| 459 |
-
}
|
| 460 |
-
|
| 461 |
-
.weight-input-group {
|
| 462 |
-
display: flex;
|
| 463 |
-
align-items: center;
|
| 464 |
-
gap: 10px;
|
| 465 |
-
}
|
| 466 |
-
|
| 467 |
-
.weight-input-group label {
|
| 468 |
-
width: 80px;
|
| 469 |
-
text-align: right;
|
| 470 |
font-weight: bold;
|
| 471 |
font-size: 0.9em;
|
| 472 |
}
|
| 473 |
|
| 474 |
-
.
|
| 475 |
-
width:
|
| 476 |
padding: 5px;
|
| 477 |
border: 1px solid #ccc;
|
| 478 |
border-radius: 4px;
|
| 479 |
}
|
| 480 |
|
| 481 |
-
.
|
| 482 |
display: flex;
|
| 483 |
-
gap:
|
| 484 |
}
|
| 485 |
|
| 486 |
-
.
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
gap: 10px;
|
| 490 |
-
}
|
| 491 |
-
|
| 492 |
-
#calculate-btn {
|
| 493 |
-
background-color: #2e8b57;
|
| 494 |
-
color: white;
|
| 495 |
border: none;
|
| 496 |
-
padding: 8px 16px;
|
| 497 |
-
font-size: 16px;
|
| 498 |
border-radius: 5px;
|
| 499 |
cursor: pointer;
|
| 500 |
-
transition: background-color 0.3s;
|
| 501 |
-
margin-bottom: 5px;
|
| 502 |
font-weight: bold;
|
|
|
|
| 503 |
}
|
| 504 |
|
| 505 |
-
#
|
| 506 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 507 |
}
|
| 508 |
|
| 509 |
.input-group {
|
|
@@ -513,7 +500,7 @@ legend {
|
|
| 513 |
}
|
| 514 |
|
| 515 |
.input-group label {
|
| 516 |
-
width: 120px; /*
|
| 517 |
text-align: right;
|
| 518 |
font-weight: bold;
|
| 519 |
font-size: 0.9em;
|
|
@@ -526,7 +513,24 @@ legend {
|
|
| 526 |
border-radius: 4px;
|
| 527 |
}
|
| 528 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 529 |
|
|
|
|
| 530 |
.micro-container {
|
| 531 |
padding: 10px;
|
| 532 |
}
|
|
@@ -911,11 +915,24 @@ legend {
|
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 918 |
|
|
|
|
|
|
|
| 919 |
<div class="input-column">
|
| 920 |
<div class="input-group">
|
| 921 |
<label for="liters-input">Литры:</label>
|
|
@@ -928,19 +945,8 @@ legend {
|
|
| 928 |
<button id="calculate-btn">Рассчитать</button>
|
| 929 |
</div>
|
| 930 |
</div>
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
<!-- Выпадающий список -->
|
| 934 |
-
<label for="profile-selector">Выберите профиль:</label>
|
| 935 |
-
<select id="profile-selector">
|
| 936 |
-
</select>
|
| 937 |
-
|
| 938 |
-
<!-- Кнопка для сохранения нового профиля -->
|
| 939 |
-
<!-- Кнопки -->
|
| 940 |
-
<button id="save-profile">Сохранить текущий профиль</button>
|
| 941 |
-
<button id="delete-profile">Удалить выбранный профиль</button>
|
| 942 |
-
</fieldset>
|
| 943 |
-
|
| 944 |
|
| 945 |
|
| 946 |
|
|
|
|
| 434 |
}
|
| 435 |
|
| 436 |
/* Стили для блока расчета */
|
| 437 |
+
|
| 438 |
.calculation-container {
|
| 439 |
display: flex;
|
| 440 |
+
gap: 40px; /* Расстояние между левым и правым блоками */
|
| 441 |
align-items: flex-start;
|
| 442 |
}
|
| 443 |
|
| 444 |
+
/* Левый блок */
|
| 445 |
+
.left-section {
|
| 446 |
display: flex;
|
| 447 |
flex-direction: column;
|
| 448 |
+
gap: 20px; /* Расстояние между элементами */
|
| 449 |
+
width: 100%; /* Занимает всю ширину */
|
| 450 |
}
|
| 451 |
|
| 452 |
+
.left-section label {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
font-weight: bold;
|
| 454 |
font-size: 0.9em;
|
| 455 |
}
|
| 456 |
|
| 457 |
+
.left-section select {
|
| 458 |
+
width: 100%; /* Выпадающий список занимает всю ширину */
|
| 459 |
padding: 5px;
|
| 460 |
border: 1px solid #ccc;
|
| 461 |
border-radius: 4px;
|
| 462 |
}
|
| 463 |
|
| 464 |
+
.button-group {
|
| 465 |
display: flex;
|
| 466 |
+
gap: 10px; /* Расстояние между кнопками */
|
| 467 |
}
|
| 468 |
|
| 469 |
+
.button-group button {
|
| 470 |
+
flex: 1; /* Кнопки занимают одинаковое пространство */
|
| 471 |
+
padding: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 472 |
border: none;
|
|
|
|
|
|
|
| 473 |
border-radius: 5px;
|
| 474 |
cursor: pointer;
|
|
|
|
|
|
|
| 475 |
font-weight: bold;
|
| 476 |
+
transition: background-color 0.3s;
|
| 477 |
}
|
| 478 |
|
| 479 |
+
#save-profile {
|
| 480 |
+
background-color: #28a745; /* Зелёная кнопка */
|
| 481 |
+
color: white;
|
| 482 |
+
}
|
| 483 |
+
|
| 484 |
+
#delete-profile {
|
| 485 |
+
background-color: #dc3545; /* Красная кнопка */
|
| 486 |
+
color: white;
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
/* Правый блок */
|
| 490 |
+
.right-section {
|
| 491 |
+
display: flex;
|
| 492 |
+
flex-direction: column;
|
| 493 |
+
gap: 10px;
|
| 494 |
}
|
| 495 |
|
| 496 |
.input-group {
|
|
|
|
| 500 |
}
|
| 501 |
|
| 502 |
.input-group label {
|
| 503 |
+
width: 120px; /* Ширина меток */
|
| 504 |
text-align: right;
|
| 505 |
font-weight: bold;
|
| 506 |
font-size: 0.9em;
|
|
|
|
| 513 |
border-radius: 4px;
|
| 514 |
}
|
| 515 |
|
| 516 |
+
#calculate-btn {
|
| 517 |
+
background-color: #2e8b57;
|
| 518 |
+
color: white;
|
| 519 |
+
border: none;
|
| 520 |
+
padding: 8px 16px;
|
| 521 |
+
font-size: 16px;
|
| 522 |
+
border-radius: 5px;
|
| 523 |
+
cursor: pointer;
|
| 524 |
+
transition: background-color 0.3s;
|
| 525 |
+
margin-bottom: 5px;
|
| 526 |
+
font-weight: bold;
|
| 527 |
+
}
|
| 528 |
+
|
| 529 |
+
#calculate-btn:hover {
|
| 530 |
+
background-color: #3cb371;
|
| 531 |
+
}
|
| 532 |
|
| 533 |
+
/* micro контейнер */
|
| 534 |
.micro-container {
|
| 535 |
padding: 10px;
|
| 536 |
}
|
|
|
|
| 915 |
|
| 916 |
|
| 917 |
|
| 918 |
+
<fieldset class="calculation-box">
|
| 919 |
+
<legend>Расчёт удобрений</legend>
|
| 920 |
+
<div class="calculation-container">
|
| 921 |
+
<!-- Левый блок -->
|
| 922 |
+
<div class="left-section">
|
| 923 |
+
<!-- Выпадающий список -->
|
| 924 |
+
<label for="profile-selector">Выберите профиль:</label>
|
| 925 |
+
<select id="profile-selector"></select>
|
| 926 |
+
|
| 927 |
+
<!-- Кнопки сохранения и удаления -->
|
| 928 |
+
<div class="button-group">
|
| 929 |
+
<button id="save-profile">Сохранить текущий профиль</button>
|
| 930 |
+
<button id="delete-profile">Удалить выбранный профиль</button>
|
| 931 |
+
</div>
|
| 932 |
+
</div>
|
| 933 |
|
| 934 |
+
<!-- Правый блок -->
|
| 935 |
+
<div class="right-section">
|
| 936 |
<div class="input-column">
|
| 937 |
<div class="input-group">
|
| 938 |
<label for="liters-input">Литры:</label>
|
|
|
|
| 945 |
<button id="calculate-btn">Рассчитать</button>
|
| 946 |
</div>
|
| 947 |
</div>
|
| 948 |
+
</div>
|
| 949 |
+
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 950 |
|
| 951 |
|
| 952 |
|