Combine all ingredients in a small saucepan
Cook over medium-high heat until the mixture reaches a simmer.
Place the thinly-sliced onions in a mason jar.
Pour the hot vinegar mixture over the onions, screw on the lid, and shake the onions briefly until they are evenly coated with the vinegar mixture.
Marinate. Let the onions marinate for 30 minutes. (You may need to press the onions down with a spoon so that they are all submerged under the vinegar mixture.)
Serve immediately, or refrigerate the onions in a sealed container for up to 2 weeks.