/
_input-group.scss
74 lines (65 loc) · 2.31 KB
/
_input-group.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
62
63
64
65
66
67
68
69
70
71
72
73
74
$border-radius-lg: 0.3rem !default;
$border-radius-sm: 0.2rem !default;
$font-size-base: 1rem !default;
$font-size-sm: $font-size-base * 0.875 !default;
$font-size-lg: $font-size-base * 1.25 !default;
$input-padding-x-sm: 0.5rem !default;
$input-padding-x-lg: 1rem !default;
$input-padding-y-sm: 0.25rem !default;
$input-padding-y-lg: 0.5rem !default;
$bv-input-group-dropdown-patched: false !default;
// Make sure to include these style definitions only once
@if $bv-input-group-dropdown-patched==false {
$bv-input-group-dropdown-patched: true;
// Workaround for https://github.com/bootstrap-vue/bootstrap-vue/issues/1560
// Workaround for https://github.com/bootstrap-vue/bootstrap-vue/issues/2114 */
// Based on: `~bootstrap/scss/_input-group.scss`
.input-group {
> .input-group-text > .btn-group,
> .input-group-text:not(:last-child) > .btn-group,
> .input-group-text:last-child > .btn-group:not(:last-child):not(.dropdown-toggle) {
> .btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
> .input-group-text > .btn-group,
> .input-group-text:not(:first-child) > .btn-group,
> .input-group-text:first-child > .btn-group:not(:first-child) {
> .btn {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
}
}
.input-group-lg .input-group-text > .form-control,
.input-group-lg .input-group-text > .form-select,
.input-group-lg .input-group-text > .input-group-text,
.input-group-lg .input-group-text > .btn {
padding: $input-padding-y-lg $input-padding-x-lg;
font-size: $font-size-lg;
border-radius: $border-radius-lg;
}
.input-group-sm .input-group-text > .form-control,
.input-group-sm .input-group-text > .form-select,
.input-group-sm .input-group-text > .input-group-text,
.input-group-sm .input-group-text > .btn {
padding: $input-padding-y-sm $input-padding-x-sm;
font-size: $font-size-sm;
border-radius: $border-radius-sm;
}
.input-group {
.btn-group:not(:last-child) > :not(:first-child) {
border-start-end-radius: 0px;
border-end-end-radius: 0px;
}
.btn-group:not(:last-child) > :not(:last-child) {
border-start-end-radius: 0px;
border-end-end-radius: 0px;
}
.btn-group:not(:first-child) > :not(:last-child) {
border-end-start-radius: 0px;
border-start-start-radius: 0px;
}
}