Index: lams_tool_assessment/web/includes/css/addQuestion.scss =================================================================== diff -u -ra0aa698e675b0a2eb89e51cf645156ade0f93d64 -r629116ce2b6bac35146c7b90b668dbc5f887eb69 --- lams_tool_assessment/web/includes/css/addQuestion.scss (.../addQuestion.scss) (revision a0aa698e675b0a2eb89e51cf645156ade0f93d64) +++ lams_tool_assessment/web/includes/css/addQuestion.scss (.../addQuestion.scss) (revision 629116ce2b6bac35146c7b90b668dbc5f887eb69) @@ -4,11 +4,6 @@ display:none; } -em { - font-weight: bold; - padding-right: 1em; - vertical-align: top; -} #content { width: 91%; margin-bottom: 10px; @@ -92,33 +87,34 @@ } #title { - width: 100%; height: 34px; font-weight: bold; } #title-container, div.error { padding-right: 80px; } -/*Style for text input fields*/ -.borderless-text-input { +/*Style for text input fields. Rule does not apply in case this input has an error*/ +:not(.has-error) > input.borderless-text-input{ border: 0; + box-shadow: none; + padding: 0; } /* Remove bold style from title field */ -.borderless-text-input::-webkit-input-placeholder { +input.borderless-text-input::-webkit-input-placeholder { font-weight: normal; color:#999; } -.borderless-text-input::-moz-placeholder { +input.borderless-text-input::-moz-placeholder { font-weight: normal; color:#999; } -.borderless-text-input:-ms-input-placeholder { +input.borderless-text-input:-ms-input-placeholder { font-weight: normal; color:#999; } -.borderless-text-input:-o-input-placeholder { +input.borderless-text-input:-o-input-placeholder { font-weight: normal; color:#999; } @@ -382,4 +378,17 @@ .switch-slider.round:before { border-radius: 50%; -} \ No newline at end of file +} + +/*----------Modifications to bootstrap-toggle----------------*/ +.toggle.btn-xs { + min-width: 59px; +} + +/*----------Validation rules----------------*/ +#title-container .form-control-feedback { + right: 80px; +} +.col-sm-9.has-feedback .form-control-feedback { + left: 80px; +}