https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-03-30T15:44:45ZRedmineRedmine - Feature #3074: Indention in Wiki of headings and corresponding content based on heading-depthhttps://www.redmine.org/issues/3074?journal_id=83452009-03-30T15:44:45ZPaul Rivier
<ul></ul><p>If you ask me, I'd say I really don't want the style you described. Tree-like indentation is helpful for discussion threads and many other uses, but I do not think it should be used for wiki page content :)</p> Redmine - Feature #3074: Indention in Wiki of headings and corresponding content based on heading-depthhttps://www.redmine.org/issues/3074?journal_id=83472009-03-30T16:14:48ZMischa The Evil
<ul></ul><p>Paul Rivier wrote:</p>
<blockquote>
<p>If you ask me, I'd say I really don't want the style you described. Tree-like indentation is helpful for discussion threads and many other uses, but I do not think it should be used for wiki page content :)</p>
</blockquote>
<p>I'm a heavy user of <a href="http://www.dokuwiki.org" class="external">DokuWiki</a> which incorporates this feature. I personally like it and think the readability get improved as such. Though I understand this is an opinion that can vary among people...</p>
<p>Maybe if the selectors are precise enough this could be implemented (and supported) as a variation of the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/ThemeDefault">default-theme</a>, as an independent theme. I've been looking at something earlier for issuelist colouring only (thus not duplicating the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/ThemeAlternate">alternate-theme</a>).</p>
<p>Kind regards,</p>
<p>Mischa.</p> Redmine - Feature #3074: Indention in Wiki of headings and corresponding content based on heading-depthhttps://www.redmine.org/issues/3074?journal_id=579692014-08-09T09:55:17ZFriedrich Schiller
<ul></ul><p>Mischa The Evil wrote:</p>
<blockquote>
<p>Paul Rivier wrote:</p>
<blockquote>
<p>If you ask me, I'd say I really don't want the style you described. Tree-like indentation is helpful for discussion threads and many other uses, but I do not think it should be used for wiki page content :)</p>
</blockquote>
<p>I'm a heavy user of <a href="http://www.dokuwiki.org" class="external">DokuWiki</a> which incorporates this feature. I personally like it and think the readability get improved as such. Though I understand this is an opinion that can vary among people...</p>
<p>Maybe if the selectors are precise enough this could be implemented (and supported) as a variation of the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/ThemeDefault">default-theme</a>, as an independent theme. I've been looking at something earlier for issuelist colouring only (thus not duplicating the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/ThemeAlternate">alternate-theme</a>).</p>
<p>Kind regards,</p>
<p>Mischa.</p>
</blockquote>
<p>Hi there Mischa,</p>
<p>like you, I also want to indent the wiki-parts! It makes it much nicer, and easier to read!<br />Is there a good way of achieving this for the wiki?</p>
<p>Any suggestions are appreciated.<br />Thanks.</p>
<p>Fried.</p> Redmine - Feature #3074: Indention in Wiki of headings and corresponding content based on heading-depthhttps://www.redmine.org/issues/3074?journal_id=611332015-01-27T19:24:59ZTiago Carvalho (LabOrders)
<ul></ul><p>+1</p>
<p>Notice that one can create / edit a custom CSS file in /redmine/public/themes/"my_theme"/stylesheets/application.css<br />(<a class="external" href="http://www.redmine.org/projects/redmine/wiki/howto_create_a_custom_redmine_theme">http://www.redmine.org/projects/redmine/wiki/howto_create_a_custom_redmine_theme</a>)<br />That is really easy and convenient (that's how we color-coded our trackers)</p>
<p>Now, the REAL problem is that wiki contents after each heading are CSS siblings and not children of the heading. Therefore the suggestion above will not work, eg:<br /><pre>
.wiki h2 + p {margin-left: 15px;}
</pre><br />will indent ONLY the very next paragraph. If there is more than one it will not indent it. If there are tables, bullet lists, etc, will not indent those as well.</p>
<p>POSSIBLE SOLUTION:</p>
<p>After each heading include the following HTML:</p>
<pre>
<h1>This is heading 1</h1>
<div class=h1_contents>
...
</div>
<h2>This is heading 2</h1>
<div class=h2_contents>
...
</div>
</pre>
<p>And then one would be able to style this HTML as suggested, using the custom CSS theme.</p>
<p>This is something I'd also be interested in.</p>
<p>Cheers,<br />Tiago</p>