font-weight: normal;
line-height: 1.428571429;
text-align: center;
+ text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
color: #fff;
background-color: #333;
}
+.btn-label {
+ margin-left: 8px;
+ text-overflow: ellipsis;
+ vertical-align: middle;
+}
.btn-primary {
color: #fff;
background-color: #428bca;
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
+#currenttrack {
+ vertical-align: middle;
+}
.glyphicon {
- position: relative;
- top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
- font-style: normal;
- font-weight: normal;
- line-height: 1;
+ vertical-align: middle;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
.glyphicon-heart:before {
content: "\e005";
}
-.glyphicon-star:before {
- content: "\e006";
-}
.glyphicon-star-empty:before {
content: "\e007";
}
.glyphicon-cog:before {
content: "\e019";
}
-.glyphicon-trash:before {
- content: "\e020";
-}
.glyphicon-home:before {
content: "\e021";
}
.glyphicon-play-circle:before {
content: "\e029";
}
-.glyphicon-repeat:before {
- content: "\e030";
-}
.glyphicon-refresh:before {
content: "\e031";
}
.glyphicon-leaf:before {
content: "\e103";
}
-.glyphicon-fire:before {
- content: "\e104";
-}
.glyphicon-eye-open:before {
content: "\e105";
}
.glyphicon-calendar:before {
content: "\e109";
}
-.glyphicon-random:before {
- content: "\e110";
-}
-.glyphicon-comment:before {
- content: "\e111";
-}
.glyphicon-magnet:before {
content: "\e112";
}
.glyphicon-heart-empty:before {
content: "\e143";
}
-.glyphicon-link:before {
- content: "\e144";
-}
.glyphicon-phone:before {
content: "\e145";
}
.glyphicon-record:before {
content: "\e165";
}
-.glyphicon-save:before {
- content: "\e166";
-}
.glyphicon-open:before {
content: "\e167";
}
}
.btn-group-lg > .btn {
padding: 10px 16px;
- font-size: 18px;
+ font-size: 16px;
line-height: 1.33;
border-radius: 6px;
}
<div class="btn-toolbar">
<div class="btn-group-vertical btn-block btn-group-lg" data-toggle="buttons">
<button id="btnrandom" type="button" class="btn btn-default">
- <span class="glyphicon glyphicon-random"></span> Random
+ <span class="glyphicon"></span><span class="btn-label">Random</span>
</button>
<button id="btnconsume" type="button" class="btn btn-default">
- <span class="glyphicon glyphicon-fire"></span> Consume
+ <span class="glyphicon"></span><span class="btn-label">Consume</span>
</button>
<button id="btnsingle" type="button" class="btn btn-default">
- <span class="glyphicon glyphicon-star"></span> Single
+ <span class="glyphicon"></span><span class="btn-label">Single</span>
</button>
<button id="btncrossfade" type="button" class="btn btn-default">
- <span class="glyphicon glyphicon-link"></span> Crossfade
+ <span class="glyphicon"></span><span class="btn-label">Crossfade</span>
</button>
<button id="btnrepeat" type="button" class="btn btn-default">
- <span class="glyphicon glyphicon-repeat"></span> Repeat
+ <span class="glyphicon"></span><span class="btn-label">Repeat</span>
</button>
</div>
<div id="btn-outputs-block" class="btn-group-vertical btn-block btn-group-lg">
<div id="btn-responsive-block" class="btn-group-vertical btn-block btn-group-lg">
<button type="button" class="btn btn-default" onclick="socket.send('MPD_API_RM_ALL');">
- <span class="glyphicon glyphicon-trash"></span> Clear queue
+ <span class="glyphicon"></span><span class="btn-label">Clear queue</span>
</button>
<a href="#" data-toggle="modal" data-target="#savequeue" class="btn btn-default">
- <span class="glyphicon glyphicon-save"></span> Save queue
+ <span class="glyphicon"></span><span class="btn-label">Save queue</span>
</a>
</div>
- <div id="btn-responsive-block" class="btn-group-vertical btn-block btn-group-lg" data-toggle="buttons">
- <button type="button" class="btn btn-default" id="btnnotify">
- <span class="glyphicon glyphicon-comment"></span> Notifications
- </button>
- </div>
+ <div id="btn-responsive-block" class="btn-group-vertical btn-block btn-group-lg" data-toggle="buttons">
+ <button type="button" class="btn btn-default" id="btnnotify">
+ <span class="glyphicon"></span><span class="btn-label">Notifications</span>
+ </button>
+ </div>
</div>
</div><!-- /.col-md-2 -->
</div><!-- /.row -->
case "outputnames":
$('#btn-outputs-block button').remove();
$.each(obj.data, function(id, name){
- var btn = $('<button id="btnoutput'+id+'" class="btn btn-default" onclick="toggleoutput(this, '+id+')"><span class="glyphicon glyphicon-volume-up"></span> '+name+'</button>');
+ var btn = $('<button id="btnoutput'+id+'" class="btn btn-default" onclick="toggleoutput(this, '+id+')"><span class="glyphicon"></span><span class="btn-label" title="'+name+'">'+name+'</span></button>');
btn.appendTo($('#btn-outputs-block'));
});
/* remove cache, since the buttons have been recreated */