Jump to content

Aplly CSS


psempionato

Recommended Posts

Hi.

I'm starting with uniGUI.

I'm trying add css class to my project mobile, but i'm not getting.

I created in ServerModule > CustomCSS this code:

.btnRed
{
 background:#d9534f !important;
 color:#fff !important;
 border-color:#d9534f;
 -webkit-transition: background 0.5s ease-in-out;
 transition: background 0.5s ease-in-out;
}

In my UnimButton > ExtEventes > added i put this code:

function added(sender, container, index, eOpts)
{
  sender.addCls('btnRed');
}

But when i'm running the project,  this atributes don't apply in component.

I'm using the trial version.

Anyone Can help me?

Link to comment
Share on other sites

12 minutes ago, Sherzod said:

Hi,

CSS classes of the theme may also conflict with customCSS, specifically what do you want to apply?

OK,

If I understand, not all customCSS will work on mobile ?

So, is there an Unigui Mobile CustomCSS Collection (with each theme mobile )  we can use it ?

Thx

Link to comment
Share on other sites

32 minutes ago, Sherzod said:

Sorry, I find it difficult to give you an answer at the moment.

Thx again Sherzod,  this is not urgent !   I just wanted to know if such collection exists.

"It's a wonderful, wonderful life..."  

 

Link to comment
Share on other sites

×
×
  • Create New...