Skip to content

Commit 937fbf4

Browse files
authored
Create _spinbutton.scss
1 parent 27241e8 commit 937fbf4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// This should be moved tp /src/utilities.scss
2+
.form-control {
3+
&.focus {
4+
color: $input-focus-color;
5+
background-color: $input-focus-bg;
6+
border-color: $input-focus-border-color;
7+
outline: 0;
8+
@if $enable-shadows {
9+
box-shadow: $input-box-shadow, $input-focus-box-shadow;
10+
} @else {
11+
box-shadow: $input-focus-box-shadow;
12+
}
13+
14+
&.is-valid {
15+
box-shadow: 0 0 0 $input-focus-width rgba($form-feedback-valid-color, 0.25);
16+
}
17+
18+
&.is-invalid {
19+
box-shadow: 0 0 0 $input-focus-width rgba($form-feedback-invalid-color, 0.25);
20+
}
21+
}
22+
}
23+
24+
// Handle validation icon (i.e. hide it)
25+
.b-spinbutton.form-control {
26+
padding: 0;
27+
background-image: none;
28+
29+
&.disabled
30+
&.readonly {
31+
background-color: $input-disabled-bg-color;
32+
}
33+
}

0 commit comments

Comments
 (0)