Utilities
Filename: _utilities.scss
In this file, we will add all customization code that uses the utility API. Some utilities have already been customized because their values are based on variables from the _variables.scss
file, which we have already been overriding earlier in this chapter. This includes the spacing utilities and various text utilities. Additional customization requires code using the utility API.
Before modifying any utilities with the utility API, we should consider which utilities, of those we are already using, are not adequate or flexible enough in their current form, and then modify them.
For our website, we will improve two things on the Cart page. First, we want to improve the responsive layout of the elements in the Products overview in the Shopping Cart tab pane by using more flexible sizing utilities. Second, we want to adjust our existing use of borders on the <div>
element that wraps around our Products overview in the Summary section...