Commit 1c4bdb05 authored by Mark Otto's avatar Mark Otto

Fixes #10399: Add hover styles to text emphasis classes

parent c0f6d722
...@@ -740,7 +740,7 @@ base_url: "../" ...@@ -740,7 +740,7 @@ base_url: "../"
{% endhighlight %} {% endhighlight %}
<h3>Emphasis classes</h3> <h3>Emphasis classes</h3>
<p>Convey meaning through color with a handful of emphasis utility classes.</p> <p>Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.</p>
<div class="bs-example"> <div class="bs-example">
<p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
<p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
......
...@@ -416,22 +416,42 @@ cite { ...@@ -416,22 +416,42 @@ cite {
color: #428bca; color: #428bca;
} }
.text-primary:hover {
color: #3071a9;
}
.text-warning { .text-warning {
color: #c09853; color: #c09853;
} }
.text-warning:hover {
color: #a47e3c;
}
.text-danger { .text-danger {
color: #b94a48; color: #b94a48;
} }
.text-danger:hover {
color: #953b39;
}
.text-success { .text-success {
color: #468847; color: #468847;
} }
.text-success:hover {
color: #356635;
}
.text-info { .text-info {
color: #3a87ad; color: #3a87ad;
} }
.text-info:hover {
color: #2d6987;
}
.text-left { .text-left {
text-align: left; text-align: left;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -32,12 +32,39 @@ small, ...@@ -32,12 +32,39 @@ small,
cite { font-style: normal; } cite { font-style: normal; }
// Contextual emphasis // Contextual emphasis
.text-muted { color: @text-muted; } .text-muted {
.text-primary { color: @brand-primary; } color: @text-muted;
.text-warning { color: @state-warning-text; } }
.text-danger { color: @state-danger-text; } .text-primary {
.text-success { color: @state-success-text; } color: @brand-primary;
.text-info { color: @state-info-text; } &:hover {
color: darken(@brand-primary, 10%);
}
}
.text-warning {
color: @state-warning-text;
&:hover {
color: darken(@state-warning-text, 10%);
}
}
.text-danger {
color: @state-danger-text;
&:hover {
color: darken(@state-danger-text, 10%);
}
}
.text-success {
color: @state-success-text;
&:hover {
color: darken(@state-success-text, 10%);
}
}
.text-info {
color: @state-info-text;
&:hover {
color: darken(@state-info-text, 10%);
}
}
// Alignment // Alignment
.text-left { text-align: left; } .text-left { text-align: left; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment