define('jquery', [], function() { return window.jQuery; });
$.holdReady(true);
- require(['WoltLab/WCF/Bootstrap'], function(bootstrap) {
- bootstrap.setup();
+ require(['WoltLab/WCF/BootstrapFrontend'], function(BootstrapFrontend) {
+ BootstrapFrontend.setup();
});
</script>
[
'jquery', 'favico', 'enquire', 'WoltLab/WCF/Date/Time/Relative',
'UI/SimpleDropdown', 'WoltLab/WCF/UI/Mobile', 'WoltLab/WCF/UI/TabMenu', 'WoltLab/WCF/UI/FlexibleMenu',
- 'UI/Dialog', 'WoltLab/WCF/UI/Tooltip', 'WoltLab/WCF/Controller/Sitemap'
+ 'UI/Dialog', 'WoltLab/WCF/UI/Tooltip'
],
function(
$, favico, enquire, relativeTime,
simpleDropdown, UIMobile, UITabMenu, UIFlexibleMenu,
- UIDialog, UITooltip, ControllerSitemap
+ UIDialog, UITooltip
)
{
"use strict";
/**
* @constructor
*/
- function Bootstrap() { }
+ function Bootstrap() {}
Bootstrap.prototype = {
/**
* Initializes the core UI modifications and unblocks jQuery's ready event.
UIDialog.setup();
UITooltip.setup();
- ControllerSitemap.setup();
-
$.holdReady(false);
}
};
--- /dev/null
+/**
+ * Bootstraps WCF's JavaScript with additions for the frontend usage.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2015 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @module WoltLab/WCF/BootstrapFrontend
+ */
+define(['WoltLab/WCF/Bootstrap', 'WoltLab/WCF/Controller/Sitemap'], function(Bootstrap, ControllerSitemap) {
+ "use strict";
+
+ /**
+ * @constructor
+ */
+ function BootstrapFrontend() {}
+ BootstrapFrontend.prototype = {
+ /**
+ * Bootstraps general modules and frontend exclusive ones.
+ */
+ setup: function() {
+ Bootstrap.setup();
+ ControllerSitemap.setup();
+ }
+ };
+
+ return new BootstrapFrontend();
+});
\ No newline at end of file
line-height: @wcfBaseLineHeight;
> .tabMenu {
+ margin-top: @wcfGapLarge;
+
> ul {
font-size: 0;
white-space: nowrap;
}
.dialogContentNoPadding .tabMenuContainer {
- > nav > ul > li {
- border-top-width: 0;
+ > nav {
+ margin-top: 0;
- &:first-child {
- border-left-width: 0;
+ > ul > li {
+ border-top-width: 0;
+
+ &:first-child {
+ border-left-width: 0;
+ }
}
}