Jump to content

Recommended Posts

Posted

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?

Posted

+1

@Sherzod,

This CSS works fine on Desktop version (i tried it with uniButon.LayoutConfig.CLS)

Not on mobile ! 

Is there a workaround ?

Thx

Posted
7 minutes ago, Abaksoft said:

Not on mobile ! 

Hi,

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

Posted
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

Posted
1 minute ago, Abaksoft said:

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

This also applies to the desktop, to some extent.

Posted
12 minutes ago, Abaksoft said:

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

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

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

 

×
×
  • Create New...