Fix icon-large styles inside list items

In Font Awesome 1.0 the LESS declaration was:
.icon-large[class^="icon-"],
.icon-large[class*=" icon-"]

The same declaration in Font Awesome 2.0:
.icon-large:before,
.icon-large:before

Clearly the selector should not be duplicated and should just be:
.icon-large
This commit is contained in:
Jyri Tuulos 2012-06-05 17:30:21 +03:00
parent 35fca03068
commit 2471e54678
6 changed files with 12 additions and 24 deletions

View File

@ -58,8 +58,7 @@ li [class*=" icon-"] {
display: inline-block; display: inline-block;
width: 1.25em; width: 1.25em;
text-align: center; } text-align: center; }
li .icon-large:before, li .icon-large {
li .icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
width: 1.875em; } width: 1.875em; }
@ -70,8 +69,7 @@ ul.icons {
ul.icons li [class^="icon-"], ul.icons li [class^="icon-"],
ul.icons li [class*=" icon-"] { ul.icons li [class*=" icon-"] {
width: .8em; } width: .8em; }
ul.icons li .icon-large:before, ul.icons li .icon-large {
ul.icons li .icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
vertical-align: initial; } vertical-align: initial; }

View File

@ -3820,8 +3820,7 @@ li [class*=" icon-"] {
width: 1.25em; width: 1.25em;
text-align: center; text-align: center;
} }
li .icon-large:before, li .icon-large {
li .icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
width: 1.875em; width: 1.875em;
@ -3835,8 +3834,7 @@ ul.icons li [class^="icon-"],
ul.icons li [class*=" icon-"] { ul.icons li [class*=" icon-"] {
width: .8em; width: .8em;
} }
ul.icons li .icon-large:before, ul.icons li .icon-large {
ul.icons li .icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
vertical-align: initial; vertical-align: initial;

View File

@ -71,8 +71,7 @@ li {
width: 1.25em; width: 1.25em;
text-align: center; text-align: center;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
width: 1.5*1.25em; width: 1.5*1.25em;
} }
@ -88,8 +87,7 @@ ul.icons {
[class*=" icon-"] { [class*=" icon-"] {
width: .8em; width: .8em;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
vertical-align: initial; vertical-align: initial;
// width: 1.5*1.25em; // width: 1.5*1.25em;

View File

@ -71,8 +71,7 @@ li {
width: 1.25em; width: 1.25em;
text-align: center; text-align: center;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
width: 1.5*1.25em; width: 1.5*1.25em;
} }
@ -88,8 +87,7 @@ ul.icons {
[class*=" icon-"] { [class*=" icon-"] {
width: .8em; width: .8em;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
vertical-align: initial; vertical-align: initial;
// width: 1.5*1.25em; // width: 1.5*1.25em;

View File

@ -59,8 +59,7 @@ li
display: inline-block display: inline-block
width: 1.25em width: 1.25em
text-align: center text-align: center
.icon-large:before, .icon-large
.icon-large:before
/* 1.5 increased font size for icon-large * 1.25 width /* 1.5 increased font size for icon-large * 1.25 width
width: 1.5 * 1.25em width: 1.5 * 1.25em
@ -72,8 +71,7 @@ ul.icons
[class^="icon-"], [class^="icon-"],
[class*=" icon-"] [class*=" icon-"]
width: .8em width: .8em
.icon-large:before, .icon-large
.icon-large:before
/* 1.5 increased font size for icon-large * 1.25 width /* 1.5 increased font size for icon-large * 1.25 width
vertical-align: initial vertical-align: initial
// width: 1.5*1.25em; // width: 1.5*1.25em;

View File

@ -75,8 +75,7 @@ li {
width: 1.25em; width: 1.25em;
text-align: center; text-align: center;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
width: 1.5*1.25em; width: 1.5*1.25em;
} }
@ -92,8 +91,7 @@ ul.icons {
[class*=" icon-"] { [class*=" icon-"] {
width: .8em; width: .8em;
} }
.icon-large:before, .icon-large {
.icon-large:before {
/* 1.5 increased font size for icon-large * 1.25 width */ /* 1.5 increased font size for icon-large * 1.25 width */
vertical-align: initial; vertical-align: initial;
// width: 1.5*1.25em; // width: 1.5*1.25em;