1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | .input-group {
|
8 | position: relative;
|
9 | display: flex;
|
10 | flex-wrap: wrap;
|
11 | align-items: stretch;
|
12 | width: 100%;
|
13 |
|
14 | > .form-control,
|
15 | > .custom-select,
|
16 | > .custom-file {
|
17 | position: relative;
|
18 | flex: 1 1 auto;
|
19 |
|
20 |
|
21 | width: 1%;
|
22 | margin-bottom: 0;
|
23 |
|
24 | + .form-control,
|
25 | + .custom-select,
|
26 | + .custom-file {
|
27 | margin-left: -$input-border-width;
|
28 | }
|
29 | }
|
30 |
|
31 |
|
32 | > .form-control:focus,
|
33 | > .custom-select:focus,
|
34 | > .custom-file .custom-file-input:focus ~ .custom-file-label {
|
35 | z-index: 3;
|
36 | }
|
37 |
|
38 | > .form-control,
|
39 | > .custom-select {
|
40 | &:not(:last-child) { @include border-right-radius(0); }
|
41 | &:not(:first-child) { @include border-left-radius(0); }
|
42 | }
|
43 |
|
44 |
|
45 |
|
46 | > .custom-file {
|
47 | display: flex;
|
48 | align-items: center;
|
49 |
|
50 | &:not(:last-child) .custom-file-label,
|
51 | &:not(:last-child) .custom-file-label::after { @include border-right-radius(0); }
|
52 | &:not(:first-child) .custom-file-label { @include border-left-radius(0); }
|
53 | }
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | .input-group-prepend,
|
64 | .input-group-append {
|
65 | display: flex;
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | .btn {
|
71 | position: relative;
|
72 | z-index: 2;
|
73 | }
|
74 |
|
75 | .btn + .btn,
|
76 | .btn + .input-group-text,
|
77 | .input-group-text + .input-group-text,
|
78 | .input-group-text + .btn {
|
79 | margin-left: -$input-border-width;
|
80 | }
|
81 | }
|
82 |
|
83 | .input-group-prepend { margin-right: -$input-border-width; }
|
84 | .input-group-append { margin-left: -$input-border-width; }
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 |
|
92 | .input-group-text {
|
93 | display: flex;
|
94 | align-items: center;
|
95 | padding: $input-padding-y $input-padding-x;
|
96 | margin-bottom: 0;
|
97 | font-size: $font-size-base;
|
98 | font-weight: $font-weight-normal;
|
99 | line-height: $input-line-height;
|
100 | color: $input-group-addon-color;
|
101 | text-align: center;
|
102 | white-space: nowrap;
|
103 | background-color: $input-group-addon-bg;
|
104 | border: $input-border-width solid $input-group-addon-border-color;
|
105 | @include border-radius($input-border-radius);
|
106 |
|
107 |
|
108 | input[type="radio"],
|
109 | input[type="checkbox"] {
|
110 | margin-top: 0;
|
111 | }
|
112 | }
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 | .input-group-lg > .form-control,
|
121 | .input-group-lg > .input-group-prepend > .input-group-text,
|
122 | .input-group-lg > .input-group-append > .input-group-text,
|
123 | .input-group-lg > .input-group-prepend > .btn,
|
124 | .input-group-lg > .input-group-append > .btn {
|
125 | @extend .form-control-lg;
|
126 | }
|
127 |
|
128 | .input-group-sm > .form-control,
|
129 | .input-group-sm > .input-group-prepend > .input-group-text,
|
130 | .input-group-sm > .input-group-append > .input-group-text,
|
131 | .input-group-sm > .input-group-prepend > .btn,
|
132 | .input-group-sm > .input-group-append > .btn {
|
133 | @extend .form-control-sm;
|
134 | }
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 | .input-group > .input-group-prepend > .btn,
|
145 | .input-group > .input-group-prepend > .input-group-text,
|
146 | .input-group > .input-group-append:not(:last-child) > .btn,
|
147 | .input-group > .input-group-append:not(:last-child) > .input-group-text,
|
148 | .input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
|
149 | .input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {
|
150 | @include border-right-radius(0);
|
151 | }
|
152 |
|
153 | .input-group > .input-group-append > .btn,
|
154 | .input-group > .input-group-append > .input-group-text,
|
155 | .input-group > .input-group-prepend:not(:first-child) > .btn,
|
156 | .input-group > .input-group-prepend:not(:first-child) > .input-group-text,
|
157 | .input-group > .input-group-prepend:first-child > .btn:not(:first-child),
|
158 | .input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
|
159 | @include border-left-radius(0);
|
160 | }
|