mixins
3 years ago
utilities
3 years ago
vendor
3 years ago
_alert.scss
3 years ago
_badge.scss
3 years ago
_breadcrumb.scss
3 years ago
_button-group.scss
3 years ago
_buttons.scss
3 years ago
_card.scss
3 years ago
_carousel.scss
3 years ago
_close.scss
3 years ago
_code.scss
3 years ago
_custom-forms.scss
3 years ago
_dropdown.scss
3 years ago
_forms.scss
3 years ago
_functions.scss
3 years ago
_grid.scss
3 years ago
_images.scss
3 years ago
_input-group.scss
3 years ago
_jumbotron.scss
3 years ago
_list-group.scss
3 years ago
_media.scss
3 years ago
_mixins.scss
3 years ago
_modal.scss
3 years ago
_nav.scss
3 years ago
_navbar.scss
3 years ago
_pagination.scss
3 years ago
_popover.scss
3 years ago
_print.scss
3 years ago
_progress.scss
3 years ago
_reboot.scss
3 years ago
_root.scss
3 years ago
_spinners.scss
3 years ago
_tables.scss
3 years ago
_toasts.scss
3 years ago
_tooltip.scss
3 years ago
_transitions.scss
3 years ago
_type.scss
3 years ago
_utilities.scss
3 years ago
_variables.scss
3 years ago
bootstrap-grid.scss
3 years ago
bootstrap-reboot.scss
3 years ago
bootstrap-sidepanel.scss
3 years ago
bootstrap.scss
1 year ago
_images.scss
43 lines
| 1 | // Responsive images (ensure images don't scale beyond their parents) |
| 2 | // |
| 3 | // This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s. |
| 4 | // We previously tried the "images are responsive by default" approach in Bootstrap v2, |
| 5 | // and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps) |
| 6 | // which weren't expecting the images within themselves to be involuntarily resized. |
| 7 | // See also https://github.com/twbs/bootstrap/issues/18178 |
| 8 | .img-fluid { |
| 9 | @include img-fluid(); |
| 10 | } |
| 11 | |
| 12 | |
| 13 | // Image thumbnails |
| 14 | .img-thumbnail { |
| 15 | padding: $thumbnail-padding; |
| 16 | background-color: $thumbnail-bg; |
| 17 | border: $thumbnail-border-width solid $thumbnail-border-color; |
| 18 | @include border-radius($thumbnail-border-radius); |
| 19 | @include box-shadow($thumbnail-box-shadow); |
| 20 | |
| 21 | // Keep them at most 100% wide |
| 22 | @include img-fluid(); |
| 23 | } |
| 24 | |
| 25 | // |
| 26 | // Figures |
| 27 | // |
| 28 | |
| 29 | .figure { |
| 30 | // Ensures the caption's text aligns with the image. |
| 31 | display: inline-block; |
| 32 | } |
| 33 | |
| 34 | .figure-img { |
| 35 | margin-bottom: $spacer / 2; |
| 36 | line-height: 1; |
| 37 | } |
| 38 | |
| 39 | .figure-caption { |
| 40 | @include font-size($figure-caption-font-size); |
| 41 | color: $figure-caption-color; |
| 42 | } |
| 43 |