0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00

moving forms, labels and list-group to variables.less

This commit is contained in:
syed 2013-07-20 13:38:27 +05:00
parent 1683e6767a
commit 330f40c864
4 changed files with 18 additions and 8 deletions

View File

@ -25,7 +25,7 @@ legend {
line-height: inherit; line-height: inherit;
color: @gray-dark; color: @gray-dark;
border: 0; border: 0;
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid @legend-border-color;
} }
label { label {
@ -354,9 +354,9 @@ select {
font-weight: normal; font-weight: normal;
line-height: @line-height-base; line-height: @line-height-base;
text-align: center; text-align: center;
text-shadow: 0 1px 0 #fff; text-shadow: @input-group-addon-text-shadow;
background-color: @gray-lighter; background-color: @gray-lighter;
border: 1px solid #ccc; border: 1px solid @input-group-addon-border-color;
border-radius: @border-radius-base; border-radius: @border-radius-base;
&.input-small { &.input-small {

View File

@ -8,7 +8,7 @@
font-size: 75%; font-size: 75%;
font-weight: 500; font-weight: 500;
line-height: 1; line-height: 1;
color: #fff; color: @label-color;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
@ -19,7 +19,7 @@
&[href] { &[href] {
&:hover, &:hover,
&:focus { &:focus {
color: #fff; color: @label-link-hover-color;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
background-color: darken(@gray-light, 10%); background-color: darken(@gray-light, 10%);

View File

@ -58,10 +58,10 @@
a.list-group-item { a.list-group-item {
// Colorize content accordingly // Colorize content accordingly
.list-group-item-heading { .list-group-item-heading {
color: #333; color: @link-list-group-heading-color;
} }
.list-group-item-text { .list-group-item-text {
color: #555; color: @link-list-group-color;
} }
// Hover state // Hover state

View File

@ -135,6 +135,11 @@
@input-height-large: (ceil(@font-size-large * @line-height-base) + (@padding-large-vertical * 2) + 2); @input-height-large: (ceil(@font-size-large * @line-height-base) + (@padding-large-vertical * 2) + 2);
@input-height-small: (ceil(@font-size-small * @line-height-base) + (@padding-small-vertical * 2) + 2); @input-height-small: (ceil(@font-size-small * @line-height-base) + (@padding-small-vertical * 2) + 2);
@legend-border-color: #e5e5e5;
@input-group-addon-text-shadow: 0 1px 0 #fff;
@input-group-addon-border-color: #ccc;
// Dropdowns // Dropdowns
// ------------------------- // -------------------------
@ -284,6 +289,9 @@
@label-warning-bg: @brand-warning; @label-warning-bg: @brand-warning;
@label-danger-bg: @brand-danger; @label-danger-bg: @brand-danger;
@label-color: #fff;
@label-link-hover-color: #fff;
// Modals // Modals
// ------------------------- // -------------------------
@ -333,6 +341,9 @@
@list-group-active-bg: @component-active-bg; @list-group-active-bg: @component-active-bg;
@list-group-active-border: @list-group-active-bg; @list-group-active-border: @list-group-active-bg;
@link-list-group-color: #555;
@link-list-group-heading-color:#333;
// Panels // Panels
// ------------------------- // -------------------------
@panel-bg: #fff; @panel-bg: #fff;
@ -421,7 +432,6 @@
@code-bg: #f9f2f4; @code-bg: #f9f2f4;
@code-color: #c7254e; @code-color: #c7254e;
@pre-bg: #f5f5f5; @pre-bg: #f5f5f5;
@pre-border-color: rgba(0,0,0,.15); @pre-border-color: rgba(0,0,0,.15);
@pre-fallback-border-color: #ccc; @pre-fallback-border-color: #ccc;