mirror of https://github.com/twbs/bootstrap.git
extends the click area of the close btn on modals (#23783)
This commit is contained in:
parent
bbb6ab1275
commit
3624025a3b
|
@ -82,13 +82,14 @@
|
||||||
// Top section of the modal w/ title and dismiss
|
// Top section of the modal w/ title and dismiss
|
||||||
.modal-header {
|
.modal-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center; // vertically center it
|
align-items: flex-start; // so the close btn always stays on the upper right corner
|
||||||
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;
|
||||||
|
|
||||||
.close {
|
.close {
|
||||||
margin-left: auto; // Force icon to the right even when there's no .modal-title
|
padding: $modal-header-padding;
|
||||||
|
margin: (-$modal-header-padding) (-$modal-header-padding) (-$modal-header-padding) auto; // auto on the left force icon to the right even when there is no .modal-title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue