Skip to content

Commit fdead76

Browse files
committed
Add style focus to select2
1 parent d388329 commit fdead76

File tree

1 file changed

+51
-42
lines changed

1 file changed

+51
-42
lines changed
Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,51 @@
1-
form {
2-
.form-group.required>label:not(:empty):not(.form-check-label)::after {
3-
content: ' *';
4-
color: #ff0000;
5-
}
6-
7-
.help-block {
8-
margin-top: .25rem;
9-
margin-bottom: .25rem;
10-
color: #73818f;
11-
font-size: 0.9em;
12-
}
13-
14-
.nav-tabs .nav-link:hover {
15-
border-bottom: none;
16-
color: #384c74;
17-
}
18-
19-
.select2-container--bootstrap {
20-
.select2-selection--single {
21-
padding-top: 8px;
22-
padding-bottom: 8px;
23-
min-height: 38px;
24-
}
25-
26-
.select2-selection--multiple {
27-
min-height: 38px;
28-
29-
.select2-search--inline .select2-search__field {
30-
min-height: 36px;
31-
}
32-
33-
.select2-selection__choice {
34-
margin-top: 6px;
35-
}
36-
37-
.select2-selection__clear {
38-
margin-top: 8px;
39-
}
40-
}
41-
}
42-
}
1+
form {
2+
.form-group.required>label:not(:empty):not(.form-check-label)::after {
3+
content: ' *';
4+
color: #ff0000;
5+
}
6+
7+
.help-block {
8+
margin-top: .25rem;
9+
margin-bottom: .25rem;
10+
color: #73818f;
11+
font-size: 0.9em;
12+
}
13+
14+
.nav-tabs .nav-link:hover {
15+
border-bottom: none;
16+
color: #384c74;
17+
}
18+
19+
.select2-container--bootstrap {
20+
.select2-selection--single {
21+
padding-top: 8px;
22+
padding-bottom: 8px;
23+
min-height: 38px;
24+
}
25+
26+
.select2-selection--multiple {
27+
min-height: 38px;
28+
29+
.select2-search--inline .select2-search__field {
30+
min-height: 36px;
31+
}
32+
33+
.select2-selection__choice {
34+
margin-top: 6px;
35+
}
36+
37+
.select2-selection__clear {
38+
margin-top: 8px;
39+
}
40+
}
41+
}
42+
43+
.select2.select2-container.select2-container--focus,
44+
.select2.select2-container.select2-container--open {
45+
background-color: #fff;
46+
border-color: #9080f1;
47+
box-shadow: 0 0 0 2px #e1dcfb;
48+
color: #495057;
49+
outline: 0;
50+
}
51+
}

0 commit comments

Comments
 (0)