-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_bootstrap5.scss
61 lines (51 loc) · 1.42 KB
/
_bootstrap5.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.twitter-typeahead {
display: block !important;
.dropdown-item {
cursor: default;
}
}
.input-group {
> .twitter-typeahead {
position: relative; // For focus state's z-index
flex: 1 1 auto;
width: 1%;
min-width: 0; // https://stackoverflow.com/questions/36247140/why-dont-flex-items-shrink-past-content-size
}
// Bring the "active" form control to the top of surrounding elements
> .twitter-typeahead:focus-within {
z-index: 5;
}
&:not(.has-validation) {
> .twitter-typeahead:not(:last-child) > .form-control {
@include border-end-radius(0);
}
}
&.has-validation {
> .twitter-typeahead:nth-last-child(n + 3) > .form-control {
@include border-end-radius(0);
}
}
> .twitter-typeahead:not(:first-child) > .form-control {
@include border-start-radius(0);
}
}
.input-group-lg > .twitter-typeahead:not(.form-floating) {
> .form-control {
padding: $input-padding-y-lg $input-padding-x-lg;
@include font-size($input-font-size-lg);
@include border-radius($input-border-radius-lg);
}
.dropdown-item {
@include font-size($input-font-size-lg);
}
}
.input-group-sm > .twitter-typeahead:not(.form-floating) {
> .form-control {
padding: $input-padding-y-sm $input-padding-x-sm;
@include font-size($input-font-size-sm);
@include border-radius($input-border-radius-sm);
}
.dropdown-item {
@include font-size($input-font-size-sm);
}
}