Skip to content

A simple python script to read in a CSS file and reorder the elements in alphabetical order. It keeps the original CSS and creates a new one with -sorted appended to the file name.

License

Notifications You must be signed in to change notification settings

TheRubberPig/CSSAlphabetizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSSAlphabetizer

A lightweight python script to read in a CSS file and reorder the elements in alphabetical order. It keeps the original CSS and creates a new one with -sorted appended to the file name.

Currently the python script has to be ran in the same location as the desired css file for the script to work.

The script also can't perfom any extra sorting right now, i.e: descending or sorting class element differently to tag elements.

How to run:

  • Drop the python script into the directory where the CSS file is located
  • Open a command window
  • Run the command cssSorter.py -i (inputfile name) -o (outputfile name)
  • Check the directory for your new Alphabetised CSS file!

About

A simple python script to read in a CSS file and reorder the elements in alphabetical order. It keeps the original CSS and creates a new one with -sorted appended to the file name.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published