Search found 55 matches

by JuMo
Wed Feb 22, 2017 6:43 am
Forum: Web-based Outputs
Topic: Callbacks, e.g. on slideshow initializaton
Replies: 1
Views: 1049

Callbacks, e.g. on slideshow initializaton

Are there any callback events that will be proposed during an applications lifecycle by Flare?
by JuMo
Thu Feb 16, 2017 7:46 am
Forum: Styles, Stylesheets and XML
Topic: Responsive Table Scrollbar
Replies: 0
Views: 1211

Responsive Table Scrollbar

In Foundation 6 there is a "responsive-table" plug-in to add a scrollbar to tables if the viewport is too small to show them. But since Flare 12 uses Foundation 5 in the background, adding the plug-in brings unexpected behaviors. In Bootstrap you can simply add a .responsive-table class to make them ...
by JuMo
Wed Feb 08, 2017 9:23 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Re: Print styles in custom CSS file are ignored

@Dave Just wanted to let you know that the tip worked. I've copied all default styles to a new file "default.css" and import them before my custom stylesheets – which shouldn't be necessary normally. Anyway, the styles now apply to the elements. Thank you!

/*<meta />*/
@import url('default.css ...
by JuMo
Wed Feb 08, 2017 9:01 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Re: Print styles in custom CSS file are ignored

sing any more 'advanced' CSS is trial-and-error, since MadCap haven't produced a list of what CSS is or isn't supported in PDFs.

Well, I've submitted a bug. Hopefully they can clarify and fix the missing support for all kind of CSS features. I can only say that it's possible to support all kind ...
by JuMo
Wed Feb 08, 2017 8:41 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Re: Print styles in custom CSS file are ignored

The main stylesheet in my projects only contains import links (and no CSS). It imports the default styles first, then styles for each medium.
Thanks for this tip, I'll try that tomorrow.

But, if something works in HTML, I expect it to work in the PDF build too since it just converts HTML files to ...
by JuMo
Wed Feb 08, 2017 8:25 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Re: Print styles in custom CSS file are ignored

Dave Lee wrote:In that example, the imported stylesheet is being loaded first, and sets the colour to black. But, the CSS that follows the import is overriding that and setting it to green.
That makes no sense since I've used !important and if you look at the tmp files it'll also work?
by JuMo
Wed Feb 08, 2017 2:52 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Re: Print styles in custom CSS file are ignored

Yes, it is set to "print".

To clarify the points you are confused about:

Not sure what you mean by this, but just be aware that what Flare calls a medium isn't actually a real media type and can't be used in a CSS media query.

By tmp files I mean the files that are generated to the temporary ...
by JuMo
Tue Feb 07, 2017 9:38 am
Forum: Styles, Stylesheets and XML
Topic: Print styles in custom CSS file are ignored
Replies: 10
Views: 7070

Print styles in custom CSS file are ignored

I have some styles within a @media print{} block in a separate CSS file. I'm referencing this print file from within "styles.css" (default CSS file) like e.g.:


@import url('../CustomSkin/css/main.min.css') ;

@import url('../CustomSkin/css/print.min.css') ;

@import url('../CustomSkin/css/online ...
by JuMo
Tue Feb 07, 2017 2:38 am
Forum: Styles, Stylesheets and XML
Topic: Prevent selector modification from Flare
Replies: 5
Views: 2822

Re: Prevent selector modification from Flare

I've just found out that this is also a problem if you have other :not selectors like

Code: Select all

.tile:not(:first-child)
it will be converted to

Code: Select all

.tile:not(\:first-child)
aaaaargh.. I can't work with such behaviors...
by JuMo
Mon Feb 06, 2017 3:07 am
Forum: Styles, Stylesheets and XML
Topic: Prevent selector modification from Flare
Replies: 5
Views: 2822

Re: Prevent selector modification from Flare

Alright, I have tried this with Flare 2017 and can constantly reproduce it. I've submitted it as bug to the MadCap team.
by JuMo
Sun Feb 05, 2017 4:10 am
Forum: Styles, Stylesheets and XML
Topic: Prevent selector modification from Flare
Replies: 5
Views: 2822

Re: Prevent selector modification from Flare

What version of Flare are you using? Maybe there's the difference.

Anyway, this seems to be a bug that should be solved by MadCap.
by JuMo
Fri Feb 03, 2017 6:19 am
Forum: Styles, Stylesheets and XML
Topic: Prevent selector modification from Flare
Replies: 5
Views: 2822

Prevent selector modification from Flare

After running a HTML5 build, Flare modifies custom CSS files. It not only expands the styles when they were compressed, but also modifies selectors. This makes some of them invalid. An example:


html[data-mc-path-to-help-system="../"]:not([data-mc-runtime-file-type*="Search"]) .main-section ...
by JuMo
Wed Jan 27, 2016 12:28 am
Forum: Flare's General Discussion
Topic: How to build a flare plugin extension?
Replies: 1
Views: 1185

How to build a flare plugin extension?

Hello,
related to this topic https://forums.madcapsoftware.com/viewtopic.php?f=6&t=26688 I would like to extend the "format panel" with a plugin to allow the assignment of multiple classes.
Unfortunately Madcap Flare support could not help me getting started.
At this time we do not have information ...
by JuMo
Wed Dec 09, 2015 1:10 am
Forum: Styles, Stylesheets and XML
Topic: Assign multiple classes to an element
Replies: 8
Views: 8669

Re: Assign multiple classes to an element

I assume that you agree with my findings. So I will think of an extension to allow multiple classes. I am not sure if this will cause side-effects, because I don't know why this has not been made possible.
by JuMo
Wed Dec 02, 2015 2:27 am
Forum: Styles, Stylesheets and XML
Topic: Assign multiple classes to an element
Replies: 8
Views: 8669

Re: Assign multiple classes to an element

I gave the TableStyle Editor a try. Great that such an helper exists. However, I don't think it is the right thing for my use case.
The reason is, that you can only apply one style format to a <tr>-element for example. Let's say you create one format that will add a green background
and another one ...
by JuMo
Tue Dec 01, 2015 1:27 am
Forum: Styles, Stylesheets and XML
Topic: Assign multiple classes to an element
Replies: 8
Views: 8669

Re: Assign multiple classes to an element

Yes I already know the "Attribute"-panel. However, it is not possible to assign the same class attribute to multiple selected elements. You need so select each th or td element manually.
Also, this only works if you know the class names or you have opened the "Format"-panel too.

I had a look at the ...
by JuMo
Mon Nov 30, 2015 1:56 am
Forum: Styles, Stylesheets and XML
Topic: Assign multiple classes to an element
Replies: 8
Views: 8669

Re: Assign multiple classes to an element

Well, this is a huge problem. My customers are technical authors without HTML knowledge, so this is an essential point.
I need to talk with our CTO and maybe think about an extension.

I'm shocked that this is not built in. On complex tables e.g. you need
- striped classes
- color classes
- border ...
by JuMo
Sun Nov 29, 2015 1:30 am
Forum: Styles, Stylesheets and XML
Topic: Assign multiple classes to an element
Replies: 8
Views: 8669

Assign multiple classes to an element

In my example I have a table cell (td or th) and I want to assign multiple classes to it, e.g. a class to affect the background color and another one to affect the border color.
However, if I try to assign two classes the other one will be removed. I would need to go to the code-view and write it ...
by JuMo
Wed Jan 22, 2014 9:17 am
Forum: Printed Documentation Targets
Topic: Get last H1-heading
Replies: 7
Views: 2635

Re: Get last H1-heading

jasonsmith wrote:I think you can insert an xref into the page layout, though this would mean creating and applying a different page layout for each chapter.
Thank you Json for you answer. The content of my documentation is about 500 chapters, so that wouldn´t be a good solution. Anything else?
by JuMo
Wed Jan 22, 2014 9:15 am
Forum: Styles, Stylesheets and XML
Topic: Min-height of list-item
Replies: 8
Views: 5255

Re: Min-height of list-item

Is there a Madcap-supporter who can help?
by JuMo
Wed Jan 22, 2014 5:41 am
Forum: Styles, Stylesheets and XML
Topic: Create custom styles and structure for the TOC
Replies: 7
Views: 2430

Re: Create custom styles and structure for the TOC

I would call again in remembrance:
Is there a MadCap-supporter who can safely say that there is no possibility to change the structure of the TOC (see example in the 1st post)?
by JuMo
Wed Jan 22, 2014 5:39 am
Forum: Styles, Stylesheets and XML
Topic: Create custom styles and structure for the TOC
Replies: 7
Views: 2430

Re: Create custom styles and structure for the TOC

I have a paragraph class p.PageBreakAfter with page-break-after set to always. You could simply insert such a paragraph after the TOC proxy. You might want to set space before and after and line-height? to 0 to avoid the TOC bumping the p.PageBreakAfter onto the next page. Oh, and don't div the TOC ...
by JuMo
Wed Jan 22, 2014 4:37 am
Forum: Styles, Stylesheets and XML
Topic: Create custom styles and structure for the TOC
Replies: 7
Views: 2430

Re: Create custom styles and structure for the TOC

If you apply page-break-before: always to p.TOC1 rather than to the TOCproxy, you should get what you're after.

If you apply page-break-before:always to TOCproxy, you will always have a page break before every TOC, which might not be what you're after.

Hope that helps.
I´d like to have the ...
by JuMo
Wed Jan 22, 2014 1:13 am
Forum: Styles, Stylesheets and XML
Topic: Create custom styles and structure for the TOC
Replies: 7
Views: 2430

Re: Create custom styles and structure for the TOC

The text font and size is defined in the p.TOC1, p.TOC2... etc styles. I don't think it's possible to put the numbers before the text, maybe you could put in a feature request.
thanks json. Does p.TOC1 have a wrapper? So for example I´d like to give the wrapper of the TOC a CSS-property, so that ...
by JuMo
Wed Jan 22, 2014 1:06 am
Forum: Styles, Stylesheets and XML
Topic: Min-height of list-item
Replies: 8
Views: 5255

Re: Min-height of list-item

Lydia wrote:What do you mean by "Flare doesn't understand this property." ? Are you not able to find it in the CSS or have you found and set it and it doesn't behave the way you expect it to?
Sure, I can apply all CSS-propertys I know, but I found out that min-height doesn´t affect the output in PDF.