Skip to content

Commit 7e762b9

Browse files
committed
fix(video): prevent styles from bleeding into html video tag
1 parent f67605b commit 7e762b9

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

scss/_form.scss

+16-11
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ input[type="color"] {
214214
}
215215
}
216216

217-
input,
218-
textarea {
219-
width: 100%;
217+
.item-input {
218+
input,
219+
textarea {
220+
width: 100%;
221+
}
220222
}
223+
221224
textarea {
222225
padding-left: 0;
223226
@include placeholder($input-color-placeholder, -3px);
@@ -255,14 +258,16 @@ input[type="checkbox"] {
255258
}
256259

257260
// Reset width of input images, buttons, radios, checkboxes
258-
input[type="file"],
259-
input[type="image"],
260-
input[type="submit"],
261-
input[type="reset"],
262-
input[type="button"],
263-
input[type="radio"],
264-
input[type="checkbox"] {
265-
width: auto; // Override of generic input selector
261+
.item-input {
262+
input[type="file"],
263+
input[type="image"],
264+
input[type="submit"],
265+
input[type="reset"],
266+
input[type="button"],
267+
input[type="radio"],
268+
input[type="checkbox"] {
269+
width: auto; // Override of generic input selector
270+
}
266271
}
267272

268273
// Set the height of file to match text inputs

scss/_range.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* --------------------------------------------------
55
*/
66

7-
input[type="range"] {
7+
.range input{
88
display: inline-block;
99
overflow: hidden;
1010
margin-top: 5px;
@@ -119,4 +119,3 @@ input[type="range"] {
119119
padding-right: 5px;
120120
padding-left: 0;
121121
}
122-

0 commit comments

Comments
 (0)