View Single Post
Old 01-26-2020, 10:47 AM   #13
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,368
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by hobnail View Post
On the other hand, in your example it also looks like within each selector the declarations / properties are sorted, e.g. widows comes after font-size. That I like to do.
If there is any alphabetical order it is purely coincidental. The only thing I intentionally do is create a 'base/default' definition, then I will modify that for specific situations.
eg:
Spoiler:
Code:
/* Blockquote section styles */
/* Default */
blockquote   {margin:2em; text-align:left; text-indent:0}
blockquote p {text-indent:0; margin:0 0 .75em; font-size:0.95em}

/* Custom */
blockquote.grave p  {font-weight:bold; text-align:center}
blockquote.book p   {text-align:justify}
blockquote.verse p  {margin-bottom:.25em; font-style:italic}

I typically will just copy/paste a previous style definition then make mods as needed. That may be why the order of style definitions is similar between selectors. When I am done editing a book I use the cssRemoveUnusedSelectors plugin to get rid of anything I don't need in that book. It also reformats the stylesheet to make it look pretty, but it doesn't rearrange anything.
Turtle91 is offline   Reply With Quote