[dokuwiki] Re: Different css for text elements

  • From: Dennis Heuer <einz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 7 Jan 2018 00:53:10 +0100

On Sun, 7 Jan 2018 01:02:09 +0300
"Zen-Do.Ru" <admin@xxxxxxxxx> wrote:

I searched for "custom syntax" and found something interesting:

https://www.dokuwiki.org/plugin:div_span_shorthand
https://www.dokuwiki.org/plugin:command
etc.

Well, the one is overload, and the other is "not yet tested" and not
maintained. However, I might just modify the anchor-plugin. It can also
nest and classify content.

I'm not sure what do you mean by "to sign the content as such". 
Definitely if you use proper CSS selectors they will work. For
example, in your custom *.css you write:

td.my_class {
   text-align: right !important;
}

and then all the table cells (td) with that class will get 
right-aligned, and that does not get overwritten because of "!
important". And even without "!important", a tag with a class might
be specific enough to retain its style.

My knowledge of the css-inheritance-model is not so good yet. I'm just
reading it right now and wonder. For example, the text-decoration
property of a div-element dominates all child elements except of
"atomic" ones. This is freaky because i'd expect it to only inherit
base values that can be overwritten by the individual child elements
(only set what's individual!). I also don't get the point. If I want to
bind all the child elements to a single configuration, I can do this
with a selector in the header. However, the way it is, I actually might
be able to use a div to override the config of an inner table. If
not, the table itself must get an ID, class or role. That is what I
meant. Have to check this all out!


Vale!
--常照

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist


Regards,
---------------------------------------------------------------------
Dennis Heuer
einz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: