Here is the sentence:
Madeline admired her nails, which were painted pink with gold sparkles.
You rule! Which were painted pink with gold sparkles, an adjective clause, comes right after nails, its logical target.
You rule! Which were painted pink with gold sparkles, an adjective clause, comes right after nails, its logical target.