Jump to content

Change background color UnimBitBtn


easegura777

Recommended Posts

7 hours ago, Sherzod said:

No pude reproducirme.

 

 

CSS

.x-button
{
  width:120px;
    color:green; !important;
    height:30px;
    background-color: green; !important; 
    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: green; /* 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);
}                      
 

With theme triton

 

image.png.2b20e116d7aa0bb49178bd3b076df6d3.png

 

with theme material

 

image.png.ced04258ff7061483e914ff6fead2be5.png

 

Link to comment
Share on other sites

I offered you this sequence:

 

UnimButton ->

 

1. UI  = 'plain'

 

2. ClientEvents -> UniEvents -> beforeInit:

function beforeInit(sender, config)
{
    config.userCls='my-button';
}

3. UniServerModule->CustomCSS:

.my-button {
  background-color: orange;
}

.my-button:hover {
  background-color: #ff8c00;
}

.my-button.x-pressing {
  background-color: #ee7600;
}
Link to comment
Share on other sites

9 hours ago, Sherzod said:

I offered you this sequence:

 

UnimButton ->

 

1. UI  = 'plain'

 

2. ClientEvents -> UniEvents -> beforeInit:


function beforeInit(sender, config)
{
    config.userCls='my-button';
}

3. UniServerModule->CustomCSS:


.my-button {
  background-color: orange;
}

.my-button:hover {
  background-color: #ff8c00;
}

.my-button.x-pressing {
  background-color: #ee7600;
}

Excelent!! it worked !!, thanks!!

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