There's no way to use CSS for this purpose. My advice is to include a javascript code where you assign or change the css class applied to the inputs. Something like that :
function change_input() {_x000D_
$('#id_input1')_x000D_
.toggleClass('class_disabled')_x000D_
.toggleClass('class_enabled');_x000D_
_x000D_
$('.class_disabled').attr('disabled', '');_x000D_
$('.class_enabled').removeAttr('disabled', '');_x000D_
}
_x000D_
.class_disabled { background-color : #FF0000; }_x000D_
.class_enabled { background-color : #00FF00; }
_x000D_
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>_x000D_
<form> _x000D_
Input: <input id="id_input1" class="class_enabled" /> _x000D_
<input type="button" value="Toggle" onclick="change_input()";/> _x000D_
</form>
_x000D_