mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00:00
form state vars
This commit is contained in:
parent
0a93bc143d
commit
e34b3730b7
@ -349,21 +349,21 @@
|
|||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
|
||||||
<h3>Form states & alerts</h3>
|
<h3>Form states & alerts</h3>
|
||||||
<label>@warningText</label>
|
<label>@state-warning-text</label>
|
||||||
<input type="text" class="span3" placeholder="#c09853">
|
<input type="text" class="span3" placeholder="#c09853">
|
||||||
<label>@warningBackground</label>
|
<label>@state-warning-background</label>
|
||||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||||
<label>@errorText</label>
|
<label>@state-error-text</label>
|
||||||
<input type="text" class="span3" placeholder="#b94a48">
|
<input type="text" class="span3" placeholder="#b94a48">
|
||||||
<label>@errorBackground</label>
|
<label>@state-error-background</label>
|
||||||
<input type="text" class="span3" placeholder="#f2dede">
|
<input type="text" class="span3" placeholder="#f2dede">
|
||||||
<label>@successText</label>
|
<label>@state-success-text</label>
|
||||||
<input type="text" class="span3" placeholder="#468847">
|
<input type="text" class="span3" placeholder="#468847">
|
||||||
<label>@successBackground</label>
|
<label>@state-success-background</label>
|
||||||
<input type="text" class="span3" placeholder="#dff0d8">
|
<input type="text" class="span3" placeholder="#dff0d8">
|
||||||
<label>@infoText</label>
|
<label>@state-info-text</label>
|
||||||
<input type="text" class="span3" placeholder="#3a87ad">
|
<input type="text" class="span3" placeholder="#3a87ad">
|
||||||
<label>@infoBackground</label>
|
<label>@state-info-background</label>
|
||||||
<input type="text" class="span3" placeholder="#d9edf7">
|
<input type="text" class="span3" placeholder="#d9edf7">
|
||||||
|
|
||||||
<h3>Navbar</h3>
|
<h3>Navbar</h3>
|
||||||
|
16
docs/templates/pages/customize.mustache
vendored
16
docs/templates/pages/customize.mustache
vendored
@ -281,21 +281,21 @@
|
|||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
|
||||||
<h3>{{_i}}Form states & alerts{{/i}}</h3>
|
<h3>{{_i}}Form states & alerts{{/i}}</h3>
|
||||||
<label>@warningText</label>
|
<label>@state-warning-text</label>
|
||||||
<input type="text" class="span3" placeholder="#c09853">
|
<input type="text" class="span3" placeholder="#c09853">
|
||||||
<label>@warningBackground</label>
|
<label>@state-warning-background</label>
|
||||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||||
<label>@errorText</label>
|
<label>@state-error-text</label>
|
||||||
<input type="text" class="span3" placeholder="#b94a48">
|
<input type="text" class="span3" placeholder="#b94a48">
|
||||||
<label>@errorBackground</label>
|
<label>@state-error-background</label>
|
||||||
<input type="text" class="span3" placeholder="#f2dede">
|
<input type="text" class="span3" placeholder="#f2dede">
|
||||||
<label>@successText</label>
|
<label>@state-success-text</label>
|
||||||
<input type="text" class="span3" placeholder="#468847">
|
<input type="text" class="span3" placeholder="#468847">
|
||||||
<label>@successBackground</label>
|
<label>@state-success-background</label>
|
||||||
<input type="text" class="span3" placeholder="#dff0d8">
|
<input type="text" class="span3" placeholder="#dff0d8">
|
||||||
<label>@infoText</label>
|
<label>@state-info-text</label>
|
||||||
<input type="text" class="span3" placeholder="#3a87ad">
|
<input type="text" class="span3" placeholder="#3a87ad">
|
||||||
<label>@infoBackground</label>
|
<label>@state-info-background</label>
|
||||||
<input type="text" class="span3" placeholder="#d9edf7">
|
<input type="text" class="span3" placeholder="#d9edf7">
|
||||||
|
|
||||||
<h3>{{_i}}Navbar{{/i}}</h3>
|
<h3>{{_i}}Navbar{{/i}}</h3>
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
padding: 8px 35px 8px 14px;
|
padding: 8px 35px 8px 14px;
|
||||||
margin-bottom: @line-height-base;
|
margin-bottom: @line-height-base;
|
||||||
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
background-color: @warningBackground;
|
background-color: @state-warning-background;
|
||||||
border: 1px solid @warningBorder;
|
border: 1px solid @state-warning-border;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
}
|
}
|
||||||
.alert,
|
.alert,
|
||||||
.alert h4 {
|
.alert h4 {
|
||||||
// Specified for the h4 to prevent conflicts of changing @headingsColor
|
// Specified for the h4 to prevent conflicts of changing @headingsColor
|
||||||
color: @warningText;
|
color: @state-warning-text;
|
||||||
}
|
}
|
||||||
.alert h4 {
|
.alert h4 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -36,20 +36,20 @@
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
.alert-success {
|
.alert-success {
|
||||||
background-color: @successBackground;
|
background-color: @state-success-background;
|
||||||
border-color: @successBorder;
|
border-color: @state-success-border;
|
||||||
color: @successText;
|
color: @state-success-text;
|
||||||
}
|
}
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error {
|
.alert-error {
|
||||||
background-color: @errorBackground;
|
background-color: @state-error-background;
|
||||||
border-color: @errorBorder;
|
border-color: @state-error-border;
|
||||||
color: @errorText;
|
color: @state-error-text;
|
||||||
}
|
}
|
||||||
.alert-info {
|
.alert-info {
|
||||||
background-color: @infoBackground;
|
background-color: @state-info-background;
|
||||||
border-color: @infoBorder;
|
border-color: @state-info-border;
|
||||||
color: @infoText;
|
color: @state-info-text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -355,19 +355,19 @@ input[type="checkbox"][readonly] {
|
|||||||
|
|
||||||
// Warning
|
// Warning
|
||||||
.control-group.warning {
|
.control-group.warning {
|
||||||
.formFieldState(@warningText, @warningText, @warningBackground);
|
.formFieldState(@state-warning-text, @state-warning-text, @state-warning-background);
|
||||||
}
|
}
|
||||||
// Error
|
// Error
|
||||||
.control-group.error {
|
.control-group.error {
|
||||||
.formFieldState(@errorText, @errorText, @errorBackground);
|
.formFieldState(@state-error-text, @state-error-text, @state-error-background);
|
||||||
}
|
}
|
||||||
// Success
|
// Success
|
||||||
.control-group.success {
|
.control-group.success {
|
||||||
.formFieldState(@successText, @successText, @successBackground);
|
.formFieldState(@state-success-text, @state-success-text, @state-success-background);
|
||||||
}
|
}
|
||||||
// Success
|
// Success
|
||||||
.control-group.info {
|
.control-group.info {
|
||||||
.formFieldState(@infoText, @infoText, @infoBackground);
|
.formFieldState(@state-info-text, @state-info-text, @state-info-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTML5 invalid states
|
// HTML5 invalid states
|
||||||
@ -479,8 +479,8 @@ select:focus:invalid {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
background-color: @successBackground;
|
background-color: @state-success-background;
|
||||||
border-color: @successText;
|
border-color: @state-success-text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,17 +50,17 @@ a {
|
|||||||
.label,
|
.label,
|
||||||
.badge {
|
.badge {
|
||||||
// Important (red)
|
// Important (red)
|
||||||
&-danger { background-color: @errorText; }
|
&-danger { background-color: @state-error-text; }
|
||||||
&-danger[href] { background-color: darken(@errorText, 10%); }
|
&-danger[href] { background-color: darken(@state-error-text, 10%); }
|
||||||
// Warnings (orange)
|
// Warnings (orange)
|
||||||
&-warning { background-color: #f89406; }
|
&-warning { background-color: #f89406; }
|
||||||
&-warning[href] { background-color: darken(#f89406, 10%); }
|
&-warning[href] { background-color: darken(#f89406, 10%); }
|
||||||
// Success (green)
|
// Success (green)
|
||||||
&-success { background-color: @successText; }
|
&-success { background-color: @state-success-text; }
|
||||||
&-success[href] { background-color: darken(@successText, 10%); }
|
&-success[href] { background-color: darken(@state-success-text, 10%); }
|
||||||
// Info (turquoise)
|
// Info (turquoise)
|
||||||
&-info { background-color: @infoText; }
|
&-info { background-color: @state-info-text; }
|
||||||
&-info[href] { background-color: darken(@infoText, 10%); }
|
&-info[href] { background-color: darken(@state-info-text, 10%); }
|
||||||
// Inverse (black)
|
// Inverse (black)
|
||||||
&-inverse { background-color: @grayDark; }
|
&-inverse { background-color: @grayDark; }
|
||||||
&-inverse[href] { background-color: darken(@grayDark, 10%); }
|
&-inverse[href] { background-color: darken(@grayDark, 10%); }
|
||||||
|
@ -183,31 +183,31 @@ table th[class*="span"],
|
|||||||
|
|
||||||
.table tbody tr {
|
.table tbody tr {
|
||||||
&.success td {
|
&.success td {
|
||||||
background-color: @successBackground;
|
background-color: @state-success-background;
|
||||||
}
|
}
|
||||||
&.error td {
|
&.error td {
|
||||||
background-color: @errorBackground;
|
background-color: @state-error-background;
|
||||||
}
|
}
|
||||||
&.warning td {
|
&.warning td {
|
||||||
background-color: @warningBackground;
|
background-color: @state-warning-background;
|
||||||
}
|
}
|
||||||
&.info td {
|
&.info td {
|
||||||
background-color: @infoBackground;
|
background-color: @state-info-background;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover states for .table-hover
|
// Hover states for .table-hover
|
||||||
.table-hover tbody tr {
|
.table-hover tbody tr {
|
||||||
&.success:hover td {
|
&.success:hover td {
|
||||||
background-color: darken(@successBackground, 5%);
|
background-color: darken(@state-success-background, 5%);
|
||||||
}
|
}
|
||||||
&.error:hover td {
|
&.error:hover td {
|
||||||
background-color: darken(@errorBackground, 5%);
|
background-color: darken(@state-error-background, 5%);
|
||||||
}
|
}
|
||||||
&.warning:hover td {
|
&.warning:hover td {
|
||||||
background-color: darken(@warningBackground, 5%);
|
background-color: darken(@state-warning-background, 5%);
|
||||||
}
|
}
|
||||||
&.info:hover td {
|
&.info:hover td {
|
||||||
background-color: darken(@infoBackground, 5%);
|
background-color: darken(@state-info-background, 5%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,17 +31,17 @@ cite { font-style: normal; }
|
|||||||
.muted { color: @grayLight; }
|
.muted { color: @grayLight; }
|
||||||
a.muted:hover { color: darken(@grayLight, 10%); }
|
a.muted:hover { color: darken(@grayLight, 10%); }
|
||||||
|
|
||||||
.text-warning { color: @warningText; }
|
.text-warning { color: @state-warning-text; }
|
||||||
a.text-warning:hover { color: darken(@warningText, 10%); }
|
a.text-warning:hover { color: darken(@state-warning-text, 10%); }
|
||||||
|
|
||||||
.text-error { color: @errorText; }
|
.text-error { color: @state-error-text; }
|
||||||
a.text-error:hover { color: darken(@errorText, 10%); }
|
a.text-error:hover { color: darken(@state-error-text, 10%); }
|
||||||
|
|
||||||
.text-info { color: @infoText; }
|
.text-info { color: @state-info-text; }
|
||||||
a.text-info:hover { color: darken(@infoText, 10%); }
|
a.text-info:hover { color: darken(@state-info-text, 10%); }
|
||||||
|
|
||||||
.text-success { color: @successText; }
|
.text-success { color: @state-success-text; }
|
||||||
a.text-success:hover { color: darken(@successText, 10%); }
|
a.text-success:hover { color: darken(@state-success-text, 10%); }
|
||||||
|
|
||||||
|
|
||||||
// Headings
|
// Headings
|
||||||
|
@ -210,21 +210,21 @@
|
|||||||
// Form states and alerts
|
// Form states and alerts
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@warningText: #c09853;
|
@state-warning-text: #c09853;
|
||||||
@warningBackground: #fcf8e3;
|
@state-warning-background: #fcf8e3;
|
||||||
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
@state-warning-border: darken(spin(@state-warning-background, -10), 3%);
|
||||||
|
|
||||||
@errorText: #b94a48;
|
@state-error-text: #b94a48;
|
||||||
@errorBackground: #f2dede;
|
@state-error-background: #f2dede;
|
||||||
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
@state-error-border: darken(spin(@state-error-background, -10), 3%);
|
||||||
|
|
||||||
@successText: #468847;
|
@state-success-text: #468847;
|
||||||
@successBackground: #dff0d8;
|
@state-success-background: #dff0d8;
|
||||||
@successBorder: darken(spin(@successBackground, -10), 5%);
|
@state-success-border: darken(spin(@state-success-background, -10), 5%);
|
||||||
|
|
||||||
@infoText: #3a87ad;
|
@state-info-text: #3a87ad;
|
||||||
@infoBackground: #d9edf7;
|
@state-info-background: #d9edf7;
|
||||||
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
@state-info-border: darken(spin(@state-info-background, -10), 7%);
|
||||||
|
|
||||||
|
|
||||||
// Tooltips and popovers
|
// Tooltips and popovers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user