Jump to content

Share CSS-files


Recommended Posts

1 hour ago, likemike said:

Is there anyone out there who could share his CSS-files/code to the community?

It's where difficult for me to create correct css-code because of the undocumented syntax (like ".x-inner-el" etc.).

Thanks a lot in advance

Hello,

Exactly what do you need?

Link to comment
Share on other sites

4 hours ago, likemike said:

1. change the font size of the items of a TUnimSelect

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  with UnimSelect1 do
  begin
    JSInterface.JSConfig('itemTpl', ['<span class="x-list-label" style="'+ Font.ToStyleString(True) +'; font-size: '+ (Font.Size+11).ToString() +'px">{val:htmlEncode}</span>']);
  end;
end;

 

Link to comment
Share on other sites

Thank you!

But can you explain, why CSS doesn't work with " title font, color and height of a TUnimDBGrid"? 

How should we know, when we have to use JS and when CSS? I prefer to use CSS in most cases. If I have to toggle always between both, this would be bad for structured programming.

But nevertheless - if someone could share some CSS-files, this would be very appreciated and helpful.

Best wishes

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hi @Sherzod,

 

Where can I find CSS reference of dbgrid (for now).. It it so difficult for newbie like me to navigate with CSS and dbGrid..

for example, in dbgridtree, i'd like to change the expand/collapse icon.. matters like that.

 

could you help me again?

 

Thanks,

Frances

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...