10up / wp-scaffold

10up WordPress project scaffold.
MIT License
184 stars 46 forks source link

Enhance css reset #211

Open joesnellpdx opened 4 months ago

joesnellpdx commented 4 months ago

Description of the Change

This pull request adds a new CSS file named reset.css. This file is used to enhance our existing reset.

Some file structure names were altered and names changed for the primary files in frontend.css

Styles added to the reset.css file:

These styles were tested locally and work as expected.

Closes #210

How to test the Change

Once styles are loaded into a project, you can test each enhancement individually.

Assuming no custom styles added

  1. All text will be the same font (style, weight, etc)
  2. No margin or padding will exist
  3. You can add @media (prefers-color-scheme: [dark or light]) {} media queries to test styles based on chosen color scheme
  4. You can add a large paragraph wrapped in quotes, and the quotes to hang (text vertically aligned left and right) by default
  5. If you select the body element - it will grow to fit the entire viewport height - even on mobile devices
  6. This should be basic
  7. Headings should evenly balance across multiple lines (on supporting browsers)
  8. Paragraphs should not leave an orphan word when spanning multiple lines (on supporting browsers)
  9. Smooth scrolling will animate the browser scrolling when a user clicks an element linking to a different section on the same page. This will also work within modals.

Changelog Entry

Added - Custom CSS Reset enhancements, new CSS folder, custom-selectors.css Changed - Existing CSS directories in frontend

Credits

Checklist: