DmitrMakeev commited on
Commit
5196de1
·
verified ·
1 Parent(s): f6a91bc

Update nutri_call.html

Browse files
Files changed (1) hide show
  1. nutri_call.html +14 -18
nutri_call.html CHANGED
@@ -117,6 +117,7 @@
117
 
118
 
119
  /* Стиль для новой рамки с кнопкой */
 
120
  .calculation-box {
121
  border: 2px solid #2e8b57;
122
  background-color: #eaffea;
@@ -131,24 +132,22 @@
131
  padding: 0 10px;
132
  }
133
 
134
- .input-group {
135
  display: flex;
136
- gap: 10px;
137
  align-items: center;
 
138
  }
139
 
140
- #liters-input {
141
- padding: 8px 12px;
142
- border: 1px solid #2e8b57;
143
- border-radius: 5px;
144
- font-size: 16px;
145
- width: 100px;
146
  }
147
 
148
- #liters-input:focus {
149
- outline: none;
150
- border-color: #3cb371;
151
- box-shadow: 0 0 3px #2e8b57;
 
152
  }
153
 
154
  #calculate-btn {
@@ -160,15 +159,11 @@
160
  border-radius: 5px;
161
  cursor: pointer;
162
  transition: background-color 0.3s;
163
- width: 120px;
164
  }
165
 
166
  #calculate-btn:hover {
167
  background-color: #3cb371;
168
  }
169
-
170
-
171
-
172
 
173
  </style>
174
  </head>
@@ -321,8 +316,9 @@
321
 
322
  <fieldset class="calculation-box">
323
  <legend>Расчёт удобрений</legend>
324
- <div class="input-group">
325
- <input type="number" id="liters-input" placeholder="Литры" min="1">
 
326
  <button id="calculate-btn">Рассчитать</button>
327
  </div>
328
  </fieldset>
 
117
 
118
 
119
  /* Стиль для новой рамки с кнопкой */
120
+ /* Стиль для блока расчёта */
121
  .calculation-box {
122
  border: 2px solid #2e8b57;
123
  background-color: #eaffea;
 
132
  padding: 0 10px;
133
  }
134
 
135
+ .calculation-container {
136
  display: flex;
 
137
  align-items: center;
138
+ gap: 10px;
139
  }
140
 
141
+ .calculation-label {
142
+ font-weight: bold;
143
+ margin-right: 5px;
 
 
 
144
  }
145
 
146
+ #liters-input {
147
+ width: 80px;
148
+ padding: 3px;
149
+ border: 1px solid #ccc;
150
+ border-radius: 4px;
151
  }
152
 
153
  #calculate-btn {
 
159
  border-radius: 5px;
160
  cursor: pointer;
161
  transition: background-color 0.3s;
 
162
  }
163
 
164
  #calculate-btn:hover {
165
  background-color: #3cb371;
166
  }
 
 
 
167
 
168
  </style>
169
  </head>
 
316
 
317
  <fieldset class="calculation-box">
318
  <legend>Расчёт удобрений</legend>
319
+ <div class="calculation-container">
320
+ <div class="calculation-label">Литры:</div>
321
+ <input type="number" id="liters-input" value="1" min="1" step="1">
322
  <button id="calculate-btn">Рассчитать</button>
323
  </div>
324
  </fieldset>