Skip to content

Commit 6c3cd6f

Browse files
committed
fixes twbs#5212: text emphasis classes only get hover with links
1 parent a6206c9 commit 6c3cd6f

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

docs/assets/css/bootstrap.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,31 +618,31 @@ cite {
618618
color: #c09853;
619619
}
620620

621-
.text-warning:hover {
621+
a.text-warning:hover {
622622
color: #a47e3c;
623623
}
624624

625625
.text-error {
626626
color: #b94a48;
627627
}
628628

629-
.text-error:hover {
629+
a.text-error:hover {
630630
color: #953b39;
631631
}
632632

633633
.text-info {
634634
color: #3a87ad;
635635
}
636636

637-
.text-info:hover {
637+
a.text-info:hover {
638638
color: #2d6987;
639639
}
640640

641641
.text-success {
642642
color: #468847;
643643
}
644644

645-
.text-success:hover {
645+
a.text-success:hover {
646646
color: #356635;
647647
}
648648

less/type.less

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,17 @@ cite {
3737
.muted {
3838
color: @grayLight;
3939
}
40-
.text-warning {
41-
color: @warningText;
42-
&:hover {
43-
color: darken(@warningText, 10%);
44-
}
45-
}
46-
.text-error {
47-
color: @errorText;
48-
&:hover {
49-
color: darken(@errorText, 10%);
50-
}
51-
}
52-
.text-info {
53-
color: @infoText;
54-
&:hover {
55-
color: darken(@infoText, 10%);
56-
}
57-
}
58-
.text-success {
59-
color: @successText;
60-
&:hover {
61-
color: darken(@successText, 10%);
62-
}
63-
}
40+
.text-warning { color: @warningText; }
41+
a.text-warning:hover { color: darken(@warningText, 10%); }
42+
43+
.text-error { color: @errorText; }
44+
a.text-error:hover { color: darken(@errorText, 10%); }
45+
46+
.text-info { color: @infoText; }
47+
a.text-info:hover { color: darken(@infoText, 10%); }
48+
49+
.text-success { color: @successText; }
50+
a.text-success:hover { color: darken(@successText, 10%); }
6451

6552

6653
// Headings

0 commit comments

Comments
 (0)