The little quirks of using Twitter Bootstrap
input[type="file"] {
height: 30px;
line-height: 30px;
}
h1,h2,h3,h4,h5,h6 { text-rendering: initial; }
I noticed this problem with Google Webfont Advent Pro.
img { max-width: 100%; }
You may also see flicker and reflows during loading while the size is readjusting.
To correct this problem, you should always specify height and width attributes, but sometimes it is not possible.
button, input { line-height: normal; }
h1 { font-size: 36px; line-height: 40px; }
input, select, textarea {
&[readonly], &[disabled] {
cursor: not-allowed;
}
}
I stumbled upon it when I was trying to style an input as a seemlessly inline element.
And of course all of the rules for text-shadow, border-radius, box-shadow, etc.
All in all, I found myself using rules like theses quite often.
The exact rules will depend on your usage, but you can see the point.
They are not specific to Twitter Bootstrap.
.reset-font {
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
.reset-size {
height: auto;
width: auto;
max-height: auto;
max-width: auto;
}
.reset-effects {
text-shadow: none;
box-shadow: none;
border-radius: none;
}