Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular2 Material md-icon size

How do I get the icon size to work with the relative size of the font in angular2?

<div style="font-size: 3em;">
<md-icon>highlight</md-icon>
Title
</div>
like image 454
rbtLong Avatar asked Mar 09 '23 15:03

rbtLong


1 Answers

In your CSS file you can modify the md-icon size by modifying font-size, height and width. For example:

md-icon.size-45 {
    font-size: 45px;
    height: 45px;
    width: 45px;
}
like image 169
Jorge Riv Avatar answered Mar 21 '23 10:03

Jorge Riv