]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Ensure alignment of modal dismiss when no .modal-title is present
authorMark Otto <markdotto@gmail.com>
Sun, 18 Jun 2017 03:09:00 +0000 (20:09 -0700)
committerMark Otto <markd.otto@gmail.com>
Fri, 11 Aug 2017 05:45:48 +0000 (22:45 -0700)
scss/_modal.scss

index c0c406716215a180596d39ed4608b968635739e9..1f290557a01b8af86c327cb230b82167d149c60c 100644 (file)
   justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
   padding: $modal-header-padding;
   border-bottom: $modal-header-border-width solid $modal-header-border-color;
+
+  .close {
+    margin-left: auto; // Force icon to the right even when there's no .modal-title
+  }
 }
 
 // Title text within header