mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 05:33:02 +02:00
Tweak sizing and alignment of .btn-close in modal headers
This commit is contained in:
@@ -112,16 +112,15 @@
|
|||||||
.modal-header {
|
.modal-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
align-items: flex-start; // so the close btn always stays on the upper right corner
|
align-items: center;
|
||||||
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
||||||
padding: $modal-header-padding;
|
padding: $modal-header-padding;
|
||||||
border-bottom: $modal-header-border-width solid $modal-header-border-color;
|
border-bottom: $modal-header-border-width solid $modal-header-border-color;
|
||||||
@include border-top-radius($modal-content-inner-border-radius);
|
@include border-top-radius($modal-content-inner-border-radius);
|
||||||
|
|
||||||
.btn-close {
|
.btn-close {
|
||||||
padding: $modal-header-padding;
|
padding: ($modal-header-padding-y / 2) ($modal-header-padding-x / 2);
|
||||||
// auto on the left force icon to the right even when there is no .modal-title
|
margin: ($modal-header-padding-y / -2) ($modal-header-padding-x / -2) ($modal-header-padding-y / -2) auto;
|
||||||
margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user