I am building a mobile app using IONIC 2, and have the following group of buttons. Three of them use the standard Ionicons resources. The third one however, uses a custom image of a key, but as you can see, it isn't scaled appropriately.
Here is my code:
scss:
.buttons .key {
background-color: #de574b;
transform:rotate(45deg);
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
-o-transform:rotate(45deg);
}
.ion-ios-key::before, .ion-md-key::before {
max-height: 20px;
align-content: center;
vertical-align: center;
content: url('../../img/Key.png');
}
html:
<div class="buttons">
<button class="bluetooth">
<ion-icon name="bluetooth"></ion-icon>
</button>
<button class="help">
<ion-icon name="md-help"></ion-icon>
</button>
<button class="key">
<ion-icon name="key"></ion-icon>
</button>
<button class="new" (click)="newDevice()">
<ion-icon name="md-add"></ion-icon>
</button>
</div>
My max-height
property doesn't do anything, and nor does a height property. How can I style this icon to fit so that is looks like the other icons?