Well, not exactly. Let’s just say that when Rome has spoken on the subject, it has been in favor of modesty greater in general than what was to be found in the pagan world at large, but particular for clothing worn to Mass. Here is an example:
“…one cannot sufficiently deplore the blindness of so many women of every age and condition; made foolish by desire to please, they do not see to what a degree the in decency of their clothing shocks every honest man, and offends God. Most of them would formerly have blushed for those toilettes as for a grave fault against Christian modesty; now it does not suffice for them to exhibit them on the public thoroughfares; they do not fear to cross the threshold of the churches, to assist at the Holy sacrifice of the Mass, and even to bear the seducing food of shameful passions to the Eucharistic Table where one receives the heavenly Author of purity. And We speak not of those exotic and barbarous dances recently imported into fashionable circles, one more shocking than the other; one cannot imagine anything more suitable for banishing all the remains of modesty.”
SACRA PROPEDIEM, Papal Encyclical of Pope Benedict XV, 1921
Suffice it to say that while women were showing a substantial amount of leg in 1921, they hadn’t gotten to the point they were wearing shorts to Mass that were 4 inches above their kneecaps.
No one is allowed in St. Peters in shorts, not even the men, not even outside of Mass, no matter how hot the weather gets. Period.