![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Make the tags of an entry be classes on the entry
Title:
Make the tags of an entry be classes on the entry
Area:
styles, entries
Summary:
Apply the tags assigned to an entry as classes to the entry as well. This will allow a user to put custom CSS to style all of their entries tagged a certain way (e.g. recipe, story, art) the same.
Description:
I have sometimes come across people who like to post some subset of their entries, usually their fanfiction, in ways that I find not very readable, mostly to do with spacing, sometimes they feel the need to set the story font, or they want colors in the heading or something.
If the entries of that type all had a class applied to them, the person could use custom CSS to style the entry as they liked when they were looking at it or when someone was looking at it in its original style, but when I switched to my style, all of their styling would go away, as is not now the case when I apply Firefox's "No style" function to a page where styling has been directly applied.
The main difficulty would be advertising that the feature exists so that people could take advantage of it. Also, it would add to the length of journal pages, making them longer to download than they are now.
This suggestion:
Should be implemented as-is.
23 (63.9%)
Should be implemented with changes. (please comment)
1 (2.8%)
Shouldn't be implemented.
3 (8.3%)
(I have no opinion)
8 (22.2%)
(Other: please comment)
1 (2.8%)
no subject
* should be prepended with "tag-", or something
* non-alphanumeric characters should be replaced with an underscore, to make them valid css identifiers. Escaped unicode is also an option, but slightly more complicated, heh :-)
so, "bugzilla: migrated" should have a class "tag-bugzilla__migrated" or even "tag-bugzilla_migrated".
no subject
no subject
no subject
no subject
I'm not against it, just pointing out it may have some learning curve issues.
no subject
no subject
no subject
no subject
This is especially true of only partially defined changes--people changing the font colour to a dark blue works fine on their light background, but is unreadable on my necessarily dark background, etc
Auto formatting with CSS is a very nifty trick that I like lots. Hmm, wonder if it could be hacked into a layer anyway.
no subject
no subject
no subject
no subject
I used to do this sort of thing when I was blogging semi-seriously, but had to hand code the 'class=news' and 'class=LOL' code into each post, this would both be a lot easier, be less likely for me to forget and allow me to go back and amend all my old entries easily, which would be nice.
no subject
no subject
no subject
And while that's bad enough to do to your own personal view of a post, changing everybody's view makes it catastrophically unstable.
no subject
The CSS file which would affect an entry writer's tags would be the CSS they write in the wizard, or a link to a CSS file they host elsewhere. The CSS in their user layer is treated as a text string. AFAIK, the system doesn't touch it or reorder it, just reprints it. So the power and responsibility of using this new tag wisely would be up to the individual, as we want as many style decisions as possible to be.
(the reordering of the user layer that has been put into bugzilla affects the order of style variables. For the purposes of s2, custom CSS is a single text string variable. Any ordering should not affect it.)