mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-01 03:10:14 +02:00
improve icon display on narrow devices
This commit is contained in:
@@ -16,7 +16,8 @@ base_url: "../"
|
||||
|
||||
<h2 id="glyphicons-glyphs">Available glyphs</h2>
|
||||
<p>Includes 200 glyphs in font format from the Glyphicon Halflings set. <a href="http://glyphicons.com/">Glyphicons</a> Halflings are normally not available for free, but their creator has made them available for Bootstrap free of cost. As a thank you, we only ask that you to include a link back to <a href="http://glyphicons.com/">Glyphicons</a> whenever possible.</p>
|
||||
<ul class="bs-glyphicons">
|
||||
<div class="bs-glyphicons">
|
||||
<ul class="bs-glyphicons-list">
|
||||
<li>
|
||||
<span class="glyphicon glyphicon-adjust"></span>
|
||||
<span class="glyphicon-class">glyphicon glyphicon-adjust</span>
|
||||
@@ -818,6 +819,7 @@ base_url: "../"
|
||||
<span class="glyphicon-class">glyphicon glyphicon-zoom-out</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<h2 id="glyphicons-how-to-use">How to use</h2>
|
||||
|
@@ -1029,19 +1029,20 @@ h1[id] {
|
||||
*/
|
||||
|
||||
.bs-glyphicons {
|
||||
padding-left: 0;
|
||||
padding-bottom: 1px;
|
||||
margin-bottom: 20px;
|
||||
list-style: none;
|
||||
margin: 0 -19px 20px -16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.bs-glyphicons-list {
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.bs-glyphicons li {
|
||||
float: left;
|
||||
width: 25%;
|
||||
height: 115px;
|
||||
padding: 10px;
|
||||
margin: 0 -1px -1px 0;
|
||||
font-size: 12px;
|
||||
font-size: 10px;
|
||||
line-height: 1.4;
|
||||
text-align: center;
|
||||
border: 1px solid #ddd;
|
||||
@@ -1061,8 +1062,13 @@ h1[id] {
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.bs-glyphicons {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
.bs-glyphicons li {
|
||||
width: 12.5%;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user