Jump to content

Styling TUniEdit font


MarBar77

Recommended Posts

Hi,

 

I want to set style for font with TUniEdit using customCSS (in Trinton theme Text is too light I think).

 

I am trying to do it over 2 hours but sill with no positive results:

 

.x-form-text-default
{
   color: rgb(0, 0, 0) !important;
   font-weight: initial !important; 
}

 

If I edit this style settings with Chrome Developer Tools everything works fine, but from CustomCSS it doesn't.

 

Can someone help?

 

Marcin

Link to comment
Share on other sites

 

Maybe you wanted like this?:

function beforeInit(sender, config)
{
    config.fieldStyle = 'color: black; font-size: 14px; font-weight: bold;';
}

 

 

It works. Thank you Delphi Developer.

 

BTW why it is not working when I declare my class and change by CustomCSS class .x-form-text-default?

Is theme override CustomCSS settings?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...