aaa
<<list-links filter:"[prefix[N]]" class:"foo">>
bbb
<style>
.foo {
background-color:blue;
margin-bottom:0;
margin-top:0;
}
</style>Note that you are not addressing a paragraph that may be created around a list-links macro,
you can only force it to be inline in order to fix the margin.
p {
margin-bottom: 0;
}
p + p, h1 + p, h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
margin-top: 1em;
}
ul {
margin-top: 0;
}Hi Dave,
Just use the built in mechanism, like this:
<<list-links filter:"[prefix[J]]" class:myClass>>
see: http://tiddlywiki.com/#list-links%20Macro
tiddler: myStyles tag: $:/tags/Stylesheet
.myClass {
margin-top: 0px;
margin-bottom: 0px;
}
Just adjust the margin pixel values to your liking.
If your text looks like this it should work as expected.
lorem ipsum dolor sit amet.
<<list-links filter:"[prefix[J]]" class:hugo>>
lorem ipsum dolor sit amet.
have fun!
mario
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/mqwHsx8ChOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/81d6d0fa-128a-40ef-833e-0cf08ac8b2d1%40googlegroups.com.
Just use the built in mechanism, like this:
<<list-links filter:"[prefix[J]]" class:myClass>>
Hi Mario,Just use the built in mechanism, like this:
<<list-links filter:"[prefix[J]]" class:myClass>>Of course, it's the simplest way and the one to make this particular case work atm.However, this somewhat counter-intuitively forces us to have the wikitext parsed in inline mode and then address the style of that list.
However, I would very much appreciate a method that would force block mode parsing, but still let me specify a class to be applied to a rendered paragraph, if only to work for more than just the list-links macro. Atm, I wouldn't quite see how that could be done, though.
In this case the paragraphs "have no right" to modify the behavior of the list. The list needs to define its behavior. If the paragraphs do it, it's a side-effect, which basically is just "weak" CSS.
IMO the solution is, to completely redefine how the CSS defines margins in a consistent and nestable way. At the moment that's not the case. So we encounter problems with some edge cases and we need to design workarounds instead of solutions.
The problem with solutions is: They are not backwards compatible, which is a no go for Jeremy.
title: Test
Some list... {{Foo}}title: Foo
* foo
* bar
* baz@@!
Always render in block mode but do not render paragraphs, but linebreaks instead.
@@However, playing a bit more with paragraphs and their margins, I've come to think that using the list-links macro inline as you have with a class is actually the only way to handle this. Otherwise, the problem is not only the margin of the paragraph that wraps some output, but rather the bottom margin of a preceding paragraph.