In my current project, I am working with 2 CSS files. The first one serves as a "default" style sheet that is used in all websites created from the same templates. The second file contains the specific styles for our application. Both of these files are included in the main master page.
Recently, I noticed that someone had either copied over or redefined some similar styles. For example, both files contain the declaration
.aligndroite {text-align: right;}
, although the formatting differs between the two (the first on one line, and the second on three lines).
While this duplication isn't too problematic, I would like to clean up the codebase by removing any styles that are declared multiple times.
Is there a tool available that can compare both files and identify which declarations are present in both? Ideally, I'm looking for a way to streamline the process and eliminate any redundant styles.
I came across a link to a tool that supposedly compares CSS files, but upon further investigation, it turns out that it actually does the opposite of what I need. So, I'm still on the lookout for a suitable solution.