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
ae98f180
Commit
ae98f180
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
add modal variables and tweak padding for min-height on modal title
parent
a96dd1bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/css/bootstrap.css
+4
-4
docs/assets/css/bootstrap.css
less/modals.less
+4
-4
less/modals.less
less/variables.less
+3
-0
less/variables.less
with
11 additions
and
8 deletions
+11
-8
docs/assets/css/bootstrap.css
+
4
-
4
View file @
ae98f180
...
@@ -4302,18 +4302,18 @@ button.close {
...
@@ -4302,18 +4302,18 @@ button.close {
}
}
.modal-header
{
.modal-header
{
min-height
:
40
px
;
min-height
:
35
px
;
padding
:
9px
15px
;
padding
:
15px
;
border-bottom
:
1px
solid
#e5e5e5
;
border-bottom
:
1px
solid
#e5e5e5
;
}
}
.modal-header
.close
{
.modal-header
.close
{
margin-top
:
2px
;
margin-top
:
-
2px
;
}
}
.modal-title
{
.modal-title
{
margin
:
0
;
margin
:
0
;
line-height
:
3
0px
;
line-height
:
2
0px
;
}
}
.modal-body
{
.modal-body
{
...
...
This diff is collapsed.
Click to expand it.
less/modals.less
+
4
-
4
View file @
ae98f180
...
@@ -74,19 +74,19 @@
...
@@ -74,19 +74,19 @@
// Modal header
// Modal header
// Top section of the modal w/ title and dismiss
// Top section of the modal w/ title and dismiss
.modal-header {
.modal-header {
padding:
9px 15px
;
padding:
@modal-title-padding
;
border-bottom: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
min-height:
40px
;
min-height:
(@modal-title-padding + @modal-title-line-height)
;
}
}
// Close icon
// Close icon
.modal-header .close {
.modal-header .close {
margin-top: 2px;
margin-top:
-
2px;
}
}
// Title text within header
// Title text within header
.modal-title {
.modal-title {
margin: 0;
margin: 0;
line-height:
30px; // effectively set a m
in-height
for the header
line-height:
@modal-title-l
in
e
-height
;
}
}
// Modal body
// Modal body
...
...
This diff is collapsed.
Click to expand it.
less/variables.less
+
3
-
0
View file @
ae98f180
...
@@ -274,6 +274,9 @@
...
@@ -274,6 +274,9 @@
// -------------------------
// -------------------------
@modal-inner-padding: 20px;
@modal-inner-padding: 20px;
@modal-title-padding: 15px;
@modal-title-line-height: @line-height-base;
// Progress bars
// Progress bars
// -------------------------
// -------------------------
...
...
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