-
1. Re: TCS 5: Could someone explain RH's generated CSS for me?
Steve_Chapman Jun 13, 2014 9:27 AM (in response to Steve_Chapman)Just to follow up on my own post with a little more information:
- We do not use the RH's internal CSS editor at all.
- RH doesn't change the CSS in the project's root directory at all, but the generated CSS has all those funky #rh_default_topic_placeholder_id lines and none of our original rules.
- We're not trying to add any unusual functionality, just control bullets, margins, spacing, fonts, and so on.
Thanks again,
Steve
-
2. Re: TCS 5: Could someone explain RH's generated CSS for me?
Jeff_Coatsworth Jun 13, 2014 9:48 AM (in response to Steve_Chapman)I don’t pay too much attention to all the css files in the project – I just slap on the “Apply to all” css in the generation process.
-
3. Re: TCS 5: Could someone explain RH's generated CSS for me?
Steve_Chapman Jun 13, 2014 10:38 AM (in response to Jeff_Coatsworth)I do that, too, but that's not the problem. The problem seems to be with RH's generated CSS file, since our our original CSS works. I just don't want to have to copy in our original CSS every time I generate the project.
-
4. Re: TCS 5: Could someone explain RH's generated CSS for me?
Jeff_Coatsworth Jun 13, 2014 10:43 AM (in response to Steve_Chapman)Once you’ve copied it into the project’s root folder, it should always be there to be selected in the generation SSL. Are you saying it gets cleared each time you do a Force Update?
-
5. Re: TCS 5: Could someone explain RH's generated CSS for me?
Steve_Chapman Jun 13, 2014 10:49 AM (in response to Jeff_Coatsworth)No, the version in the root folder remains unchanged, but during the generation process, RH creates its own version of the CSS, with the same name, that it puts in the output folder. That's the version that has the funky CSS notation I show above that seems to be negatively affecting our WebHelp and Responsive HTML5 output.
If you look in one of your output folders, you'll probably see it.
-
6. Re: TCS 5: Could someone explain RH's generated CSS for me?
Jeff_Coatsworth Jun 13, 2014 1:41 PM (in response to Steve_Chapman)Not seeing it in my RH10 WebHelp output folder – even preserves the original date/time stamp on my css; maybe you’ve found a new bug.
-
7. Re: TCS 5: Could someone explain RH's generated CSS for me?
Steve_Chapman Jun 13, 2014 1:54 PM (in response to Jeff_Coatsworth)Thanks, Jeff. I'm using RH11 now, but when I looked back at some of my older projects, I didn't see this type of CSS file either. Maybe it has something to do with the new Responsive HTML5 output type, but I'm just guessing.
Does anyone else have any insight on this?
-
8. Re: TCS 5: Could someone explain RH's generated CSS for me?
Willam van Weelden Jun 17, 2014 12:10 AM (in response to Steve_Chapman)You can disable the optimisation option 'Limit the scope of project styles only to topic content'. This will stop RoboHelp from adding the ID selector. But this can have unforeseen consequences. The optimisation setting makes sure that topic styles don't mess up the skin and vice versa.
Also, RoboHelp doesn't always play nice with CSS it doesn't understand, such as ::before and ::after pseudo-elements. It will just keep rewriting your CSS. My solution is to have a RH changed CSS in RoboHelp and copy the unmodified CSS into the output after generation. Not ideal, but it works. And with scripting, you can let RH copy the files automatically.
Kind regards,
Willam
-
9. Re: TCS 5: Could someone explain RH's generated CSS for me?
Steve_Chapman Jun 17, 2014 7:39 AM (in response to Willam van Weelden)Thanks, Willam. I was hoping you'd see my question and respond.
Yesterday I tried disabling the Optimization option, but that didn't resolve the problems we're having, which do seem to be with the ::before elements.
I guess we'll either need to copy in the original CSS, or rewrite the CSS so that it doesn't use those elements.
Regards,
Steve


