1. Christoffer Niska
  2. yii-bootstrap

Commits

Christoffer Niska  committed 7d55119

fixed validation styles for horizontal forms

  • Participants
  • Parent commits caf2747
  • Branches default

Comments (0)

Files changed (2)

File assets/css/bootstrap-yii.css

View file
   width:160px;
 }
 span.required { color:#ff0000; }
-.form-inline label.error, .form-vertical label.error { color:#b94a48; }
-.form-inline select.error, .form-inline input.error, .form-inline textarea.error, .form-vertical select.error, .form-vertical input.error, .form-vertical textarea.error {
+.form-inline label.error, .form-horizontal label.error, .form-vertical label.error { color:#b94a48; }
+.form-inline select.error, .form-inline input.error, .form-inline textarea.error, .form-horizontal select.error, .form-horizontal input.error, .form-horizontal textarea.error, .form-vertical select.error, .form-vertical input.error, .form-vertical textarea.error {
   border-color:#b94a48;
   color:#b94a48;
 }
-.form-inline select.error:focus, .form-inline input.error:focus, .form-inline textarea.error:focus, .form-vertical select.error:focus, .form-vertical input.error:focus, .form-vertical textarea.error:focus {
+.form-inline select.error:focus, .form-inline input.error:focus, .form-inline textarea.error:focus, .form-horizontal select.error:focus, .form-horizontal input.error:focus, .form-horizontal textarea.error:focus, .form-vertical select.error:focus, .form-vertical input.error:focus, .form-vertical textarea.error:focus {
   border-color:#953b39;
   -webkit-box-shadow:0 0 6px #d59392;
   -moz-box-shadow:0 0 6px #d59392;
   box-shadow:0 0 6px #d59392;
 }
-.form-inline .help-block.error, .form-inline .help-inline.error, .form-vertical .help-block.error, .form-vertical .help-inline.error { color:#b94a48; }
+.form-inline .help-block.error, .form-inline .help-inline.error, .form-horizontal .help-block.error, .form-horizontal .help-inline.error, .form-vertical .help-block.error, .form-vertical .help-inline.error { color:#b94a48; }

File assets/less/bootstrap-yii.less

View file
 }
 
 .form-inline,
+.form-horizontal,
 .form-vertical {
 	label.error {
 		color: #B94A48;