Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,17 @@ <h3>Example of <a href="https://github.com/ttskch/select2-bootstrap4-theme" targ
</div>
</div>
</form>

<div class="form-group">
<label>Example of select with <code>.form-control-sm</code></label>
<select data-placeholder="Choose one thing" data-allow-clear="1" class="form-control-sm">
<option></option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>

</div>

<!-- bootstrap -->
Expand Down
11 changes: 11 additions & 0 deletions src/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@
border-bottom-right-radius: 0;
}

// form-control-sm
.form-control-sm + .select2-container--bootstrap4 {
.select2-selection {
height: $input-height-sm !important;
@include font-size($input-font-size-sm);
.select2-selection__rendered {
margin-top: -0.2em;
}
}
}

.select2-container--bootstrap4 {

// input box
Expand Down