Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
31b9d93f
Commit
31b9d93f
authored
8 years ago
by
Mark Otto
Committed by
Mark Otto
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Enable flex on the .modal-content, ensure .modal-body stretches the height (if needed)
parent
c214aa32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/_modal.scss
+5
-0
scss/_modal.scss
with
5 additions
and
0 deletions
+5
-0
scss/_modal.scss
+
5
-
0
View file @
31b9d93f
...
@@ -48,6 +48,8 @@
...
@@ -48,6 +48,8 @@
// Actual modal
// Actual modal
.modal-content
{
.modal-content
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
background-color
:
$modal-content-bg
;
background-color
:
$modal-content-bg
;
background-clip
:
padding-box
;
background-clip
:
padding-box
;
border
:
$modal-content-border-width
solid
$modal-content-border-color
;
border
:
$modal-content-border-width
solid
$modal-content-border-color
;
...
@@ -94,6 +96,9 @@
...
@@ -94,6 +96,9 @@
// Where all modal content resides (sibling of .modal-header and .modal-footer)
// Where all modal content resides (sibling of .modal-header and .modal-footer)
.modal-body
{
.modal-body
{
position
:
relative
;
position
:
relative
;
// Enable `flex-grow: 1` so that the body take up as much space as possible
// when should there be a fixed height on `.modal-dialog`.
flex
:
1
1
auto
;
padding
:
$modal-inner-padding
;
padding
:
$modal-inner-padding
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment