/CSS-one-liners

This repo caontains list of CSS one-liners that can save you multiple lines of writing code and time

MIT LicenseMIT

CSS One-Liner Banner

CSS One-Liners

Having followed some projects over time, I discovered there were CSS properties that could have saved us from writing longer lines of CSS.

Being a beginner advocate of DRY code, I try my possible best to keep my codes short, simple and clean. That was what brought about this open source project.

I know there are so many CSS one-liners out there and I'd love to have them in one repo for everyone to have access to.

Your contribution will be highly appreciated.

The template for contribution has been added to the format.md file.


Steps on How to Contribute

  1. Fork the project repository into your github account.

  2. Click the green Clone button and then copy the HTTPS URL.

  3. Using Git on your local machine, clone your fork using the URL you just copied i.e git clone THE URL YOU FORKED INTO YOUR ACCOUNT.

  4. Navigate to your local repository i.e cd CSS One-Liners.

  5. Add the project repository as the "upstream" remote i.e git remote add upstream https://github.com/jhhornn/CSS-one-liners.git.

  6. Pull the latest changes from upstream into your local repository i.e git pull upstream main.

  7. Create and switch to a new branch with your name ( git checkout -b YOURNAME_NAME ).

  8. Start the working directory with vs code to make changes by opening git bash in that folder and typing in code .

  9. Make changes in your local repository (css one-liner.md)

  10. Stage your changes i.e git add -A

  11. Commit your changes i.e git commit -m "your_name"

  12. Push your changes to your fork i.e git push origin BRANCH_NAME

  13. Go to github,reload your page to begin pull request. Click on compare and pull button

  14. Scroll down to click COMPARE AND PULL button to create a pull request

  15. Check if all the requests pass and wait for us to merge into main

Thank you for contributing