mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-11-20 11:14:28 +00:00
fixing #1130
This commit is contained in:
parent
584f720436
commit
fe004a9336
6
build/_includes/tests/rotated-flipped-inside-anchor.html
Normal file
6
build/_includes/tests/rotated-flipped-inside-anchor.html
Normal file
@ -0,0 +1,6 @@
|
||||
<a href="#"><i class="icon-flag"></i> normal</a><br>
|
||||
<a href="#"><i class="icon-flag icon-rotate-90"></i> icon-rotate-90</a><br>
|
||||
<a href="#"><i class="icon-flag icon-rotate-180"></i> icon-rotate-180</a><br>
|
||||
<a href="#"><i class="icon-flag icon-rotate-270"></i> icon-rotate-270</a><br>
|
||||
<a href="#"><i class="icon-flag icon-flip-horizontal"></i> icon-flip-horizontal</a><br>
|
||||
<a href="#"><i class="icon-flag icon-flip-vertical"></i> icon-flip-vertical</a>
|
6
build/_includes/tests/rotated-flipped-inside-btn.html
Normal file
6
build/_includes/tests/rotated-flipped-inside-btn.html
Normal file
@ -0,0 +1,6 @@
|
||||
<a class="btn" href="#"><i class="icon-flag"></i> normal</a><br>
|
||||
<a class="btn" href="#"><i class="icon-flag icon-rotate-90"></i> icon-rotate-90</a><br>
|
||||
<a class="btn" href="#"><i class="icon-flag icon-rotate-180"></i> icon-rotate-180</a><br>
|
||||
<a class="btn" href="#"><i class="icon-flag icon-rotate-270"></i> icon-rotate-270</a><br>
|
||||
<a class="btn" href="#"><i class="icon-flag icon-flip-horizontal"></i> icon-flip-horizontal</a><br>
|
||||
<a class="btn" href="#"><i class="icon-flag icon-flip-vertical"></i> icon-flip-vertical</a>
|
7
build/assets/font-awesome/less/extras.less
vendored
7
build/assets/font-awesome/less/extras.less
vendored
@ -77,3 +77,10 @@
|
||||
-o-transform: scale(1, -1);
|
||||
transform: scale(1, -1);
|
||||
}
|
||||
|
||||
/* ensure rotation occurs inside anchor tags */
|
||||
a {
|
||||
.icon-rotate-90, .icon-rotate-180, .icon-rotate-270, .icon-flip-horizontal, .icon-flip-vertical {
|
||||
&:before { display: inline-block; }
|
||||
}
|
||||
}
|
||||
|
@ -603,4 +603,18 @@ relative_path: ../
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Mirrored and rotated icons inside anchors and buttons</h4>
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
<div class="well">
|
||||
{% include tests/rotated-flipped-inside-anchor.html %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<div class="well">
|
||||
{% include tests/rotated-flipped-inside-btn.html %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user