css - How do I make my ionic buttons "slimmer"? -


i've been using developer tools try , make ionic button "pill-like", button narrow. close example buttons on stack overflow, such "ask question" button. there not spacing on top , bottom of text.

how can achieve effect buttons? here's codepen shows button i'm trying modify:

http://codepen.io/anon/pen/mkpdey

 <button class="button button-small button-calm">          hello i'm small button     </button> 

you have override padding , min-height:

.button.button-small.button-calm {   min-height: 0;   padding-top: 0;   padding-bottom: 0; } 

here codepan fork

if that's still not enough, change line-height:

.button.button-small.button-calm {   line-height: 100%; /* play fit needs */ } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -