materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Improve Icon Positioning for Small Devices

Open mncaribou opened this issue 11 years ago • 4 comments

For nav side bars and icons used in the top men (like a persistent hamburger), noticed when going to a small format, some of the font sizes will adjust with the line height, causing the inset/floated icons to shift up. This can be fixed by making the following modification to the CSS

nav .nav-wrapper i { line-height: inherit; }

mncaribou avatar Aug 05 '15 04:08 mncaribou

I had the same problem here also in side-nav, dropdowns and pretty much everywhere. I fixed the same way you did

i.material-icons {
    linhe-height: inherit;
    height: inherit;
}

I don't know the best place to make this modification to materialize, but on my project a global rule like that works great.

FelipeRosa avatar Aug 05 '15 13:08 FelipeRosa

This icons using Google?

ghost avatar Aug 10 '15 18:08 ghost

Following solved my problem:-

i.material-icons {
    line-height: inherit;
    height: inherit;
    vertical-align: middle;
}

But it would be great if Materialize team include that too.

akashdeepsinghal avatar Sep 04 '15 06:09 akashdeepsinghal

+1 @akigupta131

ModrichBadr avatar Sep 15 '15 14:09 ModrichBadr