// submit button
var $submitForm = $('<div class="formSubmit" />').appendTo(this._dialog);
- $('<button>' + WCF.Language.get('wcf.global.button.submit') + '</button>').appendTo($submitForm).click($.proxy(this._submit, this));
+ $('<button class="buttonPrimary">' + WCF.Language.get('wcf.global.button.submit') + '</button>').appendTo($submitForm).click($.proxy(this._submit, this));
},
/**
this._container.show().css('opacity', 1.0);
}
+ if (this._content.find('.formSubmit').length) {
+ this._content.addClass('dialogForm');
+ }
+ else {
+ this._content.removeClass('dialogForm');
+ }
+
// calculate dimensions
var $windowDimensions = $(window).getDimensions();
var $containerDimensions = this._container.getDimensions('outer');
color: @wcfColor;
overflow: auto;
padding: 10px 20px 20px;
-
- .borderRadius(0, 7px);
+
+ &.dialogForm {
+ margin-bottom: 49px;
+ }
+
+ &:not(.dialogForm) {
+ .borderRadius(0, 7px);
+ }
&.overlayLoading {
background-image: url(../icon/spinner.svg);
background-repeat: no-repeat;
background-size: 32px;
}
+
+ dl:not(.plain) {
+ > dt {
+ width: 170px;
+ }
+
+ > dd {
+ margin-left: 190px;
+ }
+ }
+
+ .formSubmit {
+ background-color: @wcfContainerAccentBackgroundColor;
+ border-top: 1px solid @wcfContainerBorderColor;
+ bottom: 0;
+ left: 0;
+ padding: 10px 0;
+ position: absolute;
+ width: 100%;
+
+ .borderRadius(0, 0, 7px, 7px);
+ }
}
.dialogOverlay {