It is indeed mentioned in the light novel.
(All the excerpt from the light novel quoted onwards are from Baka-Tsuki)
From Volume 2 - Chapter 7, during the scene where Tatsuya was called to the Counseling Room by Ono Haruka (emphasis mine):
[...] Haruka's smile grew a little forced as she crossed her legs.
Beneath the mini-skirt, the derriere wrapped in silk stockings could almost be seen.
[...]
According to modern decorum, it was advisable to keep revealed flesh to a minimum.
Because women usually wore thick stockings that covered everything beneath their dresses, even when exuding maturity, this sight was quite stimulating to the eyes. [...]
Speaking of which, she was also wearing a rather open shirt, where the lines of the undergarments could be seen.
For a faculty member to wear this in front of a student was overly flirtatious.
From Volume 3 - Chapter 1, after the ball game in physical education class, when Tatsuya and Mikihiko made acquaintance with each other and Erika came by to chat:
In 2095 AD, fashion and proper decorum demanded that any trace of exposed flesh be covered in public. Since school was considered a public environment, even if it was in summer, women were still obligated to wear jackets and a colorless, impenetrable pair of tights or leggings beneath their dresses.
That being said, these rules didn't apply to athletic uniforms, so athletic clubs suffered no penalty or criticism for revealing their hands or legs with their uniform, and physical education classes were also not bound by this rule. For example, Tatsuya and the other male students were currently wearing shorts that did not extend to their knees while Mizuki was wearing a fairly long pair of rhythm pants, which was the standard uniform for physical education.
On the other hand, Erika was......
Both of her legs were completely uncovered.
From the thighs down, everything was revealed to the sweltering summer air. Her pants had no length to speak of whatsoever. Finally, the T-shirt she wore barely extended over the pants, giving the impression she was wearing only her underwear.
It is also again mentioned in Volume 3 - Chapter 4, during the scene where Mayumi turned up late in her summer dress and asked Tatsuya of his thought about her appearance.
The characters' consciousness towards the dress code is also shown indirectly through Hattori and Mayumi's expression in the scene slightly after when they are on the bus, where Hattori offered Mayumi a blanket to cover herself up.
And the issue is brought up again a bit later into the same chapter when Tatsuya and Miyuki arrived at the hotel, where they met Erika and Mizuki in "revealing" outfit (according to the standard in Mahouka's world).