Skip to content

Commit

Permalink
Fix modal header alignment if parent is centered (#10607)
Browse files Browse the repository at this point in the history
* Fix Modal Header text-align, if parent container is centered

* Fix modal header alignment
  • Loading branch information
cyrezdev authored and roland-d committed May 24, 2016
1 parent e404d0d commit 66260ef
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
6 changes: 6 additions & 0 deletions administrator/templates/isis/css/template-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -8288,6 +8288,9 @@ body.modal-open {
.modal-footer {
clear: both;
}
.modal-header {
text-align: left;
}
.pull-right {
float: left;
}
Expand Down Expand Up @@ -9106,3 +9109,6 @@ a.grid_true {
.modal-footer button {
float: left;
}
.modal-header {
text-align: right;
}
3 changes: 3 additions & 0 deletions administrator/templates/isis/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -8288,3 +8288,6 @@ body.modal-open {
.modal-footer {
clear: both;
}
.modal-header {
text-align: left;
}
7 changes: 6 additions & 1 deletion administrator/templates/isis/less/template-rtl.less
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,9 @@ a.grid_true {
/* Modal footer */
.modal-footer button {
float: left;
}
}

/* Modal Header text align right even if parent container centered */
.modal-header {
text-align: right;
}
9 changes: 7 additions & 2 deletions administrator/templates/isis/less/template.less
Original file line number Diff line number Diff line change
Expand Up @@ -1336,8 +1336,8 @@ textarea.noResize {

/* Prevent scrolling on the parent window of a modal */
body.modal-open {
overflow: hidden;
-ms-overflow-style: none;
overflow: hidden;
-ms-overflow-style: none;
}

/* Corrects the modals padding */
Expand All @@ -1358,3 +1358,8 @@ body.modal-open {
.modal-footer {
clear: both;
}

/* Modal Header text align left even if parent container centered */
.modal-header {
text-align: left;
}

0 comments on commit 66260ef

Please sign in to comment.