Hello,
You can also consider using the data-class Feature! You can use the following code to see how the buttons changes the Classes on Different Responsive Devices:
<a href="#" class="button" data-class-lg="button-large" data-class-md="" data-class-sm="button-xlarge" data-class-xs="button-small" data-class-xxs="button-mini">Button</a>
Make sure that you define all the Responsive Classes attributes for all Devices to make sure that they work uniformly on all Devices.
So consider using the following code for the Containers:
<div class="clearfix" data-class-lg="container" data-class-md="container" data-class-sm="container" data-class-xs="container-fluid" data-class-xxs="container-fluid">
...
</div>
This should surely work fine. Let us know if we can help you with anything else or if you find any other issues.