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
9bbe8a02
Commit
9bbe8a02
authored
Aug 05, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9121 from Flydiverny/alerts
Added padding variable for alerts and changed customize.html
parents
844df9e0
9123163b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
customize.html
customize.html
+10
-8
less/alerts.less
less/alerts.less
+1
-1
less/variables.less
less/variables.less
+3
-1
No files found.
customize.html
View file @
9bbe8a02
...
@@ -660,12 +660,21 @@ base_url: "../"
...
@@ -660,12 +660,21 @@ base_url: "../"
</div>
</div>
<h2
id=
"variables-alerts"
>
Alerts
</h2>
<h2
id=
"variables-alerts"
>
Alerts
</h2>
<p>
Define alert colors
and border radius
.
</p>
<p>
Define alert colors
, border radius, and padding
.
</p>
<h4>
Border radius
</h4>
<h4>
Border radius
</h4>
<label>
@alert-padding
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"15px"
>
<label>
@alert-border-radius
</label>
<label>
@alert-border-radius
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@border-radius-base"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"@border-radius-base"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-6"
>
<h4>
Default (Warning)
</h4>
<label>
@alert-text
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-text"
>
<label>
@alert-bg
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-bg"
>
<label>
@alert-border
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-border"
>
<h4>
Success
</h4>
<h4>
Success
</h4>
<label>
@alert-success-text
</label>
<label>
@alert-success-text
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-text"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-text"
>
...
@@ -673,13 +682,6 @@ base_url: "../"
...
@@ -673,13 +682,6 @@ base_url: "../"
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-bg"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-bg"
>
<label>
@alert-success-border
</label>
<label>
@alert-success-border
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-border"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-success-border"
>
<h4>
Warning
</h4>
<label>
@alert-warning-text
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-text"
>
<label>
@alert-warning-bg
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-bg"
>
<label>
@alert-warning-border
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"@state-warning-border"
>
</div>
</div>
<div
class=
"col-lg-6"
>
<div
class=
"col-lg-6"
>
<h4>
Danger
</h4>
<h4>
Danger
</h4>
...
...
less/alerts.less
View file @
9bbe8a02
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
// -------------------------
// -------------------------
.alert {
.alert {
padding:
15px 35px 15px 15px
;
padding:
@alert-padding (@alert-padding + 20) @alert-padding @alert-padding
;
margin-bottom: @line-height-computed;
margin-bottom: @line-height-computed;
color: @alert-text;
color: @alert-text;
background-color: @alert-bg;
background-color: @alert-bg;
...
...
less/variables.less
View file @
9bbe8a02
...
@@ -402,10 +402,12 @@
...
@@ -402,10 +402,12 @@
// Alerts
// Alerts
// -------------------------
// -------------------------
@alert-padding: 15px;
@alert-border-radius: @border-radius-base;
@alert-bg: @state-warning-bg;
@alert-bg: @state-warning-bg;
@alert-text: @state-warning-text;
@alert-text: @state-warning-text;
@alert-border: @state-warning-border;
@alert-border: @state-warning-border;
@alert-border-radius: @border-radius-base;
@alert-success-bg: @state-success-bg;
@alert-success-bg: @state-success-bg;
@alert-success-text: @state-success-text;
@alert-success-text: @state-success-text;
...
...
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