Shorts, or short pants, were a type of short-legged pants worn in recreational or warm environments.
In 1986, a Human male jogger wore shorts while jogging in Golden Gate Park. (Star Trek IV: The Voyage Home)
In 2367, Q wore shorts as part of an archaelogical costume when suggesting he take Jean-Luc Picard to the ruins at Tagus III. (TNG: "Qpid")