View Single Post
Old 07-17-2022, 04:25 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,665
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DaveLessnau View Post
Can someone explain the point of the following class/style?
Code:
.element-container-single.element-type-also-by .heading .title-subtitle-block, .element-container-single.element-type-also-by .heading .title-subtitle-block .title-block, .element-container-single.element-type-also-by .heading .title-subtitle-block .element-number-block, .element-container-single.element-type-about-author .heading .title-subtitle-block, .element-container-single.element-type-about-author .heading .title-subtitle-block .title-block, .element-container-single.element-type-about-author .heading .title-subtitle-block .element-number-block {
  padding-top: 0;
}
Maybe I'm misunderstanding how these are supposed to work. But, I thought the various names (separated by commas) before the curly brackets were different ways of referring to the same formatting. So, if I'm reading that correctly, there are 6 different ginormous names for the same trivial bit of formatting (padding-top: 0). Why do that instead of just making a class called something like "notoppad"? Is it because w3c wants people to use semantically named classes instead of structural names?
If you look through the CSS, you are likely to find many of the names in multiple places. In your example, all the styles with padding-top: 0 are included. Another location might have all the styles with text-align: center or whatever else. For human use, I prefer individual style names with all the options which I find easier to read.

Yes, Vellum stylesheets are not meant to be humanly readable.

Last edited by DNSB; 07-17-2022 at 04:30 PM. Reason: Added nasty about Vellum stylesheets
DNSB is offline   Reply With Quote