Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
d0b94ead
Commit
d0b94ead
authored
Aug 02, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #9008: consolidate `.alert-block` styles into `.alert`
parent
21be3efa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
51 deletions
+21
-51
_includes/nav-components.html
_includes/nav-components.html
+0
-1
components.html
components.html
+0
-17
dist/css/bootstrap.css
dist/css/bootstrap.css
+10
-15
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/alerts.less
less/alerts.less
+10
-17
No files found.
_includes/nav-components.html
View file @
d0b94ead
...
@@ -85,7 +85,6 @@
...
@@ -85,7 +85,6 @@
<a
href=
"#alerts"
>
Alerts
</a>
<a
href=
"#alerts"
>
Alerts
</a>
<ul
class=
"nav"
>
<ul
class=
"nav"
>
<li><a
href=
"#alerts-default"
>
Default alert
</a></li>
<li><a
href=
"#alerts-default"
>
Default alert
</a></li>
<li><a
href=
"#alerts-block"
>
Block alerts
</a></li>
<li><a
href=
"#alerts-alternatives"
>
Contextual alternatives
</a></li>
<li><a
href=
"#alerts-alternatives"
>
Contextual alternatives
</a></li>
<li><a
href=
"#alerts-links"
>
Links in alerts
</a></li>
<li><a
href=
"#alerts-links"
>
Links in alerts
</a></li>
</ul>
</ul>
...
...
components.html
View file @
d0b94ead
...
@@ -1813,23 +1813,6 @@ body { padding-bottom: 70px; }
...
@@ -1813,23 +1813,6 @@ body { padding-bottom: 70px; }
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
>
×
</button>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
>
×
</button>
<strong>
Warning!
</strong>
Best check yo self, you're not looking too good.
<strong>
Warning!
</strong>
Best check yo self, you're not looking too good.
</div>
</div>
{% endhighlight %}
<h3
id=
"alerts-block"
>
Block alerts
</h3>
<p>
For longer messages, increase the padding on the top and bottom of the alert wrapper by adding
<code>
.alert-block
</code>
.
</p>
<div
class=
"bs-example"
>
<div
class=
"alert alert-block"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
>
×
</button>
<h4>
Warning!
</h4>
<p>
Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
</p>
</div>
</div>
{% highlight html %}
<div
class=
"alert alert-block"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
>
×
</button>
<h4>
Warning!
</h4>
<p>
...
</p>
</div>
{% endhighlight %}
{% endhighlight %}
<h3
id=
"alerts-alternatives"
>
Contextual alternatives
</h3>
<h3
id=
"alerts-alternatives"
>
Contextual alternatives
</h3>
...
...
dist/css/bootstrap.css
View file @
d0b94ead
...
@@ -3751,7 +3751,7 @@ button.close {
...
@@ -3751,7 +3751,7 @@ button.close {
}
}
.alert
{
.alert
{
padding
:
1
0px
35px
10
px
15px
;
padding
:
1
5px
35px
15
px
15px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
color
:
#c09853
;
color
:
#c09853
;
background-color
:
#fcf8e3
;
background-color
:
#fcf8e3
;
...
@@ -3780,6 +3780,15 @@ button.close {
...
@@ -3780,6 +3780,15 @@ button.close {
color
:
inherit
;
color
:
inherit
;
}
}
.alert
>
p
,
.alert
>
ul
{
margin-bottom
:
0
;
}
.alert
>
p
+
p
{
margin-top
:
5px
;
}
.alert-success
{
.alert-success
{
color
:
#468847
;
color
:
#468847
;
background-color
:
#dff0d8
;
background-color
:
#dff0d8
;
...
@@ -3822,20 +3831,6 @@ button.close {
...
@@ -3822,20 +3831,6 @@ button.close {
color
:
#2d6987
;
color
:
#2d6987
;
}
}
.alert-block
{
padding-top
:
15px
;
padding-bottom
:
15px
;
}
.alert-block
>
p
,
.alert-block
>
ul
{
margin-bottom
:
0
;
}
.alert-block
p
+
p
{
margin-top
:
5px
;
}
.thumbnail
,
.thumbnail
,
.img-thumbnail
{
.img-thumbnail
{
padding
:
4px
;
padding
:
4px
;
...
...
dist/css/bootstrap.min.css
View file @
d0b94ead
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/alerts.less
View file @
d0b94ead
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
// -------------------------
// -------------------------
.alert {
.alert {
padding: 1
0px 35px 10
px 15px;
padding: 1
5px 35px 15
px 15px;
margin-bottom: @line-height-computed;
margin-bottom: @line-height-computed;
color: @alert-text;
color: @alert-text;
background-color: @alert-bg;
background-color: @alert-bg;
...
@@ -37,6 +37,15 @@
...
@@ -37,6 +37,15 @@
right: -21px;
right: -21px;
color: inherit;
color: inherit;
}
}
// Improve alignment and spacing of inner content
> p,
> ul {
margin-bottom: 0;
}
> p + p {
margin-top: 5px;
}
}
}
// Alternate styles
// Alternate styles
...
@@ -51,19 +60,3 @@
...
@@ -51,19 +60,3 @@
.alert-info {
.alert-info {
.alert-variant(@alert-info-bg, @alert-info-border, @alert-info-text);
.alert-variant(@alert-info-bg, @alert-info-border, @alert-info-text);
}
}
// Block alerts
// -------------------------
.alert-block {
padding-top: 15px;
padding-bottom: 15px;
> p,
> ul {
margin-bottom: 0;
}
p + p {
margin-top: 5px;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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