Skip to content

Commit

Permalink
fixes #9909: Add component active color variable to complement compon…
Browse files Browse the repository at this point in the history
…ent active bg variable
  • Loading branch information
mdo committed Sep 1, 2013
1 parent bfda156 commit 1fd9237
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions customize.html
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,14 @@ <h4>Border radius sizes</h4>
<input type="text" class="form-control" placeholder="6px" data-var="@border-radius-large">
<label>@border-radius-small</label>
<input type="text" class="form-control" placeholder="3px" data-var="@border-radius-small">
<h4>Active text color</h4>
<label>@component-active-color</label>
<input type="text" class="form-control" placeholder="#fff" data-var="@component-active-color">
<p class="help-block">Global color for active items (e.g., navs or dropdowns)</p>
<h4>Active background color</h4>
<label>@component-active-bg</label>
<input type="text" class="form-control" placeholder="@brand-primary" data-var="@component-active-bg">
<p class="help-block">Used for active or hovered items in places like navs or dropdowns.</p>
<p class="help-block">Global background color for active items (e.g., navs or dropdowns)</p>
</div>
</div>

Expand Down Expand Up @@ -923,7 +927,7 @@ <h3>Dropdown items</h3>
<p class="help-block">Hovered dropdown menu entry text color</p>

<label>@dropdown-link-active-color</label>
<input type="text" class="form-control" placeholder="#fff" data-var="@dropdown-link-active-color">
<input type="text" class="form-control" placeholder="@component-active-color" data-var="@dropdown-link-active-color">
<p class="help-block">Active dropdown menu entry text color</p>
<label>@dropdown-link-active-bg</label>
<input type="text" class="form-control" placeholder="@component-active-bg" data-var="@dropdown-link-active-bg">
Expand Down
3 changes: 2 additions & 1 deletion less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
@border-radius-large: 6px;
@border-radius-small: 3px;

@component-active-color: #fff;
@component-active-bg: @brand-primary;

@caret-width-base: 4px;
Expand Down Expand Up @@ -178,7 +179,7 @@
@dropdown-link-hover-color: darken(@gray-dark, 5%);
@dropdown-link-hover-bg: #f5f5f5;

@dropdown-link-active-color: #fff;
@dropdown-link-active-color: @component-active-color;
@dropdown-link-active-bg: @component-active-bg;

@dropdown-link-disabled-color: @gray-light;
Expand Down

0 comments on commit 1fd9237

Please sign in to comment.