<commit_before>//
// Messages
// --------------------------------------------------

.successmessage, .errormessage, .warningmessage, .infomessage,
span.successmessage, span.errormessage, span.warningmessage, span.infomessage, 
span.box { // Used by: Inline boxes and messages
  padding: floor(@font-size-base * 0.2);
}

.box, .plainmessage, // Used by: Code Macro, Success Macro, etc.
fieldset.xwikimessage { // Used by: Login form, Delete messages
  .well;
  overflow-x: auto;
}

.plainmessage {
  background-repeat: no-repeat;
}

.successmessage {
  .alert-success;
}

.errormessage {
  .alert-danger;
}

.warningmessage {
  .alert-warning;
}

.infomessage {
  .alert-info;
}

// --------------------------------------------------
// Error message
// --------------------------------------------------

// When the error is not inline, display it in a box
div.xwikirenderingerror {
  .box;
  margin-bottom: 0;
}

// In every cases, apply the DANGER styling from bootstrap
span.xwikirenderingerror, div.xwikirenderingerror {<commit_msg>XWIKI-13216: Don't display macro error message in standalone mode when macro is used inline.<commit_after>//
// Messages
// --------------------------------------------------

.successmessage, .errormessage, .warningmessage, .infomessage,
span.successmessage, span.errormessage, span.warningmessage, span.infomessage, 
span.box { // Used by: Inline boxes and messages
  padding: floor(@font-size-base * 0.2);
}

.box, .plainmessage, // Used by: Code Macro, Success Macro, etc.
fieldset.xwikimessage { // Used by: Login form, Delete messages
  .well;
  overflow-x: auto;
}

.plainmessage {
  background-repeat: no-repeat;
}

.successmessage {
  .alert-success;
}

.errormessage {
  .alert-danger;
}

.warningmessage {
  .alert-warning;
}

.infomessage {
  .alert-info;
}

// --------------------------------------------------
// Error message
// --------------------------------------------------

// When the error is not inline, display it in a box
div.xwikirenderingerror {
  .box;
  
  // Put the description box just after the error box, which has a 20px margin (see bootstrap/wells.less).
  & + .xwikirenderingerrordescription {
    margin-top: -20px;
  }
}

// In every cases, apply the DANGER styling from bootstrap
span.xwikirenderingerror, div.xwikirenderingerror {
{'fraction_non_alphanumeric': 0.23875432525951557, 'fraction_numerical': 0.006055363321799308, 'mean_word_length': 2.0676392572944295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7596328', 'n_tokens_mistral': 716, 'n_tokens_neox': 690, 'n_words': 186}