``` /* STYLES FOR A TOP MENU WITH TOOLBAR BUTTONS */ /* + STYLES FOR OTHER TOOLBARS */ /* DISTINCTION BETWEEN MOBILE MEDIA & STANDARD MEDIA */ /* MOBILE MEDIA MAX. 770px */ @media (max-width: 770px) { html .sidebar-header { padding : 42px 0 0 15px; } /* TOP MENU */ html .tw-topmenu { padding : 0 15px; } } /* STANDARD MEDIA MIN. 770px */ @media (min-width: 770px) { /* TOP MENU */ html .tw-topmenu { padding : 0px 42px; } } /* TOP MENU, FIXED IN POSITION */ html .tw-topmenu { background : #EFEFEF !important; /* as background */ height : 45px; margin : 0; position : fixed; top : 0; left : 0; width : 100%; z-index : 99; } /* TOP MENU CLEARANCE */ /* TO AVOID THE TOP MENU OBSCURES PART OF TIDDLERS */ /* transform : translate(0px, 56px); for standard buttons ViewToolbar */ /* transform : translate(0px, 51px); for small buttons ViewToolbar above title */ /* transform : translate(0px, 44px); idem + smaller title 0.9em */ /* these are just indications; adjust for aligning Wiki title - tiddler title */ html .story-river { padding-top : 0px; transform : translate(0px, 44px); /* Firefox */ -ms-transform : translate(0px, 44px); /* IE 9 */ -webkit-transform : translate(0px, 44px); /* Safari and Chrome */ } /* PADDING TIDDLERS */ /* no top padding in case of small buttons in ViewToolbar */ html .tw-tiddler-frame { padding : 0px 32px 32px 32px; } /* FLOAT RIGHT */ /* PUSHES THE TOGGLE BUTTONS TO THE RIGHT OF THE TOP MENU */ .floatright { float : right; } /* TIDDLER BUTTONS: VIEWTOOLBAR, EDITTOOLBAR */ html .tw-tiddler-controls button svg { height : 0.5em; } /* DISTANCE BETWEEN BUTTONS */ /* Firefox margin: 0px 0px 0px 0px; */ /* Chrome margin: 0px 0px 0px 10px; */ /* adjust to your liking */ html .tw-tiddler-controls button { margin : 0px 0px 0px 5px; } /* TITLE - TOOLBAR SPACING VIEWTEMPLATE */ html .tw-tiddler-title-space { font-size : 1.4em; line-height : 1em; } /* DISPLAY IN 3 COLUMNS */ /* for List all tags */ .threecolumns { display : block; column-count : 3; -moz-column-count : 3; -webkit-column-count: 3; } /* HELP TABLE */ /* styles the Help menu */ html .help-table { font-size: 0.9em; background-color : #EEF4FD !important; /* as background */ } /* SCALE SVG IMAGES IN HELP TABLE' */ html .tw-images svg { height : 1.1em; } ```
the plugin works with codeblocks not with codeinline.
(I think highlightjs don't support sass or less, for that you need the
lesscss.org)
New features for 5.0.7
* Extend list filter operator to allow other fields to be used via a TextReference
Can it be a problem that the list is in form of "777 888", whereas the tiddler titles are RFC 777 and RFC 888, and my macros then assemble the full title for linking. Does the "list" operator run into any problems when iterating over non-existant tiddler titles?
\define updatefilter()
[tag[RFC]list[$(RFC)$!!rfc-updated-by]]
\end
<$list filter="[tag[RFC]]">
!! <$link><$view field="title"/></$link>
<$set name="RFC" value={{!!title}}>
<$list filter=<<updatefilter>>><$view field="title"/></$list>
</$set>
</$list>
<$transclude field="rfc-updated-by"/>cross posting :) As far as I understand your suggestion, it is similar to what I just posted (albeit something more to learn for me). However, it would suffer from the same problem that if the list contains RFCs for which no tiddler exists yet,
cross posting :) As far as I understand your suggestion, it is similar to what I just posted (albeit something more to learn for me). However, it would suffer from the same problem that if the list contains RFCs for which no tiddler exists yet,
Hello Jeremy,
This bug only appears when you have the highlight plugin installed. I thought that I wrote it. Sorry for the misunderstanding. Did you read how I fixed it? The problem is having the CSS code between ```.
Regards
This bug only appears when you have the highlight plugin installed. I thought that I wrote it. Sorry for the misunderstanding. Did you read how I fixed it? The problem is having the CSS code between ```.
This bug only appears when you have the highlight plugin installed. I thought that I wrote it. Sorry for the misunderstanding. Did you read how I fixed it? The problem is having the CSS code between ```.
Ah, OK, that's very helpful, thank you Danielo!
Hello Jeremy, glad to hear that. Anyway, the workaround that I described fixes the problem.
I read that ticket, and I don't understand the description at all :
Fix problem with highlighting only working in the DOM
The current implementation of the highlight plugin only works properly in the browser, and doesn’t work under Node.js.
Does that include tiddlyDesktop and node webkit? Because it is working for me on those.
Regards.
Hello Jeremy, glad to hear that. Anyway, the workaround that I described fixes the problem.
I read that ticket, and I don't understand the description at all :
Fix problem with highlighting only working in the DOM
The current implementation of the highlight plugin only works properly in the browser, and doesn’t work under Node.js.
Does that include tiddlyDesktop and node webkit? Because it is working for me on those.
That means I am still using all CSS styles in my stylesheets within 'triple backticks' without any problem.
The stylesheet you mention is used in my guide about a top menu and toolbars [2].
Did you tried with the highlight plugin installed? I told it several times, this only occurs with that plugin. Just give it a try and let me know ;)
Regards
AD:your tutorials are very helpful, Thank you very much
You should only store stylesheets as text/css if they don't contain any TW5 macros or transclusions. If you use transclusions and macros (like the stylesheets in the core themes), then it is perfectly OK to use triple backticks to mark sections that you want to exclude from wikification.
Is it allowed to use <pre>...</pre> around the styles in the stylesheet while using txt/css as type?
But text/css is not in the list of type to be selected. Mario said: Add it manually.
But there is a Plain text (text/plain) entry in the type list which gives the same result.
Both text/css and text/plain do show the styles in "readable" form.
Is there a difference in types between text/css and text/plain?
What I mean is: TW need more publicity about its possibilities.