I made a mistake when trying to align the caliper to correct for the disc rubbing against the brake pads. Instead of unscrewing the bolts mounting the caliper body to allow adjustment, I unscrewed the bolts holding the caliper together - loosening the caliper body itself, but not entirely taking it apart (as you can see I'm very new to this - please be gentle).
Not yet realising my mistake I pumped the brakes a few times to align the caliper, which caused brake fluid to leak. I subsequently tightened the bolts, and tested the brake which now held no pressure.
I am guessing the issue now is that I've either drained the fluid or introduced air to the system. However, given the issues I caused before I wanted to seek advice before botching it any further!
Any advice on what might now be the issue, and how to diagnose then fix it, would be hugely appreciated!
It is a (no longer functioning) Avid Elixir 1 disc brake.