Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
How to remove text style?

martin
Registered User
Quote
2023-02-18 18:39:02

Hi,

is there an easy way to remove the text style from a container? The goal is to let the container inherit the style from its parent container - basically what you get when you create a brand-new container.

With text style I mean text color, font, font size, justification etc.

Martin


erik
Registered User
Quote
2023-02-18 18:54:34

Never tried this, but you could set the generated text style again and set erverything to "inherit". Not sure if it would work.


martin
Registered User
Quote
2023-02-20 17:25:14

Well, yes, but how to "set to inherit" ? That is basically my original question.


erik
Registered User
Quote
2023-02-20 18:35:34

Like for color:
color: inherit



martin
Registered User
Quote
2023-02-22 10:14:39

Hi erik,

not sure I understand what you mean. Are you talking about adding CSS code via the "Additional CSS Styles" dialog? That doesn't work for text properties as RC hard-codes text color in every SPAN. If that's not what you meant then please "explain like I'm 5" .

I was more thinking about a way to set it to "inherit" in the RC user interface. For example for text color I can bring up the color dialog and enter "inherit" in the HTML field but it will be replaced by "CE8BFF" and I get a pink text.

I guess RC was not designed for that kind of thing and slowly accepting that I have to set text properties manually everywhere.


erik
Registered User
Quote
2023-02-22 11:20:28

Because of your post I became curious and tried it out, but I only was partially successful. When you right-click onto the container and see what code is generated for it, you'll see that it generates a style named for example "textstyle3" for the container. You can now overwrite it yourself using for example this:

.textstyle3 {
font-family: inherit !important;
font-size: inherit !important;
}


causing it to get the same font-family as the outer container. I did this with the command View -> HTML Code of page -> additional CSS styles.
It works only for the font family in my test, not sure why not for the font-size. I probably don't know enough about CSS.


rsifontes
Registered User
Quote
2023-03-09 21:11:15

wrote:
Well, yes, but how to "set to inherit" ? That is basically my original question.


Hi Martin, It isn't possible using RC user interface. That is More or less a feature requested few months ago.
The Rocket Cake team must be working on it...

Maybe we have a surprise soon...

Take a look on this:
https://www.ambiera.com/forum.ph...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact