You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the app is not already running, run gulp serve.
Create a local "feature branch": git checkout -b sass-edits
Edit /app/styles/_variables.scss. For instance, you could change the $body-bg variable to another color.
Note that the SASS was compiled to CSS and reloaded in the browser.
In the running app, navigate to the search results page by doing a search for "water".
Add new page-specific nested rules in the /app/styles/results.scss file. For instance, you might add a rule to change the color of the h2. Note that the rule for the h2 is nested inside #page-results.
Note that the SASS was compiled to CSS and reloaded in the browser.
Add and commit your changes to your branch: git add . && git commit -m "sass changes"
Switch to the master branch: git checkout master
Note that you no longer see your changes in the app - your changes are in your feature branch, not master.
Merge your branch into master: git merge sass-edits
Note that your changes are now in the master branch - you see them in the app.
Make some CSS/SASS changes
gulp serve.git checkout -b sass-edits/app/styles/_variables.scss. For instance, you could change the$body-bgvariable to another color./app/styles/results.scssfile. For instance, you might add a rule to change the color of theh2. Note that the rule for theh2is nested inside#page-results.git add . && git commit -m "sass changes"masterbranch:git checkout mastergit merge sass-edits