Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hands on 2 #12

Open
mjuniper opened this issue Mar 7, 2016 · 0 comments
Open

Hands on 2 #12

mjuniper opened this issue Mar 7, 2016 · 0 comments

Comments

@mjuniper
Copy link
Collaborator

mjuniper commented Mar 7, 2016

Make some CSS/SASS changes

  1. If the app is not already running, run gulp serve.
  2. Create a local "feature branch": git checkout -b sass-edits
  3. Edit /app/styles/_variables.scss. For instance, you could change the $body-bg variable to another color.
  4. Note that the SASS was compiled to CSS and reloaded in the browser.
  5. In the running app, navigate to the search results page by doing a search for "water".
  6. 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.
  7. Note that the SASS was compiled to CSS and reloaded in the browser.
  8. Add and commit your changes to your branch: git add . && git commit -m "sass changes"
  9. Switch to the master branch: git checkout master
  10. Note that you no longer see your changes in the app - your changes are in your feature branch, not master.
  11. Merge your branch into master: git merge sass-edits
  12. Note that your changes are now in the master branch - you see them in the app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant