diff --git a/app/assets/javascripts/discourse/templates/modal/modal.js.handlebars b/app/assets/javascripts/discourse/templates/modal/modal.js.handlebars
index f9b3cc16c6e..b55d4e8c600 100644
--- a/app/assets/javascripts/discourse/templates/modal/modal.js.handlebars
+++ b/app/assets/javascripts/discourse/templates/modal/modal.js.handlebars
@@ -1,22 +1,16 @@
-
-
-
-
-
-
-
- {{outlet modalBody}}
-
- {{#each errors}}
-
-
- {{this}}
-
- {{/each}}
-
-
-
+
+
+
+{{outlet modalBody}}
+
+{{#each errors}}
+
+
+ {{this}}
+
+{{/each}}
+
+
diff --git a/app/assets/stylesheets/application/modal.css.scss b/app/assets/stylesheets/application/modal.css.scss
index b8ec4b790d1..df574efb6a6 100644
--- a/app/assets/stylesheets/application/modal.css.scss
+++ b/app/assets/stylesheets/application/modal.css.scss
@@ -38,18 +38,14 @@
filter: alpha(opacity=80);
}
-#modal-outer-container {
- display:table;
- width:100%;
- height:100%;
-}
-#modal-middle-container {
- display:table-cell;
- vertical-align: middle;
-}
-#modal-inner-container {
- max-width: 610px;
- margin: 0 auto;
+.modal {
+ position: fixed;
+ top: 50%;
+ left: 50%;
+ z-index: 1050;
+ overflow: auto;
+ width: 610px;
+ margin: -250px 0 0 -305px;
background-color: #ffffff;
border: 1px solid #999;
border: 1px solid rgba(0, 0, 0, 0.3);
@@ -60,14 +56,6 @@
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
background-clip: padding-box;
}
-.modal {
- position: fixed;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 1050;
- overflow: auto;
-}
.modal.fade {
-webkit-transition: opacity .3s linear, top .3s ease-out;
transition: opacity .3s linear, top .3s ease-out;