It seem that I am not using these features correctly.
I put the code you provided in the custom.css section of custom code (template manager
I place the page class in the module. screenshot
The custom.css file is activated screenshot
Please take a look and let me know.