psempionato Posted April 3, 2020 Share Posted April 3, 2020 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 More sharing options...
Abaksoft Posted April 6, 2020 Share Posted April 6, 2020 +1 @Sherzod, This CSS works fine on Desktop version (i tried it with uniButon.LayoutConfig.CLS) Not on mobile ! Is there a workaround ? Thx Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2020 Share Posted April 6, 2020 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? Link to comment Share on other sites More sharing options...
Abaksoft Posted April 6, 2020 Share Posted April 6, 2020 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 More sharing options...
Sherzod Posted April 6, 2020 Share Posted April 6, 2020 1 minute ago, Abaksoft said: If I understand, not all customCSS will work on mobile ? This also applies to the desktop, to some extent. Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2020 Share Posted April 6, 2020 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. Link to comment Share on other sites More sharing options...
Abaksoft Posted April 6, 2020 Share Posted April 6, 2020 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 More sharing options...
Recommended Posts