mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 07:39:57 +02:00
Fixes #8723: allow modals to not need the .fade class /cc @fat
This commit is contained in:
4
dist/css/bootstrap.css
vendored
4
dist/css/bootstrap.css
vendored
@@ -3490,7 +3490,7 @@ button.close {
|
|||||||
transition: transform 0.3s ease-out;
|
transition: transform 0.3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.fade.in .modal-dialog {
|
.modal.in .modal-dialog {
|
||||||
-webkit-transform: translate(0, 0);
|
-webkit-transform: translate(0, 0);
|
||||||
-ms-transform: translate(0, 0);
|
-ms-transform: translate(0, 0);
|
||||||
transform: translate(0, 0);
|
transform: translate(0, 0);
|
||||||
@@ -3531,7 +3531,7 @@ button.close {
|
|||||||
filter: alpha(opacity=0);
|
filter: alpha(opacity=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-backdrop.fade.in {
|
.modal-backdrop.in {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
filter: alpha(opacity=50);
|
filter: alpha(opacity=50);
|
||||||
}
|
}
|
||||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -29,7 +29,7 @@
|
|||||||
.translate(0, -25%);
|
.translate(0, -25%);
|
||||||
.transition-transform(~"0.3s ease-out");
|
.transition-transform(~"0.3s ease-out");
|
||||||
}
|
}
|
||||||
&.fade.in .modal-dialog { .translate(0, 0)}
|
&.in .modal-dialog { .translate(0, 0)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shell div to position the modal with bottom padding
|
// Shell div to position the modal with bottom padding
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
background-color: @modal-backdrop-bg;
|
background-color: @modal-backdrop-bg;
|
||||||
// Fade for backdrop
|
// Fade for backdrop
|
||||||
&.fade { .opacity(0); }
|
&.fade { .opacity(0); }
|
||||||
&.fade.in { .opacity(.5); }
|
&.in { .opacity(.5); }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modal header
|
// Modal header
|
||||||
|
Reference in New Issue
Block a user