#errorExplanation { @extend .alert; @extend .alert-danger; & > h2 { margin-top: 0; font-size: $font-size-h4; font-weight: bold; } & > ul { margin-top: 5px; } } .field_with_errors { @extend .has-error; }