metro-bootstrap icon indicating copy to clipboard operation
metro-bootstrap copied to clipboard

Using metro-bootstrap with Font-Awesome-icons in tiles

Open z0nk opened this issue 12 years ago • 5 comments

Hi, I am trying to use the Font-Awesome-icons in the tiles. this is my code:

<ul class="thumbnails">
      <li class="span3 tile tile-double">
          <a href="#">
              <i class="icon-tasks icon-large icon-5x"></i>
             <h1 class="tile-text">Task</h1>
          </a>
      </li>
</ul>

the issue is that there is no text visible and the icon is only visible if there is a mouse-hover event. what am i doing wrong?

z0nk avatar Jul 22 '13 06:07 z0nk

Is this project even active?

z0nk avatar Jul 27 '13 10:07 z0nk

The icon is large, so it pushes the text below. You are also possibly missing a color on your body tag that Font Awesome inherits. Specify a colour for the icon.

kb6673 avatar Jul 31 '13 21:07 kb6673

I started using this skin today and ran into the same idea. Here's a quick and dirty way to combine Font Awesome with tiles:

Add the following css class to your style sheets:

.tile-icon {
    color: white;
    line-height: 125px; 
    font-size: 80px;
}

and write your iconized tiles like this

    <ul class="thumbnails">
            <li class="span3 tile tile-red">
            <a href="#" title="Upload a new document">
                <i class="tile-icon icon-upload"></i>
            </a>
        </li>
    </ul>

MartinDevillers avatar Aug 02 '13 20:08 MartinDevillers

I extended your solution a little to add some text under the icon:

for css: (this is stylus-style)

.tile-icon
  margin 20px
  color white
  line-height 100px
  font-size 60px

.small-tile-description
  font-size 12px
  color white

and the html output

<ul class="thumbnails">
  <li class="span3 tile tile-red">
    <a href="#" title="My Title">
      <i class="tile-icon icon-group"></i>
      <div class="small-tile-description">My Title</div>
    </a>
  </li>
</ul>

but maybe there will be a better solution from the developers here ;)

z0nk avatar Aug 15 '13 07:08 z0nk

Unfortunately, we no longer have the time to work on this project. This means that bugs will not be fixed and features will not be added unless someone else does so.

If you're interested in fixing up metro-bootstrap, please reply to this GitHub issue (#65).

Thank you for your support.

NelsonReis avatar Nov 28 '17 16:11 NelsonReis