Skip to content

Commit d8bf464

Browse files
committed
series/add.html: inline styles that hide borders from file upload input.
Unfortunately it doesn't work when it placed in CSS file.
1 parent 510bcb0 commit d8bf464

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/main/webapp/WEB-INF/static/styles/main.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,3 @@ label {
6262
.no-padding {
6363
padding: 0px;
6464
}
65-
66-
// hide borders from file upload input
67-
input[type="file"].form-control {
68-
border: 0px; /* default: 1px solid #CCC */
69-
box-shadow: none; /* default: inset 0 1px 1px rgba(0, 0, 0, .075); */
70-
}
71-

src/main/webapp/WEB-INF/views/series/add.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ <h3 th:text="#{t_add_series_ucfirst}">
378378
<span id="image.required" class="required_field">*</span>
379379
</label>
380380
<div class="col-sm-5">
381-
<input type="file" id="image" class="form-control" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
381+
<input type="file" id="image" class="form-control" style="box-shadow: none; border: 0px;" required="required" accept="image/png,image/jpeg" th:field="*{image}" />
382382
<span id="image.errors" class="help-block" th:if="${#fields.hasErrors('image')}" th:each="error : ${#fields.errors('image')}" th:text="${error}"></span>
383383
</div>
384384
</div>

0 commit comments

Comments
 (0)