[SSE] Fix width for active and not active tabs
This commit is contained in:
parent
499bc226a3
commit
d72fcfd6d1
|
@ -52,7 +52,7 @@ define([
|
|||
this.label = 'Tab';
|
||||
this.cls = '';
|
||||
this.template = _.template(['<li class="<% if(active){ %>active selected<% } %> <% if(cls.length){%><%= cls %><%}%>" data-label="<%= label %>">',
|
||||
'<a><%- label %></a>',
|
||||
'<a title="<%= label %>"><%- label %></a>',
|
||||
'</li>'].join(''));
|
||||
|
||||
this.initialize.call(this, opts);
|
||||
|
|
|
@ -27,6 +27,13 @@
|
|||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
white-space: pre-wrap;
|
||||
text-align: center;
|
||||
|
||||
&::after {
|
||||
content: attr(title);
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:hover, &:focus {
|
||||
background-color: #7a7a7a;
|
||||
|
|
Loading…
Reference in a new issue