Skip to content

Commit 5940151

Browse files
committed
Replaced image start buttons with pure HTML/CSS ones
1 parent b453486 commit 5940151

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

locust/static/img/start_button.png

-3.77 KB
Binary file not shown.

locust/static/style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,21 @@ a:hover {
182182
font-size: 24px;
183183
padding-left: 10px;
184184
}
185-
.start input.start_button, .edit input.start_button {
185+
.start button,
186+
.edit button {
186187
margin-top: 20px;
187188
float: right;
189+
font-size: 16px;
190+
font-weight: bold;
191+
background: #8adaba;
192+
padding: 14px 30px;
193+
border-style: none;
194+
border-radius: 5px;
195+
cursor: pointer;
196+
}
197+
.start button:hover,
198+
.edit button:hover {
199+
background: #74b99d;
188200
}
189201

190202

locust/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2>Start new Locust swarm</h2>
5555
<input type="text" name="locust_count" id="locust_count" class="val" /><br>
5656
<label for="hatch_rate">Hatch rate <span style="color:#8a8a8a;">(users spawned/second)</span></label>
5757
<input type="text" name="hatch_rate" id="hatch_rate" class="val" /><br>
58-
<input type="image" src="/static/img/start_button.png" value="Start swarming" class="start_button">
58+
<button type="submit">Start swarming</button>
5959
</form>
6060
<div style="clear:right;"></div>
6161
</div>
@@ -72,7 +72,7 @@ <h2>Change the locust count</h2>
7272
<input type="text" name="locust_count" id="new_locust_count" class="val" /><br>
7373
<label for="hatch_rate">Hatch rate <span style="color:#8a8a8a;">(users spawned/second)</span></label>
7474
<input type="text" name="hatch_rate" id="new_hatch_rate" class="val" /><br>
75-
<input type="image" src="/static/img/start_button.png" value="Start swarming" class="start_button">
75+
<button type="submit">Start swarming</button>
7676
</form>
7777
<div style="clear:right;"></div>
7878
</div>

0 commit comments

Comments
 (0)