this._container.addClass('dropdown');
this._link = this._container.children('a').remove();
- $('<a class="dropdownToggle jsTooltip" title="' + this._container.data('title') + '">' + this._link.html() + '</a>').appendTo(this._container).click($.proxy(this._click, this));
+ $('<a class="dropdownToggle">' + this._link.html() + '</a>').appendTo(this._container).click($.proxy(this._click, this));
var $dropdownMenu = $('<ul class="dropdownMenu" />').appendTo(this._container);
$('<li class="jsDropdownPlaceholder"><span>' + WCF.Language.get('wcf.global.loading') + '</span></li>').appendTo($dropdownMenu);
/* default values */
.badge {
background-color: @wcfColor;
- border-radius: 13px;
color: @wcfContentBackgroundColor;
display: inline-block;
- font-size: @wcfSmallFontSize;
- font-weight: normal !important;
- padding: 1px 8px 2px;
+ font-size: 11px;
+ font-weight: bold;
+ padding: 1px 6px 1px;
position: relative;
text-shadow: none !important; /* necessary to avoid ugly text shadows in comment lists; @todo: better solution without "!important" */
+ vertical-align: middle;
white-space: nowrap;
+ .borderRadius(9px);
+
+ &.label {
+ font-weight: normal;
+ }
+
/* colors */
&.badgeUpdate {
background-color: @wcfTabularBoxBackgroundColor;
background-color: #c09;
}
}
-
-/* special */
-.containerHeadline > h1 > .badge {
- font-size: 70%;
- top: -1px;
-}
-
-.boxHeadline > hgroup > h1 .badge {
- font-size: 50%;
- top: -3px;
-}
-
-.boxSubHeadline > hgroup > h1 .badge {
- font-size: 60%;
-}
-
-.tabularBoxTitle > hgroup > h1 > .badge {
- font-size: 70%;
- top: -1px;
-}
-
-fieldset > legend > .badge {
- font-size: 50%;
- top: -3px;
-}
display: block;
height: 20px;
padding: 10px 8px;
- position: relative;
.textShadow(@wcfUserPanelBackgroundColor);
.transition(background-color, .2s);
> .badge.badgeInverse {
background-color: @wcfTabularBoxBackgroundColor;
color: @wcfTabularBoxColor;
- padding: 0 6px 1px;
- position: absolute;
- bottom: 4px;
- left: 24px;
- z-index: 300;
+ }
+
+ > img {
+ position: relative;
+ top: -2px;
}
}
> .framed > img {
- padding: 0px;
margin-top: -2px;
margin-bottom: -2px;
+ padding: 0px;
+ top: 0;
}
}
}
color: @wcfMainMenuActiveColor;
text-decoration: none;
}
-
- > .badge {
- font-size: 70%;
- top: -1px;
- }
}
&.active {
min-width: 80px;
padding: 14px 21px 8px;
text-align: center;
-
- > .badge {
- font-size: 60%;
- top: -2px;
- }
}
}
&.navigationMenuItems {
> li {
display: inline-block;
-
- > .badge {
- top: -1px;
- }
}
}
}
> hgroup > h1 {
font-size: @wcfTitleFontSize;
font-weight: bold;
-
- > .badge {
- font-size: 70%;
- top: -2px;
- }
}
> ol {
> .badge {
float: right;
- font-size: 75%;
- top: 3px;
}
> a {