Jump to content

UnimButton Color


zanona

Recommended Posts

How to change the color of the button? In the web version I use the css below, but on the mobile does not work?

 

function beforeInit(sender, config)
{
  config.cls='btAzul';
}
 
.btAzul
{
  width:120px;
    height:30px;
    background: #1E90FF; 
    border: 5px solid #1E90FF; /* borda branca em volta */
    margin: auto; /* centraliza com bordas automáticas nas laterais */
    text-align: center; /* centraliza o texto */
    font-family: Source Sans Pro; /* fonte */
    font-size: 16px;  /* tamanho da fonte */
    color: #1E90FF; /* cor fonte */ 
 
    border: 1px solid #ccc;
    border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.05);
}
 
Link to comment
Share on other sites

  • 9 months later...
  • 2 months later...
  • 3 weeks later...
2 hours ago, Hayri ASLAN said:

Please change .btAzul to .btAzul .x-inner-el in CustomCss

did not work. The background button color still not changing.

UNIGUI Mobile 1.90 

 

function added(sender, container, pos, eOpts)
{
  sender.addCls('bntLogin');
}

.bntLogin
{
 background:#1892d1 !important;
 color:#fff !important;
 -webkit-transition: background 0.5s ease-in-out;
 transition: background 0.5s ease-in-out;
}

 

Link to comment
Share on other sites

11 minutes ago, freedowsRoO said:

did not work. The background button color still not changing.

UNIGUI Mobile 1.90 

 


function added(sender, container, pos, eOpts)
{
  sender.addCls('bntLogin');
}

.bntLogin
{
 background:#1892d1 !important;
 color:#fff !important;
 -webkit-transition: background 0.5s ease-in-out;
 transition: background 0.5s ease-in-out;
}

 

Please check that example. It is working on that.

 

Please send me your test case that i can work on it

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...