I really hope you're joking - although it's not funny at all.
If you're serious, you were incredibly rude, inappropriate and very unkind.
I suggest that you look for a new job and try to behave like a rational person in future.
By your own admittance, you wanted your Manager to feel self-conscious so ultimately, does this fit into your definition of this behavior being okay? Only you can know your intention behind this decision-making.