Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

296 B
Raw Blame
#!/usr/bin/env bash
# Hackish tool for attempting to find unused IDs / classes in our CSS

for n in $(perl -lne 'print $1 while /[#.]([a-zA-Z0-9_-]+)/g' web/styles/zulip.css | sort -u); do
    if [ "$(git grep "$n" | grep -cv '^web/styles/zulip.css')" -eq 0 ]; then
        echo "$n"
    fi
done