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

Fixed README.md #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# Purpose

I plan to move theme [pelican-elegant](https://github.com/talha131/pelican-elegant/) from bootstrap to postcss. Unfortunately a lot of styles used in the theme are dependent on the specific version of the bootstrap I used.
I plan to move the theme [pelican-elegant](https://github.com/talha131/pelican-elegant/) from bootstrap to postcss. Unfortunately a lot of styles used in the theme are dependent on the specific version of the bootstrap I used, which makes it hard to maintain.

I intend to use this project to extract relevant CSS rules and use it in my theme.
I intend to use this repository to extract relevant CSS rules and use it as a rebirth of the Pelican Elegant theme.

For example,

1. I want to figure what CSS rules are in use to display top navigation menu as it is
1. Remove all the code from `<body>` of index.html but leave top navigation menu code
1. Run `npm run uncss -- index > menu.css`.

It will place all the rules used in index.html in menu.css file. Ass we have removed everything but the menu from the index.html, menu.css will only contain the rules that are used for navigation menu.
It will place all the rules used in index.html in menu.css file. As we have removed everything but the menu from the index.html, menu.css will only contain the rules that are used for navigation menu.

# Commands

1. `npm run server` to view website in browser
1. `npm run uncss -- <filename>` to run uncss on a file