Merge pull request #7566 from guerler/fix_help_warnings

[19.01] Fix help warnings style
This commit is contained in:
John Chilton
2019-03-20 16:06:37 -04:00
committed by GitHub
3 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ export default Backbone.View.extend({
.append(
$("<div/>")
.addClass("ui-form-field")
.append($("<span/>").addClass("ui-form-info form-text text-muted"))
.append($("<span/>").addClass("ui-form-info form-text text-muted mt-2"))
.append($("<div/>").addClass("ui-form-backdrop"))
)
.append($("<div/>").addClass("ui-form-preview"));
@@ -267,8 +267,7 @@ export default FormBase.extend({
/** Templates */
_templateHelp: function(options) {
var $tmpl = $("<div/>")
.addClass("form-help")
.addClass("form-text")
.addClass("form-help form-text mt-4")
.append(options.help);
$tmpl.find("a").attr("target", "_blank");
$tmpl.find("img").each(function() {
+9 -9
View File
@@ -840,9 +840,9 @@ button {
.warningmessagelarge,
.donemessagelarge,
.infomessagelarge,
.ui-form-help .error,
.ui-form-help .warning,
.ui-form-help .note {
.form-help .error,
.form-help .warning,
.form-help .note {
@extend .alert;
min-height: 36px;
padding-left: 52px;
@@ -891,9 +891,9 @@ button {
.warningmessagesmall,
.donemessagesmall,
.infomessagesmall,
.ui-form-help .error,
.ui-form-help .warning,
.ui-form-help .note {
.form-help .error,
.form-help .warning,
.form-help .note {
@extend .alert;
padding: 5px;
padding-left: 25px;
@@ -907,13 +907,13 @@ button {
.errormessage,
.errormessagesmall,
.ui-form-help .error {
.form-help .error {
@extend .alert-danger;
}
.warningmessage,
.warningmessagesmall,
.ui-form-help .warning {
.form-help .warning {
@extend .alert-warning;
background-image: url(../../images/warn_small.png);
}
@@ -926,7 +926,7 @@ button {
.infomessage,
.infomessagesmall,
.ui-form-help .note {
.form-help .note {
@extend .alert-info;
background-image: url(../../images/info_small.png);
}