From de0bb1e0522d14bcdef70746da277992f992f83c Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Mon, 21 Jan 2019 06:28:16 +0900 Subject: Scrollable modal (#27769) --- site/docs/4.2/components/modal.md | 102 +++++++++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) (limited to 'site/docs') diff --git a/site/docs/4.2/components/modal.md b/site/docs/4.2/components/modal.md index 86996ecda..e95a57b9c 100644 --- a/site/docs/4.2/components/modal.md +++ b/site/docs/4.2/components/modal.md @@ -210,6 +210,79 @@ When modals become too long for the user's viewport or device, they scroll indep {% endhighlight %} +You can also create a scrollable modal that allows scroll the modal body by adding `.modal-dialog-scrollable` to `.modal-dialog`. + + + +
+ +
+ +{% highlight html %} + + + + + +{% endhighlight %} + ### Vertically centered Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal. @@ -234,9 +307,36 @@ Add `.modal-dialog-centered` to `.modal-dialog` to vertically center the modal. + +
+
-- cgit v1.2.3